Comments (4)
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.
Good to know, thanks. I'll rework this.
from make.tmbundle.
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.
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)
- Build fails when TM_PROJECT_DIRECTORY is unset HOT 1
- Supporting mk files HOT 2
- Makefile parsing bug? HOT 1
- Makefile syntax highlight bug, improper function colorization in dependency list HOT 1
- Makefile syntax highlight bug, caused by comments HOT 2
- Makefile syntax highlighting HOT 6
- Make doesn't use a login shell HOT 1
- sugestion: phony targets shoud be colored with different color HOT 1
- build target... error HOT 3
- Filter/hide color code escape sequences from output HOT 1
- Makefile syntax highlighting bug HOT 1
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 make.tmbundle.