-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* DBML language support * DBML language support, highlights.scm added * DBML support * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <[email protected]> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <[email protected]> * Update runtime/queries/dbml/highlights.scm Co-authored-by: Michael Davis <[email protected]> * remove unnecessary block highlight * remove unnecessary line * remove index_block query --------- Co-authored-by: Michael Davis <[email protected]>
- Loading branch information
1 parent
f1b9c19
commit ff095eb
Showing
3 changed files
with
57 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,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 | ||
|