You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Laszlo Kishalmi <la...@gmail.com> on 2019/12/10 03:04:25 UTC

Does TextMate support eats xml grammar?

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: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Does TextMate support eats xml grammar?

Posted by Laszlo Kishalmi <la...@gmail.com>.
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 
>> <la...@gmail.com>
>> 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: dev-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Does TextMate support eats xml grammar?

Posted by Laszlo Kishalmi <la...@gmail.com>.
@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 <la...@gmail.com>
> 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: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Does TextMate support eats xml grammar?

Posted by Jan Lahoda <la...@gmail.com>.
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 <la...@gmail.com>
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: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>