Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 34212b5

Browse files
committed
Ascribe.vim v1.1
Use new regular expression from v1.1 of the Ascribe spec.
1 parent af719c7 commit 34212b5

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

autoload/ascribe.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function! <SID>get_attributes(attrs, file)
5858
let item = 0
5959

6060
for a in a:attrs
61-
let match = matchlist(result[item], '\m\C: \([0-9a-zA-Z_.-]*\)$')
61+
let match = matchlist(result[item], '\m\C: \([0-9a-zA-Z_\/.+=-]*\)$')
6262

6363
let item = item + 1
6464

doc/ascribe.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ Welcome to the Ascribe.vim user manual. *ascribe* *ascribe.vim* *vim-ascri
1818
==============================================================================
1919
1. INTRODUCTION *ascribe-intro*
2020

21-
This is the Vim implementation of Ascribe [1]: a simpler alternative to
22-
EditorConfig [5]. It's recommended that you read all the online documentation
21+
This is the Vim implementation of Ascribe: [1] a simpler alternative to
22+
EditorConfig [4]. It's recommended that you read all the online documentation
2323
[1] before using Ascribe.
2424

2525
==============================================================================
2626
2. USAGE *ascribe-usage*
2727

2828
After installing this package, Ascribe.vim will immediately begin setting Vim
2929
options using the values in the `.gitattributes` file of a Git repository. The
30-
defaults are described in the Ascribe specification [2].
30+
defaults are described in the Ascribe specification. [1]
3131

3232
If you update a `.gitattributes` file to modify the attributes for a file
3333
already open in Vim, you can |reload| the buffer to make it use the new
@@ -123,11 +123,11 @@ variable.
123123
3.2. HANDLERS *ascribe-handlers*
124124

125125
Ascribe comes with several attribute handlers built-in for the default
126-
behaviour specified in the Ascribe specification [2], but it is possible to
126+
behaviour specified in the Ascribe specification, [1] but it is possible to
127127
write your own custom handlers to add or change existing behaviour.
128128

129129
If you plan to write a custom handler it is recommended that you read the
130-
Ascribe.vim source code [3] first (don't panic, there's only ~150 lines of
130+
Ascribe.vim source code [2] first (don't panic, there's only ~150 lines of
131131
code) to see more examples of handlers.
132132

133133
..............................................................................
@@ -167,6 +167,10 @@ it by setting/unsetting the attribute in a `.gitattributes` file.
167167
==============================================================================
168168
4. CHANGE LOG *ascribe-changelog*
169169

170+
v1.1 [2021-12-10]~
171+
172+
* Use new regular expression from v1.1 of the the Ascribe spec.
173+
170174
v1.0 [2020-11-01]~
171175

172176
* Initial release.
@@ -178,7 +182,7 @@ Public domain. No rights reserved.
178182

179183
All source code, documentation and associated files packaged with Ascribe.vim
180184
are dedicated to the public domain. A full copy of the CC0 (Creative Commons
181-
Zero v1.0 Universal) [4] public domain dedication should have been provided
185+
Zero v1.0 Universal) [3] public domain dedication should have been provided
182186
with this extension in the `COPYING` file.
183187

184188
The author is not aware of any patent claims which may affect the use,
@@ -188,10 +192,9 @@ modification or distribution of this software.
188192
6. REFERENCES *ascribe-references*
189193

190194
[1]: <https://ascribe.axvr.uk>
191-
[2]: <https://ascribe.axvr.uk/spec>
192-
[3]: <https://github.com/axvr/ascribe.vim>
193-
[4]: <https://creativecommons.org/publicdomain/zero/1.0/legalcode>
194-
[5]: <https://editorconfig.com>
195+
[2]: <https://github.com/axvr/ascribe.vim>
196+
[3]: <https://creativecommons.org/publicdomain/zero/1.0/legalcode>
197+
[4]: <https://editorconfig.com>
195198

196199
------------------------------------------------------------------------------
197200
vim:et:ts=4:sts=4:sw=4:tw=78:ft=help:norl:

0 commit comments

Comments
 (0)