Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jan 9, 2024
1 parent 106ef1b commit 0cd7597
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 18
Expand All @@ -41,6 +43,8 @@ jobs:
echo '::warning::Generated files are out of date!'
echo '::warning::run `npm run gen` and commit the changes'
fi
- name: Configure tree-sitter CLI

- run: npm test
- name: Check C files with args
shell: bash
Expand Down
23 changes: 21 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
[submodule "test-submodules/tree-sitter-bash"]
[submodule "submodules/tree-sitter-bash"]
path = submodules/tree-sitter-bash
url = https://github.com/tree-sitter/tree-sitter-bash.git
url = https://github.com/tgross35/tree-sitter-bash.git
branch = patch-1
shallow = true
[submodule "submodules/tree-sitter-PowerShell"]
path = submodules/tree-sitter-PowerShell
url = https://github.com/tgross35/tree-sitter-PowerShell.git
branch = add-ts-package-config
shallow = true
[submodule "submodules/tree-sitter-perl"]
path = submodules/tree-sitter-perl
url = https://github.com/tgross35/tree-sitter-perl.git
branch = patch-1
shallow = true
[submodule "submodules/tree-sitter-python"]
path = submodules/tree-sitter-python
url = https://github.com/tree-sitter/tree-sitter-python.git
shallow = true
[submodule "submodules/tree-sitter-regex"]
path = submodules/tree-sitter-regex
url = https://github.com/tree-sitter/tree-sitter-regex.git
shallow = true
32 changes: 14 additions & 18 deletions queries/just/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,23 @@
(recipe_line
(text) @injection.content)))))

; TODO reenable
; ; NVIM-DISABLE-START
; (recipe_body
; (shebang) @injection.shebang
; (recipe_line
; (text) @injection.content))
; ; NVIM-DISABLE-END

; (recipe_line
; (text) @injection.content
; (#set! injection.language "bash"))

; ; NVIM-ENABLE (recipe_body
; ; NVIM-ENABLE (shebang) @injection.language
; ; NVIM-ENABLE (recipe_line
; ; NVIM-ENABLE (text) @injection.content)
; ; NVIM-ENABLE (#gsub! injection.language "/#!%*[\/ ](%S+)/" "%1"))

; (external_command
; (command_body) @injection.content
; (#set! injection.language "bash"))

(recipe_line
(text) @injection.content
(#set! injection.language "bash"))

(recipe_body ; NVIM-ENABLE
(shebang) @injection.language ; NVIM-ENABLE
(recipe_line ; NVIM-ENABLE
(text) @injection.content) ; NVIM-ENABLE
(#gsub! injection.language "/#!%*[\/ ](%S+)/" "%1")) ; NVIM-ENABLE

(external_command
(command_body) @injection.content
(#set! injection.language "bash"))

((regex_literal
[
Expand Down
1 change: 1 addition & 0 deletions submodules/tree-sitter-PowerShell
Submodule tree-sitter-PowerShell added at 956453
1 change: 1 addition & 0 deletions submodules/tree-sitter-perl
Submodule tree-sitter-perl added at f2effa
1 change: 1 addition & 0 deletions submodules/tree-sitter-python
Submodule tree-sitter-python added at 4bfdd9
1 change: 1 addition & 0 deletions submodules/tree-sitter-regex
Submodule tree-sitter-regex added at 235448

0 comments on commit 0cd7597

Please sign in to comment.