|
1793 | 1793 | [-\\w*]+
|
1794 | 1794 | \\|
|
1795 | 1795 | (?!
|
1796 |
| - [-\\[:.*\\#a-zA-Z_] # Make sure there's a selector to match |
| 1796 | + [-\\[:.*&\\#a-zA-Z_] # Make sure there's a selector to match |
1797 | 1797 | | [^\\x00-\\x7F]
|
1798 | 1798 | )
|
1799 | 1799 | )
|
|
1811 | 1811 | {
|
1812 | 1812 | 'include': '#tag-names'
|
1813 | 1813 | }
|
| 1814 | + { |
| 1815 | + 'match': '&' |
| 1816 | + 'name': 'entity.name.tag.nesting.css' |
| 1817 | + } |
1814 | 1818 | {
|
1815 | 1819 | 'match': '\\*'
|
1816 | 1820 | 'name': 'entity.name.tag.wildcard.css'
|
|
1836 | 1840 | # Consists of a hyphen only
|
1837 | 1841 | - # Terminated by either:
|
1838 | 1842 | (?= $ # - End-of-line
|
1839 |
| - | [\\s,.\\#)\\[:{>+~|] # - Followed by another selector |
| 1843 | + | [\\s,.\\#)\\[:{>+~|&] # - Followed by another selector |
1840 | 1844 | | /\\* # - Followed by a block comment
|
1841 | 1845 | )
|
1842 | 1846 | |
|
|
1846 | 1850 | | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence
|
1847 | 1851 | )*
|
1848 | 1852 | (?: # Invalid punctuation
|
1849 |
| - [!"'%&(*;<?@^`|\\]}] # - NOTE: We exempt `)` from the list of checked |
| 1853 | + [!"'%(*;<?@^`|\\]}] # - NOTE: We exempt `)` from the list of checked |
1850 | 1854 | | # symbols to avoid matching `:not(.invalid)`
|
1851 | 1855 | / (?!\\*) # - Avoid invalidating the start of a comment
|
1852 | 1856 | )+
|
|
1877 | 1881 | )+
|
1878 | 1882 | ) # Followed by either:
|
1879 | 1883 | (?= $ # - End of the line
|
1880 |
| - | [\\s,.\\#)\\[:{>+~|] # - Another selector |
| 1884 | + | [\\s,.\\#)\\[:{>+~|&] # - Another selector |
1881 | 1885 | | /\\* # - A block comment
|
1882 | 1886 | )
|
1883 | 1887 | '''
|
|
1900 | 1904 | (?![0-9])
|
1901 | 1905 | (?:[-a-zA-Z0-9_]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+
|
1902 | 1906 | )
|
1903 |
| - (?=$|[\\s,.\\#)\\[:{>+~|]|/\\*) |
| 1907 | + (?=$|[\\s,.\\#)\\[:{>+~|&]|/\\*) |
1904 | 1908 | '''
|
1905 | 1909 | 'name': 'entity.other.attribute-name.id.css'
|
1906 | 1910 | }
|
|
2103 | 2107 | | mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup
|
2104 | 2108 | | msup|mtable|mtd|mtext|mtr|munder|munderover|semantics
|
2105 | 2109 | )
|
2106 |
| - (?=[+~>\\s,.\\#|){:\\[]|/\\*|$) |
| 2110 | + (?=[+~>\\s,.\\#|&){:\\[]|/\\*|$) |
2107 | 2111 | '''
|
2108 | 2112 | 'name': 'entity.name.tag.css'
|
2109 | 2113 | 'unicode-range':
|
|
0 commit comments