main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
899 bytes
|
Line | |
---|
1 | // according to the offical reference (EN)
|
---|
2 | // https://ichigojam.net/IchigoJam-en.html
|
---|
3 | Prism.languages.ichigojam = {
|
---|
4 | 'comment': /(?:\B'|REM)(?:[^\n\r]*)/i,
|
---|
5 | 'string': {
|
---|
6 | pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,
|
---|
7 | greedy: true
|
---|
8 | },
|
---|
9 | 'number': /\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
---|
10 | 'keyword': /\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,
|
---|
11 | 'function': /\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,
|
---|
12 | 'label': /(?:\B@\S+)/,
|
---|
13 | 'operator': /<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,
|
---|
14 | 'punctuation': /[\[,;:()\]]/
|
---|
15 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.