Skip to content

Commit

Permalink
Lua.yaml: Add Lua language
Browse files Browse the repository at this point in the history
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
cubetastic33 authored and gitmate-bot committed Dec 5, 2018
1 parent 78e658e commit 73bca9b
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/Delimiter/double_hyphen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: comment
start: '--'
end: '--'
3 changes: 3 additions & 0 deletions data/Delimiter/double_hyphen_double_brackets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: comment
start: '--[['
end: ']]'
4 changes: 4 additions & 0 deletions data/Delimiter/nested_block_comment_lua.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: comment
# Different number of = symbols provides nesting
start: '--[===['
end: ']===]'
39 changes: 39 additions & 0 deletions data/Language/Lua.yaml
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

0 comments on commit 73bca9b

Please sign in to comment.