-
Notifications
You must be signed in to change notification settings - Fork 58
Conversation
'logical_operators': | ||
'match': '\\b(==|!=|<=|>=|<|>|not|or|and)\\b' | ||
'name': 'keyword.control.operator' | ||
'match': '\\b(?:not\\b|or\\b|and\\b)' |
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.
\\b(not|or|and)\\b
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.
is \\b(not\\b|or\\b|and\\b)
ok?
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.
Yes, why?
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.
Performance. 😆
Please rebase to get rid of the ellipse commit. |
Problems: * `\\b==` does not allow spaces before == * 'keyword.control.*' is for keywords like `while` or `@supports` by convention, but not these operators * operators like == do not fit in the name 'logical_operators'
The grammar of @supports at the moment cannot distinguish between properties and values: for a word or word-hyphen combination that is being used as both property and value, "flex" in this case, it will always be tokenized as a value.
Anything else? |
Just to increase my understanding of things: how does this fix the referenced issue? Is it because |
First, the problem is actually I overlooked the fact that some word can be both a property and a value in CSS— {
'include': '#constant_property_value'
}
{
'include': '#property_names'
}
{
'include': '#property_values'
} In the old way, at first, there were just The fix mainly comes from that {
'begin': '(:)\\s*(?!(\\s*{))'
…
'end': '\\s*(;|(?=}|\\)))'
…
'contentName': 'meta.property-value.scss'
'patterns': [
…
{
'include': '#property_values'
}
]
} |
Ok, that's what I was thinking, but just wanted to double-check. Thanks. |
(Wrong button 🙈) |
No problem 😆 |
in the commit message of 698e3c4