diff --git a/lib/rouge/lexers/vue.rb b/lib/rouge/lexers/vue.rb
index 7f86663b37..5b64f3d037 100644
--- a/lib/rouge/lexers/vue.rb
+++ b/lib/rouge/lexers/vue.rb
@@ -58,6 +58,10 @@ def lookup_lang(lang)
end
end
+ prepend :tag do
+ rule %r/[a-zA-Z0-9_:#\[\]()*.-]+\s*=\s*/m, Name::Attribute, :attr
+ end
+
state :style do
rule %r/(<\s*\/\s*)(style)(\s*>)/ do
groups Name::Tag, Keyword, Name::Tag
@@ -121,4 +125,3 @@ def lookup_lang(lang)
end
end
end
-
diff --git a/spec/visual/samples/vue b/spec/visual/samples/vue
index 1a09b03b72..a23fa181a7 100644
--- a/spec/visual/samples/vue
+++ b/spec/visual/samples/vue
@@ -73,3 +73,11 @@ p {
+
+
+
+ {{ user.firstName }}
+
+
+ {{ user.firstName }}
+