-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
Redone YAML grammar #11666
Redone YAML grammar #11666
Conversation
Imported from sublimehq/Packages and textmate/yaml.tmbundle. Originally created by @FichteFoll with additional patches from @Briles and @wbond. Ported to tmLanguage by @infininight. Known limitations: - Most indentation is not checked, except for block scalars, where it is also not verified (i.e. highlights even if less indentation used than required). - Properties are sometimes incorrectly highlighted for nested block collections (`- !!seq -`). Synced as of sublimehq/Packages@c52dd91, textmate/yaml.tmbundle/commit/953d955
Hi @nDmitry, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
I have a similar issue. You could try if this also works now. Heres a screenshot: Here's the original code: ### DEPLOY
# Deploy to staging server
deploy-staging:
stage: deploy
script:
- rsync -avzh --progress --delete -e ssh -p "dist-prod/" "${DEPLOY_SERVER_STAGING_USER}@${DEPLOY_SERVER_STAGING_URL}:${DEPLOY_SERVER_STAGING_TARGET}"
only:
- master
# Deploy to production server
deploy-prod:
stage: deploy
script:
- rsync -avzh --progress --delete -e ssh -p "dist-prod/" "${DEPLOY_SERVER_PROD_USER}@${DEPLOY_SERVER_PROD_URL}:${DEPLOY_SERVER_PROD_TARGET}"
only:
- tags
|
Awesome, great job :) Thank you very much, this bothered me for weeks now :) |
I just want to note that this piece originally included a licence, in both the ST and the textmate repos. According to the CLA, submissions including work of a third-party are valid as long as the original copyright and license information are retained, so this wouldn't prevent the piece of being added. It's just the license that is missing. |
Thanks, I have updated the license. |
I updated the grammar to textmate/yaml.tmbundle@9a4135d (2016-08-24), added tests and also updated the license. Thanks a lot @nDmitry and @FichteFoll, great work! |
how can I link yaml-cpp library and header files in Visual Studio code C++? I put yaml-cpp include director in "${workspaceRoot}/externals/include".. |
Some symbols can break syntax highlighting with current YAML grammar, e.g.:
There is a new implementation of YAML grammar that can be found in newer sublime and textmate versions, and I think we can easily use it in VS Code. Here's the highlighting with the new grammar:
Imported from sublimehq/Packages and textmate/yaml.tmbundle.
Originally created by @FichteFoll with additional patches from @Briles and @wbond.
Ported to tmLanguage by @infininight.
Known limitations:
- !!seq -
).Synced as of sublimehq/Packages@c52dd91, textmate/yaml.tmbundle@953d955