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

Commit

Permalink
Uses CSS language for css template tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Feb 7, 2019
1 parent 7bd0335 commit 20b3c73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Expand Up @@ -63,10 +63,10 @@ exports.activate = function () {
}
}

const STYLED_REGEX = /\bstyled\b/i
const CSS_REGEX = /\bstyled\b|\bcss\b/i

function languageStringForTemplateTag (tag) {
if (STYLED_REGEX.test(tag)) {
function languageStringForTemplateTag(tag) {
if (CSS_REGEX.test(tag.toLowerCase())) {
return 'CSS'
} else {
return tag
Expand Down

0 comments on commit 20b3c73

Please sign in to comment.