summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-03-09 15:01:03 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:32 -0700
commit49c95b1aedb9bf2fe4023d595475ec5c80319ac0 (patch)
treefe001d88221b25930f50c49bd775311625823e2e /scripts/lib
parentec6ee74a46e7f8cfb62e3d108bbbacb53fefec46 (diff)
Response to comment on r292d0b238dde.
Diffstat (limited to 'scripts/lib')
-rwxr-xr-xscripts/lib/fontbuild/features.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/fontbuild/features.py b/scripts/lib/fontbuild/features.py
index 2de484d..d3f86c6 100755
--- a/scripts/lib/fontbuild/features.py
+++ b/scripts/lib/fontbuild/features.py
@@ -151,7 +151,10 @@ class FilterFeatureWriter(FDKSyntaxFeatureWriter):
def compileFeatureRE(name):
- """Compiles a feature-matching regex using feaTool's template."""
+ """Compiles a feature-matching regex."""
+
+ # this is the pattern used internally by feaTools:
+ # https://github.com/typesupply/feaTools/blob/master/Lib/feaTools/parser.py
featureRE = list(parser.featureContentRE)
featureRE.insert(2, name)
featureRE.insert(6, name)