mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-23 01:47:38 +00:00
Switch from path to parentPath
I've been putting this off for a while, as I had issues in the past with people using old Node versions (e.g. #1806), but it no long works on my machine, so time to make the switch. Also do a bit of a package update. Hit a rollup bug while doing this (https://github.com/rollup/plugins/issues/1877), so holding that update back for now.
This commit is contained in:
@@ -70,18 +70,33 @@ We expected a closing delimiter (]=]) somewhere after this comment was started.
|
||||
1:1-1:5 COMMENT --[=[
|
||||
```
|
||||
|
||||
But incomplete opening `[`s are treated as a line comment:
|
||||
|
||||
```lua
|
||||
--[
|
||||
--[=
|
||||
return
|
||||
```
|
||||
|
||||
```txt
|
||||
1:1-1:3 COMMENT --[
|
||||
2:1-2:4 COMMENT --[=
|
||||
3:1-3:6 RETURN return
|
||||
```
|
||||
|
||||
Nested comments are rejected, just as Lua 5.1 does:
|
||||
|
||||
```lua
|
||||
--[[ [[ ]]
|
||||
--[[ [[ ]] return
|
||||
```
|
||||
|
||||
```txt
|
||||
[[ cannot be nested inside another [[ ... ]]
|
||||
|
|
||||
1 | --[[ [[ ]]
|
||||
1 | --[[ [[ ]] return
|
||||
| ^^
|
||||
1:1-1:10 COMMENT --[[ [[ ]]
|
||||
1:12-1:17 RETURN return
|
||||
```
|
||||
|
||||
# Strings
|
||||
|
Reference in New Issue
Block a user