Comments (4)
the AI wants to add (?!\\w)
to link
like so: cycle.*|link(?!\\w).*|linkappend.*
.
I wonder if it's dizzy or actually on to something. I mean would VS Code really add multiple indentations due to matching with link
and linkappend
and linkprepeand
? I figure it is dizzy but still worth a thought.
It's also saying that elseif
and else
should be covered by the <<\\/.*>>
pattern but I figured you had to add it while testing.
from twee3-language-tools.
the AI wants to add
(?!\\w)
tolink
like so:cycle.*|link(?!\\w).*|linkappend.*
.I wonder if it's dizzy or actually on to something. I mean would VS Code really add multiple indentations due to matching with
link
andlinkappend
andlinkprepeand
? I figure it is dizzy but still worth a thought.It's also saying that
elseif
andelse
should be covered by the<<\\/.*>>
pattern but I figured you had to add it while testing.
<<\\/.*>>
Shouldn't be matching elseif and else. It should just match any macro that closes with /
like <</if>>
. Know that in the language-configuration file you have to escape a lot of the \ characters for it to be parsed by VSCode. So not sure if the AI is reading the extra \ characters that normal regex usually doesn't need.
Also my regex doesn't account for 1 liners and oops, wrong button when replying.
from twee3-language-tools.
Indentation rules require more investigation. Single regular expressions don't handle all edge cases properly.
Meanwhile, v0.22.0 adds OnEnterRules
for SC-2. It will use custom definitions from config files alongside the built-in macro list to indent inside container macros. Hopefully, that is helpful.
Besides, #118 has always been on the todo-list.
from twee3-language-tools.
Oh I missed that issue but I'll give the 0.22.0 version a go and if some of them work then I'm good.
Thanks.
from twee3-language-tools.
Related Issues (20)
- Allow warnings about IFID missing in StoryData to be turned off HOT 1
- The quickfix link sometimes disappears on mouse hover HOT 1
- New (July) update causes CPU to run continuously HOT 2
- Support relative path variable substitution in SugarCube 2 macro definition descriptions HOT 1
- Add enums for sc2 macro definitions
- Reopen Story Map on reload
- Story Map view resets when going to it from another file/tab HOT 3
- If the passage has a [nobr] tag or a section wrapped in a <<nobr>><<script>>, give a warning about // comments
- Add light-mode to story-map.
- Group: Tag and :: Passage vs :: Passage []
- [Sugarcube 2] "Malformed container macro! Opening tag not found!" in backtick-enclosed multi-line string
- Harlowe StoryMap missing arrow links between passages when changers are used HOT 3
- Add setting to toggle the "Go to macro definition" feature
- Request: Display folder relative to workspace folder
- Large Twee 3 Projects have a hard time with vscode. HOT 2
- 'Add all unrecognized Macros to the Definition File' is potentially not working
- 在py檔中按下enter鍵不能換行 HOT 3
- Sort passages in order of appearance
- Jumping to a passage opens an extra blank editor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twee3-language-tools.