summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-08-07 09:59:49 +1000
committerChris Johns <chrisj@rtems.org>2017-08-07 09:59:49 +1000
commit8b96e17c8abf61d97dd224b23370dc148f32fe3c (patch)
treee8eb043159d145ffbbbf9c23ef872226de5ab059 /source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim
parent4.12: Fix SIS patch URL (diff)
downloadrtems-source-builder-8b96e17c8abf61d97dd224b23370dc148f32fe3c.tar.bz2
doc: Remove in source documentation and the asciidoc package
The RSB documentation is now in ReST format and part of the RTEMS Documentation project. See https://docs.rtems.org/. Remove support for the GPL based asciidoc tool and remove the asciidoc package from the RSB. Add the Python Markdown package and update the reporter to use Markdown for HTML generation. The resuling HTML report is a single self contained file. Closes #3047.
Diffstat (limited to 'source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim')
-rw-r--r--source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim53
1 files changed, 0 insertions, 53 deletions
diff --git a/source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim b/source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim
deleted file mode 100644
index c8f7028..0000000
--- a/source-builder/sb/asciidoc/vim/ftdetect/asciidoc_filetype.vim
+++ /dev/null
@@ -1,53 +0,0 @@
-" Vim filetype detection file
-" Language: AsciiDoc
-" Author: Stuart Rackham <srackham@gmail.com>
-" Last Change: AsciiDoc 8.2.0
-" URL: http://www.methods.co.nz/asciidoc/
-" Licence: GPL (http://www.gnu.org)
-" Remarks: Vim 6 or greater
-
-" COMMENT OUT ONE OF THE TWO FOLLOWING COMMANDS
-" The first sets asciidoc syntax highlighting on all .txt files, the second
-" only existing files *.txt that appear to be AsciiDoc files.
-
-au BufNewFile,BufRead *.asciidoc,*.txt,README,TODO,CHANGELOG,NOTES setfiletype asciidoc
-"au BufRead *.txt,README,TODO,CHANGELOG,NOTES call s:FTasciidoc()
-
-" This function checks for a valid AsciiDoc document title after first
-" skipping any leading comments.
-function! s:FTasciidoc()
- let in_comment_block = 0
- let n = 1
- while n < 50
- let line = getline(n)
- let n = n + 1
- if line =~ '^/\{4,}$'
- if ! in_comment_block
- let in_comment_block = 1
- else
- let in_comment_block = 0
- endif
- continue
- endif
- if in_comment_block
- continue
- endif
- if line !~ '\(^//\)\|\(^\s*$\)'
- break
- endif
- endwhile
- if line !~ '.\{3,}'
- return
- endif
- let len = len(line)
- let line = getline(n)
- if line !~ '[-=]\{3,}'
- return
- endif
- if len < len(line) - 3 || len > len(line) + 3
- return
- endif
- setfiletype asciidoc
-endfunction
-
-" vim: et sw=2 ts=2 sts=2: