-
Notifications
You must be signed in to change notification settings - Fork 81
fixed here-string formating #30
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,7 @@ | |
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>@"$</string> | ||
<string>^@"\n</string> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would not work here: $someVar = @"
hello
"@ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, I think a lookahead would be preferable:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<key>end</key> | ||
<string>^"@</string> | ||
<key>name</key> | ||
|
@@ -205,9 +205,9 @@ | |
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>@'$</string> | ||
<string>@'\n</string> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I forgot to mention to do the same as above. Let's add a lookahead here too for consistency. |
||
<key>end</key> | ||
<string>^'@</string> | ||
<string>^'@$</string> | ||
<key>name</key> | ||
<string>string.quoted.single.heredoc.powershell</string> | ||
<key>patterns</key> | ||
|
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.
Also, this is not a master file. xml is generated from YAML. For details check out http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/extensibility/syntaxdefs.html
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.
True, but it does not really matter if the XML is edited directly. We should nevertheless add some contributing guidelines so collaborators now there are more convenient tools.
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.
In fact, we need to delete the YAML file. That one should be generated each time it's needed at dev time, then deleted and not committed.
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.
That's an interesting approach. Is YAML guaranteed to be the same (preserve comments for instance)?
Anyway, Contribute section in README.md is needed for sure.
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.
@FichteFoll is the expert here. I believe so.
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.
Sorry, I can move my change to the YAML if you prefer.
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.
@william-voyek No need to. Thanks!
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 are only preserved if they are part of the data object (i.e.
comment: Comment here
), but not if they are language comments.I generally prefer to only edit the YAML and put a few language comments next to my stuff. I also indent multi-line expressions in a certain way and I'm actually not sure if they are preserved. But of course, if you'd like to keep things together for potential other conversions, following that convention is fine too.