GithubHelp home page GithubHelp logo

Comments (2)

ggrossetie avatar ggrossetie commented on September 24, 2024 1

My guess is that the syntax highlighter does its job correctly but the built-in theme has no color (or a very light color) associated with the "token".

Here's the rule we are using:

"name": "markup.other.url.asciidoc",
"match": "(?<!\\\\)(link|mailto):([^\\s\\[]+)(?:\\[((?:\\\\\\]|[^\\]])*?)\\])",
"captures": {
"1": {
"name": "entity.name.function.asciidoc"
},
"2": {
"name": "markup.link.asciidoc",
"patterns": [
{
"include": "#attribute-reference"
}
]
},
"3": {
"name": "string.unquoted.asciidoc"
}
}
},

link is identified as entity.name.function.asciidoc and indeed this token is only defined in "dark_plus" included in "dark_modern":

https://github.com/microsoft/vscode/blob/58041888f48dc35ab6f4885765b7a45d1d67fe8e/extensions/theme-defaults/themes/dark_plus.json#L6-L18

You might want to open a new feature request at https://github.com/microsoft/vscode/issues.

from asciidoctor-vscode.

Oobiewan avatar Oobiewan commented on September 24, 2024

I just switched to the "Dark Modern" theme (from the default VS Code dark), and "link:" is now highlighted as expected. I'm not sure if this means that the issue can be closed.

from asciidoctor-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.