yapp 2.2.66 → 2.2.70
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/example.js +2056 -605
- package/lib/element/scrollable.js +1 -1
- package/lib/example/div/sizeable/left.js +1 -1
- package/lib/example/div/sizeable/middle.js +1 -1
- package/lib/example/div/sizeable/right.js +1 -1
- package/lib/example/div/sizeable/top.js +1 -1
- package/lib/example/input.js +1 -1
- package/lib/example/subHeading.js +1 -1
- package/lib/example/textarea/bnf.js +1 -1
- package/lib/example/textarea/lexicalEntries.js +1 -1
- package/lib/example/textarea/parseTree.js +1 -1
- package/lib/example/textarea/tokens.js +1 -1
- package/lib/example/textarea.js +1 -1
- package/lib/example/view/javascript.js +1 -1
- package/lib/example/view/json.js +1 -1
- package/lib/example/view/xml.js +1 -1
- package/lib/example/view.js +1 -1
- package/lib/example/yapp.js +1 -1
- package/lib/example.js +1 -1
- package/lib/gutter.js +1 -1
- package/lib/index.js +1 -1
- package/lib/lexer/javascript.js +10 -1
- package/lib/lexer/json.js +5 -1
- package/lib/lexer/plainText.js +5 -27
- package/lib/lexer/xml.js +5 -1
- package/lib/lexer/yapp.js +1 -1
- package/lib/lineNumbers.js +1 -1
- package/lib/mixins/style.js +1 -1
- package/lib/parser/javascript.js +1 -1
- package/lib/parser/json.js +1 -1
- package/lib/parser/plainText.js +1 -1
- package/lib/parser/xml.js +1 -1
- package/lib/parser/yapp.js +1 -1
- package/lib/plugin/javascript.js +1 -1
- package/lib/plugin/json.js +1 -1
- package/lib/plugin/plainText.js +1 -1
- package/lib/plugin/xml.js +1 -1
- package/lib/prettyPrinter.js +1 -1
- package/lib/processor/javascript.js +1 -1
- package/lib/processor/json.js +1 -1
- package/lib/processor/plainText.js +1 -1
- package/lib/processor/xml.js +1 -1
- package/lib/processor.js +1 -1
- package/lib/renderYappStyles.js +1 -1
- package/lib/richTextarea.js +1 -1
- package/lib/scheme/colour.js +1 -1
- package/lib/scheme/syntax/default.js +1 -1
- package/lib/scheme/syntax/javaScript.js +1 -1
- package/lib/scheme/syntax/json.js +1 -1
- package/lib/scheme/syntax/xml.js +1 -1
- package/lib/style/syntax/default.js +1 -1
- package/lib/style/syntax/javaScript.js +1 -1
- package/lib/style/syntax/json.js +1 -1
- package/lib/style/syntax/xml.js +1 -1
- package/lib/style/syntax.js +1 -1
- package/lib/syntax.js +1 -1
- package/lib/token/significant/argument.js +1 -1
- package/lib/token/significant/attribute.js +1 -1
- package/lib/token/significant/comment.js +1 -1
- package/lib/token/significant/error.js +1 -1
- package/lib/token/significant/jsx.js +1 -1
- package/lib/token/significant/name.js +1 -1
- package/lib/token/significant/string.js +1 -1
- package/lib/token/significant/variable.js +1 -1
- package/lib/utilities/content.js +1 -1
- package/lib/utilities/css.js +1 -1
- package/lib/utilities/parser.js +1 -1
- package/lib/utilities/plugin.js +1 -1
- package/lib/utilities/rules.js +1 -1
- package/lib/utilities/scrollbarThickness.js +1 -1
- package/lib/yapp.js +1 -1
- package/package.json +6 -6
- package/src/lexer/javascript.js +25 -0
- package/src/lexer/json.js +7 -0
- package/src/lexer/plainText.js +5 -7
- package/src/lexer/xml.js +7 -0
package/src/lexer/javascript.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { WhitespaceToken,
|
|
4
|
+
EndOfLineNonSignificantToken,
|
|
5
|
+
CStyleSingleLineCommentToken,
|
|
6
|
+
SinglyQuotedStringLiteralToken,
|
|
7
|
+
DoublyQuotedStringLiteralToken,
|
|
8
|
+
CStyleEndOfMultiLineCommentToken,
|
|
9
|
+
CStyleStartOfMultiLineCommentToken,
|
|
10
|
+
CStyleMiddleOfMultiLineCommentToken } from "occam-lexers";
|
|
11
|
+
|
|
3
12
|
import YappLexer from "../lexer/yapp";
|
|
4
13
|
|
|
5
14
|
const entries = [
|
|
@@ -29,8 +38,24 @@ const entries = [
|
|
|
29
38
|
export default class JavaScriptLexer extends YappLexer {
|
|
30
39
|
static entries = entries;
|
|
31
40
|
|
|
41
|
+
static EndOfLineToken = EndOfLineNonSignificantToken; ///
|
|
42
|
+
|
|
43
|
+
static WhitespaceToken = WhitespaceToken;
|
|
44
|
+
|
|
32
45
|
static RegularExpressionToken = null;
|
|
33
46
|
|
|
47
|
+
static SingleLineCommentToken = CStyleSingleLineCommentToken; ///
|
|
48
|
+
|
|
49
|
+
static EndOfMultiLineCommentToken = CStyleEndOfMultiLineCommentToken; ///
|
|
50
|
+
|
|
51
|
+
static StartOfMultiLineCommentToken = CStyleStartOfMultiLineCommentToken; ///
|
|
52
|
+
|
|
53
|
+
static MiddleOfMultiLineCommentToken = CStyleMiddleOfMultiLineCommentToken; ///
|
|
54
|
+
|
|
55
|
+
static SinglyQuotedStringLiteralToken = SinglyQuotedStringLiteralToken;
|
|
56
|
+
|
|
57
|
+
static DoublyQuotedStringLiteralToken = DoublyQuotedStringLiteralToken;
|
|
58
|
+
|
|
34
59
|
static fromNothing() { return YappLexer.fromEntries(JavaScriptLexer, entries); }
|
|
35
60
|
|
|
36
61
|
static fromRules(rules) { return YappLexer.fromRules(JavaScriptLexer, rules); }
|
package/src/lexer/json.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import YappLexer from "../lexer/yapp";
|
|
4
|
+
import { WhitespaceToken, EndOfLineNonSignificantToken, DoublyQuotedStringLiteralToken } from "occam-lexers";
|
|
4
5
|
|
|
5
6
|
const entries = [
|
|
6
7
|
{
|
|
@@ -20,6 +21,10 @@ const entries = [
|
|
|
20
21
|
export default class JSONLexer extends YappLexer {
|
|
21
22
|
static entries = entries;
|
|
22
23
|
|
|
24
|
+
static EndOfLineToken = EndOfLineNonSignificantToken; ///
|
|
25
|
+
|
|
26
|
+
static WhitespaceToken = WhitespaceToken;
|
|
27
|
+
|
|
23
28
|
static SingleLineCommentToken = null;
|
|
24
29
|
|
|
25
30
|
static RegularExpressionToken = null;
|
|
@@ -32,6 +37,8 @@ export default class JSONLexer extends YappLexer {
|
|
|
32
37
|
|
|
33
38
|
static SinglyQuotedStringLiteralToken = null;
|
|
34
39
|
|
|
40
|
+
static DoublyQuotedStringLiteralToken = DoublyQuotedStringLiteralToken;
|
|
41
|
+
|
|
35
42
|
static fromNothing() { return YappLexer.fromEntries(JSONLexer, entries); }
|
|
36
43
|
|
|
37
44
|
static fromRules(rules) { return YappLexer.fromRules(JSONLexer, rules); }
|
package/src/lexer/plainText.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { WhitespaceToken, EndOfLineNonSignificantToken } from "occam-lexers";
|
|
4
|
+
|
|
3
5
|
import YappLexer from "../lexer/yapp";
|
|
4
6
|
|
|
5
7
|
const entries = [
|
|
@@ -9,15 +11,11 @@ const entries = [
|
|
|
9
11
|
];
|
|
10
12
|
|
|
11
13
|
export default class PlainTextLexer extends YappLexer {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
matchMultiLineCommentNotInComment(content, inComment) { return null; }
|
|
15
|
-
|
|
16
|
-
matchSinglyQuotedStringLiteral(content) { return null; }
|
|
14
|
+
static entries = entries;
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
static EndOfLineToken = EndOfLineNonSignificantToken; ///
|
|
19
17
|
|
|
20
|
-
static
|
|
18
|
+
static WhitespaceToken = WhitespaceToken;
|
|
21
19
|
|
|
22
20
|
static SingleLineCommentToken = null;
|
|
23
21
|
|
package/src/lexer/xml.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import YappLexer from "../lexer/yapp";
|
|
4
|
+
import { WhitespaceToken, EndOfLineNonSignificantToken, DoublyQuotedStringLiteralToken } from "occam-lexers";
|
|
4
5
|
|
|
5
6
|
const entries = [
|
|
6
7
|
{
|
|
@@ -17,6 +18,10 @@ const entries = [
|
|
|
17
18
|
export default class XMLLexer extends YappLexer {
|
|
18
19
|
static entries = entries;
|
|
19
20
|
|
|
21
|
+
static EndOfLineToken = EndOfLineNonSignificantToken; ///
|
|
22
|
+
|
|
23
|
+
static WhitespaceToken = WhitespaceToken;
|
|
24
|
+
|
|
20
25
|
static SingleLineCommentToken = null;
|
|
21
26
|
|
|
22
27
|
static RegularExpressionToken = null;
|
|
@@ -29,6 +34,8 @@ export default class XMLLexer extends YappLexer {
|
|
|
29
34
|
|
|
30
35
|
static SinglyQuotedStringLiteralToken = null;
|
|
31
36
|
|
|
37
|
+
static DoublyQuotedStringLiteralToken = DoublyQuotedStringLiteralToken;
|
|
38
|
+
|
|
32
39
|
static fromNothing() { return YappLexer.fromEntries(XMLLexer, entries); }
|
|
33
40
|
|
|
34
41
|
static fromRules(rules) { return YappLexer.fromRules(XMLLexer, rules); }
|