Преглед изворни кода

Formatting - use destructuring in grammar

pull/1/head
Max Brunsfeld пре 12 година
родитељ
комит
d7b2bff2ce
1 измењених фајлова са 3 додато и 3 уклоњено
  1. +3
    -3
      grammar.coffee

+ 3
- 3
grammar.coffee Прегледај датотеку

@ -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/]

Loading…
Откажи
Сачувај