@exercism/highlightjs-jikiscript 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jikiscript.js +1 -1
- package/package.json +1 -1
- package/src/jikiscript.ts +2 -2
package/dist/jikiscript.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function m(e){let a={scope:"string",begin:'"',end:'"'},o=e.C_LINE_COMMENT_MODE,t={controlKeyword:"repeat times repeat_until_game_over repeat_forever for each in with to return",definitionKeyword:"function set change",
|
|
1
|
+
function m(e){let a={scope:"string",begin:'"',end:'"'},o=e.C_LINE_COMMENT_MODE,t={controlKeyword:"repeat times repeat_until_game_over repeat_forever for each in with to return",definitionKeyword:"function set change",logicalOperator:"and or is equals not",keyword:"log do end for each if else function with set change to",literal:["false","true"]},r=Object.values(t).join(" ").split(" "),i=e.C_NUMBER_MODE,n=["true","false"],c={relevance:0,match:e.regex.either(...n),className:"bool"},d="> < >= <= == != !",s={relevance:0,match:e.regex.either(..."> < >= <= == != !"),className:"operator"},g=[/\(/,/\)/],l={relevance:0,match:e.regex.either(...g),className:"paren"},E=[/\[/,/\]/],A={relevance:0,match:e.regex.either(...E),className:"squareBracket"},R=[/\*/,"%",/\+/,/\-/,/\//],p={relevance:0,match:e.regex.either(...R),className:"arithmeticOperator"},O={relevance:0,match:e.regex.concat("\\b(?!",r.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variableName"};return{name:"JikiScript",case_insensitive:!1,keywords:t,contains:[a,o,i,s,p,l,A,c,O]}}export{m as default};
|
package/package.json
CHANGED
package/src/jikiscript.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default function (hljs: HLJSApi): Language {
|
|
|
19
19
|
const KEYWORDS = {
|
|
20
20
|
controlKeyword: "repeat times repeat_until_game_over repeat_forever for each in with to return",
|
|
21
21
|
definitionKeyword: "function set change",
|
|
22
|
-
|
|
22
|
+
logicalOperator: "and or is equals not",
|
|
23
23
|
keyword: 'log do end for each if else function with set change to',
|
|
24
24
|
literal: ['false','true'],
|
|
25
25
|
}
|
|
@@ -34,7 +34,7 @@ export default function (hljs: HLJSApi): Language {
|
|
|
34
34
|
className: "bool"
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const OPERATORS = "> < >= <= == !="
|
|
37
|
+
const OPERATORS = "> < >= <= == != !"
|
|
38
38
|
const OPERATOR: Mode = {
|
|
39
39
|
relevance: 0,
|
|
40
40
|
match: hljs.regex.either(...OPERATORS),
|