Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 76b5c69

Browse files
committed
Adds gql and sql tags
1 parent 9a52639 commit 76b5c69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,16 @@ exports.activate = function () {
6464
}
6565

6666
const CSS_REGEX = /\bstyled\b|\bcss\b/i
67+
const GQL_REGEX = /\bgraphql\b|\bgql\b/i
68+
const SQL_REGEX = /\bsql\b/i
6769

6870
function languageStringForTemplateTag (tag) {
6971
if (CSS_REGEX.test(tag)) {
7072
return 'CSS'
73+
} else if (GQL_REGEX.test(tag)) {
74+
return 'GraphQL'
75+
} else if (SQL_REGEX.test(tag)) {
76+
return 'SQL'
7177
} else {
7278
return tag
7379
}

0 commit comments

Comments
 (0)