solargraph 0.39.10 → 0.39.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solargraph/pin/documenting.rb +3 -2
- data/lib/solargraph/source_map/mapper.rb +1 -1
- data/lib/solargraph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 005ae6488ba3fec9c5cd26d961b60ee1085a3020e3e52819b7da9351a6480cdd
|
4
|
+
data.tar.gz: 0f8bf29d0c2d6a4577d4432cf89209d037d51186a5b709869fbcce793e98763e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656cf961069df0d647886a0ea0555182a0be4c3fc3794ed0b70c41decee645ef76cdec1240c6e1c0d389fab842ce33a0dba6df74c49a59efc04359963d2e848d
|
7
|
+
data.tar.gz: 1cb435e7a3b218fde5a0d3e3c9b5f27d376157fd7f316cd29cb4711de81fd5bac133b41c6e95b72249ec11d616fc98d13f6a5486d75b5dedede21e7bd12b43db
|
@@ -53,13 +53,14 @@ module Solargraph
|
|
53
53
|
# @param text [String]
|
54
54
|
# @return [String]
|
55
55
|
def escape_brackets text
|
56
|
-
text.gsub(/(\[[^\]]*\])([^\(]|\z)/, '
|
56
|
+
# text.gsub(/(\[[^\]]*\])([^\(]|\z)/, '!!!^\1^!!!\2')
|
57
|
+
text.gsub('[', '!!!!b').gsub(']', 'e!!!!')
|
57
58
|
end
|
58
59
|
|
59
60
|
# @param text [String]
|
60
61
|
# @return [String]
|
61
62
|
def unescape_brackets text
|
62
|
-
text.gsub('
|
63
|
+
text.gsub('!!!!b', '[').gsub('e!!!!', ']')
|
63
64
|
end
|
64
65
|
end
|
65
66
|
|
@@ -202,7 +202,7 @@ module Solargraph
|
|
202
202
|
code_lines = @code.lines
|
203
203
|
@source.associated_comments.each do |line, comments|
|
204
204
|
src_pos = line ? Position.new(line, code_lines[line].to_s.chomp.index(/[^\s]/) || 0) : Position.new(code_lines.length, 0)
|
205
|
-
com_pos = Position.new(line -
|
205
|
+
com_pos = Position.new(line + 1 - comments.lines.length, 0)
|
206
206
|
process_comment(src_pos, com_pos, comments)
|
207
207
|
end
|
208
208
|
end
|
data/lib/solargraph/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solargraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.39.
|
4
|
+
version: 0.39.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backport
|