Update tmLanguage file to cover first escape character#36766
Update tmLanguage file to cover first escape character#36766thaJeztah merged 1 commit intomoby:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36766 +/- ##
==========================================
+ Coverage 34.93% 37.11% +2.18%
==========================================
Files 614 646 +32
Lines 45645 58640 +12995
==========================================
+ Hits 15944 21765 +5821
- Misses 27607 34015 +6408
- Partials 2094 2860 +766
Continue to review full report at Codecov.
|
|
Correct me if I'm wrong, but I don't think any changes to the reported coverage were caused by changes made the commit in this pull request? |
|
Also, this might help to clarify what issue is being addressed. This is how that snippet is currently highlighted: And this is how it would be highlighted with the new definition that properly recognizes escaped quotes: The second image is a more accurate representation of the code, as strings in a Dockerfile are not delimited by |
thaJeztah
left a comment
There was a problem hiding this comment.
Stumbled on this PR, and looks like it was never merged; let me give it a quick rebase and bring it in
| <key>repository</key> | ||
| <dict> | ||
| <key>string-character-escape</key> | ||
| <dict> | ||
| <key>name</key> | ||
| <string>constant.character.escaped.dockerfile</string> |
There was a problem hiding this comment.
Looks like there's mixed tabs/whitespaces here
If matched escape character like \" before enter " in begin statement, text editor return invalid Highlighting. So included escape character outside of begin statement and did some refactoring. Signed-off-by: Myeongjooon Kim kimmj8409@gmail.com Signed-off-by: Myeongjoon Kim <kimmj8409@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>


- What I did
fixes #36695.
- How I did it
make duplicated escape code to variable and use it outside of begin,end statement.
- How to verify it
test this code.
This is in #36695
- Description for the changelog
updated tmLanguage file
- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Myeongjooon Kim kimmj8409@gmail.com