plirof2

ZX basicsinclair.js--Edit-Area -v002

Feb 17th, 2022 (edited)
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. editAreaLoader.load_syntax["basicsinclair"] = {
  2. // v220217b - REM combinations
  3.     'DISPLAY_NAME' : 'SinclairBasic'
  4.     ,'COMMENT_SINGLE' : {1 : 'REM'  , 2 : "rem" , 3 : "Rem"  , 4 : "REm", 5 : "rEM", 6 : "rEm", 7 : "reM" }
  5.     ,'COMMENT_MULTI' : { }
  6.     ,'QUOTEMARKS' : {1: '"'}
  7.     ,'KEYWORD_CASE_SENSITIVE' : false
  8.     ,'KEYWORDS' : {
  9.         'statements' : [
  10.             'if','then','for',
  11.             'next','step','to'
  12.             //'else','elseif','select',
  13.         ]
  14.         ,'keywords' : [
  15.             'PAPER','BORDER','INK','FLASH','INVERSE','OVER','PLOT',
  16.             'PI','STEP','DATA','restore','gosub', 'goto','go',
  17.             'circle',  'cls','draw','def', 'fn','screen$',
  18.             'let', 'line', 'list','return', 'run',
  19.             'poke', 'randomize', 'read','stop','dim','beep',
  20.  
  21.             'com', 'common', 'date', 'declare', 'clear', 'close',
  22.             'defint', 'deflng', 'defsng', 'defstr', 'color',
  23.             'double', 'environ', 'erase', 'error', 'field',
  24.             'files',  'get',  'integer', 'key','locate', 'lock', 'long',
  25.             'lprint', 'lset',  'name', 'off', 'on', 'open',
  26.             'option', 'out', 'output', 'paint', 'palette', 'pcopy',
  27.             'preset', 'print', 'pset', 'put', 'random',
  28.              'reset', 'resume', 'screen', 'seg',
  29.             'shell', 'single', 'sleep', 'sound', 'static',
  30.             'strig', 'string', 'swap', 'system', 'time', 'timer',
  31.             'troff', 'tron', 'type', 'unlock', 'using', 'view',
  32.             'wait', 'width', 'window', 'write',
  33.             'exit', 'redim', 'shared', 'const',
  34.             'is', 'absolute', 'access', 'any', 'append', 'as',
  35.             'base',  'binary', 'bload',
  36.             //added by other site
  37.             'ABS','ACS','ASN','AT','ATN','ATTR','BEEP',
  38.             'BIN','BORDER','BRIGHT','CAT','CHR$','CIRCLE','CLEAR',
  39.             'CLOSE','CLS','CODE','CONTINUE','COPY','COS','DATA',
  40.             'DEFFN','DIM','DRAW','ERASE','EXP','FLASH','FN','FOR',
  41.             'FORMAT','GOSUB','GOTO','IF','IN','INK','INKEY$',
  42.             'INPUT','INT','INVERSE','LEN','LET','LINE','LIST',
  43.             'LLIST','LN','LOAD','LPRINT','MERGE','MOVE','NEW',
  44.             'NEXT','NOT','OPEN','OR1','OUT','OVER','PAPER','PAUSE',
  45.             'PEEK','PI','PLOT','POINT','POKE','PRINT','RANDOMIZE',
  46.             'READ','RESTORE','RETURN','RND','RUN','SAVE',
  47.             'SCREEN$','SGN','SIN','SQR','STEP','STR$','TAB','TAN',
  48.             'THEN','TO','USR','VAL$','VAL','VERIFY',
  49.             'AND'
  50.  
  51.             ]
  52.         ,'functions' : [
  53.             'abs',
  54.  
  55.             'asc', 'atn', 'cdbl', 'chr', 'cint', 'clng',
  56.             'cos', 'csng', 'csrlin', 'cvd', 'cvdmbf', 'cvi', 'cvl',
  57.             'cvs', 'cvsmbf', 'eof', 'erdev', 'erl', 'err', 'exp',
  58.             'fileattr', 'fix', 'fre', 'freefile', 'hex', 'inkey',
  59.             'inp', 'input', 'instr', 'int', 'ioctl', 'lbound',
  60.             'lcase', 'left', 'len', 'loc', 'lof', 'log', 'lpos',
  61.             'ltrim', 'mid', 'mkd', 'mkdmbf', 'mki', 'mkl', 'mks',
  62.             'mksmbf', 'oct', 'peek', 'pen', 'play', 'pmap', 'point',
  63.             'pos', 'right', 'rnd', 'rtrim', 'seek', 'sgn', 'sin',
  64.             'space', 'spc', 'sqr', 'stick', 'str', 'tab', 'tan',
  65.             'ubound', 'ucase', 'val', 'varptr', 'varseg'
  66.         ]
  67.         ,'operators' : [
  68.             'and', 'eqv', 'imp', 'mod', 'not', 'or', 'xor'
  69.         ]
  70.     }
  71.     ,'OPERATORS' :[
  72.         '+', '-', '/', '*', '=','<=','>=','<>', '<', '>', '!', '&'
  73.     ]
  74.     ,'DELIMITERS' :[
  75.         '(', ')', '[', ']', '{', '}'
  76.     ]
  77.     ,'STYLES' : {
  78.         'COMMENTS': 'color: #99CC00;'
  79.         ,'QUOTESMARKS': 'color: green;' //#333399;
  80.         ,'KEYWORDS' : {
  81.             'keywords' : 'color: #3366FF;'
  82.             ,'functions' : 'color: #0000FF;'
  83.             ,'statements' : 'color: #3366FF;'
  84.             ,'operators' : 'color: #FF0000;'
  85.             }
  86.         ,'OPERATORS' : 'color: #FF0000;'
  87.         ,'DELIMITERS' : 'color: #0000FF;'
  88.  
  89.     }
  90. };
Add Comment
Please, Sign In to add comment