Skip to content
Permalink
Browse files
Monkey: Use standard tokens correctly (#3228)
  • Loading branch information
RunDevelopment committed Dec 7, 2021
1 parent 5bf6e35 commit c1025aa638c40f6f0835162c46b49aae205242ae
Showing with 14 additions and 16 deletions.
  1. +13 −15 components/prism-monkey.js
  2. +1 −1 components/prism-monkey.min.js
@@ -1,25 +1,23 @@
Prism.languages.monkey = {
'string': /"[^"\r\n]*"/,
'comment': [
{
pattern: /^#Rem\s[\s\S]*?^#End/im,
greedy: true
},
{
pattern: /'.+/,
greedy: true
}
],
'comment': {
pattern: /^#Rem\s[\s\S]*?^#End|'.+/im,
greedy: true
},
'string': {
pattern: /"[^"\r\n]*"/,
greedy: true,
},
'preprocessor': {
pattern: /(^[ \t]*)#.+/m,
lookbehind: true,
alias: 'comment'
greedy: true,
alias: 'property'
},

'function': /\b\w+(?=\()/,
'type-char': {
pattern: /(\w)[?%#$]/,
lookbehind: true,
alias: 'variable'
pattern: /\b[?%#$]/,
alias: 'class-name'
},
'number': {
pattern: /((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,

Some generated files are not rendered by default. Learn more.

0 comments on commit c1025aa

Please sign in to comment.