From 29f2598b344cf4a1a47ff8ecf567a4091989374e Mon Sep 17 00:00:00 2001 From: jpokrzyk Date: Sat, 5 Mar 2016 17:49:38 -0500 Subject: [PATCH] Properly highlight tags with dashes in their name The web components spec allows for dashes in tag names and the vuejs community seems to prefer kebab naming for tag names. This change allows sublime to properly highlight tags with dashes in their name. --- vue.YAML-tmLanguage | 4 ++-- vue.tmLanguage | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vue.YAML-tmLanguage b/vue.YAML-tmLanguage index b9a64f5..0b6c348 100644 --- a/vue.YAML-tmLanguage +++ b/vue.YAML-tmLanguage @@ -7,7 +7,7 @@ uuid: 5512c10d-4cc5-434c-b8fc-53b912f55ab3 patterns: - name: meta.tag.any.html - begin: (<)([a-zA-Z0-9:]++)(?=[^>]*>) + begin: (<)([a-zA-Z0-9:-]++)(?=[^>]*>) beginCaptures: '1': {name: punctuation.definition.tag.begin.html} '2': {name: entity.name.tag.html} @@ -220,7 +220,7 @@ patterns: - include: '#tag-stuff' - name: meta.tag.other.html - begin: ( begin - (<)([a-zA-Z0-9:]++)(?=[^>]*></\2>) + (<)([a-zA-Z0-9:-]++)(?=[^>]*></\2>) beginCaptures 1 @@ -741,7 +741,7 @@ begin - (</?)([a-zA-Z0-9:]+) + (</?)([a-zA-Z0-9:-]+) beginCaptures 1