Wed, 28 Aug 2024 04:44:05 -0500
add assign types gopls hint too
362
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
1 | " this keeps indents from jumping more than one level |
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
2 | let b:indent_use_syntax = 0 |
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
3 | |
910
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
4 | syn sync minlines=1500 |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
5 | |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
6 | " Weird behavior in sql heredocs |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
7 | syn clear sqlFold |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
8 | |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
9 | " fix highlight-all-pragma for vN.NN |
272ba799a19e
perl syntax fixes maybe
Meredith Howard <mhoward@roomag.org>
parents:
745
diff
changeset
|
10 | syn match perlStatementInclude "\<\%(use\|no\)\s\+v\(\d\|.\)\+" |
744
7a5823050d74
clean up "after" files
Meredith Howard <mhoward@roomag.org>
parents:
658
diff
changeset
|
11 | |
371 | 12 | " Add match for =method and =func from Pod::Weaver |
226
a155935cbe07
Add match for =method from Pod::Weaver, move to own file
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
13 | syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell |
371 | 14 | syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell |
15 | ||
656
a74ea5b0fc73
Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents:
651
diff
changeset
|
16 | " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases |
a74ea5b0fc73
Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents:
651
diff
changeset
|
17 | syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName |
a74ea5b0fc73
Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents:
651
diff
changeset
|
18 | syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName |
a74ea5b0fc73
Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents:
651
diff
changeset
|
19 | |
a74ea5b0fc73
Fix error marker due to loose function-parameters match
Meredith Howard <mhoward@roomag.org>
parents:
651
diff
changeset
|
20 | " Tweak some colors, making POD stand out less |
362
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
21 | hi! def link perlPOD Comment |
972
93a774dccd46
fix for change in vim-perl
Meredith Howard <mhoward@roomag.org>
parents:
910
diff
changeset
|
22 | hi! def link podOrdinary Comment |
362
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
23 | hi! def link podCommand SpecialComment |
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
24 | hi! def link podCmdText Question |
7c5b0e94b399
Tweak perl settings, move all into after-syntax file
Meredith Howard <mhoward@roomag.org>
parents:
345
diff
changeset
|
25 | hi! def link podFormat StorageClass |
1007
647fa5ff10a1
fix indented heredoc inline sql
Meredith Howard <mhoward@roomag.org>
parents:
972
diff
changeset
|
26 | |
647fa5ff10a1
fix indented heredoc inline sql
Meredith Howard <mhoward@roomag.org>
parents:
972
diff
changeset
|
27 | syntax region perlHereDocSQL matchgroup=perlStringStartEnd start=+<<\~\s*'\z(\%(END_\)\=SQL\)'+ end='^\s*\z1$' contains=@SQL |
647fa5ff10a1
fix indented heredoc inline sql
Meredith Howard <mhoward@roomag.org>
parents:
972
diff
changeset
|
28 | syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*"\z(\%(END_\)\=SQL\)"' end='^\s*\z1$' contains=@perlInterpDQ,@SQL |
647fa5ff10a1
fix indented heredoc inline sql
Meredith Howard <mhoward@roomag.org>
parents:
972
diff
changeset
|
29 | syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*\z(\%(END_\)\=SQL\)' end='^\s*\z1$' contains=@perlInterpDQ,@SQL |