Comments (2)
The problem is this line \b(module)\b
where it requires a word end after module. The problem is that the regex implementation does not recognise the '
as a word character.
I assume the same (or a similar one would be present if you tried using import'
as an identifier or let'
).
I assume something like (\b(?!'))
might fix it.
from language-haskell.
That regex fixed it. I also applied the same technique to all other keywords like let'
, import'
etc.
I'd appreciate if you can check that it I got them all.
from language-haskell.
Related Issues (20)
- Functions & Variables Highlighting HOT 1
- Flags inside pragma HOT 2
- Type signature in pattern synonym incorrectly highlighted
- {-# SCC "Specialise" #-} messes up the color of text after it HOT 4
- Don't default to .hsig when saving files
- Hovering doesn't work anymore HOT 1
- Cabal `elif` keyword is not highlighted
- QuasiQuotes with immediate `|` are not parsed correctly HOT 2
- How to navigate to function definitions? HOT 2
- GHC2021
- Repeated Haskell-style comments in Happy quotations are treated as comments HOT 3
- Highlighting broken with version 3.5 HOT 38
- Highlighting Isnt Working on Latest Update HOT 1
- Publishing on Open VSX Registry HOT 1
- No highlighting HOT 9
- VS Web Extension Suppport HOT 4
- Mis-scope of let-binding declarations immediately followed by signatures HOT 2
- Binding patterns named `pattern` are recognized as a keyword HOT 1
- LambdaCase \cases syntax
- Incorrect highlighting for some package imports
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-haskell.