├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmignore ├── Gruntfile.coffee ├── LICENSE.md ├── README.md ├── benchmark ├── benchmark.coffee ├── bootstrap.css ├── bootstrap.min.css ├── large.js └── large.min.js ├── package.json ├── spec ├── fixtures │ ├── apply-end-pattern-last.cson │ ├── c-plus-plus.json │ ├── c.json │ ├── captures-patterns.cson │ ├── coffee-script.json │ ├── content-name.json │ ├── css.cson │ ├── file-types-with-slashes.json │ ├── forever.cson │ ├── git-commit.json │ ├── hello.cson │ ├── html-css-inline.cson │ ├── html-erb.json │ ├── html-rails.json │ ├── html.json │ ├── hyperlink.json │ ├── imaginary.cson │ ├── include-external-repository-rule.cson │ ├── infinite-loop.cson │ ├── injection-with-include.cson │ ├── java.json │ ├── javascript-regex.json │ ├── javascript.json │ ├── json.json │ ├── latex.cson │ ├── loops.json │ ├── makefile.json │ ├── multiline.cson │ ├── nested-captures.cson │ ├── no-line-length-limit.cson │ ├── no-scope-name.json │ ├── normal-injection-selector.cson │ ├── objective-c-plus-plus.json │ ├── objective-c.json │ ├── php.json │ ├── php2.json │ ├── prefixed-injection-selector.cson │ ├── python-regex.cson │ ├── python.cson │ ├── ruby-on-rails.json │ ├── ruby.json │ ├── sass.json │ ├── scope-names-with-placeholders.cson │ ├── scss.json │ ├── sql-injection.cson │ ├── sql.json │ ├── text.json │ ├── thrift.cson │ └── todo.json ├── grammar-registry-spec.coffee ├── grammar-spec.coffee ├── scope-selector-spec.coffee └── spec-helper.coffee └── src ├── first-mate.coffee ├── grammar-registry.coffee ├── grammar.coffee ├── injections.coffee ├── null-grammar.coffee ├── pattern.coffee ├── rule.coffee ├── scanner.coffee ├── scope-selector-matchers.coffee ├── scope-selector-parser.pegjs └── scope-selector.coffee /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .DS_Store 3 | npm-debug.log 4 | lib/ 5 | api.json 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/.npmignore -------------------------------------------------------------------------------- /Gruntfile.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/Gruntfile.coffee -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/benchmark.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/benchmark/benchmark.coffee -------------------------------------------------------------------------------- /benchmark/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/benchmark/bootstrap.css -------------------------------------------------------------------------------- /benchmark/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/benchmark/bootstrap.min.css -------------------------------------------------------------------------------- /benchmark/large.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/benchmark/large.js -------------------------------------------------------------------------------- /benchmark/large.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/benchmark/large.min.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/package.json -------------------------------------------------------------------------------- /spec/fixtures/apply-end-pattern-last.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/apply-end-pattern-last.cson -------------------------------------------------------------------------------- /spec/fixtures/c-plus-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/c-plus-plus.json -------------------------------------------------------------------------------- /spec/fixtures/c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/c.json -------------------------------------------------------------------------------- /spec/fixtures/captures-patterns.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/captures-patterns.cson -------------------------------------------------------------------------------- /spec/fixtures/coffee-script.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/coffee-script.json -------------------------------------------------------------------------------- /spec/fixtures/content-name.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/content-name.json -------------------------------------------------------------------------------- /spec/fixtures/css.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/css.cson -------------------------------------------------------------------------------- /spec/fixtures/file-types-with-slashes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/file-types-with-slashes.json -------------------------------------------------------------------------------- /spec/fixtures/forever.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/forever.cson -------------------------------------------------------------------------------- /spec/fixtures/git-commit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/git-commit.json -------------------------------------------------------------------------------- /spec/fixtures/hello.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/hello.cson -------------------------------------------------------------------------------- /spec/fixtures/html-css-inline.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/html-css-inline.cson -------------------------------------------------------------------------------- /spec/fixtures/html-erb.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/html-erb.json -------------------------------------------------------------------------------- /spec/fixtures/html-rails.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/html-rails.json -------------------------------------------------------------------------------- /spec/fixtures/html.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/html.json -------------------------------------------------------------------------------- /spec/fixtures/hyperlink.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/hyperlink.json -------------------------------------------------------------------------------- /spec/fixtures/imaginary.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/imaginary.cson -------------------------------------------------------------------------------- /spec/fixtures/include-external-repository-rule.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/include-external-repository-rule.cson -------------------------------------------------------------------------------- /spec/fixtures/infinite-loop.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/infinite-loop.cson -------------------------------------------------------------------------------- /spec/fixtures/injection-with-include.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/injection-with-include.cson -------------------------------------------------------------------------------- /spec/fixtures/java.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/java.json -------------------------------------------------------------------------------- /spec/fixtures/javascript-regex.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/javascript-regex.json -------------------------------------------------------------------------------- /spec/fixtures/javascript.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/javascript.json -------------------------------------------------------------------------------- /spec/fixtures/json.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/json.json -------------------------------------------------------------------------------- /spec/fixtures/latex.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/latex.cson -------------------------------------------------------------------------------- /spec/fixtures/loops.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/loops.json -------------------------------------------------------------------------------- /spec/fixtures/makefile.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/makefile.json -------------------------------------------------------------------------------- /spec/fixtures/multiline.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/multiline.cson -------------------------------------------------------------------------------- /spec/fixtures/nested-captures.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/nested-captures.cson -------------------------------------------------------------------------------- /spec/fixtures/no-line-length-limit.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/no-line-length-limit.cson -------------------------------------------------------------------------------- /spec/fixtures/no-scope-name.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "I have no scopeName" 3 | } 4 | -------------------------------------------------------------------------------- /spec/fixtures/normal-injection-selector.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/normal-injection-selector.cson -------------------------------------------------------------------------------- /spec/fixtures/objective-c-plus-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/objective-c-plus-plus.json -------------------------------------------------------------------------------- /spec/fixtures/objective-c.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/objective-c.json -------------------------------------------------------------------------------- /spec/fixtures/php.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/php.json -------------------------------------------------------------------------------- /spec/fixtures/php2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/php2.json -------------------------------------------------------------------------------- /spec/fixtures/prefixed-injection-selector.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/prefixed-injection-selector.cson -------------------------------------------------------------------------------- /spec/fixtures/python-regex.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/python-regex.cson -------------------------------------------------------------------------------- /spec/fixtures/python.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/python.cson -------------------------------------------------------------------------------- /spec/fixtures/ruby-on-rails.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/ruby-on-rails.json -------------------------------------------------------------------------------- /spec/fixtures/ruby.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/ruby.json -------------------------------------------------------------------------------- /spec/fixtures/sass.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/sass.json -------------------------------------------------------------------------------- /spec/fixtures/scope-names-with-placeholders.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/scope-names-with-placeholders.cson -------------------------------------------------------------------------------- /spec/fixtures/scss.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/scss.json -------------------------------------------------------------------------------- /spec/fixtures/sql-injection.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/sql-injection.cson -------------------------------------------------------------------------------- /spec/fixtures/sql.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/sql.json -------------------------------------------------------------------------------- /spec/fixtures/text.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/text.json -------------------------------------------------------------------------------- /spec/fixtures/thrift.cson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/thrift.cson -------------------------------------------------------------------------------- /spec/fixtures/todo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/fixtures/todo.json -------------------------------------------------------------------------------- /spec/grammar-registry-spec.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/grammar-registry-spec.coffee -------------------------------------------------------------------------------- /spec/grammar-spec.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/grammar-spec.coffee -------------------------------------------------------------------------------- /spec/scope-selector-spec.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/spec/scope-selector-spec.coffee -------------------------------------------------------------------------------- /spec/spec-helper.coffee: -------------------------------------------------------------------------------- 1 | require('grim').includeDeprecatedAPIs = false 2 | -------------------------------------------------------------------------------- /src/first-mate.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/first-mate.coffee -------------------------------------------------------------------------------- /src/grammar-registry.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/grammar-registry.coffee -------------------------------------------------------------------------------- /src/grammar.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/grammar.coffee -------------------------------------------------------------------------------- /src/injections.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/injections.coffee -------------------------------------------------------------------------------- /src/null-grammar.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/null-grammar.coffee -------------------------------------------------------------------------------- /src/pattern.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/pattern.coffee -------------------------------------------------------------------------------- /src/rule.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/rule.coffee -------------------------------------------------------------------------------- /src/scanner.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/scanner.coffee -------------------------------------------------------------------------------- /src/scope-selector-matchers.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/scope-selector-matchers.coffee -------------------------------------------------------------------------------- /src/scope-selector-parser.pegjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/scope-selector-parser.pegjs -------------------------------------------------------------------------------- /src/scope-selector.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/atom/first-mate/HEAD/src/scope-selector.coffee --------------------------------------------------------------------------------