forked from coala/coAST
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
78e658e
commit 73bca9b
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: comment | ||
start: '--' | ||
end: '--' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type: comment | ||
start: '--[[' | ||
end: ']]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: comment | ||
# Different number of = symbols provides nesting | ||
start: '--[===[' | ||
end: ']===]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
identifier: Lua | ||
creation_date: 1993 | ||
full_name: Lua | ||
wikidata: Q207316 | ||
grammar_file: https://github.com/antlr/grammars-v4/blob/master/lua/Lua.g4 | ||
extensions: | ||
- lua | ||
delimiters: | ||
# comment delimiters | ||
- double_hyphen | ||
- double_hyphen_double_brackets | ||
- nested_block_comment_lua | ||
# string delimiters | ||
- double_quote_slash_escape | ||
- single_quote_slash_escape | ||
datatypes: | ||
- bool_lower_case | ||
- string # TODO | ||
- number # TODO | ||
- function # TODO | ||
- nil # TODO | ||
keywords: | ||
- and | ||
- break | ||
- do | ||
- else | ||
- elseif | ||
- end | ||
- for | ||
- if | ||
- in | ||
- local | ||
- not | ||
- or | ||
- repeat | ||
- return | ||
- then | ||
- until | ||
- while |