broomhlda 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hl/lexers/bash.ay +4 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04659e3e2c39c2a2342cc0cf0a74ada25fb50eb6
|
4
|
+
data.tar.gz: 598ef3e76c62d401ef0fc022f586729f4dbee4d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fb54b9d9ffcd0da7a159bb0a8edd9aa3b08c5293d41fd7c72790708310328e7a1bda2567fdc920250f05f908dd3bd178602fc89dff371f67c06c539775512cb
|
7
|
+
data.tar.gz: f0d45d7fd361d0f32fcdb97c30911a6dc9b9d6ea25670ba47ebd672f9f1d3908ae69395355e79a22a1c97debbbf075c3dbcffd3277ae81df932445602f4ce2b1
|
data/lib/hl/lexers/bash.ay
CHANGED
@@ -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
|
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
|
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.
|
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:
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: atomy
|
15
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|
242
|
+
rubygems_version: 2.5.1
|
243
243
|
signing_key:
|
244
244
|
specification_version: 4
|
245
245
|
summary: broomhlda syntax highlighter and tokenizer
|