Fix spacing
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
diff --git a/components/prism-applescript.js b/components/prism-applescript.js
index 03b2389..61b7959 100644
--- a/components/prism-applescript.js
+++ b/components/prism-applescript.js
@@ -1,38 +1,38 @@
/* TODO
- Add support for nested block comments...
+ Add support for nested block comments...
*/
Prism.languages.applescript = {
- 'comment': [
- /\(\*[\w\W]*?\*\)/,
- /--.+/,
- /#.+/
- ],
- 'string': /"(?:\\?.)*?"/,
- 'operator': [
- /[&=≠≤≥*+\-\/÷^]|[<>]=?/,
+ 'comment': [
+ /\(\*[\w\W]*?\*\)/,
+ /--.+/,
+ /#.+/
+ ],
+ 'string': /"(?:\\?.)*?"/,
+ 'operator': [
+ /[&=≠≤≥*+\-\/÷^]|[<>]=?/,
- /\b(?:start|begin|end)s? with\b/,
- /\b(?:(?:does not|doesn't) contain|contains?)\b/,
- /\b(?:is|isn't|is not) (?:in|contained by)\b/,
- /\b(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?\b/,
- /\b(?:(?:does not|doesn't) come|comes) (?:before|after)\b/,
- /\b(?:is|isn't|is not) equal(?: to)?\b/,
- /\b(?:(?:does not|doesn't) equal|equals|equal to|isn't|is not)\b/,
- /\b(?:a )?(?:ref(?: to)?|reference to)\b/,
- /\b(?:and|or|div|mod|as|not)\b/
- ],
- 'keyword': /\b(?:about|above|after|against|and|apart from|around|as|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contain|contains|continue|copy|div|does|eighth|else|end|equal|equals|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|out of|over|prop|property|put|ref|reference|repeat|return|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/g,
- 'class': [
- {
- pattern: /\b(?:alias|application|boolean|class|constant|date|file|integer|list|number|POSIX file|real|record|reference|RGB color|script|text)\b/,
- alias: 'builtin'
- },
- {
- pattern: /\b(?:centimetres|centimeters|feet|inches|kilometres|kilometers|metres|meters|miles|yards|square feet|square kilometres|square kilometers|square metres|square meters|square miles|square yards|cubic centimetres|cubic centimeters|cubic feet|cubic inches|cubic metres|cubic meters|cubic yards|gallons|litres|liters|quarts|grams|kilograms|ounces|pounds|degrees Celsius|degrees Fahrenheit|degrees Kelvin)\b/,
- alias: 'builtin'
- }
- ],
- 'number': /\b-?\d*\.?\d+([Ee]-?\d+)?\b/,
- 'punctuation': /[{}():,¬«»《》]/
+ /\b(?:start|begin|end)s? with\b/,
+ /\b(?:(?:does not|doesn't) contain|contains?)\b/,
+ /\b(?:is|isn't|is not) (?:in|contained by)\b/,
+ /\b(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?\b/,
+ /\b(?:(?:does not|doesn't) come|comes) (?:before|after)\b/,
+ /\b(?:is|isn't|is not) equal(?: to)?\b/,
+ /\b(?:(?:does not|doesn't) equal|equals|equal to|isn't|is not)\b/,
+ /\b(?:a )?(?:ref(?: to)?|reference to)\b/,
+ /\b(?:and|or|div|mod|as|not)\b/
+ ],
+ 'keyword': /\b(?:about|above|after|against|and|apart from|around|as|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contain|contains|continue|copy|div|does|eighth|else|end|equal|equals|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|out of|over|prop|property|put|ref|reference|repeat|return|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/g,
+ 'class': [
+ {
+ pattern: /\b(?:alias|application|boolean|class|constant|date|file|integer|list|number|POSIX file|real|record|reference|RGB color|script|text)\b/,
+ alias: 'builtin'
+ },
+ {
+ pattern: /\b(?:centimetres|centimeters|feet|inches|kilometres|kilometers|metres|meters|miles|yards|square feet|square kilometres|square kilometers|square metres|square meters|square miles|square yards|cubic centimetres|cubic centimeters|cubic feet|cubic inches|cubic metres|cubic meters|cubic yards|gallons|litres|liters|quarts|grams|kilograms|ounces|pounds|degrees Celsius|degrees Fahrenheit|degrees Kelvin)\b/,
+ alias: 'builtin'
+ }
+ ],
+ 'number': /\b-?\d*\.?\d+([Ee]-?\d+)?\b/,
+ 'punctuation': /[{}():,¬«»《》]/
};
\ No newline at end of file