-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colors in i18n block #15
Comments
@suruaku try these ;; filename: after/queries/vue/injections.scm
(element
(start_tag
((attribute
(attribute_name) @_attribute_name
(quoted_attribute_value
(attribute_value) @_attribute_value))))
(text) @yaml
(#eq? @_attribute_name "lang")
(#match? @_attribute_value "(yaml|yml)"))
;; Bonus for json highlighting
(element
(start_tag
((attribute
(attribute_name) @_attribute_name
(quoted_attribute_value
(attribute_value) @_attribute_value))))
(text) @json
(#eq? @_attribute_name "lang")
(#match? @_attribute_value "json"))
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have
<i18n lang="yaml">
block in vue files, which doesn't have any colors. Is it possible to get them using this plugin? If not does anyone know how to achieve that?The text was updated successfully, but these errors were encountered: