Comments (5)
No problem :)
Yes, sometimes I think VSCode is failing to update properly the extension. For example, sometimes I have some files missing...
from ionide-fsgrammar.
I can't reproduce the problem with latest Ionide.
Can you please check if you have still have the problem in an empty file. Something like:
module Test
let self =
if self.process_type <> OderToPay && self.process_type <> InvoiceToPay then
""
else
""
Or if my hand written code is testing the wrong thing :)
from ionide-fsgrammar.
Yes, unfortunately it's still happening :/ You can test with:
type Foo =
{ process_type: string }
let test() =
let self = { process_type = "foo" }
if self.process_type = "foo"
then failwith "WTF!"
else self
Maybe adding a boundary condition to "type" in the regex (like \btype
)?
from ionide-fsgrammar.
I still can't repro it...
And we are already protecting type
with a word boundary source
The word boundary has been added because @selketjah reported a similar issue to yours. Related commits
Can you please check the version of Ionide you are using ? Or perhaps try to uninstall and reinstall it to be sure all the files are using latest version.
Last solution would be for you to clone ionide-fsgrammar
, open it in VSCode and press F5
to check if you are still able to reproduce the synthax error.
from ionide-fsgrammar.
Ah, yeah! Uninstalled and reinstalled Ionide and it's working fine now. Weird, I thought extensions were automatically updated now. Sorry for the hassle!
from ionide-fsgrammar.
Related Issues (20)
- There are syntax highlighting problems with value names that contain keywords.
- Multiple `` in one line are not highlighted correctly
- // inside a block comment gets line comment scope
- Similar lines highlighted differently HOT 3
- let f = (*) 2 is highlighted as a comment HOT 3
- Ionide hangs when trying to load `.fsproj`s or `.sln` HOT 1
- Multiline comments captures too greedily HOT 4
- Space after a closing *) literate comment breaks ionide highlighting
- Some bindings are missing? HOT 1
- Unexpected grammar tokenization HOT 3
- Conflict between custom operator and line comment
- Syntax highlighting breaks when returning a binding that begins with "use" HOT 1
- Bug: Slice parameters are tokenized as part of the function itself HOT 2
- Having `*` in the member definition makes everything after coloured incorrectly. HOT 1
- Syntax highlighting missing for `let struct` HOT 2
- Missing colorisation or broken colorisation on some syntax for `abstract` definition with a generic
- Rogue `"begin/endCaptures"` HOT 2
- Infix multiplication operator is treated as block comment terminator HOT 3
- Infix multiplication operator screws up parentheses coloring and is highlighted in red HOT 10
- Tuple and brackets can break highlighting for the remainder of the file HOT 3
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 ionide-fsgrammar.