Comments (2)
Repro'd online; removing the :
colon formats the resulting code as expected - the indenter is probably getting confused with line labels... if I recall there's some regex-matching involved, in which case the fix for this is probably just a few characters in a regex pattern.
The plan for RD3 is to leverage parse trees for code formatting (we've talked about rewriting the indenter to do this, for years!), so this kind of problems pretty much solve themselves, because our parser has no problem telling a comment from a line label.
from rubberduck.
Thank you.
from rubberduck.
Related Issues (20)
- Office Program crashing when refreshing in ofiice file contains forms HOT 2
- Parse error on Private Type definition HOT 6
- Questionable behavior in "Code inspections" HOT 1
- Excel shutdown when opening a class node in Code Explorer HOT 3
- UnassignedVariableUsage Doesn't support variable being assigned as an "out" parameter from a property/sub/function HOT 4
- Rubberduck wants me to assign Object() array with 'Set' keyword HOT 1
- Add a comment to selected lines of code HOT 2
- Resolver Error on JsonConverter HOT 2
- Rubberduck crash
- Consider specific Annotations for UserForms
- Is there an annotation for auto importing References so that they are turned on? HOT 3
- Maintain folder annotation consistency
- VB6 IDE closes on first refresh of Rubberduck HOT 3
- code inspection for square-bracketed names in Excel VBA HOT 1
- Unhandled exception at startup HOT 2
- VBA.Array() Inspection HOT 2
- Export / Import to various folders HOT 1
- Code inspection sometimes uses application language instead of rubberduck language HOT 1
- Indenter. VBA Statement continuation lines aligned farther and farther to right
- The Rubber Duck is greedy and feeds on VB Attributes (not a joke)
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 rubberduck.