gtksourceview3 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +59 -0
- data/ext/gtksourceview3/depend +6 -0
- data/ext/gtksourceview3/extconf.rb +67 -0
- data/ext/gtksourceview3/gtksourceview3.def +2 -0
- data/ext/gtksourceview3/rbgtksource.c +53 -0
- data/ext/gtksourceview3/rbgtksourcebuffer.c +318 -0
- data/ext/gtksourceview3/rbgtksourcegutter.c +82 -0
- data/ext/gtksourceview3/rbgtksourcegutterrenderer.c +143 -0
- data/ext/gtksourceview3/rbgtksourcegutterrendererpixbuf.c +42 -0
- data/ext/gtksourceview3/rbgtksourcegutterrenderertext.c +40 -0
- data/ext/gtksourceview3/rbgtksourcelanguage.c +124 -0
- data/ext/gtksourceview3/rbgtksourcelanguagemanager.c +114 -0
- data/ext/gtksourceview3/rbgtksourcemark.c +85 -0
- data/ext/gtksourceview3/rbgtksourcemarkattributes.c +77 -0
- data/ext/gtksourceview3/rbgtksourceprintcompositor.c +171 -0
- data/ext/gtksourceview3/rbgtksourcestyle.c +42 -0
- data/ext/gtksourceview3/rbgtksourcestylescheme.c +72 -0
- data/ext/gtksourceview3/rbgtksourcestyleschememanager.c +140 -0
- data/ext/gtksourceview3/rbgtksourceundomanager.c +83 -0
- data/ext/gtksourceview3/rbgtksourceview.c +94 -0
- data/ext/gtksourceview3/rbgtksourceview3conversions.h +50 -0
- data/ext/gtksourceview3/rbgtksourceview3private.h +53 -0
- data/extconf.rb +49 -0
- data/lib/2.0/gtksourceview3.so +0 -0
- data/lib/2.1/gtksourceview3.so +0 -0
- data/lib/2.2/gtksourceview3.so +0 -0
- data/lib/gtksourceview3.rb +20 -0
- data/lib/gtksourceview3/deprecated.rb +47 -0
- data/sample/sourcelanguagemanager.rb +21 -0
- data/sample/test.rb +32 -0
- data/test/run-test.rb +44 -0
- data/test/test_mark_attributes.rb +26 -0
- data/test/test_source_gutter_renderer.rb +33 -0
- data/test/test_source_language_manager.rb +46 -0
- data/test/test_source_view.rb +57 -0
- data/vendor/local/bin/libgtksourceview-3.0-1.dll +0 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +65 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksource.h +54 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcebuffer.h +213 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletion.h +142 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioncontext.h +95 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletioninfo.h +78 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionitem.h +70 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionproposal.h +97 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcecompletionprovider.h +137 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceencoding.h +54 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h +115 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefileloader.h +122 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcefilesaver.h +147 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutter.h +90 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderer.h +229 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrendererpixbuf.h +87 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcegutterrenderertext.h +83 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguage.h +85 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcelanguagemanager.h +84 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemark.h +71 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcemarkattributes.h +100 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceprintcompositor.h +175 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchcontext.h +133 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcesearchsettings.h +85 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyle.h +45 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestylescheme.h +109 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcestyleschememanager.h +86 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourcetypes.h +101 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceundomanager.h +75 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceutils.h +34 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview-typebuiltins.h +88 -0
- data/vendor/local/include/gtksourceview-3.0/gtksourceview/gtksourceview.h +213 -0
- data/vendor/local/lib/girepository-1.0/GtkSource-3.0.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-3.0.la +41 -0
- data/vendor/local/lib/locale/ar/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/as/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ast/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/az/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/be/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bn_IN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/bs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ca@valencia/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cs/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/cy/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/da/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/de/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/dz/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/el/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en@shaw/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en_CA/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/en_GB/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eo/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/es/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/et/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/eu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/fr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ga/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/gu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/he/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/hu/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/id/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/it/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ja/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/kn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ko/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/lv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mai/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ml/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/mr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ms/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nb/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ne/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/nn/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/oc/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/or/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pa/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/pt_BR/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ro/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ru/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/rw/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/si/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sl/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sq/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sr@latin/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/sv/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ta/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/te/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tg/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/th/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/tr/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/ug/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/uk/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/vi/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/xh/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_CN/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_HK/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/locale/zh_TW/LC_MESSAGES/gtksourceview-3.0.mo +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-3.0.pc +12 -0
- data/vendor/local/share/gir-1.0/GtkSource-3.0.gir +11360 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceBuffer.html +2143 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletion.html +1129 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionContext.html +397 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionInfo.html +348 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionItem.html +367 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProposal.html +572 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionProvider.html +750 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceCompletionWords.html +345 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceEncoding.html +366 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFile.html +563 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileLoader.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceFileSaver.html +962 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutter.html +490 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRenderer.html +1700 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererPixbuf.html +468 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceGutterRendererText.html +228 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguage.html +584 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceLanguageManager.html +476 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMark.html +310 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceMarkAttributes.html +897 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourcePrintCompositor.html +2149 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchContext.html +1116 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceSearchSettings.html +606 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyle.html +358 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleScheme.html +398 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceStyleSchemeManager.html +463 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceUndoManager.html +462 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/GtkSourceView.html +1990 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/annotation-glossary.html +81 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-0.html +43 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-10.html +195 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-12.html +39 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-14.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-3-4.html +35 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-deprecated.html +95 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/api-index-full.html +2187 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch01.html +119 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/ch02.html +47 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0-GtkSourceUtils.html +154 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/gtksourceview-3.0.devhelp2 +601 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.html +146 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/index.sgml +882 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-reference.html +873 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/lang-tutorial.html +654 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/object-tree.html +71 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style-reference.html +283 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-3.0/up.png +0 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/R.lang +2199 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/actionscript.lang +268 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ada.lang +221 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ansforth94.lang +729 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/asp.lang +1097 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/automake.lang +330 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/awk.lang +138 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bennugd.lang +267 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bibtex.lang +93 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/bluespec.lang +188 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/boo.lang +257 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/c.lang +332 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cg.lang +232 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/changelog.lang +93 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/chdr.lang +43 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cmake.lang +408 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cobol.lang +647 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cpp.lang +120 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/csharp.lang +282 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/css.lang +542 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/cuda.lang +292 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/d.lang +318 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/def.lang +262 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/desktop.lang +300 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/diff.lang +85 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/docbook.lang +476 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dosbatch.lang +167 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dot.lang +140 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dpatch.lang +48 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/dtd.lang +140 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/eiffel.lang +239 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/erlang.lang +258 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/forth.lang +235 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fortran.lang +591 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/fsharp.lang +325 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gap.lang +85 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gdb-log.lang +152 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/glsl.lang +483 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/go.lang +275 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gtk-doc.lang +91 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/gtkrc.lang +116 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haddock.lang +162 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell-literate.lang +59 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/haskell.lang +228 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/html.lang +281 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl-exelis.lang +620 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/idl.lang +154 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/imagej.lang +784 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ini.lang +95 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/j.lang +240 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/java.lang +190 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/javascript.lang +339 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/json.lang +123 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/julia.lang +378 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language.dtd +73 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language.rng +373 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/language2.rng +482 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/latex.lang +600 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/lex.lang +209 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/libtool.lang +56 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/llvm.lang +315 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/lua.lang +157 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/m4.lang +1375 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/makefile.lang +193 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mallard.lang +124 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/markdown.lang +402 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/matlab.lang +171 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mediawiki.lang +327 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/modelica.lang +262 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/mxml.lang +65 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/nemerle.lang +263 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/netrexx.lang +319 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/nsis.lang +88 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/objc.lang +120 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/objj.lang +128 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocaml.lang +302 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ocl.lang +139 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/octave.lang +859 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ooc.lang +265 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/opal.lang +343 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/opencl.lang +600 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/pascal.lang +268 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/perl.lang +1045 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/php.lang +363 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/pkgconfig.lang +62 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/po.lang +94 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/prolog.lang +249 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/protobuf.lang +101 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/puppet.lang +697 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/python.lang +472 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/python3.lang +192 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/rpmspec.lang +212 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/rst.lang +142 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/ruby.lang +750 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scala.lang +384 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scheme.lang +302 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/scilab.lang +209 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sh.lang +499 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sml.lang +201 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sparql.lang +448 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sql.lang +618 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/sweave.lang +67 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/systemverilog.lang +263 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/t2t.lang +150 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/tcl.lang +146 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/texinfo.lang +448 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vala.lang +365 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vbnet.lang +245 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/verilog.lang +476 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/vhdl.lang +248 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/xml.lang +220 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/xslt.lang +108 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/yacc.lang +177 -0
- data/vendor/local/share/gtksourceview-3.0/language-specs/yaml.lang +214 -0
- data/vendor/local/share/gtksourceview-3.0/styles/classic.xml +121 -0
- data/vendor/local/share/gtksourceview-3.0/styles/cobalt.xml +148 -0
- data/vendor/local/share/gtksourceview-3.0/styles/kate.xml +171 -0
- data/vendor/local/share/gtksourceview-3.0/styles/oblivion.xml +129 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-dark.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/solarized-light.xml +101 -0
- data/vendor/local/share/gtksourceview-3.0/styles/styles.rng +142 -0
- data/vendor/local/share/gtksourceview-3.0/styles/tango.xml +130 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +13 -0
- data/vendor/local/share/license/gtksourceview/COPYING +504 -0
- metadata +389 -0
@@ -0,0 +1,193 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
Author: Paolo Borelli <pborelli@katamail.com>
|
5
|
+
Copyright (C) 2005 Paolo Borelli <pborelli@katamail.com>
|
6
|
+
Copyright (C) 2005 Ricardo Lenz
|
7
|
+
|
8
|
+
GtkSourceView is free software; you can redistribute it and/or
|
9
|
+
modify it under the terms of the GNU Lesser General Public
|
10
|
+
License as published by the Free Software Foundation; either
|
11
|
+
version 2.1 of the License, or (at your option) any later version.
|
12
|
+
|
13
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
14
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
Lesser General Public License for more details.
|
17
|
+
|
18
|
+
You should have received a copy of the GNU Lesser General Public
|
19
|
+
License along with this library; if not, write to the Free Software
|
20
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
21
|
+
|
22
|
+
-->
|
23
|
+
<language id="makefile" _name="Makefile" version="2.0" _section="Source">
|
24
|
+
<metadata>
|
25
|
+
<property name="mimetypes">text/x-makefile</property>
|
26
|
+
<property name="globs">[Mm]akefile;GNUmakefile;*.make;*.mak;*.mk</property>
|
27
|
+
<property name="line-comment-start">#</property>
|
28
|
+
</metadata>
|
29
|
+
|
30
|
+
<styles>
|
31
|
+
<style id="variable" _name="Variable" map-to="def:type"/>
|
32
|
+
<style id="assignment-rhs" _name="Assignment Right Hand Side"/>
|
33
|
+
<style id="assignment-lhs" _name="Assignment Left Hand Side"/>
|
34
|
+
<style id="targets" _name="targets" map-to="def:function"/>
|
35
|
+
<style id="prereq" _name="prereq"/>
|
36
|
+
<style id="command" _name="command"/>
|
37
|
+
<!-- Translators: Trailing Tabs refers to tabulation characters present at
|
38
|
+
the end of the line -->
|
39
|
+
<style id="trailing-tab" _name="Trailing Tab"/>
|
40
|
+
<style id="function" _name="function" map-to="def:function"/>
|
41
|
+
<style id="keyword" _name="keyword" map-to="def:keyword"/>
|
42
|
+
</styles>
|
43
|
+
|
44
|
+
<definitions>
|
45
|
+
<replace id="sh:sh" ref="command"/>
|
46
|
+
<replace id="sh:variable" ref="sh-variable"/>
|
47
|
+
|
48
|
+
<define-regex id="variable">[a-zA-Z_][a-zA-Z0-9_]*</define-regex>
|
49
|
+
|
50
|
+
<context id="variable-1">
|
51
|
+
<match>\$\((\%{variable})\)</match>
|
52
|
+
<include>
|
53
|
+
<context sub-pattern="1" style-ref="variable"/>
|
54
|
+
</include>
|
55
|
+
</context>
|
56
|
+
|
57
|
+
<context id="variable-2">
|
58
|
+
<match>\$\{(\%{variable})\}</match>
|
59
|
+
<include>
|
60
|
+
<context sub-pattern="1" style-ref="variable"/>
|
61
|
+
</include>
|
62
|
+
</context>
|
63
|
+
|
64
|
+
<context id="variable">
|
65
|
+
<include>
|
66
|
+
<context ref="variable-1"/>
|
67
|
+
<context ref="variable-2"/>
|
68
|
+
</include>
|
69
|
+
</context>
|
70
|
+
|
71
|
+
<context id="sh-variable">
|
72
|
+
<include>
|
73
|
+
<context ref="variable"/>
|
74
|
+
<context ref="sh:variable" original="true"/>
|
75
|
+
</include>
|
76
|
+
</context>
|
77
|
+
|
78
|
+
<context id="string">
|
79
|
+
<include>
|
80
|
+
<!-- skip escaped characters -->
|
81
|
+
<context>
|
82
|
+
<match>\\.</match>
|
83
|
+
</context>
|
84
|
+
<context ref="def:string"/>
|
85
|
+
</include>
|
86
|
+
</context>
|
87
|
+
|
88
|
+
<context id="assignment-rhs" style-ref="assignment-rhs" end-at-line-end="true">
|
89
|
+
<start></start>
|
90
|
+
<include>
|
91
|
+
<context ref="def:line-continue"/>
|
92
|
+
<context ref="def:shell-like-comment"/>
|
93
|
+
<context ref="variable"/>
|
94
|
+
<context ref="string"/>
|
95
|
+
<context ref="def:single-quoted-string"/>
|
96
|
+
<context ref="sh:backtick-subshell"/>
|
97
|
+
</include>
|
98
|
+
</context>
|
99
|
+
|
100
|
+
<context id="command" style-ref="command" extend-parent="false" end-at-line-end="true">
|
101
|
+
<start></start>
|
102
|
+
<include>
|
103
|
+
<context ref="def:line-continue"/>
|
104
|
+
<context ref="sh:sh" original="true"/>
|
105
|
+
</include>
|
106
|
+
</context>
|
107
|
+
|
108
|
+
<context id="directives" style-ref="keyword">
|
109
|
+
<keyword>define</keyword>
|
110
|
+
<keyword>else</keyword>
|
111
|
+
<keyword>endef</keyword>
|
112
|
+
<keyword>endif</keyword>
|
113
|
+
<keyword>if</keyword>
|
114
|
+
<keyword>ifdef</keyword>
|
115
|
+
<keyword>ifeq</keyword>
|
116
|
+
<keyword>ifndef</keyword>
|
117
|
+
<keyword>ifneq</keyword>
|
118
|
+
<keyword>include</keyword>
|
119
|
+
<keyword>override</keyword>
|
120
|
+
<keyword>unexport</keyword>
|
121
|
+
</context>
|
122
|
+
|
123
|
+
<context id="functions" style-ref="function">
|
124
|
+
<keyword>addprefix</keyword>
|
125
|
+
<keyword>addsuffix</keyword>
|
126
|
+
<keyword>basename</keyword>
|
127
|
+
<keyword>call</keyword>
|
128
|
+
<keyword>dir</keyword>
|
129
|
+
<keyword>error</keyword>
|
130
|
+
<keyword>filter</keyword>
|
131
|
+
<keyword>filter-out</keyword>
|
132
|
+
<keyword>findstring</keyword>
|
133
|
+
<keyword>firstword</keyword>
|
134
|
+
<keyword>foreach</keyword>
|
135
|
+
<keyword>join</keyword>
|
136
|
+
<keyword>notdir</keyword>
|
137
|
+
<keyword>origin</keyword>
|
138
|
+
<keyword>patsubst</keyword>
|
139
|
+
<keyword>shell</keyword>
|
140
|
+
<keyword>sort</keyword>
|
141
|
+
<keyword>strip</keyword>
|
142
|
+
<keyword>subst</keyword>
|
143
|
+
<keyword>suffix</keyword>
|
144
|
+
<keyword>warning</keyword>
|
145
|
+
<keyword>wildcard</keyword>
|
146
|
+
<keyword>word</keyword>
|
147
|
+
<keyword>words</keyword>
|
148
|
+
</context>
|
149
|
+
|
150
|
+
<context id="makefile">
|
151
|
+
<include>
|
152
|
+
<context ref="def:shebang"/>
|
153
|
+
<context ref="def:shell-like-comment"/>
|
154
|
+
|
155
|
+
<context id="assignment" end-at-line-end="true">
|
156
|
+
<start>^(\%{variable})\s*[\+\?:]?=</start>
|
157
|
+
<include>
|
158
|
+
<context sub-pattern="1" where="start" style-ref="assignment-lhs"/>
|
159
|
+
<context ref="assignment-rhs"/>
|
160
|
+
</include>
|
161
|
+
</context>
|
162
|
+
|
163
|
+
<context id="rule">
|
164
|
+
<start>^([^\t\:][^\:]*)\:</start>
|
165
|
+
<end>^(?!\t)</end>
|
166
|
+
<include>
|
167
|
+
<context sub-pattern="1" where="start" style-ref="targets"/>
|
168
|
+
<context ref="def:shell-like-comment"/>
|
169
|
+
<context ref="directives"/>
|
170
|
+
<context id="prereq" end-at-line-end="true" style-ref="prereq">
|
171
|
+
<start>(?<=:)(?=.)</start>
|
172
|
+
<end>;</end>
|
173
|
+
<include>
|
174
|
+
<context ref="def:escape"/>
|
175
|
+
<context ref="def:line-continue"/>
|
176
|
+
<context ref="variable"/>
|
177
|
+
<context ref="functions"/>
|
178
|
+
</include>
|
179
|
+
</context>
|
180
|
+
<context id="trailing-tab" style-ref="trailing-tab">
|
181
|
+
<match>^\t+$</match>
|
182
|
+
</context>
|
183
|
+
<context ref="command"/>
|
184
|
+
</include>
|
185
|
+
</context>
|
186
|
+
|
187
|
+
<context ref="directives"/>
|
188
|
+
<context ref="functions"/>
|
189
|
+
|
190
|
+
</include>
|
191
|
+
</context>
|
192
|
+
</definitions>
|
193
|
+
</language>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
This file is part of GtkSourceView
|
5
|
+
|
6
|
+
Author: Milo Casagrande <milo@ubuntu.com>
|
7
|
+
Copyright (C) 2009 Milo Casagrande <milo@ubuntu.com>
|
8
|
+
|
9
|
+
GtkSourceView is free software; you can redistribute it and/or
|
10
|
+
modify it under the terms of the GNU Lesser General Public
|
11
|
+
License as published by the Free Software Foundation; either
|
12
|
+
version 2.1 of the License, or (at your option) any later version.
|
13
|
+
|
14
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
15
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
17
|
+
Lesser General Public License for more details.
|
18
|
+
|
19
|
+
You should have received a copy of the GNU Lesser General Public
|
20
|
+
License along with this library; if not, write to the Free Software
|
21
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
22
|
+
-->
|
23
|
+
<language id="mallard" _name="Mallard" version="2.0" _section="Markup">
|
24
|
+
|
25
|
+
<metadata>
|
26
|
+
<property name="globs">*.page</property>
|
27
|
+
<property name="block-comment-start"><!--</property>
|
28
|
+
<property name="block-comment-end">--></property>
|
29
|
+
</metadata>
|
30
|
+
|
31
|
+
<styles>
|
32
|
+
<style id="page" _name="Page Elements" map-to="def:identifier"/>
|
33
|
+
<style id="section" _name="Section Elements" map-to="def:identifier"/>
|
34
|
+
<style id="block" _name="Block Elements" map-to="def:identifier"/>
|
35
|
+
<style id="inline" _name="Inline Elements" map-to="def:identifier"/>
|
36
|
+
</styles>
|
37
|
+
|
38
|
+
<definitions>
|
39
|
+
|
40
|
+
<context id="page-element" once-only="true" style-ref="page" class="no-spell-check">
|
41
|
+
<keyword>page</keyword>
|
42
|
+
</context>
|
43
|
+
|
44
|
+
<context id="section-element" style-ref="section" class="no-spell-check">
|
45
|
+
<keyword>section</keyword>
|
46
|
+
</context>
|
47
|
+
|
48
|
+
<context id="block-elements" style-ref="block" class="no-spell-check">
|
49
|
+
<keyword>code</keyword>
|
50
|
+
<keyword>p</keyword>
|
51
|
+
<keyword>example</keyword>
|
52
|
+
<keyword>screen</keyword>
|
53
|
+
<keyword>media</keyword>
|
54
|
+
<keyword>comment</keyword>
|
55
|
+
<keyword>figure</keyword>
|
56
|
+
<keyword>listing</keyword>
|
57
|
+
<keyword>note</keyword>
|
58
|
+
<keyword>quote</keyword>
|
59
|
+
<keyword>synopsis</keyword>
|
60
|
+
<keyword>list</keyword>
|
61
|
+
<keyword>steps</keyword>
|
62
|
+
<keyword>terms</keyword>
|
63
|
+
<keyword>tree</keyword>
|
64
|
+
<keyword>table</keyword>
|
65
|
+
<keyword>col</keyword>
|
66
|
+
<keyword>colgroup</keyword>
|
67
|
+
<keyword>tr</keyword>
|
68
|
+
<keyword>td</keyword>
|
69
|
+
<keyword>item</keyword>
|
70
|
+
</context>
|
71
|
+
|
72
|
+
<context id="inline-elements" style-ref="inline" class="no-spell-check">
|
73
|
+
<keyword>app</keyword>
|
74
|
+
<keyword>cmd</keyword>
|
75
|
+
<keyword>code</keyword>
|
76
|
+
<keyword>em</keyword>
|
77
|
+
<keyword>file</keyword>
|
78
|
+
<keyword>gui</keyword>
|
79
|
+
<keyword>guiseq</keyword>
|
80
|
+
<keyword>input</keyword>
|
81
|
+
<keyword>key</keyword>
|
82
|
+
<keyword>keyseq</keyword>
|
83
|
+
<keyword>link</keyword>
|
84
|
+
<keyword>media</keyword>
|
85
|
+
<keyword>output</keyword>
|
86
|
+
<keyword>span</keyword>
|
87
|
+
<keyword>sys</keyword>
|
88
|
+
<keyword>var</keyword>
|
89
|
+
<keyword>info</keyword>
|
90
|
+
<keyword>credit</keyword>
|
91
|
+
<keyword>name</keyword>
|
92
|
+
<keyword>email</keyword>
|
93
|
+
<keyword>copyright</keyword>
|
94
|
+
<keyword>year</keyword>
|
95
|
+
<keyword>license</keyword>
|
96
|
+
<keyword>desc</keyword>
|
97
|
+
<keyword>link</keyword>
|
98
|
+
<keyword>revision</keyword>
|
99
|
+
<keyword>title</keyword>
|
100
|
+
<keyword>subtitle</keyword>
|
101
|
+
<keyword>desc</keyword>
|
102
|
+
<keyword>cite</keyword>
|
103
|
+
</context>
|
104
|
+
|
105
|
+
<context id="mallard-tags">
|
106
|
+
<include>
|
107
|
+
<context ref="page-element"/>
|
108
|
+
<context ref="section-element"/>
|
109
|
+
<context ref="block-elements"/>
|
110
|
+
<context ref="inline-elements"/>
|
111
|
+
<context ref="xml:element-name" original="true"/>
|
112
|
+
</include>
|
113
|
+
</context>
|
114
|
+
|
115
|
+
<replace id="xml:element-name" ref="mallard-tags"/>
|
116
|
+
|
117
|
+
<context id="mallard">
|
118
|
+
<include>
|
119
|
+
<context ref="xml:xml"/>
|
120
|
+
</include>
|
121
|
+
</context>
|
122
|
+
</definitions>
|
123
|
+
|
124
|
+
</language>
|
@@ -0,0 +1,402 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
Author: Jean-Philippe Fleury
|
5
|
+
Copyright (C) 2011 Jean-Philippe Fleury <contact@jpfleury.net>
|
6
|
+
|
7
|
+
GtkSourceView is free software; you can redistribute it and/or
|
8
|
+
modify it under the terms of the GNU Lesser General Public
|
9
|
+
License as published by the Free Software Foundation; either
|
10
|
+
version 2.1 of the License, or (at your option) any later version.
|
11
|
+
|
12
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
15
|
+
Lesser General Public License for more details.
|
16
|
+
|
17
|
+
You should have received a copy of the GNU Lesser General Public
|
18
|
+
License along with this library; if not, write to the Free Software
|
19
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
20
|
+
|
21
|
+
-->
|
22
|
+
<!-- Note: this language definition file adds support for Markdown syntax,
|
23
|
+
described in the following websites:
|
24
|
+
* (fr) <http://michelf.com/projets/php-markdown/syntaxe/>
|
25
|
+
* (en) <http://daringfireball.net/projects/markdown/syntax> -->
|
26
|
+
<language id="markdown" _name="Markdown" version="2.0" _section="Markup">
|
27
|
+
<metadata>
|
28
|
+
<property name="mimetypes">text/x-markdown</property>
|
29
|
+
<property name="globs">*.markdown;*.md;*.mkd</property>
|
30
|
+
<property name="block-comment-start"><!--</property>
|
31
|
+
<property name="block-comment-end">--></property>
|
32
|
+
</metadata>
|
33
|
+
|
34
|
+
<styles>
|
35
|
+
<style id="header" _name="Header" map-to="def:type"/>
|
36
|
+
<style id="horizontal-rule" _name="Horizontal Rule" map-to="def:type"/>
|
37
|
+
<style id="list-marker" _name="List Marker" map-to="def:statement"/>
|
38
|
+
<style id="code" _name="Code" map-to="def:identifier"/>
|
39
|
+
<style id="blockquote-marker" _name="Blockquote Marker" map-to="def:shebang"/>
|
40
|
+
<style id="url" _name="URL" map-to="def:underlined"/>
|
41
|
+
<style id="link-text" _name="Link Text" map-to="def:comment"/>
|
42
|
+
<style id="label" _name="Label" map-to="def:preprocessor"/>
|
43
|
+
<style id="attribute-value" _name="Attribute Value" map-to="def:constant"/>
|
44
|
+
<style id="image-marker" _name="Image Marker" map-to="def:shebang"/>
|
45
|
+
<style id="emphasis" _name="Emphasis" map-to="def:doc-comment-element"/>
|
46
|
+
<style id="strong-emphasis" _name="Strong Emphasis" map-to="def:statement"/>
|
47
|
+
<style id="backslash-escape" _name="Backslash Escape" map-to="def:special-char"/>
|
48
|
+
<style id="line-break" _name="Line Break" map-to="def:note"/>
|
49
|
+
</styles>
|
50
|
+
|
51
|
+
<definitions>
|
52
|
+
<!-- Examples:
|
53
|
+
# Header 1 #
|
54
|
+
## Header 2
|
55
|
+
###Header 3###
|
56
|
+
-->
|
57
|
+
<context id="atx-header" style-ref="header">
|
58
|
+
<match>^#+.+</match>
|
59
|
+
</context>
|
60
|
+
|
61
|
+
<!-- Examples:
|
62
|
+
Header 1
|
63
|
+
========
|
64
|
+
Header 2
|
65
|
+
-
|
66
|
+
-->
|
67
|
+
<!-- Note: line break can't be used in regex, so only underline is matched. -->
|
68
|
+
<context id="setext-header" style-ref="header">
|
69
|
+
<match>^(-+|=+)[ \t]*$</match>
|
70
|
+
</context>
|
71
|
+
|
72
|
+
<!-- Examples:
|
73
|
+
- - -
|
74
|
+
** ** ** ** **
|
75
|
+
_____
|
76
|
+
-->
|
77
|
+
<context id="horizontal-rule" style-ref="horizontal-rule">
|
78
|
+
<match extended="true">
|
79
|
+
^[ ]{0,3} # Maximum 3 spaces at the beginning of the line.
|
80
|
+
(
|
81
|
+
(-[ ]{0,2}){3,} | # 3 or more hyphens, with 2 spaces maximum between each hyphen.
|
82
|
+
(_[ ]{0,2}){3,} | # Idem, but with underscores.
|
83
|
+
(\*[ ]{0,2}){3,} # Idem, but with asterisks.
|
84
|
+
)
|
85
|
+
[ \t]*$ # Optional trailing spaces or tabs.
|
86
|
+
</match>
|
87
|
+
</context>
|
88
|
+
|
89
|
+
<!-- Note about following list and code block contexts: according to the
|
90
|
+
Markdown syntax, to write several paragraphs in a list item, we have
|
91
|
+
to indent each paragraph. Example:
|
92
|
+
|
93
|
+
- Item A (paragraph 1).
|
94
|
+
|
95
|
+
Item A (paragraph 2).
|
96
|
+
|
97
|
+
Item A (paragraph 3).
|
98
|
+
|
99
|
+
- Item B.
|
100
|
+
|
101
|
+
So there is a conflict in terms of syntax highlighting between an
|
102
|
+
indented paragraph inside a list item (4 spaces or 1 tab) and an
|
103
|
+
indented line of code outside a list (also 4 spaces or 1 tab). In this
|
104
|
+
language file, since a full context analysis can't be done (because
|
105
|
+
line break can't be used in regex), the choice was made to highlight
|
106
|
+
code block only from 2 levels of indentation. -->
|
107
|
+
|
108
|
+
<!-- Example (unordered list):
|
109
|
+
* Item
|
110
|
+
+ Item
|
111
|
+
- Item
|
112
|
+
|
113
|
+
Example (ordered list):
|
114
|
+
1. Item
|
115
|
+
2. Item
|
116
|
+
3. Item
|
117
|
+
-->
|
118
|
+
<context id="list" style-ref="list-marker">
|
119
|
+
<match extended="true">
|
120
|
+
^[ ]{0,3} # Maximum 3 spaces at the beginning of the line.
|
121
|
+
(
|
122
|
+
\*|\+|-| # Asterisk, plus or hyphen for unordered list.
|
123
|
+
[0-9]+\. # Number followed by period for ordered list.
|
124
|
+
)
|
125
|
+
[ \t]+ # Must be followed by at least 1 space or 1 tab.
|
126
|
+
</match>
|
127
|
+
</context>
|
128
|
+
|
129
|
+
<!-- Example:
|
130
|
+
<em>HTML code</em> displayed <strong>literally</strong>.
|
131
|
+
-->
|
132
|
+
<context id="code-block" class="no-spell-check">
|
133
|
+
<match>^( {8,}|\t{2,})([^ \t]+.*)</match>
|
134
|
+
|
135
|
+
<include>
|
136
|
+
<context sub-pattern="2" style-ref="code"/>
|
137
|
+
</include>
|
138
|
+
</context>
|
139
|
+
|
140
|
+
<!-- Note about following code span contexts: within a paragraph, text
|
141
|
+
wrapped with backticks indicates a code span. Markdown allows to use
|
142
|
+
one or more backticks to wrap text, provided that the number is identical
|
143
|
+
on both sides, and the same number of consecutive backticks is not
|
144
|
+
present within the text. The current language file supports code span
|
145
|
+
highlighting with up to 2 backticks surrounding text. -->
|
146
|
+
|
147
|
+
<!-- Examples:
|
148
|
+
Here's a literal HTML tag: `<p>`.
|
149
|
+
`Here's a code span containing ``backticks``.`
|
150
|
+
-->
|
151
|
+
<context id="1-backtick-code-span" class="no-spell-check" style-ref="code">
|
152
|
+
<match>(?<!`)`[^`]+(`{2,}[^`]+)*`(?!`)</match>
|
153
|
+
</context>
|
154
|
+
|
155
|
+
<!-- Examples:
|
156
|
+
Here's a literal HTML tag: ``<p>``.
|
157
|
+
``The grave accent (`) is used in Markdown to indicate a code span.``
|
158
|
+
``Here's another code span containing ```backticks```.``
|
159
|
+
-->
|
160
|
+
<context id="2-backticks-code-span" class="no-spell-check" style-ref="code">
|
161
|
+
<match>(?<!`)``[^`]+((`|`{3,})[^`]+)*``(?!`)</match>
|
162
|
+
</context>
|
163
|
+
|
164
|
+
<!-- Example:
|
165
|
+
> Quoted text.
|
166
|
+
> Quoted text with `code span`.
|
167
|
+
>> Blockquote **nested**.
|
168
|
+
-->
|
169
|
+
<!-- Note: blockquote can contain block-level and inline Markdown elements,
|
170
|
+
but the current language file only highlights inline ones (emphasis,
|
171
|
+
link, etc.). -->
|
172
|
+
<context id="blockquote" end-at-line-end="true">
|
173
|
+
<start>^( {0,3}>(?=.)( {0,4}>)*)</start>
|
174
|
+
|
175
|
+
<include>
|
176
|
+
<context sub-pattern="1" where="start" style-ref="blockquote-marker"/>
|
177
|
+
<context ref="1-backtick-code-span"/>
|
178
|
+
<context ref="2-backticks-code-span"/>
|
179
|
+
<context ref="automatic-link"/>
|
180
|
+
<context ref="inline-link"/>
|
181
|
+
<context ref="reference-link"/>
|
182
|
+
<context ref="inline-image"/>
|
183
|
+
<context ref="reference-image"/>
|
184
|
+
<context ref="underscores-emphasis"/>
|
185
|
+
<context ref="asterisks-emphasis"/>
|
186
|
+
<context ref="underscores-strong-emphasis"/>
|
187
|
+
<context ref="asterisks-strong-emphasis"/>
|
188
|
+
<context ref="backslash-escape"/>
|
189
|
+
<context ref="line-break"/>
|
190
|
+
</include>
|
191
|
+
</context>
|
192
|
+
|
193
|
+
<!-- Examples:
|
194
|
+
<user@example.com>
|
195
|
+
<http://www.example.com/>
|
196
|
+
-->
|
197
|
+
<!-- Note: regular expressions are based from function `_DoAutoLinks` from
|
198
|
+
Markdown.pl (see <http://daringfireball.net/projects/markdown/>). -->
|
199
|
+
<context id="automatic-link" class="no-spell-check">
|
200
|
+
<match case-sensitive="false" extended="true">
|
201
|
+
<
|
202
|
+
(((mailto:)?[a-z0-9.-]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+) | # E-mail.
|
203
|
+
((https?|ftp):[^'">\s]+)) # URL.
|
204
|
+
>
|
205
|
+
</match>
|
206
|
+
|
207
|
+
<include>
|
208
|
+
<context sub-pattern="1" style-ref="url"/>
|
209
|
+
</include>
|
210
|
+
</context>
|
211
|
+
|
212
|
+
<!-- Examples:
|
213
|
+
[link text](http://www.example.com/)
|
214
|
+
[link text](<http://www.example.com/>)
|
215
|
+
[link text]( /folder/page.html "Title" )
|
216
|
+
-->
|
217
|
+
<context id="inline-link">
|
218
|
+
<match extended="true">
|
219
|
+
\[(.*?)\] # Link text.
|
220
|
+
\( # Literal opening parenthesis.
|
221
|
+
[ \t]* # Optional spaces or tabs after the opening parenthesis.
|
222
|
+
(<(.*?)> | # URL with brackets.
|
223
|
+
(.*?)) # URL without brackets.
|
224
|
+
([ \t]+(".*?"))? # Optional title.
|
225
|
+
[ \t]* # Optional spaces or tabs before the closing parenthesis.
|
226
|
+
\) # Literal closing parenthesis.
|
227
|
+
</match>
|
228
|
+
|
229
|
+
<include>
|
230
|
+
<context sub-pattern="1" style-ref="link-text"/>
|
231
|
+
<context sub-pattern="3" class="no-spell-check" style-ref="url"/>
|
232
|
+
<context sub-pattern="4" class="no-spell-check" style-ref="url"/>
|
233
|
+
<context sub-pattern="6" style-ref="attribute-value"/>
|
234
|
+
</include>
|
235
|
+
</context>
|
236
|
+
|
237
|
+
<!-- Examples:
|
238
|
+
[link text]
|
239
|
+
[link text][]
|
240
|
+
[link text][link label]
|
241
|
+
[link text] [link label]
|
242
|
+
-->
|
243
|
+
<!-- Note: some assertions are used to differentiate reference link from
|
244
|
+
link label. -->
|
245
|
+
<context id="reference-link">
|
246
|
+
<match>(?<!^ |^ |^ )\[(.*?)\]([ \t]?\[(.*?)\])?(?!:)</match>
|
247
|
+
|
248
|
+
<include>
|
249
|
+
<context sub-pattern="1" style-ref="link-text"/>
|
250
|
+
<context sub-pattern="3" class="no-spell-check" style-ref="label"/>
|
251
|
+
</include>
|
252
|
+
</context>
|
253
|
+
|
254
|
+
<!-- Examples:
|
255
|
+
[link label]: /folder/page.html
|
256
|
+
[link label]: <http://www.example.com/>
|
257
|
+
[link label]: http://www.example.com/ "Title"
|
258
|
+
-->
|
259
|
+
<context id="link-definition">
|
260
|
+
<match extended="true">
|
261
|
+
^[ ]{0,3} # Maximum 3 spaces at the beginning of the line.
|
262
|
+
\[(.+?)\]: # Link label and colon.
|
263
|
+
[ \t]* # Optional spaces or tabs.
|
264
|
+
(<([^ \t]+?)> | # URL with brackets.
|
265
|
+
([^ \t]+?)) # URL without brackets.
|
266
|
+
([ \t]+(".*?"))? # Optional title.
|
267
|
+
[ \t]*$ # Optional trailing spaces or tabs.
|
268
|
+
</match>
|
269
|
+
|
270
|
+
<include>
|
271
|
+
<context sub-pattern="1" class="no-spell-check" style-ref="label"/>
|
272
|
+
<context sub-pattern="3" class="no-spell-check" style-ref="url"/>
|
273
|
+
<context sub-pattern="4" class="no-spell-check" style-ref="url"/>
|
274
|
+
<context sub-pattern="6" style-ref="attribute-value"/>
|
275
|
+
</include>
|
276
|
+
</context>
|
277
|
+
|
278
|
+
<!-- Examples:
|
279
|
+
![alt text](http://www.example.com/image.jpg)
|
280
|
+
![alt text]( <http://www.example.com/image.jpg> )
|
281
|
+
![alt text] (/path/to/image.jpg "Title")
|
282
|
+
-->
|
283
|
+
<context id="inline-image">
|
284
|
+
<match extended="true">
|
285
|
+
(!) # Leading ! sign.
|
286
|
+
\[(.*?)\][ ]? # Alternate text for the image (and optional space).
|
287
|
+
\( # Literal parenthesis.
|
288
|
+
[ \t]* # Optional spaces or tabs after the opening parenthesis.
|
289
|
+
(<([^ \t]*?)> | # Image path or URL with brackets.
|
290
|
+
([^ \t]*?)) # Image path or URL without brackets.
|
291
|
+
([ \t]+(".*?"))? # Optional title.
|
292
|
+
[ \t]* # Optional spaces or tabs before the closing parenthesis.
|
293
|
+
\) # Literal parenthesis.
|
294
|
+
</match>
|
295
|
+
|
296
|
+
<include>
|
297
|
+
<context sub-pattern="1" style-ref="image-marker"/>
|
298
|
+
<context sub-pattern="2" style-ref="attribute-value"/>
|
299
|
+
<context sub-pattern="4" class="no-spell-check" style-ref="url"/>
|
300
|
+
<context sub-pattern="5" class="no-spell-check" style-ref="url"/>
|
301
|
+
<context sub-pattern="6" style-ref="attribute-value"/>
|
302
|
+
</include>
|
303
|
+
</context>
|
304
|
+
|
305
|
+
<!-- Examples:
|
306
|
+
![alt text][image label]
|
307
|
+
![alt text] [image label]
|
308
|
+
-->
|
309
|
+
<context id="reference-image">
|
310
|
+
<match>(!)\[(.*?)\] ?\[(.*?)\]</match>
|
311
|
+
|
312
|
+
<include>
|
313
|
+
<context sub-pattern="1" style-ref="image-marker"/>
|
314
|
+
<context sub-pattern="2" style-ref="attribute-value"/>
|
315
|
+
<context sub-pattern="3" class="no-spell-check" style-ref="label"/>
|
316
|
+
</include>
|
317
|
+
</context>
|
318
|
+
|
319
|
+
<!-- Examples:
|
320
|
+
Lorem _ipsum dolor_ sit amet.
|
321
|
+
Here's an _emphasized text containing an underscore (\_)_.
|
322
|
+
-->
|
323
|
+
<context id="underscores-emphasis" style-ref="emphasis">
|
324
|
+
<match>(?<!_)_[^_ \t].*?(?<!\\|_| |\t)_(?!_)</match>
|
325
|
+
</context>
|
326
|
+
|
327
|
+
<!-- Examples:
|
328
|
+
Lorem *ipsum dolor* sit amet.
|
329
|
+
Here's an *emphasized text containing an asterisk (\*)*.
|
330
|
+
-->
|
331
|
+
<context id="asterisks-emphasis" style-ref="emphasis">
|
332
|
+
<match>(?<!\*)\*[^\* \t].*?(?<!\\|\*| |\t)\*(?!\*)</match>
|
333
|
+
</context>
|
334
|
+
|
335
|
+
<!-- Examples:
|
336
|
+
Lorem __ipsum dolor__ sit amet.
|
337
|
+
Here's a __strongly emphasized text containing an underscore (\_)__.
|
338
|
+
-->
|
339
|
+
<context id="underscores-strong-emphasis" style-ref="strong-emphasis">
|
340
|
+
<match>__[^_ \t].*?(?<!\\|_| |\t)__</match>
|
341
|
+
</context>
|
342
|
+
|
343
|
+
<!-- Examples:
|
344
|
+
Lorem **ipsum dolor** sit amet.
|
345
|
+
Here's a **strongly emphasized text containing an asterisk (\*).**
|
346
|
+
-->
|
347
|
+
<context id="asterisks-strong-emphasis" style-ref="strong-emphasis">
|
348
|
+
<match>\*\*[^\* \t].*?(?<!\\|\*| |\t)\*\*</match>
|
349
|
+
</context>
|
350
|
+
|
351
|
+
<context id="backslash-escape" style-ref="backslash-escape">
|
352
|
+
<match>\\[\\`*_{}\[\]()#+-.!]</match>
|
353
|
+
</context>
|
354
|
+
|
355
|
+
<!-- Note: a manual line break should be followed by a line containing text,
|
356
|
+
but since line break can't be used in regex, only trailing spaces or tabs
|
357
|
+
are matched. -->
|
358
|
+
<context id="line-break">
|
359
|
+
<match>(?<=[^ \t])([ \t]{2,})$</match>
|
360
|
+
|
361
|
+
<include>
|
362
|
+
<context sub-pattern="1" style-ref="line-break"/>
|
363
|
+
</include>
|
364
|
+
</context>
|
365
|
+
|
366
|
+
<context id="markdown-syntax">
|
367
|
+
<include>
|
368
|
+
<context ref="atx-header"/>
|
369
|
+
<context ref="setext-header"/>
|
370
|
+
<context ref="horizontal-rule"/>
|
371
|
+
<context ref="list"/>
|
372
|
+
<context ref="code-block"/>
|
373
|
+
<context ref="1-backtick-code-span"/>
|
374
|
+
<context ref="2-backticks-code-span"/>
|
375
|
+
<context ref="blockquote"/>
|
376
|
+
<context ref="automatic-link"/>
|
377
|
+
<context ref="inline-link"/>
|
378
|
+
<context ref="reference-link"/>
|
379
|
+
<context ref="link-definition"/>
|
380
|
+
<context ref="inline-image"/>
|
381
|
+
<context ref="reference-image"/>
|
382
|
+
<context ref="underscores-emphasis"/>
|
383
|
+
<context ref="asterisks-emphasis"/>
|
384
|
+
<context ref="underscores-strong-emphasis"/>
|
385
|
+
<context ref="asterisks-strong-emphasis"/>
|
386
|
+
<context ref="backslash-escape"/>
|
387
|
+
<context ref="line-break"/>
|
388
|
+
</include>
|
389
|
+
</context>
|
390
|
+
|
391
|
+
<replace id="html:embedded-lang-hook" ref="markdown-syntax"/>
|
392
|
+
|
393
|
+
<context id="markdown">
|
394
|
+
<include>
|
395
|
+
<context ref="markdown-syntax"/>
|
396
|
+
<!-- Note: even if it's highlighted, Markdown syntax within HTML blocks
|
397
|
+
(e.g., `<div>`) is not processed. -->
|
398
|
+
<context ref="html:html"/>
|
399
|
+
</include>
|
400
|
+
</context>
|
401
|
+
</definitions>
|
402
|
+
</language>
|