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

Double macro in cmd call (with < ) seems not supported #19

Open
vnadot opened this issue Sep 17, 2024 · 1 comment
Open

Double macro in cmd call (with < ) seems not supported #19

vnadot opened this issue Sep 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vnadot
Copy link
Collaborator

vnadot commented Sep 17, 2024

It seems that double macro in cmd file are not supported:

This works:

< ${TOP}/myApp/.cmd
$ tree-sitter parse --stat --quiet --scope source.epics.cmd temp.cmd 

Total parses: 1; successful parses: 1; failed parses: 0; success percentage: 100.00%; average speed: 7006 bytes/ms

But this does not:

< ${TOP}/myApp/${cmdName}.cmd
$ tree-sitter parse --stat --quiet --scope source.epics.cmd temp.cmd 
temp.cmd	   2.09 ms	  7340 bytes/ms	(ERROR [284, 25] - [284, 29])

Total parses: 1; successful parses: 0; failed parses: 1; success percentage: 0.00%; average speed: 7343 bytes/ms
@vnadot vnadot added the bug Something isn't working label Sep 17, 2024
@minijackson
Copy link
Collaborator

Can you try this:

< "${TOP}/myApp/${cmdName}.cmd"

I think it may be that the macro is inside the argument, and tree-sitter gets confused and split the argument in two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants