Comments (6)
Yep, I'll check for block type before parsing
Just jmd seems good for now but if other formats also use ``` or something similar to denote blocks adding them shouldn't be a problem
from cstparser.jl.
Am I right in thinking that this would just involve parsing everything inside single and triple back quotes and treating the rest as white space?
from cstparser.jl.
Yes
from cstparser.jl.
Great, that's easy. Are there any other jmd specific features we'd want?
from cstparser.jl.
Ok, I had another look. I think there really are only two types of blocks for which we simply want to enable all the LS features: 1) code blocks and 2) inline code.
Code blocks look like this:
```julia
println("This is julia code")
```
They can also have additional config options, see here.
Inline code starts with
This is some markdown `j log(2)` with inline julia code.
So I guess we should actually only activate the LS for julia code blocks, not for everything that is in back quotes, right?
Weave supports a whole bunch of other formats as well, but I almost feel we should just support one and be done... And markdown seems the most useful?
from cstparser.jl.
branch for reference
from cstparser.jl.
Related Issues (20)
- Parsing `@doc` macro with trailing newline errors HOT 1
- Parsing error? HOT 7
- Stop parsing when it occurs to lambda function assignment HOT 2
- Return information about when state errored HOT 2
- `const` field support
- Incorrect Parse in global statement HOT 1
- Possible error in import parsing HOT 1
- Parser error with raw string with $ followed by multiline string
- Incorrect parsing with `global const ...`
- CSTParser cannot parse for loops in a quoted macro
- Command parsed possibly incorrectly HOT 3
- Multidimensional parse issue HOT 2
- crash on global 'tuple' in let block HOT 2
- language server crashing within lint! given hcat input HOT 3
- Problem parsing in JuliaFormatter HOT 3
- Parsing error on `$a'` HOT 1
- Parsing list comprehensions
- Failure to parse string macros with module name & suffix (`X.y"z"q`)
- ERROR: BoundsError: attempt to access 1-element Vector{CSTParser.EXPR} at index [2] HOT 4
- crashes on nightly Julia, stateful iterators don't have `length` any more 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 cstparser.jl.