-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added syntax for FreeFEM++, MARTe2 framework and CUE (#322)
* added support to FreeFEM++ syntax * added support to MARTe2 Configuration language * updated with new language support * Update language_marte.lua * Update plugins/language_marte.lua Co-authored-by: Guldoman <[email protected]> * added languages * fixed whitespace and new line * Added CUE syntax * reformatted * removed tabs * fixed issue with char * formatted and removed duplicated key * fixed lname and added structure identifier * removed lite-xl version * Update plugins/language_cue.lua Co-authored-by: Guldoman <[email protected]> --------- Co-authored-by: Martino Ferrari <[email protected]> Co-authored-by: Guldoman <[email protected]>
- Loading branch information
1 parent
e0f0abb
commit c7c43e0
Showing
5 changed files
with
755 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
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
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,41 @@ | ||
-- mod-version:3 | ||
local syntax = require "core.syntax" | ||
|
||
syntax.add { | ||
name = "CUE", | ||
files = "%.cue$", | ||
comment = "//", | ||
patterns = { | ||
{ pattern = "//.*", type = "comment" }, | ||
{ pattern = { '"', '"', '\\' }, type = "string" }, | ||
{ pattern = { "`", "`", '\\' }, type = "string" }, | ||
{ pattern = { "'", "'", '\\' }, type = "string" }, | ||
{ pattern = "0[oO_][0-7]+i?", type = "number" }, | ||
{ pattern = "-?0x[%x_]+i?", type = "number" }, | ||
{ pattern = "-?%d+_%di?", type = "number" }, | ||
{ pattern = "-?%d+[%d%.eE]*f?i?", type = "number" }, | ||
{ pattern = "-?%.?%d+f?i?", type = "number" }, | ||
{ pattern = "[%a_][%w_]*%.", type = "literal" }, | ||
{ pattern = "[%a_][%w_]*", type = "symbol" }, | ||
{ pattern = "#[%a][%w_]*", type = "keyword2" }, | ||
-- operators | ||
{ pattern = "[%+%-=/%*%^%%<>!~|&%?:%.]", type = "operator" }, | ||
}, | ||
symbols = { | ||
["package"] = "keyword", | ||
["import"] = "keyword", | ||
["let"] = "keyword", | ||
["for"] = "keyword", | ||
["true"] = "literal", | ||
["false"] = "literal", | ||
["string"] = "keyword2", | ||
["bool"] = "keyword2", | ||
["number"] = "keyword2", | ||
["uint32"] = "keyword2", | ||
["int32"] = "keyword2", | ||
["uint16"] = "keyword2", | ||
["int16"] = "keyword2", | ||
["uint8"] = "keyword2", | ||
["float"] = "keyword2", | ||
} | ||
} |
Oops, something went wrong.