如何在一个文件中使用多种语言语法突出显示?

时间:2018-08-02 13:31:05

标签: visual-studio-code

我正在处理以nunjucks为模板的SQL文件,就像这样:

SELECT
  `foo`, COUNT(0) AS `count`
FROM `bar`
WHERE
  {% if a and b %}
  `biu` BETWEEN {{a}} AND {{b}} AND
  {% elif a %}
  `biu` >= {{a}} AND
  {% elif b %}
  `biu` <= {{b}} AND
  {% endif %}
  {{c}}
GROUP BY `status`

我想同时强调SQL语法和nunjucks语法。

0 个答案:

没有答案