Skip to content

YAML issues #12

Description

@RedCMD

redundant rule type-inner and invalid include #simple-type

Image

"type-inner": {
"patterns": [
{
"include": "#simple-type"
}
]
},


num and boolnull rules are incompatible with TextMate 2.0 and Github-Linguist
Image

"num": {
"name": "constant.numeric.yaml",
"match": "(?<!![\\t ]+)(?:[+-]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN)|0x[0-9a-fA-F]+|0o[0-7]+|[+-]?(?:\\.[0-9]+|[0-9]+(?:\\.[0-9]*)?)(?:[eE][+-]?[0-9]+)?)(?=[\\t ]+#|[\\t ]*(?:[\\r\\n,\\[\\]{}]|:(?:[\\s,\\[\\]{}]|$))|$)"
},
"boolnull": {
"name": "constant.language.yaml",
"match": "(?<!![\\t ]+)(?:true|True|TRUE|false|False|FALSE|null|Null|NULL|~)(?=[\\t ]+#|[\\t ]*(?:[\\r\\n,\\[\\]{}]|:(?:[\\s,\\[\\]{}]|$))|$)"
},


--- is incorrectly detected as string instead of document

Image

block scalar string incorrectly detected as comment

- >
 
  
  # detected
Image

anchors not correct detected

? &a a
: &b b
: *a
Image

explicit multiline sequence map key not detected

?
- a
- b
:
- c
- d
Image

escape chars in double quoted block key not detected
"foo\nbar:baz\tx \\$%^&*()x": 23
Image


block scalar ended prematurely

>

 folded
 line

 next
 line
   * bullet

   * list
   * lines
Image

incorrect punctuation detected

block:	|
  void main() {
  	printf("Hello, world!\n");
  }
Image

'keyword.control.flow.block-scalar' should be added to litString
as this will bump the official grammar from 92.4% to 99.5% (and 99.7% after a few simple bug fixes)
for some reason adding meta.scalar does not work?

[R.litString]: { tier: 'strict', desc: 'string literal', exact: ['string'], family: ['punctuation.definition.string', 'punctuation'] },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions