Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump tree-sitter-sql #9634

Merged
merged 7 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,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)]?)))
Copy link
Contributor Author

@ds-cbo ds-cbo Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these parentheses have any function, but I copied them from upstream to have as little difference as possible, to make diff updates easier

(same for the extra leading space a few lines down)


(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
Loading