BTW:
https://github.com/lkishalmi/netbeans/tree/hcl-editor
On 12/10/19 11:42 AM, Laszlo Kishalmi wrote:
@GrammarRegistration(
mimeType = "text/x-hcl",
grammar = "Terraform.tmLanguage.xml"
)
I renamed the file to have the xml extension.
As of MIME:
@MIMEResolver.ExtensionRegistration(
displayName = "#LBL_HCL_LOADER",
mimeType = "text/x-hcl",
extension = {"tf", "tfvars", "hcl"},
position = 300
)
On 12/10/19 11:20 AM, Jan Lahoda wrote:
Hi Laszlo,
How exactly are you registering the grammar? I just tried, and it did
something for me:
@GrammarRegistration(grammar="Terraform.tmLanguage",
mimeType="text/x-test")
(Although there probably is a bug in the "simple LSP clients" branch,
because it automatically adds the "json" extension, which then breaks
parsing.)
Jan
On Tue, Dec 10, 2019 at 4:04 AM Laszlo Kishalmi
<[email protected]>
wrote:
Hi all,
I've tried to register HCL textmate as language, though it does not
seem
to work. No exception, no nothing.
This is the Grammar I'm trying:
https://raw.githubusercontent.com/alexlouden/Terraform.tmLanguage/master/Terraform.tmLanguage
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists