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:
1.0 KB
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | module.exports = ichigojam
|
---|
4 | ichigojam.displayName = 'ichigojam'
|
---|
5 | ichigojam.aliases = []
|
---|
6 | function ichigojam(Prism) {
|
---|
7 | // according to the offical reference (EN)
|
---|
8 | // https://ichigojam.net/IchigoJam-en.html
|
---|
9 | Prism.languages.ichigojam = {
|
---|
10 | comment: /(?:\B'|REM)(?:[^\n\r]*)/i,
|
---|
11 | string: {
|
---|
12 | pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,
|
---|
13 | greedy: true
|
---|
14 | },
|
---|
15 | number: /\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
---|
16 | keyword:
|
---|
17 | /\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,
|
---|
18 | function:
|
---|
19 | /\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,
|
---|
20 | label: /(?:\B@\S+)/,
|
---|
21 | operator: /<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,
|
---|
22 | punctuation: /[\[,;:()\]]/
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.