[jbosstools-issues] [JBoss JIRA] (JBIDE-20180) > (and <) in expressions confuses the editor

Daniel Dekany (JIRA) issues at jboss.org
Thu Jul 2 17:50:02 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-20180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Dekany updated JBIDE-20180:
----------------------------------
    Description: 
In the text editor, {{>}} closes the tag even if it's inside a string literal, or inside parentheses. Try:

* {{<#assign x = 'x>y'>}}: Notice how syntax coloring switches to black
* {{<#if (x > 0)></#if>}}: This one also breaks the outline view; no macros after this will appear in it.

More puzzling cases with {{<}}; these break outline view too:

* {{<#if x == '<'></#if><#macro m></#macro>}}
* {{<#if x < 1></#if><#macro m></#macro>}}

  was:
In the text editor, {{>}} closes the tag even if it's inside a string literal, or inside parentheses. Try:

* {{<#assign x = 'x>y'>}}: Notice how syntax coloring switches to black
* {{<#if (x > 0)></#if>}}: This one also breaks the outline view; no macros after this will appear in it.

A more puzzling case, with {{<}}:

{{<#if x == '<'></#if><#macro m></#macro>}}

Here, the outline view is aborted again. (If you replace the {{<}} with a letter or such, it works.)



> > (and <) in expressions confuses the editor
> --------------------------------------------
>
>                 Key: JBIDE-20180
>                 URL: https://issues.jboss.org/browse/JBIDE-20180
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: freemarker
>            Reporter: Daniel Dekany
>
> In the text editor, {{>}} closes the tag even if it's inside a string literal, or inside parentheses. Try:
> * {{<#assign x = 'x>y'>}}: Notice how syntax coloring switches to black
> * {{<#if (x > 0)></#if>}}: This one also breaks the outline view; no macros after this will appear in it.
> More puzzling cases with {{<}}; these break outline view too:
> * {{<#if x == '<'></#if><#macro m></#macro>}}
> * {{<#if x < 1></#if><#macro m></#macro>}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list