Commit 37f3e6fe authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Respect actual @ident_pattern in DocScanner#ident.

When somebody needs to parse \w+ pattern - then it should tell so
explicitly, but #ident will now parse the actual identifier pattern.
parent 65b8b0e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ module JsDuck

    # matches identifier and returns its name
    def ident
      @input.scan(/\w+/)
      @input.scan(@ident_pattern)
    end

    def look(re)