0
0

qsps.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "scopeName": "source.qsp",
  3. "fileTypes": [
  4. "qsrc",
  5. "qsp-txt",
  6. "txt-qsp"
  7. ],
  8. "name": "QSP",
  9. "patterns": [
  10. {
  11. "name": "constant.character.LISP",
  12. "match": "^(#)\\s?.+$"
  13. },
  14. {
  15. "name": "constant.character.LISP",
  16. "match": "\\b\\d+\\b"
  17. },
  18. {
  19. "name": "variable.parameter.url.css",
  20. "match": "^-{1,2}\\S.*?\\S-{1,2}$"
  21. },
  22. {
  23. "name": "variable.parameter.url.css",
  24. "match": "\\b(?i:([$]dyneval|[$]user_text|[$]usrtxt|[$]maintxt|[$]stattxt|[$]func|[$]curloc|[$]selobj|[$]selact|[$]curact|[$]getobj|[$]mid|[$](u|l)case|[$]trim|[$]replace|[$]str|[$]loc|[$]strfind))\\b"
  25. },
  26. {
  27. "name": "variable.parameter.url.css",
  28. "match": "\\b(?i:(dyneval|input|user_text|usrtxt|iif|rgb|isplay|msecscount|desc|maintxt|stattxt|qspver|func|curloc|selobj|no|and|mod|selact|curact|arrsize|arrpos|countobj|getobj|led|mid|(u|l)case|trim|replace|instr|isnum|val|str|loc|or|max|min|r(a)?nd|(arr|str)comp|str(find|pos)))\\b"
  29. },
  30. {
  31. "name": "keyword.control.at-rule.charset.css",
  32. "match": "\\b[$](?i:(counter|ongload|ongsave|onnewloc|onactsel|onobjsel|onobjadd|onobjdel|usercom|fname|backimage|args|result))\\b"
  33. },
  34. {
  35. "name": "support.function.LISP",
  36. "match": "\\b(?i:(act|exit|killvar|cla|\\*?clr|\\*?clear|gs|xgt|gt|goto|gosub|\\[|\\]|xgoto|if|else|elseif|end|jump|\\*|&|\\*?(n|p)l))\\b"
  37. },
  38. {
  39. "name": "entity.other.attribute-name.class.css",
  40. "match": "^(:)[^'\"]*$\n?"
  41. },
  42. {
  43. "name": "keyword.control.at-rule.charset.css",
  44. "match": "\\b(?i:(counter|ongload|ongsave|onnewloc|onactsel|onobjsel|onobjadd|onobjdel|usercom|fname|backimage|args|result))\\b"
  45. },
  46. {
  47. "name": "keyword.control.at-rule.charset.css",
  48. "match": "\\b(?i:(nosave|disablescroll|disablesubex|debug|usehtml|(b|f|l)color|fsize))\\b"
  49. },
  50. {
  51. "name": "string.quoted.single.qsp",
  52. "begin": "'",
  53. "end": "'",
  54. "patterns": [
  55. {
  56. "name": "string.interpolated.qsp",
  57. "begin": "<<",
  58. "end": ">>",
  59. "patterns": [
  60. {
  61. "include": "$self"
  62. }
  63. ]
  64. }
  65. ]
  66. },
  67. {
  68. "name": "string.quoted.double.qsp",
  69. "begin": "\"",
  70. "end": "\"",
  71. "patterns": [
  72. {
  73. "name": "string.interpolated.qsp",
  74. "begin": "<<",
  75. "end": ">>",
  76. "patterns": [
  77. {
  78. "include": "$self"
  79. }
  80. ]
  81. }
  82. ]
  83. },
  84. {
  85. "folds": [
  86. {
  87. "type": "comment"
  88. },
  89. {
  90. "type": "if_statement",
  91. "start": {
  92. "type": [
  93. "elif_clause",
  94. "else_clause"
  95. ]
  96. },
  97. "end": "end"
  98. }
  99. ]
  100. },
  101. {
  102. "name": "support.function.LISP",
  103. "match": "(?i:(,|\\[|\\]|\\(|\\)|\\{|\\}|&|\\+|=|-|(<|>)=?|=?(<|>)))"
  104. },
  105. {
  106. "name": "comment.block.exclamation.qsp",
  107. "begin": "!{",
  108. "end": "}!$"
  109. },
  110. {
  111. "name": "comment.line.exclamation.qsp",
  112. "begin": "^!.*",
  113. "end": "$"
  114. },
  115. {
  116. "name": "comment.line.exclamation.qsp",
  117. "begin": "^\\s+!.*",
  118. "end": "$"
  119. }
  120. ]
  121. }