textmate / make.tmbundle Goto Github PK
View Code? Open in Web Editor NEWTextMate support for Make
TextMate support for Make
From @ds0nt on June 13, 2017 22:51
When editing a makefile, sometimes things don't color as prettily as they could.
I've noticed this when using an ifeq
block, in particular.
As you can see, the variables that are indented are not colored, and neither is the else ifeq
.
Copied from original issue: microsoft/vscode#28668
From @Leedehai on June 19, 2017 20:22
Steps to Reproduce:
In this Makefile snippet, the variable "HCC_LIB_OBJ" in the second line is not properly colored, due to comment at the end of the first line. If the comment is removed, "HCC_LIB_OBJ" is colored correctly. But "HCC_LIB_OBJ"'s colorization should not be affected by whether there is a comment in the preceding line.
Copied from original issue: microsoft/vscode#29048
From @Leedehai on June 21, 2017 0:4
Steps to Reproduce:
In this Makefile snippet's dependency list, if the variable
If I change the order, "addprefix" colorization is fine.
This bug might be present with other functions as well, like "patsubst", but I didn't try..
Copied from original issue: microsoft/vscode#29148
The bundle wants to change directory to the project directory, but it could just fallback on TM_DIRECTORY, or actually, the dir part of TM_MAKE_FILE (preferred over TM_DIRECTORY, when TM_MAKE_FILE is set).
GitHub uses this bundle for Makefile syntax highlighting. Please have a look at this gist:
https://gist.github.com/philtay/5a647f5a573d1052e7f7
The same problem affects TextMate.
Repro:
define foobar
$(and $(filter-out undefined,$(origin 1)),$(1))
endef
define test
command
endef
If a string contains an escaped backtick, the grammar still treats the backtick as the the start of shell-interpolation.
This commit tweaks that, so the syntax highlighting isn't broken from that point on: http://github.com/adamv/make.tmbundle/commit/6071f98f9f60b421602579bead75faaabc5bb24e
I tried using this tm bundle within PhpStorm, (I've successfully used others in the past), however it doesn't seem to work for *.mk
files.
From my limited knowledge of tmbundles, this is because the file extension is missing here.
That said, I tried changing the file locally and it still wouldn't work... I'm sure I'm missing something - I don't know much about how tmbundles work..
Hi,
with the Makefile below, the "build target..." command doesn't work for me. What happens is a brief flash of a white window that disappears immediately, with now effect.
Here is the makefile:
target1 :
c++ blabla.cpp blabla.cpp -o /tmp/blabla
target2 :
c++ blabla.cpp blabla.cpp -o /tmp/blabla
From @akshaya-a on April 26, 2017 20:29
The following lines in CNTK's Makefile appear to break syntax highlighting in VSCode. The first breaks all highlighting after it, and the nested ifdefs don't show up highlighted as "ifdef". I don't know enough about any of this to say whether this is a VSCode or CNTK problem, but thought I'd start here :)
Apologies for weird markdown due to code
CXXVER_GE480:= $(shell expr `$(CXX) -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40800)
ifdef CUDA_PATH
ifndef GDK_INCLUDE_PATH
Steps to Reproduce:
Copied from original issue: microsoft/vscode#25469
As a result, running a makefile that works in Terminal.app from TextMate.app can fail or produce unexpected results.
in this example, "build" in line 1 should not have the same color as "style.css" because it's a phony target
build:
npm run build
style.css: style.scss
sass style.scss
.PHONY: build
This should help to check if a target is not in .PHONY
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.