-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reintroduce raw-strings (#117)
[Discussion with tree-sitter devs](tree-sitter/tree-sitter#3878 (comment)) This will break the current `nvim-treesitter` config. They have to update to also use `scanner.c`. People using that config might want to use "our" way to install ts-nu. After merge, it might be necessary to run `:TSUpdate nu` at least once. I don't know about treesitter's caching, so let's just hope that nobody's setup breaks. With that scanner, we can also create custom logic for unquoted strings.
- Loading branch information
Showing
17 changed files
with
298,205 additions
and
287,355 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- main | ||
jobs: | ||
main: | ||
name: install | ||
name: setup, lint, test | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
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
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 was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
vim.filetype.add({ extension = { nu = "nu" }, filename = { ["nurfile"] = "nu" } }) | ||
|
||
vim.api.nvim_create_autocmd("FileType", { | ||
pattern = "nu", | ||
callback = function(event) vim.bo[event.buf].commentstring = "# %s" end, | ||
pattern = "nu", | ||
callback = function(event) | ||
vim.bo[event.buf].commentstring = "# %s" | ||
end, | ||
}) | ||
|
||
require("nvim-treesitter.parsers").get_parser_configs().nu = { | ||
install_info = { | ||
url = "https://github.com/nushell/tree-sitter-nu", | ||
files = { "src/parser.c" }, | ||
branch = "main", | ||
}, | ||
filetype = "nu", | ||
install_info = { | ||
url = "https://github.com/nushell/tree-sitter-nu", | ||
files = { "src/parser.c", "src/scanner.c" }, | ||
branch = "main", | ||
}, | ||
filetype = "nu", | ||
} |
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
Oops, something went wrong.