-
hello there 👋 it's my first issue here and i have to admit i've been enjoying this new (to me) editor for a few days now and it's really cool 😋 my situationcurrently, i'm an intern and i work on the however, neither what worksi've been able to sudo helix --grammar fetch
sudo helix --grammar build which both now give me Fetching 107 grammars
107 up to date git grammars and Building 107 grammars
107 grammars already built respectively 👌 my problemi tried, thanks to the Adding Languages and the Language sections of the documentation, to add a new language to my [[language]]
name = "oberon"
scope = "source.oberon"
injection-regex = "oberon"
file-types = ["obn", "Mod", "mod"]
roots = []
comment-token = "(*"
indent = { tab-width = 4, unit = " " }
[[grammar]]
name = "oberon"
source = { git = "https://github.com/Isopod/tree-sitter-pascal", rev = "2fd40f477d3e2794af152618ccfac8d92eb72a66" } you can see the special extensions, the special comment token and i'm using the same grammar as but now, when i run sudo helix --grammar fetch
sudo helix --grammar build i get the same 107 as before, and not 108 with and when i try to > hx --grammar build
Building 108 grammars
107 grammars already built
1 grammars failed to build
Failure 0/1: Failed to read directory "/var/lib/helix/runtime/grammars/sources/oberon". Did you use 'hx --grammar fetch'? but then, does not have the permissions to do anything... > hx --grammar fetch
...
Failure 100/108: Could not create grammar directory "/var/lib/helix/runtime/grammars/sources/oberon"
... what is happening? 😱 additional informationi'm using:
temporary workaroundi can simply extend the types of the [[language]]
name = "pascal"
file-types = ["pas", "pp", "inc", "lpr", "lfm", "obn", "mod", "Mod"] it works fine but the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Someone else may be able to address that issue, but you can alternatively specify: [[language]]
# ...
grammar = "pascal" to reuse the pascal grammar. |
Beta Was this translation helpful? Give feedback.
Someone else may be able to address that issue, but you can alternatively specify:
to reuse the pascal grammar.