Commits

Eric Knibbe committed e027787 Draft

simplified numerals regex

  • Participants
  • Parent commits f4cb07f

Comments (0)

Files changed (1)

File javascript/lang-lasso.js

           // tag literals
           [PR['PR_ATTRIB_VALUE'], /^::\s*[a-z_][\w.]*/i],
           // number as hex integer literal, a decimal real literal, or in scientific notation
-          [PR['PR_LITERAL'],      /^(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[-+]?\d+)?))/i, null, '0123456789'],
+          [PR['PR_LITERAL'],      /^(?:\d*\.\d+(?:e[-+]?\d+)?|0x[\da-f]+|\d+)/i, null, '0123456789'],
           // constants
           [PR['PR_LITERAL'],      /^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],
           // container or control keywords