Comments (3)
I found the offending line:
https://github.com/mmims/language-batchfile/blob/master/grammars/batchfile.cson#L114
I don't know if throwing a \b on the end of that would fix it or not. I am not an expert at regex.
from language-batchfile.
You're correct it is incorrectly identifying the argument as a batch label. I'm working on a major rewrite of the grammar that will address this issue.
from language-batchfile.
Thanks. I put in a pull request in the meantime.
from language-batchfile.
Related Issues (20)
- Add color to operators HOT 1
- Highlight bugs regarding quotes (GitHub's highlighter) HOT 5
- Label colour HOT 3
- "Caret-quote ^" should terminate quoted text
- Recognize "*" prefix of pattern substitution (%v:*s=r%) HOT 1
- Digits that are part of filenames are highlighted as numbers HOT 2
- Syntax highlight broken for Batch file HOT 4
- [bat] The command `set "flag="` breaks syntax highlighting HOT 4
- Syntax Highlighting for Batch scripts doesn't handle percent escapes
- [bat] Batch file syntax highlighting works incorrectly for single-letter variables HOT 2
- Batch Script syntax highlighting issues HOT 2
- [bat ] Incorrect syntax highlighting for command `set /a "..."`
- A batch parameter doesn't tend to be applied to themes correctly, incompletely scoped. HOT 2
- No syntax highlighting for ssh and scp commands
- Parsing Comment Blocks HOT 1
- Syntax highlighting goes haywire with multiple inline assignments, one arithmetic
- Inline comments are not highlighted correctly when next to labels and gotos
- windows bat file syntax highlighting problem HOT 1
- Support for inline comments : &:: HOT 1
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 language-batchfile.