mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
ff095ebd9b
* 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>
45 lines
633 B
Scheme
45 lines
633 B
Scheme
|
|
; 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
|
|
|