You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var ft_swig_keywords ='^\s*%\%(addmethods\|apply\|beginfile\|clear\|constant\|define\|echo\|enddef\|endoffile\|extend\|feature\|fragment\|ignore\|import\|importfile\|include\|includefile\|inline\|insert\|keyword\|module\|name\|namewarn\|native\|newobject\|parms\|pragma\|rename\|template\|typedef\|typemap\|types\|varargs\|warn\)'
595
+
# This is the start/end of a block that is copied literally to the processor file (C/C++)
596
+
var ft_swig_verbatim_block_start ='^\s*%{'
597
+
598
+
exportdefFTi()
594
599
ifexists("g:filetype_i")
595
600
exe"setf " .. g:filetype_i
596
601
return
597
602
endif
598
-
# This function checks for an assembly comment the firsttenlines.
603
+
# This function checks for an assembly commentora SWIG keywordor verbatim block inthe first50lines.
599
604
# If not found, assume Progress.
600
605
var lnum =1
601
-
while lnum <=10&& lnum < line('$')
606
+
while lnum <=50&& lnum < line('$')
602
607
varline=getline(lnum)
603
608
ifline=~ '^\s*;'||line=~ '^\*'
604
609
FTasm()
605
610
return
606
-
elseifline!~'^\s*$'||line=~ '^/\*'
607
-
# Not an emptyline: Doesn't look like valid assembly code.
0 commit comments