mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Update syntax-method-call-on-string-literals.md
Clean up highlighting
This commit is contained in:
parent
0fa58d581c
commit
3f217b3ed6
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ By itself, this change introduces an additional ambiguity because of the combina
|
||||||
|
|
||||||
Consider code like this:
|
Consider code like this:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
local foo = bar
|
local foo = bar
|
||||||
("fmt"):format(...)
|
("fmt"):format(...)
|
||||||
```
|
```
|
||||||
|
@ -46,7 +46,7 @@ The grammar today also allows calling functions with string literals as their fi
|
||||||
|
|
||||||
By itself, this proposal thus would create a similar ambiguity in code like this:
|
By itself, this proposal thus would create a similar ambiguity in code like this:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
local foo = bar
|
local foo = bar
|
||||||
"fmt":format(...)
|
"fmt":format(...)
|
||||||
```
|
```
|
||||||
|
@ -55,7 +55,7 @@ While we could extend the line-based error check to include function literal arg
|
||||||
|
|
||||||
Doing so would prohibit code like this:
|
Doing so would prohibit code like this:
|
||||||
|
|
||||||
```
|
```lua
|
||||||
"fmt":format(...)
|
"fmt":format(...)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue