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

Alexey Kazakov (JIRA) issues at jboss.org
Thu Jul 14 13:08:00 EDT 2016


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

Alexey Kazakov reassigned JBIDE-20180:
--------------------------------------

    Fix Version/s: 4.4.1.AM2
                       (was: 4.3.x)
                       (was: 4.4.x)
         Assignee: Alexey Kazakov
       Resolution: Done


Pushed to master. Thanks!

> > (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
>    Affects Versions: 4.2.0.Beta2
>            Reporter: Daniel Dekany
>            Assignee: Alexey Kazakov
>             Fix For: 4.4.1.AM2
>
>
> 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>}}
> Note: There's an ongoing overhaul of the tokenizers (see in comments), which fixes these, and some more, like the handling of multi-line statements, of {{'}}-quoted stings, of FTL raw strings, of 2.3.22 identifier escapings, gives more detailed syntax highlighting, etc.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list