Skip to content

Commit 73bca9b

Browse files
cubetastic33gitmate-bot
authored andcommitted
Lua.yaml: Add Lua language
Add language definition for Lua Add Lua delimiters Fix wrong details in Lua nested block comment delimiter Improve formatting Make values as strings Correct ending delimiter in nested_block_comment_lua.yaml Remove keywords already specified in datatypes
1 parent 78e658e commit 73bca9b

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

data/Delimiter/double_hyphen.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type: comment
2+
start: '--'
3+
end: '--'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type: comment
2+
start: '--[['
3+
end: ']]'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
type: comment
2+
# Different number of = symbols provides nesting
3+
start: '--[===['
4+
end: ']===]'

data/Language/Lua.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
identifier: Lua
2+
creation_date: 1993
3+
full_name: Lua
4+
wikidata: Q207316
5+
grammar_file: https://github.com/antlr/grammars-v4/blob/master/lua/Lua.g4
6+
extensions:
7+
- lua
8+
delimiters:
9+
# comment delimiters
10+
- double_hyphen
11+
- double_hyphen_double_brackets
12+
- nested_block_comment_lua
13+
# string delimiters
14+
- double_quote_slash_escape
15+
- single_quote_slash_escape
16+
datatypes:
17+
- bool_lower_case
18+
- string # TODO
19+
- number # TODO
20+
- function # TODO
21+
- nil # TODO
22+
keywords:
23+
- and
24+
- break
25+
- do
26+
- else
27+
- elseif
28+
- end
29+
- for
30+
- if
31+
- in
32+
- local
33+
- not
34+
- or
35+
- repeat
36+
- return
37+
- then
38+
- until
39+
- while

0 commit comments

Comments
 (0)