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,873 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GtkSourceView 3 Reference Manual: Language Definition v2.0 Reference</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
|
+
<link rel="home" href="index.html" title="GtkSourceView 3 Reference Manual">
|
8
|
+
<link rel="up" href="ch02.html" title="Syntax highlighting reference">
|
9
|
+
<link rel="prev" href="lang-tutorial.html" title="Language Definition v2.0 Tutorial">
|
10
|
+
<link rel="next" href="style-reference.html" title="Style Scheme Definition Reference">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.21.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="lang-tutorial.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="style-reference.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="refentry">
|
23
|
+
<a name="lang-reference"></a><div class="titlepage"></div>
|
24
|
+
<div class="refnamediv"><table width="100%"><tr>
|
25
|
+
<td valign="top">
|
26
|
+
<h2><span class="refentrytitle">Language Definition v2.0 Reference</span></h2>
|
27
|
+
<p>Language Definition v2.0 Reference —
|
28
|
+
Reference to the GtkSourceView language definition file format
|
29
|
+
</p>
|
30
|
+
</td>
|
31
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
32
|
+
</tr></table></div>
|
33
|
+
<div class="refsect1">
|
34
|
+
<a name="id-1.3.3.3"></a><h2>Overview</h2>
|
35
|
+
<div class="note"><p>
|
36
|
+
The version 2 here refers to the language definition file format,
|
37
|
+
not to the version of GtkSourceView. So this reference is suitable
|
38
|
+
for GtkSourceView 2 and 3.
|
39
|
+
</p></div>
|
40
|
+
<p>
|
41
|
+
This is an overview of the Language Definition XML format, describing the
|
42
|
+
meaning and usage of every element and attribute. The formal definition is
|
43
|
+
stored in the RelaxNG schema file <code class="filename">language2.rng</code> which
|
44
|
+
should be installed on your system in the directory
|
45
|
+
<code class="filename">${PREFIX}/share/gtksourceview-3.0/</code> (where
|
46
|
+
<code class="filename">${PREFIX}</code> can be <code class="filename">/usr/</code> or
|
47
|
+
<code class="filename">/usr/local/</code> if you have installed from source.
|
48
|
+
</p>
|
49
|
+
</div>
|
50
|
+
<div class="refsect1">
|
51
|
+
<a name="id-1.3.3.4"></a><h2>Best practices</h2>
|
52
|
+
<p>
|
53
|
+
It is better to follow the following rules, especially if you want to
|
54
|
+
contribute upstream, and get your language definition file included in
|
55
|
+
GtkSourceView.
|
56
|
+
</p>
|
57
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
58
|
+
<li class="listitem"><p>
|
59
|
+
Indentation: 2 spaces.
|
60
|
+
</p></li>
|
61
|
+
<li class="listitem"><p>
|
62
|
+
Have the main context at the bottom.
|
63
|
+
</p></li>
|
64
|
+
<li class="listitem"><p>
|
65
|
+
Use references to def.lang.
|
66
|
+
</p></li>
|
67
|
+
<li class="listitem"><p>
|
68
|
+
Add an example in tests/syntax-highlighting/.
|
69
|
+
</p></li>
|
70
|
+
<li class="listitem"><p>
|
71
|
+
LGPL v2.1+ license (copy/paste the license header from c.lang, for
|
72
|
+
example).
|
73
|
+
</p></li>
|
74
|
+
<li class="listitem"><p>
|
75
|
+
Add the e-mail address of the language definition file author(s).
|
76
|
+
</p></li>
|
77
|
+
<li class="listitem"><p>
|
78
|
+
Refer to the HACKING file for submitting your language definition
|
79
|
+
file upstream. If the file is not included upstream, you can also
|
80
|
+
add the language definition file to the GtkSourceView wiki, so
|
81
|
+
users can easily find it.
|
82
|
+
</p></li>
|
83
|
+
</ul></div>
|
84
|
+
</div>
|
85
|
+
<div class="refsect1">
|
86
|
+
<a name="id-1.3.3.5"></a><h2>Tag <code class="code"><language></code>
|
87
|
+
</h2>
|
88
|
+
<p>
|
89
|
+
The root element for Language Definition files.
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
Contained elements:
|
93
|
+
<span class="simplelist"><code class="code"><metadata></code> (optional), <code class="code"><styles></code> (optional), <code class="code"><default-regex-options></code> (optional), <code class="code"><keyword-char-class></code> (optional), <code class="code"><definitions></code> (mandatory)</span>.
|
94
|
+
</p>
|
95
|
+
<div class="variablelist">
|
96
|
+
<p class="title"><b>Attributes:</b></p>
|
97
|
+
<table border="0" class="variablelist">
|
98
|
+
<colgroup>
|
99
|
+
<col align="left" valign="top">
|
100
|
+
<col>
|
101
|
+
</colgroup>
|
102
|
+
<tbody>
|
103
|
+
<tr>
|
104
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
105
|
+
<td><p>
|
106
|
+
Identifier for the description. This is used for
|
107
|
+
external references and must be unique among language descriptions. It can
|
108
|
+
contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
109
|
+
underscores ("<code class="code">_</code>").
|
110
|
+
</p></td>
|
111
|
+
</tr>
|
112
|
+
<tr>
|
113
|
+
<td><p><span class="term"><code class="code">name</code> (mandatory)</span></p></td>
|
114
|
+
<td><p>
|
115
|
+
The translatable name of the language presented to the user.
|
116
|
+
It can be marked for translation putting an underscore before the attribute
|
117
|
+
name (see the gettext documentation).
|
118
|
+
</p></td>
|
119
|
+
</tr>
|
120
|
+
<tr>
|
121
|
+
<td><p><span class="term"><code class="code">version</code> (mandatory)</span></p></td>
|
122
|
+
<td><p>
|
123
|
+
The version of the XML format (currently "2.0").
|
124
|
+
</p></td>
|
125
|
+
</tr>
|
126
|
+
<tr>
|
127
|
+
<td><p><span class="term"><code class="code">section</code> (optional)</span></p></td>
|
128
|
+
<td><p>
|
129
|
+
The translatable category in which the language has to be grouped when
|
130
|
+
presented to the user. It can be marked for translation putting
|
131
|
+
an underscore before the attribute name. Currently used categories in
|
132
|
+
GtkSourceView are "Source", "Script", "Markup" and "Other", but
|
133
|
+
it is possible to use arbitrary categories (while usually discouraged).
|
134
|
+
</p></td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td><p><span class="term"><code class="code">hidden</code> (optional)</span></p></td>
|
138
|
+
<td><p>
|
139
|
+
It's a hint that the language should be "hidden" from user. For instance,
|
140
|
+
def.lang has this flag, and a text editor should not present "default" as
|
141
|
+
a syntax highlighting choice.
|
142
|
+
</p></td>
|
143
|
+
</tr>
|
144
|
+
</tbody>
|
145
|
+
</table>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
<div class="refsect1">
|
149
|
+
<a name="id-1.3.3.6"></a><h2>Tag <code class="code"><metadata></code>
|
150
|
+
</h2>
|
151
|
+
<p>
|
152
|
+
Contains optional metadata about the language definition.
|
153
|
+
</p>
|
154
|
+
<p>
|
155
|
+
Recognized elements are (all optional):
|
156
|
+
</p>
|
157
|
+
<dt><span class="term"><code class="code">mimetypes</code></span></dt>
|
158
|
+
<dd><p>
|
159
|
+
The semicolon-separated list of mimetypes associated to the language.
|
160
|
+
</p></dd>
|
161
|
+
<dt><span class="term"><code class="code">globs</code></span></dt>
|
162
|
+
<dd><p>
|
163
|
+
The semicolon-separated list of globs associated to the language.
|
164
|
+
</p></dd>
|
165
|
+
<dt><span class="term"><code class="code">line-comment-start</code></span></dt>
|
166
|
+
<dd><p>
|
167
|
+
String used to create single-line comment in files of this type, e.g.
|
168
|
+
"#" in shell scripts.
|
169
|
+
It may be used in an editor to implement Comment/Uncomment functionality.
|
170
|
+
</p></dd>
|
171
|
+
<dt><span class="term"><code class="code">block-comment-start</code></span></dt>
|
172
|
+
<dd><p>
|
173
|
+
String used to start block comment in files of this type, e.g. "/*" in C
|
174
|
+
files.
|
175
|
+
</p></dd>
|
176
|
+
<dt><span class="term"><code class="code">block-comment-end</code></span></dt>
|
177
|
+
<dd><p>
|
178
|
+
String used to end block comment in files of this type, e.g. "*/" in C
|
179
|
+
files.
|
180
|
+
</p></dd>
|
181
|
+
</div>
|
182
|
+
<div class="refsect1">
|
183
|
+
<a name="id-1.3.3.7"></a><h2>Tag <code class="code"><styles></code>
|
184
|
+
</h2>
|
185
|
+
<p>
|
186
|
+
Contains the definitions of every style used in the current language and
|
187
|
+
their association with predefined styles in GtkSourceView.
|
188
|
+
</p>
|
189
|
+
<p>
|
190
|
+
Contained elements:
|
191
|
+
<span class="simplelist"><code class="code"><style></code> (one or more)</span>.
|
192
|
+
</p>
|
193
|
+
</div>
|
194
|
+
<div class="refsect1">
|
195
|
+
<a name="id-1.3.3.8"></a><h2>Tag <code class="code"><style></code>
|
196
|
+
</h2>
|
197
|
+
<p>
|
198
|
+
Defines a style, associating its id with a user visible translatable
|
199
|
+
name and a default style.
|
200
|
+
</p>
|
201
|
+
<p>
|
202
|
+
Contained elements: none.
|
203
|
+
</p>
|
204
|
+
<div class="variablelist">
|
205
|
+
<p class="title"><b>Attributes:</b></p>
|
206
|
+
<table border="0" class="variablelist">
|
207
|
+
<colgroup>
|
208
|
+
<col align="left" valign="top">
|
209
|
+
<col>
|
210
|
+
</colgroup>
|
211
|
+
<tbody>
|
212
|
+
<tr>
|
213
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
214
|
+
<td><p>
|
215
|
+
Identifier for the style. This is used in the current language
|
216
|
+
to refer to this style and must be unique for the current document.
|
217
|
+
It can contain a string of letters, digits,
|
218
|
+
hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
219
|
+
</p></td>
|
220
|
+
</tr>
|
221
|
+
<tr>
|
222
|
+
<td><p><span class="term"><code class="code">name</code> (mandatory)</span></p></td>
|
223
|
+
<td><p>
|
224
|
+
The user visible translatable name for the style. It has to be preceded
|
225
|
+
with a underscore ("<code class="code">_</code>") to be marked for translation.
|
226
|
+
</p></td>
|
227
|
+
</tr>
|
228
|
+
<tr>
|
229
|
+
<td><p><span class="term"><code class="code">map-to</code> (optional)</span></p></td>
|
230
|
+
<td><p>
|
231
|
+
Used to map the style with a default style, to use colors and
|
232
|
+
font properties defined for those default styles.
|
233
|
+
The id of the default style has to be preceded with the id of the
|
234
|
+
language where it is defined, separated with a semicolon ":".
|
235
|
+
When omitted the style is not considered derived from any style and will
|
236
|
+
not be highlighted until the user specifies a color scheme for this
|
237
|
+
style.
|
238
|
+
</p></td>
|
239
|
+
</tr>
|
240
|
+
</tbody>
|
241
|
+
</table>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
<div class="refsect1">
|
245
|
+
<a name="id-1.3.3.9"></a><h2>Tag <code class="code"><keyword-char-class></code>
|
246
|
+
</h2>
|
247
|
+
<p>
|
248
|
+
Contains a regex character class used to redefine the customizable
|
249
|
+
word boundary delimiters "\%[" and "\%]". This class is the set of character
|
250
|
+
that can be commonly found in a keyword.
|
251
|
+
If the element is omitted the two delimiters default to "\b".
|
252
|
+
</p>
|
253
|
+
<p>
|
254
|
+
Contained elements: none.
|
255
|
+
</p>
|
256
|
+
</div>
|
257
|
+
<div class="refsect1">
|
258
|
+
<a name="id-1.3.3.10"></a><h2>Tag <code class="code"><default-regex-options></code>
|
259
|
+
</h2>
|
260
|
+
<p>
|
261
|
+
Used to set global options for how regular expressions are processed.
|
262
|
+
</p>
|
263
|
+
<p>
|
264
|
+
Contained elements: none.
|
265
|
+
</p>
|
266
|
+
<div class="variablelist">
|
267
|
+
<p class="title"><b>Attributes</b></p>
|
268
|
+
<table border="0" class="variablelist">
|
269
|
+
<colgroup>
|
270
|
+
<col align="left" valign="top">
|
271
|
+
<col>
|
272
|
+
</colgroup>
|
273
|
+
<tbody>
|
274
|
+
<tr>
|
275
|
+
<td><p><span class="term"><code class="code">case-sensitive</code> (optional)</span></p></td>
|
276
|
+
<td><p>Set to <code class="code">false</code> to make regular expressions
|
277
|
+
ignore case.
|
278
|
+
Defaults to <code class="code">true</code>.
|
279
|
+
</p></td>
|
280
|
+
</tr>
|
281
|
+
<tr>
|
282
|
+
<td><p><span class="term"><code class="code">extended</code> (optional)</span></p></td>
|
283
|
+
<td><p>Setting this to <code class="code">true</code> makes the regular
|
284
|
+
expression engine ignore spaces and comments. These comments start with
|
285
|
+
"<code class="code">#</code>" and continue to the end of the line.
|
286
|
+
Defaults to <code class="code">false</code>.
|
287
|
+
</p></td>
|
288
|
+
</tr>
|
289
|
+
<tr>
|
290
|
+
<td><p><span class="term"><code class="code">dupnames</code> (optional)</span></p></td>
|
291
|
+
<td><p>Setting this to true allows one to repeat an identifier
|
292
|
+
for capturing parentheses. This is useful for some patterns that you
|
293
|
+
know only one instance of a named subpattern can ever be matched.
|
294
|
+
Defaults to <code class="code">false</code>.
|
295
|
+
</p></td>
|
296
|
+
</tr>
|
297
|
+
</tbody>
|
298
|
+
</table>
|
299
|
+
</div>
|
300
|
+
</div>
|
301
|
+
<div class="refsect1">
|
302
|
+
<a name="id-1.3.3.11"></a><h2>Tag <code class="code"><definitions></code>
|
303
|
+
</h2>
|
304
|
+
<p>
|
305
|
+
The element containing the real description of the syntax to be
|
306
|
+
highlighted. It contains one or more <code class="code"><context></code> element and an
|
307
|
+
arbitrary number of <code class="code"><define-regex></code> elements, interleaved.
|
308
|
+
It has no attributes.
|
309
|
+
Every contained element must have its <code class="code">id</code> attribute set to an
|
310
|
+
identifier unique for the document. Exactly one of the contained
|
311
|
+
<code class="code"><context></code> element must have
|
312
|
+
the <code class="code">id</code> attribute set to the <code class="code">id</code> of the
|
313
|
+
<code class="code"><language></code> root element,
|
314
|
+
representing the initial context for the highlighting, the one the engine
|
315
|
+
enters at the beginning of the highlighted file.
|
316
|
+
</p>
|
317
|
+
<p>
|
318
|
+
Contained elements:
|
319
|
+
<span class="simplelist"><code class="code"><context></code> (one or more), <code class="code"><define-regex></code> (zero or more)</span>.
|
320
|
+
</p>
|
321
|
+
</div>
|
322
|
+
<div class="refsect1">
|
323
|
+
<a name="id-1.3.3.12"></a><h2>Tag <code class="code"><define-regex></code>
|
324
|
+
</h2>
|
325
|
+
<p>
|
326
|
+
Defines a regular expression that can be reused inside other regular
|
327
|
+
expression, to avoid replicating common portions. Those regular
|
328
|
+
expressions are PCRE regular expressions in the form <code class="code">/regex/options</code> (see
|
329
|
+
the documentation of PCRE for details). If there are no options to be
|
330
|
+
specified and you don't need to match the spaces at the start and at the
|
331
|
+
end of the regular expression, you can omit the slashes, putting here only
|
332
|
+
<code class="code">regex</code>. The possible options are those specified above in the description
|
333
|
+
of the <code class="code"><default-regex-options></code> element. To disable a group of
|
334
|
+
options, instead, you have to prepend an hyphen <code class="code">-</code> to them. In
|
335
|
+
GtkSourceView are also available some extensions to the standard Perl style
|
336
|
+
regular expressions:
|
337
|
+
</p>
|
338
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
339
|
+
<li class="listitem"><p>
|
340
|
+
<code class="code">\%[</code> and <code class="code">\%]</code> are custom word boundaries, which can
|
341
|
+
be redefined with the <code class="code"><keyword-char-class></code> (in contrast with
|
342
|
+
<code class="code">\b</code>);
|
343
|
+
</p></li>
|
344
|
+
<li class="listitem"><p>
|
345
|
+
<code class="code">\%{id}</code> will include the regular expression defined in another
|
346
|
+
<code class="code"><define-regex></code> element with the specified id.
|
347
|
+
</p></li>
|
348
|
+
</ul></div>
|
349
|
+
<p>
|
350
|
+
It is allowed to use any of the attributes from
|
351
|
+
<code class="code"><default-regex-opts></code> as attributes of this tag.
|
352
|
+
</p>
|
353
|
+
<p>
|
354
|
+
Contained elements: none.
|
355
|
+
</p>
|
356
|
+
<div class="variablelist">
|
357
|
+
<p class="title"><b>Attributes:</b></p>
|
358
|
+
<table border="0" class="variablelist">
|
359
|
+
<colgroup>
|
360
|
+
<col align="left" valign="top">
|
361
|
+
<col>
|
362
|
+
</colgroup>
|
363
|
+
<tbody><tr>
|
364
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
365
|
+
<td><p>
|
366
|
+
Identifier for the regular expression. This is used
|
367
|
+
for the inclusion of the defined regular expression and must be unique
|
368
|
+
for the current document. It can contain a string of letters, digits,
|
369
|
+
hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
370
|
+
</p></td>
|
371
|
+
</tr></tbody>
|
372
|
+
</table>
|
373
|
+
</div>
|
374
|
+
</div>
|
375
|
+
<div class="refsect1">
|
376
|
+
<a name="id-1.3.3.13"></a><h2>Tag <code class="code"><context></code>
|
377
|
+
</h2>
|
378
|
+
<p>
|
379
|
+
This is the most important element when describing the syntax: the file to
|
380
|
+
be highlighted is partitioned in contexts representing the portions to be
|
381
|
+
colored differently. Contexts can also contain other contexts.
|
382
|
+
There are different kind of context elements: simple contexts, container
|
383
|
+
contexts, sub-pattern contexts, reference contexts and keyword contexts.
|
384
|
+
</p>
|
385
|
+
<p>
|
386
|
+
Context classes can be enabled or disabled for some contexts, with the
|
387
|
+
<code class="code">class</code> and <code class="code">class-disabled</code> attributes. You can create
|
388
|
+
your own context classes in custom language definition files. Here are the
|
389
|
+
default context classes:
|
390
|
+
</p>
|
391
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
392
|
+
<li class="listitem"><p>
|
393
|
+
<span class="emphasis"><em>comment</em></span>: the context delimits a comment;
|
394
|
+
</p></li>
|
395
|
+
<li class="listitem"><p>
|
396
|
+
<span class="emphasis"><em>string</em></span>: the context delimits a string;
|
397
|
+
</p></li>
|
398
|
+
<li class="listitem"><p>
|
399
|
+
<span class="emphasis"><em>no-spell-check</em></span>: the context's content should
|
400
|
+
not be spell checked.
|
401
|
+
</p></li>
|
402
|
+
</ul></div>
|
403
|
+
<div class="refsect2">
|
404
|
+
<a name="id-1.3.3.13.5"></a><h3>Simple contexts</h3>
|
405
|
+
They contain a mandatory <code class="code"><match></code> element and an optional
|
406
|
+
<code class="code"><include></code> element. The context will span over the strings
|
407
|
+
matched by the regular expression contained in the <code class="code"><match></code>
|
408
|
+
element. In the <code class="code"><include></code> element you
|
409
|
+
can only put sub-pattern contexts.
|
410
|
+
|
411
|
+
<p>
|
412
|
+
Contained elements:
|
413
|
+
<span class="simplelist"><code class="code"><match></code> (mandatory), <code class="code"><include></code> (optional)</span>.
|
414
|
+
</p>
|
415
|
+
<div class="variablelist">
|
416
|
+
<p class="title"><b>Attributes:</b></p>
|
417
|
+
<table border="0" class="variablelist">
|
418
|
+
<colgroup>
|
419
|
+
<col align="left" valign="top">
|
420
|
+
<col>
|
421
|
+
</colgroup>
|
422
|
+
<tbody>
|
423
|
+
<tr>
|
424
|
+
<td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
|
425
|
+
<td><p>
|
426
|
+
A unique identifier for the context, used in references to the context. It
|
427
|
+
can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
428
|
+
underscores ("<code class="code">_</code>").
|
429
|
+
</p></td>
|
430
|
+
</tr>
|
431
|
+
<tr>
|
432
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
433
|
+
<td><p>
|
434
|
+
Highlighting style for this context. Value of this attribute
|
435
|
+
may be id of a style defined in current lang file, or id of a style
|
436
|
+
defined in other files prefixed with corresponding language id,
|
437
|
+
e.g. "def:comment".
|
438
|
+
</p></td>
|
439
|
+
</tr>
|
440
|
+
<tr>
|
441
|
+
<td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
|
442
|
+
<td><p>
|
443
|
+
A boolean value telling the engine whether the context has higher
|
444
|
+
priority than the end of its parent. If not specified it defaults to
|
445
|
+
<code class="code">true</code>.
|
446
|
+
</p></td>
|
447
|
+
</tr>
|
448
|
+
<tr>
|
449
|
+
<td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
|
450
|
+
<td><p>
|
451
|
+
A boolean value telling the engine whether the context terminates parent context.
|
452
|
+
If not specified it defaults to <code class="code">false</code>.
|
453
|
+
</p></td>
|
454
|
+
</tr>
|
455
|
+
<tr>
|
456
|
+
<td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
|
457
|
+
<td><p>
|
458
|
+
A boolean value telling the engine whether the context can occur only
|
459
|
+
on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
|
460
|
+
</p></td>
|
461
|
+
</tr>
|
462
|
+
<tr>
|
463
|
+
<td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
|
464
|
+
<td><p>
|
465
|
+
A boolean value telling the engine whether the context can occur only
|
466
|
+
once in its parent. If not specified it defaults to <code class="code">false</code>.
|
467
|
+
</p></td>
|
468
|
+
</tr>
|
469
|
+
<tr>
|
470
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
471
|
+
<td><p>
|
472
|
+
A space-separated list of context classes to enable.
|
473
|
+
</p></td>
|
474
|
+
</tr>
|
475
|
+
<tr>
|
476
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
477
|
+
<td><p>
|
478
|
+
A space-separated list of context classes to disable.
|
479
|
+
</p></td>
|
480
|
+
</tr>
|
481
|
+
</tbody>
|
482
|
+
</table>
|
483
|
+
</div>
|
484
|
+
</div>
|
485
|
+
<hr>
|
486
|
+
<div class="refsect2">
|
487
|
+
<a name="id-1.3.3.13.6"></a><h3>Container contexts</h3>
|
488
|
+
They contain a <code class="code"><start></code> element and an optional
|
489
|
+
<code class="code"><end></code>. They respectively contain the regular
|
490
|
+
expression that makes the engine enter in the context and the terminating one.
|
491
|
+
In the optional <code class="code"><include></code> element you can put contained
|
492
|
+
contexts of every type (simple, container, sub-pattern or reference).
|
493
|
+
If the <code class="code"><start></code> element is omitted, then the
|
494
|
+
<code class="code">id</code> attribute and the <code class="code"><include></code> become
|
495
|
+
mandatory (the context can only be used as a container to include
|
496
|
+
its children).
|
497
|
+
|
498
|
+
<p>
|
499
|
+
Contained elements:
|
500
|
+
<span class="simplelist"><code class="code"><start></code> (optional), <code class="code"><end></code> (optional), <code class="code"><include></code> (optional)</span>.
|
501
|
+
</p>
|
502
|
+
<div class="variablelist">
|
503
|
+
<p class="title"><b>Attributes:</b></p>
|
504
|
+
<table border="0" class="variablelist">
|
505
|
+
<colgroup>
|
506
|
+
<col align="left" valign="top">
|
507
|
+
<col>
|
508
|
+
</colgroup>
|
509
|
+
<tbody>
|
510
|
+
<tr>
|
511
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory only if <code class="code"><start></code> not present)</span></p></td>
|
512
|
+
<td><p>
|
513
|
+
A unique identifier for the context, used in references to the context. It
|
514
|
+
can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
515
|
+
underscores ("<code class="code">_</code>").
|
516
|
+
</p></td>
|
517
|
+
</tr>
|
518
|
+
<tr>
|
519
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
520
|
+
<td><p>
|
521
|
+
Highlighting style for this context. Value of this attribute
|
522
|
+
may be id of a style defined in current lang file, or id of a style
|
523
|
+
defined in other files prefixed with corresponding language id,
|
524
|
+
e.g. "def:comment".
|
525
|
+
</p></td>
|
526
|
+
</tr>
|
527
|
+
<tr>
|
528
|
+
<td><p><span class="term"><code class="code">style-inside</code> (optional)</span></p></td>
|
529
|
+
<td><p>
|
530
|
+
If this attribute is "true", then the highlighting style will
|
531
|
+
be applied to the area between start and end matches; otherwise
|
532
|
+
whole context will be highlighted.
|
533
|
+
</p></td>
|
534
|
+
</tr>
|
535
|
+
<tr>
|
536
|
+
<td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
|
537
|
+
<td><p>
|
538
|
+
A boolean value telling the engine whether the context has a higher
|
539
|
+
priority than the end of its parent. If not specified it defaults to
|
540
|
+
<code class="code">true</code>.
|
541
|
+
</p></td>
|
542
|
+
</tr>
|
543
|
+
<tr>
|
544
|
+
<td><p><span class="term"><code class="code">end-at-line-end</code> (optional)</span></p></td>
|
545
|
+
<td><p>
|
546
|
+
A boolean value telling the engine whether the context must be forced
|
547
|
+
to end at the end of the line. If not specified it defaults to
|
548
|
+
<code class="code">false</code>.
|
549
|
+
</p></td>
|
550
|
+
</tr>
|
551
|
+
<tr>
|
552
|
+
<td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
|
553
|
+
<td><p>
|
554
|
+
A boolean value telling the engine whether the context terminates parent context
|
555
|
+
when it ends.
|
556
|
+
If not specified it defaults to <code class="code">false</code>.
|
557
|
+
</p></td>
|
558
|
+
</tr>
|
559
|
+
<tr>
|
560
|
+
<td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
|
561
|
+
<td><p>
|
562
|
+
A boolean value telling the engine whether the context can start only
|
563
|
+
on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
|
564
|
+
</p></td>
|
565
|
+
</tr>
|
566
|
+
<tr>
|
567
|
+
<td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
|
568
|
+
<td><p>
|
569
|
+
A boolean value telling the engine whether the context can occur only
|
570
|
+
once in its parent. If not specified it defaults to <code class="code">false</code>.
|
571
|
+
</p></td>
|
572
|
+
</tr>
|
573
|
+
<tr>
|
574
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
575
|
+
<td><p>
|
576
|
+
A space-separated list of context classes to enable.
|
577
|
+
</p></td>
|
578
|
+
</tr>
|
579
|
+
<tr>
|
580
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
581
|
+
<td><p>
|
582
|
+
A space-separated list of context classes to disable.
|
583
|
+
</p></td>
|
584
|
+
</tr>
|
585
|
+
</tbody>
|
586
|
+
</table>
|
587
|
+
</div>
|
588
|
+
</div>
|
589
|
+
<hr>
|
590
|
+
<div class="refsect2">
|
591
|
+
<a name="id-1.3.3.13.7"></a><h3>Sub-pattern contexts</h3>
|
592
|
+
<p>
|
593
|
+
They refer to a group in a regular expression of the parent context, so it
|
594
|
+
is possible to highlight differently only a portion of the matched regular
|
595
|
+
expression.
|
596
|
+
</p>
|
597
|
+
<p>
|
598
|
+
Contained elements: none.
|
599
|
+
</p>
|
600
|
+
<div class="variablelist">
|
601
|
+
<p class="title"><b>Attributes:</b></p>
|
602
|
+
<table border="0" class="variablelist">
|
603
|
+
<colgroup>
|
604
|
+
<col align="left" valign="top">
|
605
|
+
<col>
|
606
|
+
</colgroup>
|
607
|
+
<tbody>
|
608
|
+
<tr>
|
609
|
+
<td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
|
610
|
+
<td><p>
|
611
|
+
A unique identifier for the context. It can contain a string of letters,
|
612
|
+
digits, hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
613
|
+
</p></td>
|
614
|
+
</tr>
|
615
|
+
<tr>
|
616
|
+
<td><p><span class="term"><code class="code">sub-pattern</code> (mandatory)</span></p></td>
|
617
|
+
<td><p>
|
618
|
+
The sub-pattern to which we refer. "0" means the whole expression, "1" the
|
619
|
+
first group, "2" the second one, etc. If named sub-patterns are used you can
|
620
|
+
also use the name.
|
621
|
+
</p></td>
|
622
|
+
</tr>
|
623
|
+
<tr>
|
624
|
+
<td><p><span class="term"><code class="code">where</code> (mandatory only in container contexts)</span></p></td>
|
625
|
+
<td><p>
|
626
|
+
Can be "<code class="code">start</code>" or "<code class="code">end</code>". It has to be used
|
627
|
+
only if the parent is a container context to specify whether the
|
628
|
+
sub-pattern is in the regular
|
629
|
+
expression of the <code class="code"><start></code> or the <code class="code"><end></code>
|
630
|
+
element. In simple contexts it must be omitted.
|
631
|
+
</p></td>
|
632
|
+
</tr>
|
633
|
+
<tr>
|
634
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
635
|
+
<td><p>
|
636
|
+
A space-separated list of context classes to enable.
|
637
|
+
</p></td>
|
638
|
+
</tr>
|
639
|
+
<tr>
|
640
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
641
|
+
<td><p>
|
642
|
+
A space-separated list of context classes to disable.
|
643
|
+
</p></td>
|
644
|
+
</tr>
|
645
|
+
</tbody>
|
646
|
+
</table>
|
647
|
+
</div>
|
648
|
+
</div>
|
649
|
+
<hr>
|
650
|
+
<div class="refsect2">
|
651
|
+
<a name="id-1.3.3.13.8"></a><h3>Reference contexts</h3>
|
652
|
+
<p>
|
653
|
+
Used to include a previously defined context.
|
654
|
+
</p>
|
655
|
+
<p>
|
656
|
+
Contained elements: none.
|
657
|
+
</p>
|
658
|
+
<div class="variablelist">
|
659
|
+
<p class="title"><b>Attributes:</b></p>
|
660
|
+
<table border="0" class="variablelist">
|
661
|
+
<colgroup>
|
662
|
+
<col align="left" valign="top">
|
663
|
+
<col>
|
664
|
+
</colgroup>
|
665
|
+
<tbody>
|
666
|
+
<tr>
|
667
|
+
<td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
|
668
|
+
<td><p>
|
669
|
+
The id of the context to be included. A colon followed by an asterisk
|
670
|
+
("<code class="code">:*</code>") at the end of the id means that the parent should include
|
671
|
+
every children of the specified context, instead of the context itself.
|
672
|
+
Prepending the id of another language to the id of the context (separated
|
673
|
+
with a semicolon ":") is possible to include contexts defined inside such
|
674
|
+
external language.
|
675
|
+
</p></td>
|
676
|
+
</tr>
|
677
|
+
<tr>
|
678
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
679
|
+
<td><p>
|
680
|
+
Style in included context may be overridden by using this attribute.
|
681
|
+
Its value is id of the style to be used instead of style specified
|
682
|
+
in the referenced context.
|
683
|
+
</p></td>
|
684
|
+
</tr>
|
685
|
+
<tr>
|
686
|
+
<td><p><span class="term"><code class="code">ignore-style</code> (optional)</span></p></td>
|
687
|
+
<td><p>
|
688
|
+
If this attribute is "true" then the referenced context will not
|
689
|
+
be highlighted. It does not affect child contexts and their styles.
|
690
|
+
</p></td>
|
691
|
+
</tr>
|
692
|
+
<tr>
|
693
|
+
<td><p><span class="term"><code class="code">original</code> (optional)</span></p></td>
|
694
|
+
<td><p>
|
695
|
+
If this attribute is "true", it references the original context, if it
|
696
|
+
has been replaced with the <code class="code"><replace></code> tag.
|
697
|
+
</p></td>
|
698
|
+
</tr>
|
699
|
+
</tbody>
|
700
|
+
</table>
|
701
|
+
</div>
|
702
|
+
</div>
|
703
|
+
<hr>
|
704
|
+
<div class="refsect2">
|
705
|
+
<a name="id-1.3.3.13.9"></a><h3>Keyword contexts</h3>
|
706
|
+
<p>
|
707
|
+
They contain a list of <code class="code"><keyword></code> and matches every keyword
|
708
|
+
listed. You can also put a <code class="code"><prefix></code> and/or a
|
709
|
+
<code class="code"><suffix></code> common to every keyword.
|
710
|
+
</p>
|
711
|
+
<p>
|
712
|
+
Note that keywords are matched in the order they are listed, so if you
|
713
|
+
have both a keyword "foo" and a keyword "foobar", you should always list
|
714
|
+
foobar before foo, or it will never be matched.
|
715
|
+
</p>
|
716
|
+
<p>
|
717
|
+
Contained elements:
|
718
|
+
<span class="simplelist"><code class="code"><prefix></code> (optional), <code class="code"><suffix></code> (optional), <code class="code"><keyword></code> (one or more)</span>.
|
719
|
+
</p>
|
720
|
+
<p>
|
721
|
+
The attributes are the same used in simple contexts.
|
722
|
+
</p>
|
723
|
+
</div>
|
724
|
+
</div>
|
725
|
+
<div class="refsect1">
|
726
|
+
<a name="id-1.3.3.14"></a><h2>Tag <code class="code"><include></code>
|
727
|
+
</h2>
|
728
|
+
<p>
|
729
|
+
Contains the list of context contained in the current
|
730
|
+
<code class="code"><context></code>.
|
731
|
+
</p>
|
732
|
+
<p>
|
733
|
+
Contained elements:
|
734
|
+
<span class="simplelist"><code class="code"><context></code> (one or more), <code class="code"><define-regex></code> (zero or more)</span>.
|
735
|
+
</p>
|
736
|
+
</div>
|
737
|
+
<div class="refsect1">
|
738
|
+
<a name="id-1.3.3.15"></a><h2>Tag <code class="code"><match></code>
|
739
|
+
</h2>
|
740
|
+
<p>
|
741
|
+
Contains the regular expression for the current simple context.
|
742
|
+
The expression is in the same form used in
|
743
|
+
<code class="code"><define-regex></code> elements.
|
744
|
+
It is allowed to use any of the attributes from
|
745
|
+
<code class="code"><default-regex-opts></code> as attributes of this tag.
|
746
|
+
</p>
|
747
|
+
<p>
|
748
|
+
Contained elements: none.
|
749
|
+
</p>
|
750
|
+
</div>
|
751
|
+
<div class="refsect1">
|
752
|
+
<a name="id-1.3.3.16"></a><h2>Tag <code class="code"><start></code>
|
753
|
+
</h2>
|
754
|
+
<p>
|
755
|
+
Contains the starting regular expression for the current container context.
|
756
|
+
The expression is in the same form used in <code class="code"><define-regex></code>
|
757
|
+
elements.
|
758
|
+
It is allowed to use any of the attributes from
|
759
|
+
<code class="code"><default-regex-opts></code> as attributes of this tag.
|
760
|
+
</p>
|
761
|
+
<p>
|
762
|
+
Contained elements: none.
|
763
|
+
</p>
|
764
|
+
</div>
|
765
|
+
<div class="refsect1">
|
766
|
+
<a name="id-1.3.3.17"></a><h2>Tag <code class="code"><end></code>
|
767
|
+
</h2>
|
768
|
+
<p>
|
769
|
+
Contains the terminating regular expression for the current container
|
770
|
+
context. The expression is in the same form used in <code class="code"><define-regex></code>
|
771
|
+
elements, with an extension: <code class="code">\%{sub-pattern@start}</code> will be
|
772
|
+
substituted with the string matched in the corresponding sub-pattern
|
773
|
+
(can be a number or a name if named sub-patterns are used) in the
|
774
|
+
preceding <code class="code"><start></code> element. For instance you could
|
775
|
+
implement shell-style here-documents with this code:
|
776
|
+
</p>
|
777
|
+
<pre class="programlisting">
|
778
|
+
<context id="here-doc">
|
779
|
+
<start>&lt;&lt;\s*(\S+)$</start>
|
780
|
+
<end>^\%{1@start}$</end>
|
781
|
+
</context>
|
782
|
+
</pre>
|
783
|
+
<p>
|
784
|
+
It is also possible to use any of the attributes from
|
785
|
+
<code class="code"><default-regex-opts></code> as attributes of this tag.
|
786
|
+
</p>
|
787
|
+
<p>
|
788
|
+
Contained elements: none.
|
789
|
+
</p>
|
790
|
+
</div>
|
791
|
+
<div class="refsect1">
|
792
|
+
<a name="id-1.3.3.18"></a><h2>Tag <code class="code"><keyword></code>
|
793
|
+
</h2>
|
794
|
+
<p>
|
795
|
+
Contains a keyword to be matched by the current context. The keyword is a
|
796
|
+
regular expression in the form used in <code class="code"><define-regex></code>.
|
797
|
+
</p>
|
798
|
+
<p>
|
799
|
+
Contained elements: none.
|
800
|
+
</p>
|
801
|
+
</div>
|
802
|
+
<div class="refsect1">
|
803
|
+
<a name="id-1.3.3.19"></a><h2>Tag <code class="code"><prefix></code>
|
804
|
+
</h2>
|
805
|
+
<p>
|
806
|
+
Contains a prefix common to all of the following keywords in the current
|
807
|
+
context. The prefix is a regular expression in the form used in
|
808
|
+
<code class="code"><define-regex></code>. If not specified it defaults to
|
809
|
+
<code class="code">\%[</code>
|
810
|
+
</p>
|
811
|
+
<p>
|
812
|
+
Contained elements: none.
|
813
|
+
</p>
|
814
|
+
</div>
|
815
|
+
<div class="refsect1">
|
816
|
+
<a name="id-1.3.3.20"></a><h2>Tag <code class="code"><suffix></code>
|
817
|
+
</h2>
|
818
|
+
<p>
|
819
|
+
Contains a suffix common to all of the following keywords in the current
|
820
|
+
context. The suffix is a regular expression in the form used in
|
821
|
+
<code class="code"><define-regex></code>. If not specified it defaults to
|
822
|
+
<code class="code">\%]</code>
|
823
|
+
</p>
|
824
|
+
<p>
|
825
|
+
Contained elements: none.
|
826
|
+
</p>
|
827
|
+
</div>
|
828
|
+
<div class="refsect1">
|
829
|
+
<a name="id-1.3.3.21"></a><h2>Tag <code class="code"><replace></code>
|
830
|
+
</h2>
|
831
|
+
<p>
|
832
|
+
The replace tag allows you to change one context so it functions as
|
833
|
+
another context. For example, in the <code class="code">html.lang</code> definition,
|
834
|
+
there are a few references to a null context with id
|
835
|
+
"<code class="code">embedded-lang-hook</code>". In <code class="code">php.lang</code>, that context is
|
836
|
+
replaced like this: <code class="code"><replace id="html:embedded-lang-hook"
|
837
|
+
ref="php-block"></code>, so that php blocks are recognized within the
|
838
|
+
<code class="code">html:html</code> context at the points where the
|
839
|
+
<code class="code">embedded-lang-hook</code> context appears.
|
840
|
+
</p>
|
841
|
+
<p>
|
842
|
+
Contained elements: none.
|
843
|
+
</p>
|
844
|
+
<div class="variablelist">
|
845
|
+
<p class="title"><b>Attributes:</b></p>
|
846
|
+
<table border="0" class="variablelist">
|
847
|
+
<colgroup>
|
848
|
+
<col align="left" valign="top">
|
849
|
+
<col>
|
850
|
+
</colgroup>
|
851
|
+
<tbody>
|
852
|
+
<tr>
|
853
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
854
|
+
<td><p>
|
855
|
+
The id of the context to replace. Ex: <code class="code">id="html:embedded-lang-hook"</code>
|
856
|
+
</p></td>
|
857
|
+
</tr>
|
858
|
+
<tr>
|
859
|
+
<td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
|
860
|
+
<td><p>
|
861
|
+
The id of the context to put in place of the context being replaced. Ex: <code class="code">ref="php-block"</code>
|
862
|
+
</p></td>
|
863
|
+
</tr>
|
864
|
+
</tbody>
|
865
|
+
</table>
|
866
|
+
</div>
|
867
|
+
</div>
|
868
|
+
</div>
|
869
|
+
<div class="footer">
|
870
|
+
<hr>
|
871
|
+
Generated by GTK-Doc V1.21.1</div>
|
872
|
+
</body>
|
873
|
+
</html>
|