@@ -1827,7 +1827,7 @@ module.exports = grammar({
1827
1827
1828
1828
boolean_literal : _ => choice ( 'true' , 'false' ) ,
1829
1829
1830
- _identifier_token : _ => token ( seq ( optional ( '@' ) , / [ \p{ L } \p { Nl } _ ] [ \p { L } \p { Nl } \p { Nd } \p { Pc } \p{ Cf } \p { Mn } \p { Mc } ] * / ) ) ,
1830
+ _identifier_token : _ => token ( seq ( optional ( '@' ) , / ( \p{ XID_Start } | _ | \\ u [ 0 - 9 A - F a - f ] { 4 } | \\ U [ 0 - 9 A - F a - f ] { 8 } ) ( \p{ XID_Continue } | \\ u [ 0 - 9 A - F a - f ] { 4 } | \\ U [ 0 - 9 A - F a - f ] { 8 } ) * / ) ) ,
1831
1831
identifier : $ => choice (
1832
1832
$ . _identifier_token ,
1833
1833
$ . _reserved_identifier ,
@@ -1996,12 +1996,12 @@ module.exports = grammar({
1996
1996
} ) ;
1997
1997
1998
1998
/**
1999
- * Creates a preprocessor regex rule
2000
- *
2001
- * @param {RegExp| Rule|String } command
2002
- *
2003
- * @return {AliasRule }
2004
- */
1999
+ * Creates a preprocessor regex rule
2000
+ *
2001
+ * @param {RegExp | Rule | string } command
2002
+ *
2003
+ * @returns {AliasRule }
2004
+ */
2005
2005
function preprocessor ( command ) {
2006
2006
return alias ( new RegExp ( '#[ \t]*' + command ) , '#' + command ) ;
2007
2007
}
@@ -2016,16 +2016,15 @@ function preprocessor(command) {
2016
2016
*
2017
2017
* @param {boolean } rep
2018
2018
*
2019
- * @return {RuleBuilders<string, string> }
2019
+ * @returns {RuleBuilders<string, string> }
2020
2020
*/
2021
2021
function preprocIf ( suffix , content , precedence = 0 , rep = true ) {
2022
2022
/**
2023
- *
2024
- * @param {GrammarSymbols<string> } $
2025
- *
2026
- * @return {ChoiceRule }
2027
- *
2028
- */
2023
+ *
2024
+ * @param {GrammarSymbols<string> } $
2025
+ *
2026
+ * @returns {ChoiceRule }
2027
+ */
2029
2028
function alternativeBlock ( $ ) {
2030
2029
return choice (
2031
2030
suffix ? alias ( $ [ 'preproc_else' + suffix ] , $ . preproc_else ) : $ . preproc_else ,
@@ -2063,8 +2062,7 @@ function preprocIf(suffix, content, precedence = 0, rep = true) {
2063
2062
*
2064
2063
* @param {Rule } rule
2065
2064
*
2066
- * @return {SeqRule }
2067
- *
2065
+ * @returns {SeqRule }
2068
2066
*/
2069
2067
function commaSep1 ( rule ) {
2070
2068
return seq ( rule , repeat ( seq ( ',' , rule ) ) ) ;
@@ -2075,8 +2073,7 @@ function commaSep1(rule) {
2075
2073
*
2076
2074
* @param {Rule } rule
2077
2075
*
2078
- * @return {SeqRule }
2079
- *
2076
+ * @returns {SeqRule }
2080
2077
*/
2081
2078
function commaSep2 ( rule ) {
2082
2079
return seq ( rule , repeat1 ( seq ( ',' , rule ) ) ) ;
@@ -2087,8 +2084,7 @@ function commaSep2(rule) {
2087
2084
*
2088
2085
* @param {Rule } rule
2089
2086
*
2090
- * @return {ChoiceRule }
2091
- *
2087
+ * @returns {ChoiceRule }
2092
2088
*/
2093
2089
function commaSep ( rule ) {
2094
2090
return optional ( commaSep1 ( rule ) ) ;
@@ -2101,8 +2097,7 @@ function commaSep(rule) {
2101
2097
*
2102
2098
* @param {RuleOrLiteral } separator
2103
2099
*
2104
- * @return {SeqRule }
2105
- *
2100
+ * @returns {SeqRule }
2106
2101
*/
2107
2102
function sep1 ( rule , separator ) {
2108
2103
return seq ( rule , repeat ( seq ( separator , rule ) ) ) ;
@@ -2115,8 +2110,7 @@ function sep1(rule, separator) {
2115
2110
*
2116
2111
* @param {RuleOrLiteral } separator
2117
2112
*
2118
- * @return {ChoiceRule }
2119
- *
2113
+ * @returns {ChoiceRule }
2120
2114
*/
2121
2115
function sep ( rule , separator ) {
2122
2116
return optional ( sep1 ( rule , separator ) ) ;
0 commit comments