shift-lang 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,7 @@ module Shift
65
65
  @clean = false
66
66
  puts "Error at line #{line_number} character 1 : #{line}"
67
67
  end
68
-
68
+
69
69
  url = statement[:url]
70
70
  when :url_method
71
71
  if url_handler
@@ -6,9 +6,9 @@ module Shift
6
6
 
7
7
  rule(:url_method) { get_keyword.as(:url_method) | post_keyword.as(:url_method) }
8
8
 
9
- rule(:url_variable) { colon >> (identifier.as(:url_variable) | keyword.as(:url_variable)) }
9
+ rule(:url_variable) { colon >> (match('[A-Za-z]') >> match['[A-Za-z0-9_]'].repeat(0)).as(:url_variable) }
10
10
 
11
- rule(:url_token) { (url_variable | (identifier.as(:url_token) | keyword.as(:url_token))) >> fwd_slash.maybe }
11
+ rule(:url_token) { (url_variable | (match('[A-Za-z]') >> match['[A-Za-z0-9_]'].repeat(0)).as(:url_token)) >> fwd_slash.maybe }
12
12
 
13
13
  rule(:url) { fwd_slash >> url_token.repeat(0) }
14
14
 
@@ -1,3 +1,3 @@
1
1
  module Shift
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shift-lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: