Skip to content

Commit e310949

Browse files
committed
fix not considering some symbols as literals
1 parent ab0b572 commit e310949

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/attributes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ Attribute ``link``
12271227
$$wasm_import_module$$ $$=$$ StringLiteral
12281228

12291229
NativeLibraryKind ::=
1230-
$$kind$$ $$=$$ " NativeLibraryKindType "
1230+
$$kind$$ $$=$$ $$"$$ NativeLibraryKindType $$"$$
12311231

12321232
NativeLibraryKindType ::=
12331233
$$dylib$$

src/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,10 +3137,10 @@ Struct Expressions
31373137
| ShorthandInitializer
31383138
31393139
IndexedInitializer ::=
3140-
FieldIndex : Expression
3140+
FieldIndex $$:$$ Expression
31413141

31423142
NamedInitializer ::=
3143-
Identifier : Expression
3143+
Identifier $$:$$ Expression
31443144

31453145
ShorthandInitializer ::=
31463146
Identifier

src/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Functions
1313
.. syntax::
1414

1515
FunctionDeclaration ::=
16-
FunctionQualifierList $$fn$$ Name GenericParameterList? $$($$ FunctionParameterList? $$)$$ ReturnType? WhereClause? (FunctionBody | ;)
16+
FunctionQualifierList $$fn$$ Name GenericParameterList? $$($$ FunctionParameterList? $$)$$ ReturnType? WhereClause? (FunctionBody | $$;$$)
1717

1818
FunctionQualifierList ::=
1919
$$const$$? $$async$$? ItemSafety? AbiSpecification?

0 commit comments

Comments
 (0)