gtksourceview4 3.2.9-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING.LIB +502 -0
- data/README.md +24 -0
- data/Rakefile +61 -0
- data/dependency-check/Rakefile +43 -0
- data/gtksourceview4.gemspec +45 -0
- data/lib/gtksourceview4/deprecated.rb +49 -0
- data/lib/gtksourceview4/loader.rb +49 -0
- data/lib/gtksourceview4/mark-attributes.rb +29 -0
- data/lib/gtksourceview4.rb +56 -0
- data/test/run-test.rb +62 -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 +55 -0
- data/vendor/local/bin/libgtksourceview-4-0.dll +0 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +72 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource-enumtypes.h +107 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource.h +67 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceautocleanups.h +63 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcebuffer.h +279 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletion.h +156 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioncontext.h +102 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioninfo.h +77 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionitem.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionproposal.h +126 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionprovider.h +166 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceencoding.h +74 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefile.h +195 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefileloader.h +140 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefilesaver.h +168 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutter.h +93 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderer.h +272 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrendererpixbuf.h +91 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderertext.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceinit.h +40 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguage.h +98 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguagemanager.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemap.h +70 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemark.h +79 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemarkattributes.h +112 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceprintcompositor.h +223 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceregion.h +127 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchcontext.h +161 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchsettings.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcespacedrawer.h +144 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyle.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestylescheme.h +119 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooser.h +66 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserbutton.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserwidget.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschememanager.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetag.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetypes.h +73 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceundomanager.h +90 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceutils.h +41 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceversion.h +578 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceview.h +266 -0
- data/vendor/local/lib/girepository-1.0/GtkSource-4.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-4.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-4.la +41 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-4.pc +12 -0
- data/vendor/local/share/gir-1.0/GtkSource-4.gir +12999 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceBuffer.html +2421 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletion.html +1087 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionContext.html +402 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionInfo.html +207 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionItem.html +497 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProposal.html +668 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProvider.html +837 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionWords.html +343 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceEncoding.html +391 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFile.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileLoader.html +780 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileSaver.html +965 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutter.html +438 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRenderer.html +1708 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererPixbuf.html +369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererText.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguage.html +579 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguageManager.html +473 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMap.html +254 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMark.html +307 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMarkAttributes.html +788 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourcePrintCompositor.html +2121 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceRegion.html +870 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchContext.html +1216 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchSettings.html +603 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSpaceDrawer.html +671 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyle.html +433 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleScheme.html +396 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooser.html +214 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserButton.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserWidget.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceTag.html +179 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceUndoManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceView.html +2369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annexes.html +55 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annotation-glossary.html +74 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-0.html +62 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-10.html +86 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-12.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-2.html +270 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-8.html +46 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-0.html +42 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-10.html +170 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-12.html +38 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-14.html +298 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-16.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-18.html +114 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-20.html +130 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-22.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-24.html +126 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-4-0.html +65 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-deprecated.html +30 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-full.html +2586 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-reference.html +174 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/completion.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/file-loading-and-saving.html +43 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/general.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceUtils.html +151 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceView-Initialization-and-Finalization.html +100 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-Version-Information.html +511 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0.devhelp2 +819 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gutter.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/index.html +215 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/intro.html +56 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-reference.html +946 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-tutorial.html +652 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/main-classes.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/misc.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/object-tree.html +98 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide-3-to-4.html +152 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide.html +33 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/printing.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/search-and-replace.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style-reference.html +305 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style.css +483 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/styling.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting-reference.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up.png +0 -0
- data/vendor/local/share/gtksourceview-4/language-specs/R.lang +2198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/abnf.lang +109 -0
- data/vendor/local/share/gtksourceview-4/language-specs/actionscript.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ada.lang +220 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ansforth94.lang +728 -0
- data/vendor/local/share/gtksourceview-4/language-specs/asp.lang +1096 -0
- data/vendor/local/share/gtksourceview-4/language-specs/automake.lang +329 -0
- data/vendor/local/share/gtksourceview-4/language-specs/awk.lang +137 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bennugd.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bibtex.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bluespec.lang +187 -0
- data/vendor/local/share/gtksourceview-4/language-specs/boo.lang +256 -0
- data/vendor/local/share/gtksourceview-4/language-specs/c.lang +343 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cg.lang +231 -0
- data/vendor/local/share/gtksourceview-4/language-specs/changelog.lang +91 -0
- data/vendor/local/share/gtksourceview-4/language-specs/chdr.lang +50 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cmake.lang +817 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cobol.lang +646 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpp.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpphdr.lang +41 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csharp.lang +285 -0
- data/vendor/local/share/gtksourceview-4/language-specs/css.lang +2411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csv.lang +73 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cuda.lang +281 -0
- data/vendor/local/share/gtksourceview-4/language-specs/d.lang +317 -0
- data/vendor/local/share/gtksourceview-4/language-specs/def.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/desktop.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/diff.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/docbook.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dosbatch.lang +166 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dot.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dpatch.lang +47 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtd.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtl.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/eiffel.lang +238 -0
- data/vendor/local/share/gtksourceview-4/language-specs/erlang.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-4/language-specs/forth.lang +234 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fortran.lang +710 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fsharp.lang +324 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gap.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gdb-log.lang +151 -0
- data/vendor/local/share/gtksourceview-4/language-specs/genie.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/glsl.lang +482 -0
- data/vendor/local/share/gtksourceview-4/language-specs/go.lang +274 -0
- data/vendor/local/share/gtksourceview-4/language-specs/groovy.lang +330 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtk-doc.lang +90 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtkrc.lang +115 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haddock.lang +161 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell-literate.lang +58 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell.lang +227 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haxe.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/html.lang +286 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl-exelis.lang +619 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl.lang +153 -0
- data/vendor/local/share/gtksourceview-4/language-specs/imagej.lang +783 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ini.lang +94 -0
- data/vendor/local/share/gtksourceview-4/language-specs/j.lang +239 -0
- data/vendor/local/share/gtksourceview-4/language-specs/jade.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/java.lang +188 -0
- data/vendor/local/share/gtksourceview-4/language-specs/javascript.lang +354 -0
- data/vendor/local/share/gtksourceview-4/language-specs/json.lang +124 -0
- data/vendor/local/share/gtksourceview-4/language-specs/julia.lang +376 -0
- data/vendor/local/share/gtksourceview-4/language-specs/kotlin.lang +389 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.dtd +72 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.rng +372 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language2.rng +481 -0
- data/vendor/local/share/gtksourceview-4/language-specs/latex.lang +636 -0
- data/vendor/local/share/gtksourceview-4/language-specs/less.lang +793 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lex.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/libtool.lang +55 -0
- data/vendor/local/share/gtksourceview-4/language-specs/llvm.lang +314 -0
- data/vendor/local/share/gtksourceview-4/language-specs/logcat.lang +107 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lua.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/m4.lang +1374 -0
- data/vendor/local/share/gtksourceview-4/language-specs/makefile.lang +190 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mallard.lang +123 -0
- data/vendor/local/share/gtksourceview-4/language-specs/markdown.lang +401 -0
- data/vendor/local/share/gtksourceview-4/language-specs/matlab.lang +148 -0
- data/vendor/local/share/gtksourceview-4/language-specs/maxima.lang +1864 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mediawiki.lang +326 -0
- data/vendor/local/share/gtksourceview-4/language-specs/meson.lang +132 -0
- data/vendor/local/share/gtksourceview-4/language-specs/modelica.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mxml.lang +64 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nemerle.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/netrexx.lang +318 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nsis.lang +87 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objc.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objj.lang +127 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocaml.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocl.lang +138 -0
- data/vendor/local/share/gtksourceview-4/language-specs/octave.lang +1757 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ooc.lang +264 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opal.lang +342 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opencl.lang +599 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pascal.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/perl.lang +1044 -0
- data/vendor/local/share/gtksourceview-4/language-specs/php.lang +362 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pig.lang +292 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pkgconfig.lang +61 -0
- data/vendor/local/share/gtksourceview-4/language-specs/po.lang +93 -0
- data/vendor/local/share/gtksourceview-4/language-specs/prolog.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/protobuf.lang +134 -0
- data/vendor/local/share/gtksourceview-4/language-specs/puppet.lang +696 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python3.lang +198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rpmspec.lang +215 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rst.lang +141 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ruby.lang +748 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rust.lang +334 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scala.lang +383 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scheme.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scilab.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scss.lang +878 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sh.lang +516 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sml.lang +200 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sparql.lang +451 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sql.lang +617 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sweave.lang +66 -0
- data/vendor/local/share/gtksourceview-4/language-specs/swift.lang +440 -0
- data/vendor/local/share/gtksourceview-4/language-specs/systemverilog.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/t2t.lang +149 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tcl.lang +145 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tera.lang +142 -0
- data/vendor/local/share/gtksourceview-4/language-specs/texinfo.lang +447 -0
- data/vendor/local/share/gtksourceview-4/language-specs/thrift.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/toml.lang +282 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vala.lang +411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vbnet.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/verilog.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vhdl.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xml.lang +219 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xslt.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yacc.lang +176 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yaml.lang +213 -0
- data/vendor/local/share/gtksourceview-4/styles/classic.xml +122 -0
- data/vendor/local/share/gtksourceview-4/styles/cobalt.xml +150 -0
- data/vendor/local/share/gtksourceview-4/styles/kate.xml +171 -0
- data/vendor/local/share/gtksourceview-4/styles/oblivion.xml +133 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-dark.xml +103 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-light.xml +102 -0
- data/vendor/local/share/gtksourceview-4/styles/styles.rng +139 -0
- data/vendor/local/share/gtksourceview-4/styles/tango.xml +130 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +15 -0
- data/vendor/local/share/license/gtksourceview/COPYING +504 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-4.mo +0 -0
- metadata +437 -0
@@ -0,0 +1,475 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
This file is part of GtkSourceView
|
5
|
+
|
6
|
+
Copyright (C) 2003 Gustavo Giráldez <gustavo.giraldez@gmx.net>
|
7
|
+
Copyright (C) 2004 Benoît Dejean <TaZForEver@free.fr>
|
8
|
+
Copyright (C) 2006 Steve Frécinaux <nud@apinc.org>
|
9
|
+
Copyright (C) 2012 Stefano Palazzo <stefano-palazzo@ubuntu.com>
|
10
|
+
Copyright (C) 2014 Patryk Zawadzki <patrys@pld-linux.org>
|
11
|
+
Copyright (C) 2014 Sébastien Wilmet <swilmet@gnome.org>
|
12
|
+
|
13
|
+
GtkSourceView is free software; you can redistribute it and/or
|
14
|
+
modify it under the terms of the GNU Lesser General Public
|
15
|
+
License as published by the Free Software Foundation; either
|
16
|
+
version 2.1 of the License, or (at your option) any later version.
|
17
|
+
|
18
|
+
GtkSourceView is distributed in the hope that it will be useful,
|
19
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
21
|
+
Lesser General Public License for more details.
|
22
|
+
|
23
|
+
You should have received a copy of the GNU Lesser General Public License
|
24
|
+
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
25
|
+
|
26
|
+
-->
|
27
|
+
<language id="python" name="Python" version="2.0" _section="Script">
|
28
|
+
<metadata>
|
29
|
+
<property name="mimetypes">text/x-python;application/x-python</property>
|
30
|
+
<property name="globs">*.py</property>
|
31
|
+
<property name="line-comment-start">#</property>
|
32
|
+
</metadata>
|
33
|
+
|
34
|
+
<styles>
|
35
|
+
<style id="module-handler" name="Module Handler" map-to="def:preprocessor"/>
|
36
|
+
<style id="keyword" name="Keyword" map-to="def:keyword"/>
|
37
|
+
<style id="multiline-string" name="Multiline string" map-to="def:string"/>
|
38
|
+
<style id="string" name="String" map-to="def:string"/>
|
39
|
+
<style id="escaped-char" name="Escaped Character" map-to="def:special-char"/>
|
40
|
+
<style id="format" name="Format" map-to="def:character"/>
|
41
|
+
<style id="string-conversion" name="String Conversion"/>
|
42
|
+
<style id="special-variable" name="Special Variable" map-to="def:identifier"/>
|
43
|
+
<style id="boolean" name="Boolean" map-to="def:boolean"/>
|
44
|
+
<style id="floating-point" name="Floating point number" map-to="def:floating-point"/>
|
45
|
+
<style id="decimal" name="Decimal number" map-to="def:decimal"/>
|
46
|
+
<style id="base-n-integer" name="Base-N number" map-to="def:base-n-integer"/>
|
47
|
+
<style id="complex" name="Complex number" map-to="def:complex"/>
|
48
|
+
<style id="builtin-constant" name="Builtin Constant" map-to="def:special-constant"/>
|
49
|
+
<style id="builtin-object" name="Builtin Object" map-to="def:type"/>
|
50
|
+
<style id="builtin-function" name="Builtin Function" map-to="def:builtin"/>
|
51
|
+
<style id="function-name" name="Function Name" map-to="def:function"/>
|
52
|
+
<style id="class-name" name="Class Name" map-to="def:function"/>
|
53
|
+
<style id="decorator" name="Decorator" map-to="def:preprocessor"/>
|
54
|
+
</styles>
|
55
|
+
|
56
|
+
<definitions>
|
57
|
+
<define-regex id="identifier">[_a-zA-Z][_a-zA-Z0-9]*</define-regex>
|
58
|
+
<define-regex id="number">[1-9][0-9]*</define-regex>
|
59
|
+
|
60
|
+
<define-regex id="identifier-path" extended="true">
|
61
|
+
(\%{identifier}\.)*\%{identifier}
|
62
|
+
</define-regex>
|
63
|
+
<define-regex id="relative-path" extended="true">
|
64
|
+
(\.*\%{identifier-path}|\.+)
|
65
|
+
</define-regex>
|
66
|
+
|
67
|
+
<!-- http://docs.python.org/lib/typesseq-strings.html -->
|
68
|
+
<context id="format" style-ref="format" extend-parent="false">
|
69
|
+
<match extended="true">
|
70
|
+
% # leading % sign
|
71
|
+
\(\%{identifier}\)? # mapping key
|
72
|
+
[#0\-\ \+]* # conversion flags
|
73
|
+
(\-?\%{number}|\*)? # minimum field width
|
74
|
+
(\.(\-?\%{number}|\*))? # precision
|
75
|
+
(hlL)? # lentgh modifier
|
76
|
+
[diouxXeEfFgGcrs%] # conversion type
|
77
|
+
</match>
|
78
|
+
</context>
|
79
|
+
|
80
|
+
<!-- http://docs.python.org/ref/strings.html -->
|
81
|
+
<context id="escaped-char" style-ref="escaped-char" extend-parent="true">
|
82
|
+
<match extended="true">
|
83
|
+
\\( # leading backslash
|
84
|
+
[\\'"abfnrtv] | # single escaped char
|
85
|
+
N\{[0-9A-Z\ -]+\} | # named unicode character
|
86
|
+
u[0-9A-Fa-f]{4} | # xxxx - character with 16-bit hex value xxxx
|
87
|
+
U[0-9A-Fa-f]{8} | # xxxxxxxx - character with 32-bit hex value xxxxxxxx
|
88
|
+
x[0-9A-Fa-f]{1,2} | # \xhh - character with hex value hh
|
89
|
+
[0-7]{1,3} # \ooo - character with octal value ooo
|
90
|
+
)
|
91
|
+
</match>
|
92
|
+
</context>
|
93
|
+
|
94
|
+
<define-regex id="string-prefix">(u|U)?</define-regex>
|
95
|
+
<define-regex id="raw-string-prefix">(r|ur|R|UR|Ur|uR)</define-regex>
|
96
|
+
|
97
|
+
<context id="multiline-double-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
98
|
+
<start>\%{string-prefix}"""</start>
|
99
|
+
<end>"""</end>
|
100
|
+
<include>
|
101
|
+
<context ref="format"/>
|
102
|
+
<context ref="escaped-char"/>
|
103
|
+
</include>
|
104
|
+
</context>
|
105
|
+
|
106
|
+
<context id="multiline-single-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
107
|
+
<start>\%{string-prefix}'''</start>
|
108
|
+
<end>'''</end>
|
109
|
+
<include>
|
110
|
+
<context ref="format"/>
|
111
|
+
<context ref="escaped-char"/>
|
112
|
+
</include>
|
113
|
+
</context>
|
114
|
+
|
115
|
+
<context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
116
|
+
<start>\%{string-prefix}"</start>
|
117
|
+
<end>"</end>
|
118
|
+
<include>
|
119
|
+
<context ref="format"/>
|
120
|
+
<context ref="escaped-char"/>
|
121
|
+
<context ref="def:line-continue"/>
|
122
|
+
</include>
|
123
|
+
</context>
|
124
|
+
|
125
|
+
<context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
126
|
+
<start>\%{string-prefix}'</start>
|
127
|
+
<end>'</end>
|
128
|
+
<include>
|
129
|
+
<context ref="format"/>
|
130
|
+
<context ref="escaped-char"/>
|
131
|
+
<context ref="def:line-continue"/>
|
132
|
+
</include>
|
133
|
+
</context>
|
134
|
+
|
135
|
+
<context id="multiline-double-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
136
|
+
<start>\%{raw-string-prefix}"""</start>
|
137
|
+
<end>"""</end>
|
138
|
+
<include>
|
139
|
+
<context ref="format"/>
|
140
|
+
<context ref="escaped-char" ignore-style="true"/>
|
141
|
+
</include>
|
142
|
+
</context>
|
143
|
+
|
144
|
+
<context id="multiline-single-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
145
|
+
<start>\%{raw-string-prefix}'''</start>
|
146
|
+
<end>'''</end>
|
147
|
+
<include>
|
148
|
+
<context ref="format"/>
|
149
|
+
<context ref="escaped-char" ignore-style="true"/>
|
150
|
+
</include>
|
151
|
+
</context>
|
152
|
+
|
153
|
+
<context id="double-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
154
|
+
<start>\%{raw-string-prefix}"</start>
|
155
|
+
<end>"</end>
|
156
|
+
<include>
|
157
|
+
<context ref="format"/>
|
158
|
+
<context ref="escaped-char" ignore-style="true"/>
|
159
|
+
<context ref="def:line-continue" ignore-style="true"/>
|
160
|
+
</include>
|
161
|
+
</context>
|
162
|
+
|
163
|
+
<context id="single-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
164
|
+
<start>\%{raw-string-prefix}'</start>
|
165
|
+
<end>'</end>
|
166
|
+
<include>
|
167
|
+
<context ref="format"/>
|
168
|
+
<context ref="escaped-char" ignore-style="true"/>
|
169
|
+
<context ref="def:line-continue" ignore-style="true"/>
|
170
|
+
</include>
|
171
|
+
</context>
|
172
|
+
|
173
|
+
<context id="string-conversion" style-ref="string-conversion" end-at-line-end="true">
|
174
|
+
<start>`</start>
|
175
|
+
<end>`</end>
|
176
|
+
<include>
|
177
|
+
<context ref="python"/>
|
178
|
+
</include>
|
179
|
+
</context>
|
180
|
+
|
181
|
+
<context id="special-variables" style-ref="special-variable">
|
182
|
+
<prefix>(?<![\w\.])</prefix>
|
183
|
+
<keyword>self</keyword>
|
184
|
+
<keyword>__name__</keyword>
|
185
|
+
<keyword>__debug__</keyword>
|
186
|
+
</context>
|
187
|
+
|
188
|
+
<context id="boolean" style-ref="boolean">
|
189
|
+
<prefix>(?<![\w\.])</prefix>
|
190
|
+
<keyword>False</keyword>
|
191
|
+
<keyword>True</keyword>
|
192
|
+
</context>
|
193
|
+
|
194
|
+
<define-regex id="float" extended="true">
|
195
|
+
( (\d+)?\.\d+ | \d+\. ) |
|
196
|
+
( (\d+|(\d+)?\.\d+|\d+\.)[eE][+-]?\d+ )
|
197
|
+
</define-regex>
|
198
|
+
|
199
|
+
<context id="complex" style-ref="complex">
|
200
|
+
<match>(?<![\w\.])(\%{float}|\d+)[jJ]\b</match>
|
201
|
+
</context>
|
202
|
+
|
203
|
+
<context id="float" style-ref="floating-point">
|
204
|
+
<match>(?<![\w\.])\%{float}(?![\w\.])</match>
|
205
|
+
</context>
|
206
|
+
|
207
|
+
<context id="decimal" style-ref="decimal">
|
208
|
+
<match>(?<![\w\.])([1-9][0-9]*|0)[lL]?(?![\w\.])</match>
|
209
|
+
</context>
|
210
|
+
|
211
|
+
<context id="octal" style-ref="base-n-integer">
|
212
|
+
<match>(?<![\w\.])0[0-7]+[lL]?(?![\w\.])</match>
|
213
|
+
</context>
|
214
|
+
|
215
|
+
<context id="hex" style-ref="base-n-integer">
|
216
|
+
<match>(?<![\w\.])0[xX][0-9A-Fa-f]+[lL]?(?![\w\.])</match>
|
217
|
+
</context>
|
218
|
+
|
219
|
+
<context id="module-handler-from">
|
220
|
+
<match extended="true">
|
221
|
+
(from)
|
222
|
+
\s+
|
223
|
+
(\%{relative-path})
|
224
|
+
</match>
|
225
|
+
<include>
|
226
|
+
<context sub-pattern="1" style-ref="module-handler"/>
|
227
|
+
<context sub-pattern="2" style-ref="class-name"/>
|
228
|
+
</include>
|
229
|
+
</context>
|
230
|
+
|
231
|
+
<context id="module-handler" style-ref="module-handler">
|
232
|
+
<keyword>import</keyword>
|
233
|
+
<keyword>from</keyword>
|
234
|
+
<keyword>as</keyword>
|
235
|
+
</context>
|
236
|
+
|
237
|
+
<!-- 'def' is also present in the 'keyword' context, but has a lower
|
238
|
+
priority, so 'def' is highlighted even if the function name doesn't match. -->
|
239
|
+
<context id="function-definition">
|
240
|
+
<match extended="true">
|
241
|
+
(def)
|
242
|
+
\s+
|
243
|
+
(\%{identifier})
|
244
|
+
</match>
|
245
|
+
<include>
|
246
|
+
<context sub-pattern="1" style-ref="keyword"/>
|
247
|
+
<context sub-pattern="2" style-ref="function-name"/>
|
248
|
+
</include>
|
249
|
+
</context>
|
250
|
+
|
251
|
+
<!-- 'class' is also present in the 'keyword' context, but has a lower
|
252
|
+
priority, so 'class' is highlighted even if the class name doesn't match. -->
|
253
|
+
<context id="class-definition">
|
254
|
+
<match extended="true">
|
255
|
+
(class)
|
256
|
+
\s+
|
257
|
+
(\%{identifier})
|
258
|
+
</match>
|
259
|
+
<include>
|
260
|
+
<context sub-pattern="1" style-ref="keyword"/>
|
261
|
+
<context sub-pattern="2" style-ref="class-name"/>
|
262
|
+
</include>
|
263
|
+
</context>
|
264
|
+
|
265
|
+
<context id="decorator" style-ref="decorator">
|
266
|
+
<match>@\%{identifier-path}</match>
|
267
|
+
</context>
|
268
|
+
|
269
|
+
<context id="keywords" style-ref="keyword">
|
270
|
+
<keyword>and</keyword>
|
271
|
+
<keyword>assert</keyword>
|
272
|
+
<keyword>break</keyword>
|
273
|
+
<keyword>class</keyword>
|
274
|
+
<keyword>continue</keyword>
|
275
|
+
<keyword>def</keyword>
|
276
|
+
<keyword>del</keyword>
|
277
|
+
<keyword>elif</keyword>
|
278
|
+
<keyword>else</keyword>
|
279
|
+
<keyword>except</keyword>
|
280
|
+
<keyword>finally</keyword>
|
281
|
+
<keyword>for</keyword>
|
282
|
+
<keyword>global</keyword>
|
283
|
+
<keyword>if</keyword>
|
284
|
+
<keyword>in</keyword>
|
285
|
+
<keyword>is</keyword>
|
286
|
+
<keyword>lambda</keyword>
|
287
|
+
<keyword>not</keyword>
|
288
|
+
<keyword>or</keyword>
|
289
|
+
<keyword>pass</keyword>
|
290
|
+
<keyword>raise</keyword>
|
291
|
+
<keyword>return</keyword>
|
292
|
+
<keyword>try</keyword>
|
293
|
+
<keyword>while</keyword>
|
294
|
+
<keyword>with</keyword>
|
295
|
+
<keyword>yield</keyword>
|
296
|
+
</context>
|
297
|
+
|
298
|
+
<context id="2x-only-keywords" style-ref="keyword">
|
299
|
+
<keyword>exec</keyword>
|
300
|
+
<keyword>print</keyword>
|
301
|
+
</context>
|
302
|
+
|
303
|
+
<context id="builtin-constants" style-ref="builtin-constant">
|
304
|
+
<prefix>(?<![\w\.])</prefix>
|
305
|
+
<keyword>Ellipsis</keyword>
|
306
|
+
<keyword>None</keyword>
|
307
|
+
<keyword>NotImplemented</keyword>
|
308
|
+
</context>
|
309
|
+
|
310
|
+
<context id="builtin-objects" style-ref="builtin-object">
|
311
|
+
<prefix>(?<![\w\.])</prefix>
|
312
|
+
<keyword>ArithmeticError</keyword>
|
313
|
+
<keyword>AssertionError</keyword>
|
314
|
+
<keyword>AttributeError</keyword>
|
315
|
+
<keyword>EnvironmentError</keyword>
|
316
|
+
<keyword>EOFError</keyword>
|
317
|
+
<keyword>Exception</keyword>
|
318
|
+
<keyword>FloatingPointError</keyword>
|
319
|
+
<keyword>ImportError</keyword>
|
320
|
+
<keyword>IndentationError</keyword>
|
321
|
+
<keyword>IndexError</keyword>
|
322
|
+
<keyword>IOError</keyword>
|
323
|
+
<keyword>KeyboardInterrupt</keyword>
|
324
|
+
<keyword>KeyError</keyword>
|
325
|
+
<keyword>LookupError</keyword>
|
326
|
+
<keyword>MemoryError</keyword>
|
327
|
+
<keyword>NameError</keyword>
|
328
|
+
<keyword>NotImplementedError</keyword>
|
329
|
+
<keyword>OSError</keyword>
|
330
|
+
<keyword>OverflowError</keyword>
|
331
|
+
<keyword>ReferenceError</keyword>
|
332
|
+
<keyword>RuntimeError</keyword>
|
333
|
+
<keyword>StandardError</keyword>
|
334
|
+
<keyword>StopIteration</keyword>
|
335
|
+
<keyword>SyntaxError</keyword>
|
336
|
+
<keyword>SystemError</keyword>
|
337
|
+
<keyword>SystemExit</keyword>
|
338
|
+
<keyword>TabError</keyword>
|
339
|
+
<keyword>TypeError</keyword>
|
340
|
+
<keyword>UnboundLocalError</keyword>
|
341
|
+
<keyword>UnicodeDecodeError</keyword>
|
342
|
+
<keyword>UnicodeEncodeError</keyword>
|
343
|
+
<keyword>UnicodeError</keyword>
|
344
|
+
<keyword>UnicodeTranslateError</keyword>
|
345
|
+
<keyword>ValueError</keyword>
|
346
|
+
<keyword>WindowsError</keyword>
|
347
|
+
<keyword>ZeroDivisionError</keyword>
|
348
|
+
<keyword>Warning</keyword>
|
349
|
+
<keyword>UserWarning</keyword>
|
350
|
+
<keyword>DeprecationWarning</keyword>
|
351
|
+
<keyword>PendingDeprecationWarning</keyword>
|
352
|
+
<keyword>SyntaxWarning</keyword>
|
353
|
+
<keyword>OverflowWarning</keyword>
|
354
|
+
<keyword>RuntimeWarning</keyword>
|
355
|
+
<keyword>FutureWarning</keyword>
|
356
|
+
</context>
|
357
|
+
|
358
|
+
<context id="builtin-functions" style-ref="builtin-function">
|
359
|
+
<prefix>(?<![\w\.])</prefix>
|
360
|
+
<keyword>__import__</keyword>
|
361
|
+
<keyword>abs</keyword>
|
362
|
+
<keyword>all</keyword>
|
363
|
+
<keyword>any</keyword>
|
364
|
+
<keyword>bin</keyword>
|
365
|
+
<keyword>bool</keyword>
|
366
|
+
<keyword>callable</keyword>
|
367
|
+
<keyword>chr</keyword>
|
368
|
+
<keyword>classmethod</keyword>
|
369
|
+
<keyword>compile</keyword>
|
370
|
+
<keyword>complex</keyword>
|
371
|
+
<keyword>delattr</keyword>
|
372
|
+
<keyword>dict</keyword>
|
373
|
+
<keyword>dir</keyword>
|
374
|
+
<keyword>divmod</keyword>
|
375
|
+
<keyword>enumerate</keyword>
|
376
|
+
<keyword>eval</keyword>
|
377
|
+
<keyword>filter</keyword>
|
378
|
+
<keyword>float</keyword>
|
379
|
+
<keyword>format</keyword>
|
380
|
+
<keyword>frozenset</keyword>
|
381
|
+
<keyword>getattr</keyword>
|
382
|
+
<keyword>globals</keyword>
|
383
|
+
<keyword>hasattr</keyword>
|
384
|
+
<keyword>hash</keyword>
|
385
|
+
<keyword>hex</keyword>
|
386
|
+
<keyword>id</keyword>
|
387
|
+
<keyword>input</keyword>
|
388
|
+
<keyword>int</keyword>
|
389
|
+
<keyword>isinstance</keyword>
|
390
|
+
<keyword>issubclass</keyword>
|
391
|
+
<keyword>iter</keyword>
|
392
|
+
<keyword>len</keyword>
|
393
|
+
<keyword>list</keyword>
|
394
|
+
<keyword>locals</keyword>
|
395
|
+
<keyword>map</keyword>
|
396
|
+
<keyword>max</keyword>
|
397
|
+
<keyword>min</keyword>
|
398
|
+
<keyword>object</keyword>
|
399
|
+
<keyword>oct</keyword>
|
400
|
+
<keyword>open</keyword>
|
401
|
+
<keyword>ord</keyword>
|
402
|
+
<keyword>pow</keyword>
|
403
|
+
<keyword>property</keyword>
|
404
|
+
<keyword>range</keyword>
|
405
|
+
<keyword>repr</keyword>
|
406
|
+
<keyword>reversed</keyword>
|
407
|
+
<keyword>round</keyword>
|
408
|
+
<keyword>setattr</keyword>
|
409
|
+
<keyword>set</keyword>
|
410
|
+
<keyword>slice</keyword>
|
411
|
+
<keyword>sorted</keyword>
|
412
|
+
<keyword>staticmethod</keyword>
|
413
|
+
<keyword>str</keyword>
|
414
|
+
<keyword>sum</keyword>
|
415
|
+
<keyword>super</keyword>
|
416
|
+
<keyword>tuple</keyword>
|
417
|
+
<keyword>type</keyword>
|
418
|
+
<keyword>vars</keyword>
|
419
|
+
<keyword>zip</keyword>
|
420
|
+
</context>
|
421
|
+
|
422
|
+
<context id="2x-only-builtin-functions" style-ref="builtin-function">
|
423
|
+
<prefix>(?<![\w\.])</prefix>
|
424
|
+
<keyword>apply</keyword>
|
425
|
+
<keyword>basestring</keyword>
|
426
|
+
<keyword>buffer</keyword>
|
427
|
+
<keyword>cmp</keyword>
|
428
|
+
<keyword>coerce</keyword>
|
429
|
+
<keyword>execfile</keyword>
|
430
|
+
<keyword>file</keyword>
|
431
|
+
<keyword>intern</keyword>
|
432
|
+
<keyword>long</keyword>
|
433
|
+
<keyword>raw_input</keyword>
|
434
|
+
<keyword>reduce</keyword>
|
435
|
+
<keyword>reload</keyword>
|
436
|
+
<keyword>unichr</keyword>
|
437
|
+
<keyword>unicode</keyword>
|
438
|
+
<keyword>xrange</keyword>
|
439
|
+
</context>
|
440
|
+
|
441
|
+
<context id="python" class="no-spell-check">
|
442
|
+
<include>
|
443
|
+
<context ref="def:shebang"/>
|
444
|
+
<context ref="def:shell-like-comment"/>
|
445
|
+
<context ref="multiline-double-quoted-string"/>
|
446
|
+
<context ref="multiline-single-quoted-string"/>
|
447
|
+
<context ref="double-quoted-string"/>
|
448
|
+
<context ref="single-quoted-string"/>
|
449
|
+
<context ref="multiline-double-quoted-raw-string"/>
|
450
|
+
<context ref="multiline-single-quoted-raw-string"/>
|
451
|
+
<context ref="double-quoted-raw-string"/>
|
452
|
+
<context ref="single-quoted-raw-string"/>
|
453
|
+
<context ref="string-conversion"/>
|
454
|
+
<context ref="special-variables"/>
|
455
|
+
<context ref="boolean"/>
|
456
|
+
<context ref="complex"/>
|
457
|
+
<context ref="float"/>
|
458
|
+
<context ref="decimal"/>
|
459
|
+
<context ref="octal"/>
|
460
|
+
<context ref="hex"/>
|
461
|
+
<context ref="module-handler-from"/>
|
462
|
+
<context ref="module-handler"/>
|
463
|
+
<context ref="function-definition"/>
|
464
|
+
<context ref="class-definition"/>
|
465
|
+
<context ref="decorator"/>
|
466
|
+
<context ref="keywords"/>
|
467
|
+
<context ref="2x-only-keywords"/>
|
468
|
+
<context ref="builtin-constants"/>
|
469
|
+
<context ref="builtin-objects"/>
|
470
|
+
<context ref="builtin-functions"/>
|
471
|
+
<context ref="2x-only-builtin-functions"/>
|
472
|
+
</include>
|
473
|
+
</context>
|
474
|
+
</definitions>
|
475
|
+
</language>
|
@@ -0,0 +1,198 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
|
4
|
+
This file is part of GtkSourceView
|
5
|
+
|
6
|
+
Author: Stefano Palazzo <stefano-palazzo@ubuntu.com>
|
7
|
+
Copyright (C) 2012 Stefano Palazzo <stefano-palazzo@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 License
|
20
|
+
along with this library; if not, see <http://www.gnu.org/licenses/>.
|
21
|
+
|
22
|
+
-->
|
23
|
+
<language id="python3" name="Python 3" version="2.0" _section="Script">
|
24
|
+
<metadata>
|
25
|
+
<property name="mimetypes">text/x-python3</property>
|
26
|
+
<property name="globs">*.py3</property>
|
27
|
+
<property name="line-comment-start">#</property>
|
28
|
+
</metadata>
|
29
|
+
|
30
|
+
<styles>
|
31
|
+
<style id="module-handler" name="Module Handler" map-to="python:module-handler"/>
|
32
|
+
<style id="keyword" name="Keyword" map-to="python:keyword"/>
|
33
|
+
<style id="multiline-string" name="Multiline string" map-to="python:multiline-string"/>
|
34
|
+
<style id="string" name="String" map-to="python:string"/>
|
35
|
+
<style id="escaped-char" name="Escaped Character" map-to="python:escaped-char"/>
|
36
|
+
<style id="format" name="Format" map-to="python:format"/>
|
37
|
+
<style id="special-variable" name="Special Variable" map-to="python:special-variable"/>
|
38
|
+
<style id="boolean" name="Boolean" map-to="python:boolean"/>
|
39
|
+
<style id="floating-point" name="Floating point number" map-to="python:floating-point"/>
|
40
|
+
<style id="decimal" name="Decimal number" map-to="python:decimal"/>
|
41
|
+
<style id="base-n-integer" name="Base-N number" map-to="python:base-n-integer"/>
|
42
|
+
<style id="complex" name="Complex number" map-to="python:complex"/>
|
43
|
+
<style id="builtin-constant" name="Builtin Constant" map-to="python:builtin-constant"/>
|
44
|
+
<style id="builtin-object" name="Builtin Object" map-to="python:builtin-object"/>
|
45
|
+
<style id="builtin-function" name="Builtin Function" map-to="python:builtin-function"/>
|
46
|
+
</styles>
|
47
|
+
|
48
|
+
<definitions>
|
49
|
+
<define-regex id="identifier">[_a-zA-Z][_a-zA-Z0-9]*</define-regex>
|
50
|
+
<define-regex id="number">[1-9][0-9]*</define-regex>
|
51
|
+
|
52
|
+
|
53
|
+
<define-regex id="string-prefix">(b|B)?</define-regex>
|
54
|
+
<define-regex id="raw-string-prefix">(r|R|rb|RB|rB|Rb|br|BR|bR|Br)</define-regex>
|
55
|
+
|
56
|
+
<context id="multiline-double-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
57
|
+
<start>\%{string-prefix}"""</start>
|
58
|
+
<end>"""</end>
|
59
|
+
<include>
|
60
|
+
<context ref="python:format"/>
|
61
|
+
<context ref="python:escaped-char"/>
|
62
|
+
</include>
|
63
|
+
</context>
|
64
|
+
|
65
|
+
<context id="multiline-single-quoted-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
66
|
+
<start>\%{string-prefix}'''</start>
|
67
|
+
<end>'''</end>
|
68
|
+
<include>
|
69
|
+
<context ref="python:format"/>
|
70
|
+
<context ref="python:escaped-char"/>
|
71
|
+
</include>
|
72
|
+
</context>
|
73
|
+
|
74
|
+
<context id="double-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
75
|
+
<start>\%{string-prefix}"</start>
|
76
|
+
<end>"</end>
|
77
|
+
<include>
|
78
|
+
<context ref="python:format"/>
|
79
|
+
<context ref="python:escaped-char"/>
|
80
|
+
<context ref="def:line-continue"/>
|
81
|
+
</include>
|
82
|
+
</context>
|
83
|
+
|
84
|
+
<context id="single-quoted-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
85
|
+
<start>\%{string-prefix}'</start>
|
86
|
+
<end>'</end>
|
87
|
+
<include>
|
88
|
+
<context ref="python:format"/>
|
89
|
+
<context ref="python:escaped-char"/>
|
90
|
+
<context ref="def:line-continue"/>
|
91
|
+
</include>
|
92
|
+
</context>
|
93
|
+
|
94
|
+
<context id="multiline-double-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
95
|
+
<start>\%{raw-string-prefix}"""</start>
|
96
|
+
<end>"""</end>
|
97
|
+
<include>
|
98
|
+
<context ref="python:format"/>
|
99
|
+
</include>
|
100
|
+
</context>
|
101
|
+
|
102
|
+
<context id="multiline-single-quoted-raw-string" style-ref="multiline-string" class="string" class-disabled="no-spell-check">
|
103
|
+
<start>\%{raw-string-prefix}'''</start>
|
104
|
+
<end>'''</end>
|
105
|
+
<include>
|
106
|
+
<context ref="python:format"/>
|
107
|
+
</include>
|
108
|
+
</context>
|
109
|
+
|
110
|
+
<context id="double-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
111
|
+
<start>\%{raw-string-prefix}"</start>
|
112
|
+
<end>"</end>
|
113
|
+
<include>
|
114
|
+
<context ref="python:format"/>
|
115
|
+
<context ref="def:line-continue"/>
|
116
|
+
</include>
|
117
|
+
</context>
|
118
|
+
|
119
|
+
<context id="single-quoted-raw-string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
120
|
+
<start>\%{raw-string-prefix}'</start>
|
121
|
+
<end>'</end>
|
122
|
+
<include>
|
123
|
+
<context ref="python:format"/>
|
124
|
+
<context ref="def:line-continue"/>
|
125
|
+
</include>
|
126
|
+
</context>
|
127
|
+
|
128
|
+
<context id="python3" class="no-spell-check">
|
129
|
+
<include>
|
130
|
+
<context ref="def:shebang"/>
|
131
|
+
<context ref="def:shell-like-comment"/>
|
132
|
+
|
133
|
+
<context ref="multiline-double-quoted-string"/>
|
134
|
+
<context ref="multiline-single-quoted-string"/>
|
135
|
+
<context ref="double-quoted-string"/>
|
136
|
+
<context ref="single-quoted-string"/>
|
137
|
+
|
138
|
+
<context ref="multiline-double-quoted-raw-string"/>
|
139
|
+
<context ref="multiline-single-quoted-raw-string"/>
|
140
|
+
<context ref="double-quoted-raw-string"/>
|
141
|
+
<context ref="single-quoted-raw-string"/>
|
142
|
+
|
143
|
+
<context ref="python:special-variables"/>
|
144
|
+
<context ref="python:boolean"/>
|
145
|
+
|
146
|
+
<context ref="python:complex"/>
|
147
|
+
|
148
|
+
<context ref="python:float"/>
|
149
|
+
|
150
|
+
<context ref="python:decimal"/>
|
151
|
+
|
152
|
+
<context id="binary" style-ref="base-n-integer">
|
153
|
+
<match>(?<![\w\.])0[bB][0-1]+[lL]?(?![\w\.])</match>
|
154
|
+
</context>
|
155
|
+
|
156
|
+
<context id="octal" style-ref="base-n-integer">
|
157
|
+
<match>(?<![\w\.])0[oO][0-7]+[lL]?(?![\w\.])</match>
|
158
|
+
</context>
|
159
|
+
|
160
|
+
<context ref="python:hex"/>
|
161
|
+
|
162
|
+
<context ref="python:module-handler-from"/>
|
163
|
+
<context ref="python:module-handler"/>
|
164
|
+
<context ref="python:function-definition"/>
|
165
|
+
<context ref="python:class-definition"/>
|
166
|
+
<context ref="python:decorator"/>
|
167
|
+
|
168
|
+
<context ref="python:keywords"/>
|
169
|
+
<context id="3x-only-keywords" style-ref="keyword">
|
170
|
+
<keyword>async</keyword>
|
171
|
+
<keyword>await</keyword>
|
172
|
+
<keyword>nonlocal</keyword>
|
173
|
+
</context>
|
174
|
+
|
175
|
+
<context ref="python:builtin-constants"/>
|
176
|
+
<context ref="python:builtin-objects"/>
|
177
|
+
<context id="3x-only-builtin-objects" style-ref="builtin-object">
|
178
|
+
<prefix>(?<![\w\.])</prefix>
|
179
|
+
<keyword>ResourceWarning</keyword>
|
180
|
+
</context>
|
181
|
+
|
182
|
+
<context ref="python:builtin-functions"/>
|
183
|
+
<context id="3x-only-builtin-functions" style-ref="builtin-function">
|
184
|
+
<prefix>(?<![\w\.])</prefix>
|
185
|
+
<keyword>ascii</keyword>
|
186
|
+
<keyword>bin</keyword>
|
187
|
+
<keyword>bytearray</keyword>
|
188
|
+
<keyword>bytes</keyword>
|
189
|
+
<keyword>exec</keyword>
|
190
|
+
<keyword>format</keyword>
|
191
|
+
<keyword>memoryview</keyword>
|
192
|
+
<keyword>next</keyword>
|
193
|
+
<keyword>print</keyword>
|
194
|
+
</context>
|
195
|
+
</include>
|
196
|
+
</context>
|
197
|
+
</definitions>
|
198
|
+
</language>
|