-
I'm trying to update the Swift grammar, and got it to build etc, but when I restart Helix, it uses the old grammar. First, I ran Then, I created a [[language]]
name = "swift"
scope = "source.swift"
file-types = ["swift"]
injection-regex = "swift"
language-id = "swift"
[[grammar]]
name = "swift"
source.path = "/Users/carl/.config/helix/runtime/grammars/sources/swift" Then, I edited I deleted I'd be grateful for any advice. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
We don't use the source query files. The ones we use are under runtime/queries. You also don't rebuild the grammars when you update the queries because the queries are dynamically loaded. The only time you rebuild grammars are when their actual source code is changed (grammar.js and parser.c) |
Beta Was this translation helpful? Give feedback.
-
Ahh. Thank you. Much appreciated. So |
Beta Was this translation helpful? Give feedback.
We don't use the source query files. The ones we use are under runtime/queries. You also don't rebuild the grammars when you update the queries because the queries are dynamically loaded. The only time you rebuild grammars are when their actual source code is changed (grammar.js and parser.c)