broomhlda 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hl/lexers/bash.ay +4 -2
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e4e015b3a863bdd7bb60b140a07cdfe99bb0c3f
4
- data.tar.gz: 00e951c27d40c290ee1d939691cd8cb84b1fb8b2
3
+ metadata.gz: 04659e3e2c39c2a2342cc0cf0a74ada25fb50eb6
4
+ data.tar.gz: 598ef3e76c62d401ef0fc022f586729f4dbee4d0
5
5
  SHA512:
6
- metadata.gz: 168266efc868ba4abb4f9eb77b225490187811eedfd1b18855bd15cf9071da8cc0b90186837ac9cf85fb4e11c5a3f4821b45d60d66c11d6232307db108f716b9
7
- data.tar.gz: 732bc42d202a80811e42d9458d7d6244dcefc93d8b048a42f10fbc981f2765ec4379aed279354e1c10f6fad4ca10ee817e748451d7015477ec7912901b999ffa
6
+ metadata.gz: 4fb54b9d9ffcd0da7a159bb0a8edd9aa3b08c5293d41fd7c72790708310328e7a1bda2567fdc920250f05f908dd3bd178602fc89dff371f67c06c539775512cb
7
+ data.tar.gz: f0d45d7fd361d0f32fcdb97c30911a6dc9b9d6ea25670ba47ebd672f9f1d3908ae69395355e79a22a1c97debbbf075c3dbcffd3277ae81df932445602f4ce2b1
@@ -1,6 +1,8 @@
1
1
  use(require("atomy"))
2
2
  use(require("hl/define"))
3
3
 
4
+ boundary = raw"[\.\-]"
5
+
4
6
  lexer = lexer:
5
7
  name: "Bash"
6
8
  aliases: ["bash", "sh", "ksh"]
@@ -30,8 +32,8 @@ lexer = lexer:
30
32
  any-of(data)
31
33
 
32
34
  lex(basic):
33
- r"\b(if|fi|else|while|do|done|for|then|return|function|case|select|continue|until|esac|elif)\s*\b" is(keyword)
34
- r"\b(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|shopt|source|suspend|test|time|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)\s*\b(?!\.)" is(name.builtin)
35
+ r"\b(?<!#{boundary})(if|fi|else|while|do|done|for|then|return|function|case|select|continue|until|esac|elif)\s*(?!#{boundary})\b" is(keyword)
36
+ r"\b(?<!#{boundary})(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|shopt|source|suspend|test|time|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)\s*(?!#{boundary})\b" is(name.builtin)
35
37
  r"\#.*$" is(comment)
36
38
  r"\\[\w\W]" is(literal.string.escape)
37
39
  r"(\b\w+)(\s*)(=)" is(by-groups(name.variable, text, operator))
metadata CHANGED
@@ -1,24 +1,24 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: broomhlda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Suraci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomy
15
- prerelease: false
15
+ type: :runtime
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.6.3
21
- type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -26,13 +26,13 @@ dependencies:
26
26
  version: 0.6.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- prerelease: false
29
+ type: :development
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '10.4'
35
- type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.4.6
242
+ rubygems_version: 2.5.1
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: broomhlda syntax highlighter and tokenizer