1;;; Highlighting for lua
4((identifier) @variable.builtin
5 (#eq? @variable.builtin "self"))
14] @keyword.control.conditional)
21] @keyword.control.conditional)
27] @keyword.control.conditional)
34] @keyword.control.repeat)
41] @keyword.control.repeat)
47] @keyword.control.repeat)
55"return" @keyword.control.return
109["," "." ":" ";"] @punctuation.delimiter
120] @punctuation.bracket
126] @constant.builtin.boolean
127(nil) @constant.builtin
128(vararg_expression) @constant
130((identifier) @constant
131 (#match? @constant "^[A-Z][A-Z_0-9]*$"))
135 (identifier) @variable.parameter)
138(function_declaration name: (identifier) @function)
139(function_call name: (identifier) @function.call)
141(function_declaration name: (dot_index_expression field: (identifier) @function))
142(function_call name: (dot_index_expression field: (identifier) @function.call))
144; TODO: incorrectly highlights variable N in `N, nop = 42, function() end`
147 name: (identifier) @function)
149 value: (function_definition)))
151(method_index_expression method: (identifier) @function.method)
156(number) @constant.numeric.integer
157(label_statement) @label
158; A bit of a tricky one, this will only match field names
159(field . (identifier) @variable.other.member (_))
160(hash_bang_line) @comment
163(dot_index_expression field: (identifier) @variable.other.member)
166(identifier) @variable
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list