Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20180

> (and <) in expressions confuses the editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.Beta2
    • Fix Version/s: 4.4.1.AM2
    • Component/s: freemarker
    • Labels:
      None

      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>

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                akazakov Alexey Kazakov
                Reporter:
                ddekany Daniel Dekany
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: