1. Eric Knibbe
  2. EricFromCanada.bitbucket.org

Commits

Eric Knibbe  committed c8093fa

allow space in data member accessor

  • Participants
  • Parent commits ae90aa9
  • Branches default

Comments (0)

Files changed (1)

File javascript/lang-lasso.js

View file
  • Ignore whitespace
           // single-line or block comments
           [PR['PR_COMMENT'],      /^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//],
           // local, thread, or member variables, or keyword parameters, or hashbang
-          [PR['PR_ATTRIB_NAME'],  /^#\d+|[#$-][a-z_][\w.]*|\.'[a-z_][\w.]*'|#!.+lasso9/i, null, '#$'],
+          [PR['PR_ATTRIB_NAME'],  /^#\d+|[#$-][a-z_][\w.]*|\.\s*'[a-z_][\w.]*'|#!.+lasso9/i, null, '#$'],
           // tag literals
           [PR['PR_ATTRIB_VALUE'], /^::\s*[a-z_][\w.]*/i],
           // number as hex integer literal, a decimal real literal, or in scientific notation