Browse Source

Update whitespace.

Herbert Vojčík 7 years ago
parent
commit
a24848a489
2 changed files with 3 additions and 3 deletions
  1. 2 2
      support/parser.js
  2. 1 1
      support/parser.pegjs

+ 2 - 2
support/parser.js

@@ -38,8 +38,8 @@ $globals.SmalltalkParser = (function() {
         peg$startRuleFunctions = { start: peg$parsestart },
         peg$startRuleFunction  = peg$parsestart,
 
-        peg$c0 = /^[ \t\x0B\f\xA0\uFEFF\n\r\u2028\u2029]/,
-        peg$c1 = { type: "class", value: "[ \\t\\v\\f\\u00A0\\uFEFF\\n\\r\\u2028\\u2029]", description: "[ \\t\\v\\f\\u00A0\\uFEFF\\n\\r\\u2028\\u2029]" },
+        peg$c0 = /^[ \t\x0B\f\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF\n\r\u2028\u2029]/,
+        peg$c1 = { type: "class", value: "[ \\t\\v\\f\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF\\n\\r\\u2028\\u2029]", description: "[ \\t\\v\\f\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF\\n\\r\\u2028\\u2029]" },
         peg$c2 = "\"",
         peg$c3 = { type: "literal", value: "\"", description: "\"\\\"\"" },
         peg$c4 = /^[^"]/,

+ 1 - 1
support/parser.pegjs

@@ -1,6 +1,6 @@
 start = method
 
-separator      = [ \t\v\f\u00A0\uFEFF\n\r\u2028\u2029]+
+separator      = [ \t\v\f\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF\n\r\u2028\u2029]+
 comments       = ('"' [^"]* '"')+
 ws             = (separator / comments)*
 maybeDotsWs = ("." / separator / comments)*