Aptana Studio
  1. Aptana Studio
  2. APSTUD-3246

CoffeeScript: Incorrectly colorizing text as a regular expression

    Details

      Description

      The following code will not highlight correctly:

      var wallInitX = Math.round(screenWidth / 2) - Math.round(wallWidth / 2);
      

      The highlighter will think that from the first "/" starts a regullar expression, so the rest of the text until the second "/" is highlighted as string. Aptana Studio 3 Beta, build: 3.0.0.201011100254

        Issue Links

          Activity

          Hide
          Kevin Lindsey added a comment -

          From APSTUD-1394: "I'm using the latest nightly and am getting this in the CoffeeScript editor. Javascript editor highlighting fine though. Guessing the fixes just need copying across."

          Show
          Kevin Lindsey added a comment - From APSTUD-1394 : "I'm using the latest nightly and am getting this in the CoffeeScript editor. Javascript editor highlighting fine though. Guessing the fixes just need copying across."
          Hide
          Kevin Lindsey added a comment -

          Looks like a similar issue that we had in JS which required fixups during scanning

          Show
          Kevin Lindsey added a comment - Looks like a similar issue that we had in JS which required fixups during scanning
          Hide
          Chris Williams added a comment -

          Pushed fix to development.

          Show
          Chris Williams added a comment - Pushed fix to development.
          Hide
          Joel Witt (Inactive) added a comment -

          Aptana Studio 3, build: 3.0.5.201109091556
          Ubuntu 10.10

          Verified CoffeeScript editor does not colorize substring of "var wallInitX = Math.round(screenWidth / 2) - Math.round(wallWidth / 2);" as a string.

          Show
          Joel Witt (Inactive) added a comment - Aptana Studio 3, build: 3.0.5.201109091556 Ubuntu 10.10 Verified CoffeeScript editor does not colorize substring of "var wallInitX = Math.round(screenWidth / 2) - Math.round(wallWidth / 2);" as a string.

            People

            • Assignee:
              Chris Williams
              Reporter:
              Kevin Lindsey
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: