1
0

treesitter-jsx.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. diff --git a/queries/jsx/highlights.scm b/queries/jsx/highlights.scm
  2. index a53b9533..deb3c159 100644
  3. --- a/queries/jsx/highlights.scm
  4. +++ b/queries/jsx/highlights.scm
  5. @@ -65,87 +65,3 @@
  6. (jsx_text) @none @spell
  7. (html_character_reference) @character.special
  8. -
  9. -((jsx_element
  10. - (jsx_opening_element
  11. - name: (identifier) @_tag)
  12. - (jsx_text) @markup.heading)
  13. - (#eq? @_tag "title"))
  14. -
  15. -((jsx_element
  16. - (jsx_opening_element
  17. - name: (identifier) @_tag)
  18. - (jsx_text) @markup.heading.1)
  19. - (#eq? @_tag "h1"))
  20. -
  21. -((jsx_element
  22. - (jsx_opening_element
  23. - name: (identifier) @_tag)
  24. - (jsx_text) @markup.heading.2)
  25. - (#eq? @_tag "h2"))
  26. -
  27. -((jsx_element
  28. - (jsx_opening_element
  29. - name: (identifier) @_tag)
  30. - (jsx_text) @markup.heading.3)
  31. - (#eq? @_tag "h3"))
  32. -
  33. -((jsx_element
  34. - (jsx_opening_element
  35. - name: (identifier) @_tag)
  36. - (jsx_text) @markup.heading.4)
  37. - (#eq? @_tag "h4"))
  38. -
  39. -((jsx_element
  40. - (jsx_opening_element
  41. - name: (identifier) @_tag)
  42. - (jsx_text) @markup.heading.5)
  43. - (#eq? @_tag "h5"))
  44. -
  45. -((jsx_element
  46. - (jsx_opening_element
  47. - name: (identifier) @_tag)
  48. - (jsx_text) @markup.heading.6)
  49. - (#eq? @_tag "h6"))
  50. -
  51. -((jsx_element
  52. - (jsx_opening_element
  53. - name: (identifier) @_tag)
  54. - (jsx_text) @markup.strong)
  55. - (#any-of? @_tag "strong" "b"))
  56. -
  57. -((jsx_element
  58. - (jsx_opening_element
  59. - name: (identifier) @_tag)
  60. - (jsx_text) @markup.italic)
  61. - (#any-of? @_tag "em" "i"))
  62. -
  63. -((jsx_element
  64. - (jsx_opening_element
  65. - name: (identifier) @_tag)
  66. - (jsx_text) @markup.strikethrough)
  67. - (#any-of? @_tag "s" "del"))
  68. -
  69. -((jsx_element
  70. - (jsx_opening_element
  71. - name: (identifier) @_tag)
  72. - (jsx_text) @markup.underline)
  73. - (#eq? @_tag "u"))
  74. -
  75. -((jsx_element
  76. - (jsx_opening_element
  77. - name: (identifier) @_tag)
  78. - (jsx_text) @markup.raw)
  79. - (#any-of? @_tag "code" "kbd"))
  80. -
  81. -((jsx_element
  82. - (jsx_opening_element
  83. - name: (identifier) @_tag)
  84. - (jsx_text) @markup.link.label)
  85. - (#eq? @_tag "a"))
  86. -
  87. -((jsx_attribute
  88. - (property_identifier) @_attr
  89. - (string
  90. - (string_fragment) @string.special.url))
  91. - (#any-of? @_attr "href" "src"))