Updated Keywords.txt and generate-keywords script

This commit is contained in:
Armando Rivera 2013-11-10 20:34:51 -05:00
parent 8a50aa7ace
commit 5faed27d05
2 changed files with 12 additions and 7 deletions

View File

@ -1,4 +1,4 @@
ADDRESS ADDR
AND AND
AS AS
BEGIN BEGIN
@ -9,14 +9,19 @@ CASE
CASE_ELSE CASE_ELSE
CHAR CHAR
CLASS CLASS
CLASS
CONSTANT CONSTANT
CONSTRUCTOR
DECLARE DECLARE
DECR DECR
DIM DIM
DO
ELSE ELSE
ENC$ ENC$
END END
ENDCASE ENDCASE
ENDCLASS
ENDCONSTRUCTOR
ENDENUM ENDENUM
ENDFUNCTION ENDFUNCTION
ENDIF ENDIF
@ -45,7 +50,7 @@ NEXT
NOT NOT
OR OR
PRINT PRINT
PRIOR PTR
REPLACE$ REPLACE$
RETURN RETURN
RIGHT$ RIGHT$

View File

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