You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{id: '#4',title: '`%YAML 1.2 foo` — the trailing param is part of the directive line',
55
55
src: '%YAML 1.2 foo\n---\n',at: 'foo',col: 0,
56
-
should: (s)=>isDirectiveish(s),why: 'CST emits one `directive` token `%YAML 1.2 foo`; the trailing token is directive content, not a stray plain string.unquoted scalar',bug: true},
56
+
should: (s)=>isDirectiveish(s),why: 'CST emits one `directive` token `%YAML 1.2 foo`; the trailing token is directive content, not a stray plain string.unquoted scalar'},
57
57
58
58
{id: '#5',title: 'an escape inside a double-quoted scalar is highlighted',
should: (s)=>isEscapeOrInvalid(s),why: '`\\\'` in a double-quoted scalar is an (invalid) escape; it should be constant.character.escape or invalid, not plain string',bug: true},
60
+
should: (s)=>isEscapeOrInvalid(s),why: '`\\\'` in a double-quoted scalar is an (invalid) escape; it should be constant.character.escape or invalid, not plain string'},
61
61
62
62
{id: '#6',title: 'a `!` opening a plain-scalar CONTINUATION line is string content, not a tag',
should: (s)=>isString(s),why: 'the 2nd line folds into the one multi-line plain scalar (CST: one `scalar` token); the leading `!` is content, not storage.type.tag',bug: true},
64
+
should: (s)=>isString(s),why: 'the 2nd line folds into the one multi-line plain scalar (CST: one `scalar` token); the leading `!` is content, not storage.type.tag'},
65
65
66
66
{id: '#7',title: '`42` inside a multi-line plain-scalar KEY is string content, not a number',
should: (s)=>notNumber(s),why: 'the explicit key is the plain scalar "e 42" (CST/AST: one scalar that resolves to the STRING "e 42"); `42` is not a numeric literal',bug: true},
68
+
should: (s)=>notNumber(s),why: 'the explicit key is the plain scalar "e 42" (CST/AST: one scalar that resolves to the STRING "e 42"); `42` is not a numeric literal'},
69
69
70
70
{id: '#8',title: '`#...` immediately after `%YAML 1.1` is directive content, not a comment',
71
71
src: '%YAML 1.1#...\n',at: '#...',col: 0,
72
-
should: (s)=>notComment(s),why: 'no whitespace precedes the `#`, so it is not a comment; CST emits one `directive` token `%YAML 1.1#...`',bug: true},
72
+
should: (s)=>notComment(s),why: 'no whitespace precedes the `#`, so it is not a comment; CST emits one `directive` token `%YAML 1.1#...`'},
73
73
74
74
{id: '#9',title: '`%YAML` after document content is plain-scalar text, not a directive',
should: (s)=>notDirective(s)&&isString(s),why: 'a directive cannot appear after content; `scalar\\n%YAML 1.2` folds into one plain scalar (CST: one `scalar` token)',bug: true},
76
+
should: (s)=>notDirective(s)&&isString(s),why: 'a directive cannot appear after content; `scalar\\n%YAML 1.2` folds into one plain scalar (CST: one `scalar` token)'},
77
77
78
78
{id: '#10',title: 'a `#` line inside a `|5` block scalar body is string content, not a comment',
0 commit comments