-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add yaml-mode #1090
base: master
Are you sure you want to change the base?
Add yaml-mode #1090
Conversation
yi-misc-modes/src/Yi/Lexer/YAML.x
Outdated
\n | ||
{ c Style.quoteStyle } | ||
. | ||
{ c Style.quoteStyle } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think making this defaultStyle is better, quoteStyle is really for Template Haskell or lisp style quotes. See https://github.com/yi-editor/yi/blob/master/yi-misc-modes/src/Yi/Lexer/JSON.x for a comparable lexer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your review in your busy time
I'll fix the style.(I wonder if I should use defaultStyle or other styles.)
294869f
to
a9dc927
Compare
yi-misc-modes/src/Yi/Lexer/YAML.x
Outdated
{ | ||
^\%.* { c Style.importStyle } | ||
^\-\-\- { c Style.importStyle } | ||
^$space*\#.* { c Style.commentStyle } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments can also appear after some other tokens, like:
# Comment on a line
"symfony 1.0": { PHP: 5.0, Propel: 1.2 } # Comment at the end of a line
"symfony 1.2": { PHP: 5.2, Propel: 1.3 }
Taken from: https://symfony.com/doc/current/components/yaml/yaml_format.html#comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed a comment-pattern.
Hi,
Add the highlight of yaml-file.