aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorghashy2023-11-22 17:27:25 +0000
committerGitHub2023-11-22 17:27:25 +0000
commitff095ebd9b47bd5b06f16baca8dea9202f8d3c68 (patch)
treeb6fd1f6067daef3a9174a73dd1cebfe9398b77a1 /runtime
parentf1b9c19fa91ea21b81cf912c24ef11bf267d7bc7 (diff)
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 <mcarsondavis@gmail.com> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * remove unnecessary block highlight * remove unnecessary line * remove index_block query --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/dbml/highlights.scm44
1 files changed, 44 insertions, 0 deletions
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
+