-
Notifications
You must be signed in to change notification settings - Fork 5
Description
With the current release and main branch the queries for INT and MAC are failing.
The CLS files work like a charm (with a few fixes of the queries).
There is no error-message. Comments actually kinda works:
You can see that the $PIECE starts to get a comment as soon as there is a semicolon. That is not the case in cls files. So something is definitly going on there.
I tried different versions of tree-sitter and different versions of the queries.
To get it to work at all for cls I had to do the following:
# from main branch
cat ../core/queries/highlights.scm > ./highlights.scm
cat ../expr/queries/highlights.scm >> ./highlights.scm
cat ../udl/queries/highlights.scm >> ./highlights.scmrepeated that for all kind of queries and used that to TSInstall objectscript
Then it worked.
Otherwise I was getting a lot of errors in NVIM from the queries
local parsers = require('nvim-treesitter.parsers').get_parser_configs()
parsers.objectscript = {
install_info = {
url = "https://github.com/intersystems/tree-sitter-objectscript",
branch = "release",
files = { "src/parser.c", "src/scanner.c"},
location = "udl"
},
}
vim.filetype.add({
extension = {
cls = "objectscript",
int = "objectscript",
mac = "objecscrtipt"
}
})
vim.treesitter.language.register("objectscript", "objectscript")
vim.api.nvim_create_autocmd('FileType', {
pattern = { 'objectscript' },
callback = function() vim.treesitter.start() end,
})
====Neovim
NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1741730670
====tree-sitter
branch: master
commit: 42fc28b
version: v0.10.0
===checkhealth nvim-treesitter
Parser/Features H L F I J
- css ✓ . ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- markdown ✓ . ✓ ✓ ✓
- objectscript ✓ . . ✓ ✓
- python ✓ ✓ ✓ ✓ ✓
- sql ✓ . ✓ ✓ ✓
- xml ✓ ✓ ✓ ✓ ✓
Maybe I'm missing something of the installation part. But nothing else is working for me.