Skip to content

Commit

Permalink
♻️ Move scopes to non-json named file
Browse files Browse the repository at this point in the history
Fixes an issue where github linguist attempts to parse the file as a grammar
  • Loading branch information
nefrob committed Jul 27, 2024
1 parent 110797f commit 92899f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/gen_scopes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync, writeFileSync } from 'fs';

const GRAMMAR_FILE = 'syntaxes/just.tmLanguage.json';
const OUTPUT_FILE = 'syntaxes/scopes.json';
const OUTPUT_FILE = 'syntaxes/scopes';

const grammar = readFileSync(GRAMMAR_FILE, 'utf8');
const regex = /"name"\s*:\s*"(.*?\.just)"/g;
Expand Down
1 change: 1 addition & 0 deletions syntaxes/scopes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["comment.line.number-sign.just","constant.character.escape.just","constant.character.expanded.just","constant.language.boolean.just","constant.language.hex.just","constant.numeric.just","entity.name.function.just","invalid.illegal.name.just","keyword.control.conditional.just","keyword.operator.and.just","keyword.operator.assignment.just","keyword.operator.attribute.end.just","keyword.operator.concat.just","keyword.operator.default.just","keyword.operator.equality.just","keyword.operator.error-suppression.just","keyword.operator.path-join.just","keyword.operator.quiet.just","keyword.operator.recipe.end.just","keyword.other.recipe.prefix.just","keyword.other.recipe.variadic.just","keyword.other.reserved.just","punctuation.optional.just","string.interpolated.escape.just","string.interpolated.escaping.just","string.interpolated.just","string.quoted.double.indented.just","string.quoted.double.just","string.quoted.single.indented.just","string.quoted.single.just","support.function.builtin.just","support.function.system.just","variable.name.alias.just","variable.name.module.just","variable.other.just","variable.parameter.recipe.just"]
38 changes: 0 additions & 38 deletions syntaxes/scopes.json

This file was deleted.

0 comments on commit 92899f4

Please sign in to comment.