Skip to content

Commit c697c76

Browse files
committed
Fix lint warnings: use robust operators
1 parent 970ed59 commit c697c76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

autoload/pandoc/syntax/color.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function! pandoc#syntax#color#Instrospect(group)
9999
redir END
100100
let hi_output = split(hi_output, '\n')[0]
101101
let parts = split(hi_output, '\s\+')[2:]
102-
if parts[0] == 'links'
102+
if parts[0] ==# 'links'
103103
let info = Hi_Info(parts[2])
104104
let info['linked_to'] = parts[2]
105105
else

syntax/pandoc.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ endif
3636

3737
" cchars used in conceal rules {{{2
3838
" utf-8 defaults (preferred)
39-
if &encoding == 'utf-8'
39+
if &encoding ==# 'utf-8'
4040
let s:cchars = {
4141
\'newline': '↵',
4242
\'image': '▨',
@@ -499,25 +499,25 @@ endif
499499
" }}}3
500500

501501
" Emdashes: {{{3
502-
if &encoding == 'utf-8'
502+
if &encoding ==# 'utf-8'
503503
call s:WithConceal('emdashes', 'syn match pandocEllipses /\([^-]\)\@<=---\([^-]\)\@=/ display', 'conceal cchar=—')
504504
endif
505505
" }}}3
506506

507507
" Endashes: {{{3
508-
if &encoding == 'utf-8'
508+
if &encoding ==# 'utf-8'
509509
call s:WithConceal('endashes', 'syn match pandocEllipses /\([^-]\)\@<=--\([^-]\)\@=/ display', 'conceal cchar=–')
510510
endif
511511
" }}}3
512512

513513
" Ellipses: {{{3
514-
if &encoding == 'utf-8'
514+
if &encoding ==# 'utf-8'
515515
call s:WithConceal('ellipses', 'syn match pandocEllipses /\.\.\./ display', 'conceal cchar=…')
516516
endif
517517
" }}}3
518518

519519
" Quotes: {{{3
520-
if &encoding == 'utf-8'
520+
if &encoding ==# 'utf-8'
521521
call s:WithConceal('quotes', 'syn match pandocBeginQuote /"\</ containedin=pandocEmphasis,pandocStrong,pandocListItem,pandocListItemContinuation,pandocUListItem display', 'conceal cchar=“')
522522
call s:WithConceal('quotes', 'syn match pandocEndQuote /\(\>[[:punct:]]*\)\@<="[[:blank:][:punct:]\n]\@=/ containedin=pandocEmphasis,pandocStrong,pandocUListItem,pandocListItem,pandocListItemContinuation display', 'conceal cchar=”')
523523
endif

0 commit comments

Comments
 (0)