Commits

Eric Knibbe committed 2aed617 Draft

added hashbang

  • Participants
  • Parent commits 5970662

Comments (0)

Files changed (1)

File javascript/lang-lasso.js

           [PR['PR_TAG'],          /^\[|\]|<\?(?:lasso(?:script)?|=)|\?>/i],
           // single-line or block comments
           [PR['PR_COMMENT'],      /^(?:\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/],
-          // local, thread, or member variables, or keyword parameters
-          [PR['PR_ATTRIB_NAME'],  /^#\d+|[#$-][a-z_][\w.]*|\.'[a-z_][\w.]*'/i, null, '#$'],
+          // local, thread, or member variables, or keyword parameters, or hashbang
+          [PR['PR_ATTRIB_NAME'],  /^#\d+|[#$-][a-z_][\w.]*|\.'[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