helix/runtime/queries/dbml/highlights.scm

45 lines
633 B
Scheme
Raw Normal View History

2024-09-13 13:28:20 -05:00
; 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