%YAML 1.2 --- # http://www.sublimetext.com/docs/3/syntax.html # Converted from Makefile Improved by Kay-Uwe (Kiwi) Lorenz # Includes a few improvement like special-target, a bit more shell command, better variable recognition, fix ifeq/ifneq missing highlight ... name: Makefile file_extensions: - make - GNUmakefile - makefile - Makefile - OCamlMakefile - mak - mk first_line_match: '^#!\s*/usr/bin/make\b' scope: source.makefile contexts: main: - include: comment - include: directive - match: '^ *((export)\s+)?((?:\w|[-_])+)\s*((\?|\+|::|:)?=)' captures: 2: keyword.control.makefile 3: variable.other.makefile 4: keyword.operator.assignment.makefile push: - meta_content_scope: string.unquoted.makefile - include: variable - include: line_continuation - match: (? | < | & | \| )' scope: keyword.operator.makefile - match: '(?x) \b(?:cp|mv|rm|cat|ls|\[|\]|find|grep|awk|perl|mkdir|rmdir|cd|cwd|pwd|svn|git|hg|scp|make|ps|sed|python|ruby|setenv|export|echo|test|source|ln|touch)\b' scope: support.function.makefile - include: line_continuation - match: \b(true|false)\b scope: constant.other.makefile - include: variable string: - match: '(?