Update syntax/README.md and replace \<, \> in syntax files#3734
Open
niten94 wants to merge 5 commits into
Open
Update syntax/README.md and replace \<, \> in syntax files#3734niten94 wants to merge 5 commits into
syntax/README.md and replace \<, \> in syntax files#3734niten94 wants to merge 5 commits into
Conversation
.include syntax was removed in systemd 246 (July 2020): https://github.com/systemd/systemd/blob/v246/NEWS#L96-L99
Replace word boundary escape sequences used in nanorc files with \b, and merge option names after '|' in rule matching set/unset in nanorc.yaml to expression at left. \> in objc.yaml and perl.yaml remain unchanged, since it isn't known what the rules are supposed to match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some of the changes done in this pull request are written below:
\<and\>with\bin syntax files - The nanorc files where most syntax files originated use\<and\>to match word boundaries, but they were still contained in few files.\>inobjc.yamlandperl.yamlare retained, since I can't determine the purpose of the patterns.runtime/syntax/README.mdto syntax files with hardcoded colors - It was mentioned in Syntax Now Using Color Schemes? #3606 (direct link needed since account deleted?) that the list doesn't match. I'm not familiar with the file types where hardcoded colors are used, so I modified the list only.asciidoc.yamlbut there's only a rule which changes font style, so it's excluded.sage.yamlwithpython3.yaml- I'm not exactly sure what Sage is but syntax file differences only seemed to be old Python features, so they are merged.