Fixed generate-keywords script

master
Armando Rivera 11 years ago
parent 31d974aa67
commit bedc0b9dcc
  1. 3
      Keywords.txt
  2. 10
      generate-keywords.sh

@ -30,8 +30,9 @@ ENDSELECT
ENDSUB ENDSUB
ENUM ENUM
EXIT EXIT
FALSE FORMAT$ FALSE
FOR FOR
FORMAT$
FUNCTION FUNCTION
IF IF
INCR INCR

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
# KEYWORDS # KEYWORDS
KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1') KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1')'\n'
KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1') KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1')'\n'
KEYWORDS+='\n'$(ack '^SUB (\w+)' runtime.inc --output='$1') KEYWORDS+=$(ack '^SUB (\w+)' runtime.inc --output='$1')
# FUNCTION/SUB PROTOTYPES # FUNCTION/SUB PROTOTYPES
PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')' ' PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')'\n'
PROTO+='\n'$(ack '^SUB (.+\))' runtime.inc --output='$1') PROTO+=$(ack '^SUB (.+\))' runtime.inc --output='$1')
# #
# SAVE SORTED KEYWORDS/PROTOTYPES # SAVE SORTED KEYWORDS/PROTOTYPES

Loading…
Cancel
Save