forked from richrad/nanorc-mac
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlua.nanorc
More file actions
22 lines (21 loc) · 752 Bytes
/
Copy pathlua.nanorc
File metadata and controls
22 lines (21 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
syntax "lua" "\.lua$"
header "^#!.*lua(jit)?$"
FUNCTION: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*([({'"]|\[=*\[)"
KEYWORD: "\<(do|end|while|repeat|until|if|elseif|then|else)\>"
KEYWORD: "\<(for|in|function|local|return|nil)\>"
JUMP: "\<(goto|break)\>"
+BOOLEAN
OPERATOR: "[-+:*/%^=#<>]|~=|\.\.|\[|\]|\<(not|and|or)\>"
WARNING: "[`!@$&|?]|!="
PLAIN: "\.{3,}|[({'"]"
NUMBER: "\<([0-9]+)(\.[0-9]+)?([Ee][+-]?[0-9]+)?\>|0x[0-9a-fA-F]*"
SECTION: "::[A-Za-z_][A-Za-z0-9_]*::"
+STRING
ESCAPE: "\\([0-9]{1,3}|x[A-Fa-f0-9]{2}|[abefntrv'"\\]|\[|\])"
STRING: start="\[\[" end="\]\]"
STRING: start="\[=\[" end="\]=\]"
STRING: start="\[==\[" end="\]==\]"
COMMENT: "^#!.*" "(^|[[:space:]])\-\-.*$"
COMMENT: start="\-\-\[\[" end="\]\]"
+TODO
+LINT