Giter Club home page Giter Club logo

Comments (4)

sorbits avatar sorbits commented on July 26, 2024

Negative look-behind is generally a bad way to avoid escaped characters, e.g. it fails in cases like: `\``.

Better to add a rule explicitly matching escaped characters (e.g. \\.) and place it above the other rules.

from make.tmbundle.

adamv avatar adamv commented on July 26, 2024

Good to know, thanks. I'll rework this.

from make.tmbundle.

adamv avatar adamv commented on July 26, 2024

Reworked here: http://github.com/adamv/make.tmbundle/commit/ffd02c5fce7b07165502f64f32af55dd449d837d

Are there any good ways to "test" grammars other than eyeballing a bunch of source files and showing scope?

from make.tmbundle.

sorbits avatar sorbits commented on July 26, 2024

Thanks, I took the commit and also your $(VARIABLE) commit.

I did two additional commits to augment your changes.

As for $(VARIABLE) we probably then also want to match $$ as constant.character.escape.dollar.makefile.

Iโ€™ve been meaning to overhaul the Makefile grammar, unfortunately the syntax is sort of undocumented and rather arcane, see my question here to the GNU-Make list: http://lists.gnu.org/archive/html/help-make/2009-10/msg00014.html.

Since I probably wonโ€™t get around to reworking the grammar anytime soon I was wondering if you want the role as collaborator for the Make bundle? Then you can just push directly to the textmate fork, just remember to follow the scope naming convention :)

As for a way to test grammars (outside TextMate) that is unfortunately not possible, but something I really want myself as well, and I pretty much have the code needed for this factored out, so it should seen be an option, so that we can start with unit tests for grammars :)

from make.tmbundle.

Related Issues (12)

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.