Skip to content

Commit

Permalink
Bump tree-sitter-sql (helix-editor#9634)
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-cbo authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 243bcad commit 5e4f6d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ injection-regex = "sql"

[[grammar]]
name = "sql"
source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "25be0b8f17e9189ad9e1b875869d025c5aec1286" }
source = { git = "https://github.com/DerekStride/tree-sitter-sql", rev = "da2d1eff425b146d3c8cab7be8dfa98b11d896dc" }

[[language]]
name = "gdscript"
Expand Down
8 changes: 4 additions & 4 deletions runtime/queries/sql/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
(term
alias: (identifier) @variable.parameter)

(term
((term
value: (cast
name: (keyword_cast) @function.builtin
parameter: [(literal)]?))
parameter: [(literal)]?)))

(literal) @string
(comment) @comment.line
(marginalia) @comment.block

((literal) @constant.numeric.integer
(#match? @constant.numeric.integer "^-?\\d+$"))
(#match? @constant.numeric.integer "^[-+]?\\d+$"))

((literal) @constant.numeric.float
(#match? @constant.numeric.float "^-?\\d*\\.\\d*$"))
(#match? @constant.numeric.float "^[-+]?\\d*\\.\\d*$"))

(parameter) @variable.parameter

Expand Down

0 comments on commit 5e4f6d1

Please sign in to comment.