Comments (6)
@petdance I have some significant changes to the Pod syntax file that also address spell checking but I haven't looked at them for a few months so I might not get to creating a PR until the end of next week.
Did you want to me make an intermediate one that fixes this and maybe addresses a couple of other simple spell-check issues?
from vim-perl.
Can you tell what specifically in the commit broke it?
@dkearns any ideas?
from vim-perl.
I think the following will restore the old behaviour?
diff --git a/syntax/pod.vim b/syntax/pod.vim
index e6f8335..fec8915 100644
--- a/syntax/pod.vim
+++ b/syntax/pod.vim
@@ -43,7 +43,7 @@ syn match podForKeywd "\S\+" contained contains=@NoSpell
" An indented line, to be displayed verbatim
syn region podVerbatim start="^\s\+\S.*$" end="^\ze\s*$" end="^\ze=cut\>" contains=@NoSpell
-syn region podOrdinary start="^\S.*$" end="^\ze\s*$" end="^\ze=cut\>" contains=podFormat,podSpecial,@NoSpell
+syn region podOrdinary start="^\S.*$" end="^\ze\s*$" end="^\ze=cut\>" contains=podFormat,podSpecial,@Spell
" Inline textual items handled specially by POD
syn match podSpecial "\(\<\|&\)\I\i*\(::\I\i*\)*([^)]*)" contains=@NoSpell
from vim-perl.
-syn region podOrdinary start="^\S.*$" end="^\ze\s*$" end="^\ze=cut\>" contains=podFormat,podSpecial,@NoSpell +syn region podOrdinary start="^\S.*$" end="^\ze\s*$" end="^\ze=cut\>" contains=podFormat,podSpecial,@Spell
Confirmed. That fixes it.
Also, when it did work, it apparently only worked if the DATA section was marked with END and didn't work if it was marked with __DATA__
Found the issue here: #42. It looks like the change was made only because of personal preference. Most people think __DATA__ and __END__ are interchangeable and the documentation in perlpod makes no distinction here: https://perldoc.perl.org/perlpod#Embedding-Pods-in-Perl-Modules . there's also plenty of code on CPAN and the wild that has POD after a __DATA__ section (google filetype:pm "__DATA__ =head1")
from vim-perl.
Huh, I've never heard of anyone having POD in __DATA__
, but clearly the docs say it's OK. Thanks for the research.
from vim-perl.
Did you want to me make an intermediate one that fixes this and maybe addresses a couple of other simple spell-check issues?
Yes, please.
from vim-perl.
Related Issues (20)
- Prep for 2022 Perl editor/IDE hackathton HOT 3
- Use suffixesadd for .pm HOT 6
- Make text objects work properly with reference to enumerated list HOT 1
- Auto-close pod command paragraphs and here-docs HOT 1
- Setting perlpath (and path) doesn't escape special characters
- Option to prevent perl compiler from adding -W switch
- Release for Vim 9 HOT 8
- Investigate changes in Vim 9 HOT 2
- Look at what's new in vim 9 HOT 2
- bad highlighting for qr{[…#…]}x
- comments highlighted in qr{} even without /x HOT 1
- : no longer a word stop HOT 3
- indent/raku.vim bug HOT 3
- undef, defined, eq, etc. not highlighted HOT 1
- $+{key} confuses perl syntax detection
- ftplugin/pod.vim unmaps ]] twice but does not unmap [[ HOT 5
- Update vim-perl to be included in Vim 9.1 HOT 2
- security fix from the Vim project HOT 2
- Multiline comments formatting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-perl.