Fixed generate-keywords script
This commit is contained in:
parent
31d974aa67
commit
bedc0b9dcc
@ -30,8 +30,9 @@ ENDSELECT
|
||||
ENDSUB
|
||||
ENUM
|
||||
EXIT
|
||||
FALSE FORMAT$
|
||||
FALSE
|
||||
FOR
|
||||
FORMAT$
|
||||
FUNCTION
|
||||
IF
|
||||
INCR
|
||||
|
@ -16,4 +16,4 @@ SAVEFILE (CSTRING src, CSTRING fname)
|
||||
SPLITPATH$ (CSTRING FPATH, INT mask)
|
||||
TRIM$ (CSTRING s)
|
||||
UCASE$ (CSTRING str)
|
||||
VAL (CSTRING str)
|
||||
VAL (CSTRING str)
|
||||
|
@ -1,13 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# KEYWORDS
|
||||
KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1')
|
||||
KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1')
|
||||
KEYWORDS+='\n'$(ack '^SUB (\w+)' runtime.inc --output='$1')
|
||||
KEYWORDS=$(ack '#define (\w+.|\w+)' header.inc --output='$1')'\n'
|
||||
KEYWORDS+=$(ack '^FUNCTION \w+ (\w+.|\w+)' runtime.inc --output='$1')'\n'
|
||||
KEYWORDS+=$(ack '^SUB (\w+)' runtime.inc --output='$1')
|
||||
|
||||
# FUNCTION/SUB PROTOTYPES
|
||||
PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')' '
|
||||
PROTO+='\n'$(ack '^SUB (.+\))' runtime.inc --output='$1')
|
||||
PROTO=$(ack '^FUNCTION \w+ (.+\))' runtime.inc --output='$1')'\n'
|
||||
PROTO+=$(ack '^SUB (.+\))' runtime.inc --output='$1')
|
||||
#
|
||||
|
||||
# SAVE SORTED KEYWORDS/PROTOTYPES
|
||||
|
Loading…
Reference in New Issue
Block a user