Skip to content
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

Not detecting yaml in v1.1.1? #6

Closed
ns-cweber opened this issue Apr 6, 2019 · 3 comments
Closed

Not detecting yaml in v1.1.1? #6

ns-cweber opened this issue Apr 6, 2019 · 3 comments

Comments

@ns-cweber
Copy link

ns-cweber commented Apr 6, 2019

The following section seems to not be highlighted as YAML, and I'm not sure why not (ignore the backslashes; I had to "escape" the code fences or it breaks github rendering--GH doesn't support nested code fences afaict):

\`\`\`yaml
pipelines:
  default:
    - step:
        services:
          - docker
        caches:
          - docker
        script:
          - docker build -t weberc2/neon:latest .
          - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD
          - docker tag weberc2/neon weberc2/neon:$BITBUCKET_COMMIT
          - docker push weberc2/neon:latest
          - docker push weberc2/neon:$BITBUCKET_COMMIT
\`\`\`

I assume it's user error, but I'm not really sure how to set about debugging.

@Depado
Copy link
Owner

Depado commented Apr 8, 2019

Hello ☺
I'm kind of sad to say that but yaml support in chroma is… Minimal? You can see why here: alecthomas/chroma#118
Your yaml is detected as yaml though. For example, if I simply add a string directive to your provided yaml it is highlighted properly:

image
Is that what you meant?

@ns-cweber
Copy link
Author

ns-cweber commented Apr 11, 2019

Ah, yeah, that explains it. Thank you for the clarification!

@Depado
Copy link
Owner

Depado commented Apr 11, 2019

You're welcome, thanks for reporting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants