Giter VIP home page Giter VIP logo

Comments (8)

de-jcup avatar de-jcup commented on August 23, 2024

@jief666 Please give me example code - and if possible a screenshot too.

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

@jief666
I think I found a problemetic code by myself:

echo This shouldn\'t be a problem
echo 'Or did you expect this to be?'

this results in
grafik
which is not correct. Did you mean this bug?

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

After change to single line variant I still got following problem:
grafik

So it seems to be necessary to create an own rule which works/does syntax highlighting only, when more then one apostrophe is used

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

After implementing own bash string rule the output is shown as in next picture:
grafik

There are still some tests necessary to check side effects.

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

Strings can be mutli lined in bash, so the former reduction to a single line was not correct.

  • The new BashStringLineRule has to be enabled as multi line again

from eclipse-bash-editor.

jief666 avatar jief666 commented on August 23, 2024

Yes, that was this bug.
I think the solution is : if it's ', just treat as a normal char, like bash do.
I didn't understand what you meant by "bash rule"

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

@jief666 sorry about the "bash rule", I didn't want to confuse. It's just a name for an implementation part inside my code. I used the issue to document my changes - maybe a little bit too much.

from eclipse-bash-editor.

de-jcup avatar de-jcup commented on August 23, 2024

Fix done - will come with Release 0.9.2. See screen shot for fixed colouring (dark theme variant):
image

from eclipse-bash-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.