4

At https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example/blob/master/syntaxes/codeblock.json

The extra grammar is injected into the scope markup.fenced_code.block.markdown

However L:markup.fenced_code.block.markdown is used. What does L: mean in this case? Is it a special syntax for scope selector? I cannot find any related info in https://manual.macromates.com/en/scope_selectors.html

colinfang
  • 20,909
  • 19
  • 90
  • 173

1 Answers1

1

The L: specifies injection priority. It means that the rule will be injected to the left of any existing rules in the same scope, i.e. it will be applied before the other rules

Matt Bierner
  • 58,117
  • 21
  • 175
  • 206
  • What's the difference between `R:` & no prefix. If there is no prefix, the injected rules are appended to the right, isn't that the same as `R:`? – colinfang Dec 02 '17 at 20:02
  • https://github.com/microsoft/vscode/blob/master/extensions/html/syntaxes/html.tmLanguage.json#L12 – tscpp Nov 13 '20 at 16:18