Skip to content

Commit

Permalink
save files before migration to a separate project
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Feb 27, 2020
1 parent d3c9cdd commit b69547a
Show file tree
Hide file tree
Showing 9 changed files with 1,525 additions and 41 deletions.
6 changes: 3 additions & 3 deletions assets/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ define([
// string
{ regex: /"(?:[^\\]|\\.)*?(?:"|$)/, token: "string" },
// bytes
{ regex: /(?<=\s|^)(?:0x[0-9a-f]+)(?=\s|;|\}|$)/i, token: "string" },
{ regex: /(?<=\s|^)(?:0x[0-9a-f]+)(?=\s|;|\}|\)|$)/i, token: "string" },
// int
{ regex: /(?<=\s|^)(?:[+-]?[0-9]+\.?[0-9]*)(?=\s|;|\}|$)/, token: "string" },
{ regex: /(?<=\s|^)(?:[+-]?[0-9]+\.?[0-9]*)(?=\s|;|\}|\)|$)/, token: "string" },
// comment
{ regex: /#.*/, token: "comment" },
{ regex: /\/\*/, token: "comment", next: "comment" },
Expand All @@ -35,7 +35,7 @@ define([
{ regex: /(?<=\s|^)(?:@[A-z_0-9%]+)(?=\s|$)/, token: "atom" },
{ regex: /(?<=\s|^)(?::[A-z_0-9]+)(?=\s|$)/, token: "atom" },
// helpers
{ regex: /(?<=\s|;|\{|^)(?:PUT|TOP)/, token: "def" },
{ regex: /(?<=\s|;|\{|^)(?:TOP|EXPAND)(?=\s|;|\}|$)/, token: "def" },
// fallback
{ regex: /[^\s]+/, token: "variable"}
],
Expand Down
Loading

0 comments on commit b69547a

Please sign in to comment.