Giter Site home page Giter Site logo

Comments (6)

dkearns avatar dkearns commented on June 13, 2024 1

@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.

petdance avatar petdance commented on June 13, 2024

Can you tell what specifically in the commit broke it?

@dkearns any ideas?

from vim-perl.

dkearns avatar dkearns commented on June 13, 2024

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.

grr avatar grr commented on June 13, 2024
-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.

petdance avatar petdance commented on June 13, 2024

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.

petdance avatar petdance commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.