Wrong yaml syntax
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
Something wrong with yaml syntax:
Some characters break grammar and highlight, but it works in vscode correctly!
Reproduction
Use code
push-docker-image: title: Tag latest image wms-povar extends: multiunits#/ci/flows/emergency-multiunits-release-flow/jobs/push-docker-image needs: !override - deploy-static-yandex - docker-build-finished - jns-report-start - ya-package-2 if: ${flow-vars.units-checklist.wms-povar} input: config: docker_images: ${tasks.resources[?type == 'YA_PACKAGE'] | [].attributes.resource_version} check-diff-production: title: Check diff task: tplatform/check_diff stage: production needs: - push-docker-image if: ${flow-vars.units-checklist.wms-povar && flow-vars.wms-povar.production}
OR
`spec: init:
- cmd: /bin/sh -c 'tar'
- cmd: /bin/sh -c 'ln -sfn pdata pstate'
- cmd: /bin/sh -c 'LC_ALL=C.UTF-8 bin/properties-generator --source-dir {BSCONFIG_IDIR} --dest-dir {BSCONFIG_IDIR}/properties.d/'
- cmd: /bin/sh -c 'cp -L logs_config.yaml conf/unified-agent/common-config.yaml'
- cmd: /bin/sh -c 'chmod +x bin/saas-push-start.sh '
- cmd: /bin/sh -c 'echo '"'"'1'"'"'
properties.d/99_override.properties'
- cmd: /bin/sh -c 'tar -zxf async-profiler.tar.gz'
- cmd: /bin/sh -c 'echo '"'"'1'"'"' > properties.d/25-jvm-args.properties'
- cmd: "/bin/sh -c 'set -ex\nfor f in /prestart_scripts/*.sh; do\n\tsudo -E bin/prostarter $f\ndone;'" multi_cluster: replicas: VLA: 1`
It works in vscode:
Contributes
- I am willing to submit a PR to fix this issue
- I am willing to submit a PR with failing tests
Source: shikijs/shiki