From ff095ebd9b47bd5b06f16baca8dea9202f8d3c68 Mon Sep 17 00:00:00 2001 From: ghashy Date: Wed, 22 Nov 2023 20:27:25 +0300 Subject: DBML Language support (#8860) * DBML language support * DBML language support, highlights.scm added * DBML support * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis * remove unnecessary block highlight * remove unnecessary line * remove index_block query --------- Co-authored-by: Michael Davis --- runtime/queries/dbml/highlights.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 runtime/queries/dbml/highlights.scm (limited to 'runtime/queries/dbml') diff --git a/runtime/queries/dbml/highlights.scm b/runtime/queries/dbml/highlights.scm new file mode 100644 index 00000000..accc65b4 --- /dev/null +++ b/runtime/queries/dbml/highlights.scm @@ -0,0 +1,44 @@ + +; comments highlighting +(comment) @comment + +; keyword highlighting +(keyword_def) @keyword +(keyword_enum) @keyword +(keyword_ref) @keyword + +; identify blocks and definitions +(definition) @function + +; for identifiers +(identifier) @variable +(type) @keyword + +; Highlight special types for database/data types +("Project" ) @type +("Table" ) @type +("TableGroup" ) @type +("database_type" ) @variable + +; string and number constants +("'''") @constant.character.escape +(string) @string +(number) @constant.numeric + +; brackets +[ + "(" + ")" + "{" + "}" + "[" + "]" +] @punctuation.bracket + +; brackets +[ + ":" + "." + "," +] @punctuation.delimiter + -- cgit v1.2.3-70-g09d2