twostroke 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/twostroke/tokens.rb +1 -1
  2. metadata +1 -1
@@ -11,7 +11,7 @@ module Twostroke
11
11
  *%w(function var if instanceof in else for while do this return throw typeof try catch finally void null new).map do |w|
12
12
  [ w.upcase.intern, /#{w}(?=[^a-zA-Z_0-9])/ ]
13
13
  end,
14
- [ :BAREWORD, /[a-zA-Z_][a-zA-Z_0-9]*/, ->m { m[0] } ],
14
+ [ :BAREWORD, /[a-zA-Z_\$][\$a-zA-Z_0-9]*/, ->m { m[0] } ],
15
15
 
16
16
  [ :STRING, /(["'])((\\.|[^\1])*?[^\1\\]?)\1/, ->m do
17
17
  m[2].gsub(/\\([bfnrt])/) { |m|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twostroke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: