Procházet zdrojové kódy

Formatting - use destructuring in grammar

pull/1/head
Max Brunsfeld před 12 roky
rodič
revize
d7b2bff2ce
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      grammar.coffee

+ 3
- 3
grammar.coffee Zobrazit soubor

@ -1,5 +1,5 @@
compiler = require("tree-sitter-compiler")
{ choice, err, repeat, seq, keyword, optional, token, prec } = compiler.rules
{ grammar, rules } = require("tree-sitter-compiler")
{ choice, err, repeat, seq, keyword, optional, token, prec } = rules
commaSep = (rule) ->
optional(commaSep1(rule))
@ -7,7 +7,7 @@ commaSep = (rule) ->
commaSep1 = (rule) ->
seq(rule, repeat(seq(",", rule)))
module.exports = compiler.grammar
module.exports = grammar
name: 'c',
ubiquitous: -> [@comment, /\s/]

Načítá se…
Zrušit
Uložit