Comments (1)
Errors/Enhancements:
- switches
- on close channel target
- on topic targets
- ctcp event targets
- on open matching text
- $() as $eval identifier
- . on props should be highlighted
- timer name
- % and $ should be highlighted
- alias code block and code block end together
- commented }
- number ranges
- goto label
- number ranges (1-)
- bset text
- number highlighting inconsistent
- scon commands
- channel symbol to be treated as a special character/identifier
Notes:
- We currently do not use a strict switches highlighting rule, we use a global rule so it takes into account commands that use switches that are separated by spaces and other arguments.
- No documentation was found on having the channel symbol as a valid target on close event
- Might not only be a problem for on topic because we use a non-variable/non-identifier friendly on the targets for events
- Same as 3.
- Currently grouped with the on close event, which does not require a matchtext argument
- $() needs to be added as a valid identifier
- To be consistent with the switches highlighting . should be added to the highlighting part
- Unknown reason as to why it is not highlighting the last characters as the regex says to include non-space characters, might have to do with the (?=\b) flag
- I do not agree with this as % and $ are not variables nor identifiers and should be treated as text only
- Seems as if the if code block does not consume the } and the alias code block takes it
- Single line comments are stopped when it finds a }
- Highlighting number ranges is more of an enhancement rather than a bug
- Same as 12.
- Same as 12.
- Same as 12.
- Same as 1.
- Unknown reason as to why is not highlighting the number, numbers are part of the constant group in the language file
- Again, we are using more global rules to parse each command, we would need to add a specific rule for certain commands
- Same as 12.
I believe we could split this issue into 2, one with all the bugs and another one with all the enhancements, as issues should take a different priority over enhancements.
from msl-vscode-extension.
Related Issues (14)
- Commands, Identifiers, and events snippets format design
- Missing some things HOT 6
- Question HOT 3
- mSL Formatter for VS Code HOT 1
- Parse old, but valid syntax? E.g.: echo -a $dir='select dir' c:\ HOT 2
- Matching parameter not working for some events HOT 2
- Enable for Visual Studio Code for the Web
- Add support for adiirc? (https://adiirc.com) HOT 6
- (How to)? evaluate the =$nick identifier HOT 2
- Not sure how to match the $parmN identifier. HOT 2
- Remove Removed Identifiers
- New logo(s) ... HOT 5
- Doesn't highlight when $inbuilt is negated in if condition (!$sockbr)
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 msl-vscode-extension.