prism-hyperscript
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "prism-hyperscript", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A Prism language definition for _hyperscript (hyperscript.org)", | ||
@@ -5,0 +5,0 @@ "main": "prism-hyperscript.js", |
@@ -17,2 +17,9 @@ | ||
}, | ||
'attribute': { | ||
pattern: /@[a-zA-Z\-\_]+/, | ||
}, | ||
'attribute-ref': { | ||
pattern: /\[@[a-zA-Z\-\_]="[^\n"]*"|'[^\n']*'\]/, //" | ||
alias: 'selector', | ||
}, | ||
'class-ref': { | ||
@@ -33,7 +40,7 @@ pattern: /\s\.[\-\w\d_\$]+/, | ||
'keyword': { | ||
pattern: /\b(?:on|def|js|worker|eventsource|socket|init|behavior|install|catch|add|async|call|get|hide|measure|if|js|log|put|remove|repeat\sforever|repeat\sfor|repeat\sin|repeat\swhile|repeat\suntil\sevent|repeat until|repeat|return|send|settle|set|show|take|throw|toggle\sbetween|toggle|transition|trigger|wait for|wait|fetch|tell|go|then|end|while|until|for|in|from|to|with|over|into|before|after|at end of|at start of|is an|is a|am|as|and|or|no|closest|the|of|first|last|on|seconds|milliseconds|(\s)s|(\s)ms)\b/g, | ||
pattern: /\b(?:on|def|js|worker|eventsource|socket|init|behavior|install|catch|add|async|call|get|hide|measure|if|else|js|log|put|remove|repeat\sforever|repeat\sfor|repeat\sin|repeat\swhile|repeat\suntil\sevent|repeat until|repeat|return|send|settle|set|show|take|throw|toggle\sbetween|toggle|transition|trigger|wait for|wait|fetch|tell|go|then|end|while|until|for|in|from|to|with|over|into|before|after|at end of|at start of|is an|is a|is not|is|am|as|and|or|no|closest|the|of|first|last|on|seconds|milliseconds|(\s)s|(\s)ms)\b/g, | ||
lookbehind: true, | ||
inside: { | ||
'hs-start': { | ||
pattern: /\b(?:on|def|js|worker|eventsource|socket|init|behavior|install|catch|add|async|call|get|hide|measure|if|js|log|put|remove|repeat\sforever|repeat\sfor|repeat\sin|repeat\swhile|repeat\suntil\sevent|repeat\suntil|repeat|return|send|set|settle|show|take|throw|toggle\sbetween|toggle|transition|trigger|wait for|wait|fetch|tell|go|end|for)\b/g, | ||
pattern: /\b(?:on|def|js|worker|eventsource|socket|init|behavior|install|catch|add|async|call|get|hide|measure|if|else|js|log|put|remove|repeat\sforever|repeat\sfor|repeat\sin|repeat\swhile|repeat\suntil\sevent|repeat\suntil|repeat|return|send|set|settle|show|take|throw|toggle\sbetween|toggle|transition|trigger|wait for|wait|fetch|tell|go|end|for)\b/g, | ||
alias: 'bold', | ||
@@ -40,0 +47,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3434
91