Skip to content

Commit

Permalink
Merge pull request #1118 from pulsar-edit/tree-sitter-november
Browse files Browse the repository at this point in the history
Tree-sitter rolling fixes, 1.123 edition
  • Loading branch information
DeeDeeG authored Nov 20, 2024
2 parents c6b4fdb + fea6d4f commit b010221
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/language-c/grammars/tree-sitter-cpp/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@
; ((identifier) @variable.other.readwrite.member.cpp
; (#match? @variable.other.readwrite.member.cpp "^(f|m)[A-Z]\\w*$"))

; The "foo" in `int &foo` with in a parameter list.
(parameter_declaration
declarator: (reference_declarator
(identifier) @variable.parameter.cpp))
; The "foo" in `const char *foo` within a parameter list.
; (Should work no matter how many pointers deep we are.)
(reference_declarator (identifier) @variable.parameter.cpp
(#is? test.descendantOfType "parameter_declaration"))


; KEYWORDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ parser: 'tree-sitter-hyperlink'

injectionRegex: 'hyperlink'
treeSitter:
parserSource: 'github:savetheclocktower/tree-sitter-hyperlink#04c3a667ba432236578ac99bbacd0412f88d6fac'
parserSource: 'github:savetheclocktower/tree-sitter-hyperlink#0704b3e5a72892495dd13b85a5064582414cb39a'
grammar: 'ts/tree-sitter-hyperlink.wasm'
highlightsQuery: 'ts/highlights.scm'
Binary file modified packages/language-hyperlink/grammars/ts/tree-sitter-hyperlink.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@
(binary_expression ["&&" "||"] @keyword.operator.logical.shell)

(pipeline "|" @keyword.operator.pipe.shell)
(expansion operator: "#" @keyword.operator.expansion.shell)

; Any expansion operator, including all `#`s and `%`s in the following examples:
;
; foo="${bar#*.}"
; foo="${bar##*.}"
; foo="${bar%*.}"
; foo="${bar%%*.}"
;
(expansion operator: _ @keyword.operator.expansion.shell)


; "*" @keyword.operator.glob.shell
Expand Down

0 comments on commit b010221

Please sign in to comment.