mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Treat $base in textmate grammars as if it is $self
$base works as $self worked previously. $self will need to be fixed. If inside a embedded grammar $self refers to the embedded grammar while $base refers to the overall grammar.
This commit is contained in:
@@ -75,7 +75,7 @@ class TextMateGrammar
|
||||
ruleForInclude: (name) ->
|
||||
if name[0] == "#"
|
||||
@repository[name[1..]]
|
||||
else if name == "$self"
|
||||
else if name == "$self" or name == "$base"
|
||||
@initialRule
|
||||
else
|
||||
TextMateBundle = require 'text-mate-bundle'
|
||||
|
||||
Reference in New Issue
Block a user