codequery-0.21.0/000077500000000000000000000000001310136352400135705ustar00rootroot00000000000000codequery-0.21.0/.gitignore000066400000000000000000000005101310136352400155540ustar00rootroot00000000000000# Compiled Object files *.slo *.lo *.o # Compiled Dynamic libraries *.so *.dylib # Compiled Static libraries *.lai *.la *.a # Ignore backups *~ *.bak # Ignore the following directories build/ build32/ build64/ output/ Output/ bin/ html/ # Ignore cscope and ctags files, and our db files cscope.files cscope.out tags *.db codequery-0.21.0/.travis.yml000066400000000000000000000052371310136352400157100ustar00rootroot00000000000000language: cpp compiler: gcc dist: trusty sudo: require env: global: # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created # via the "travis encrypt" command using the project repo's public key - secure: "ev1xh15/xbYiElXyiC5yEwPiP99Vp9jO7zNjk9AVrH76MZNlHOp90bdDYF7zkgRMKBWORcQubTF8h9iM1EFYXwxWVapuKrFlISQKHuErOo+hjKFzMvJcdYhBd2BZCbkQmowv1U860QlZGx+oW6hhG1sJmWfzm/AANQuc6/+qozI=" before_install: - uname -a - sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install -qq qdbus qmlscene qt5-default qt5-qmake qtbase5-dev-tools qtchooser qtdeclarative5-dev xbitmaps xterm libqt5svg5-dev qttools5-dev qtscript5-dev qtdeclarative5-folderlistmodel-plugin qtdeclarative5-controls-plugin qttools5-dev-tools - sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install -qq sqlite3 libsqlite3-dev cscope exuberant-ctags rpm qt4-dev-tools clang script: - sudo ln -s /usr/bin/gcc-4.8 /usr/local/bin/gcc - sudo ln -s /usr/bin/g++-4.8 /usr/local/bin/g++ - gcc -v && g++ -v && clang -v && cmake --version - mkdir -p build - cd build - rm -rf * - cmake -G "Unix Makefiles" .. - make package - sudo make install - cqmakedb -v - cd .. - cscope -cbR - ctags --fields=+i -nR - cqmakedb -s cq.db -c cscope.out -t tags -p -d - cqsearch -s cq.db -p 1 -t CODEQUERY_SW_VERSION -u - cd build - rm -rf * - cmake -G "Unix Makefiles" -DBUILD_QT5=ON .. - make package - sudo make install - cqmakedb -v - cd .. - rm cscope.out - rm tags - rm cq.db - cscope -cbR - ctags --fields=+i -nR - cqmakedb -s cq.db -c cscope.out -t tags -p -d - cqsearch -s cq.db -p 1 -t CODEQUERY_SW_VERSION -u - cd build - rm -rf * - export CC=clang - export CXX=clang++ - cmake -G "Unix Makefiles" -DBUILD_QT5=ON .. - make package - sudo make install - cqmakedb -v - cd .. - rm cscope.out - rm tags - rm cq.db - cscope -cbR - ctags --fields=+i -nR - cqmakedb -s cq.db -c cscope.out -t tags -p -d - cqsearch -s cq.db -p 1 -t CODEQUERY_SW_VERSION -u addons: apt: sources: - ubuntu-toolchain-r-test packages: - gcc-4.8 - g++-4.8 - cmake coverity_scan: project: name: "ruben2020/codequery" description: "Build submitted via Travis CI" notification_email: ruben2020-git@users.sourceforge.net build_command_prepend: "mkdir -p build; cd build; rm -rf *; cmake -DBUILD_QT5=ON .." build_command: "make" branch_pattern: coverity_scan notifications: email: - ruben2020-git@users.sourceforge.net on_success: change on_failure: always codequery-0.21.0/CMakeLists.txt000066400000000000000000000037121310136352400163330ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.2.2) project(CodeQuery) option(BUILD_QT5 OFF) SET( CMAKE_CXX_STANDARD 11 ) SET( CMAKE_CXX_STANDARD_REQUIRED ON ) IF(MSVC) ADD_DEFINITIONS(/D _CRT_SECURE_NO_WARNINGS) ELSE(MSVC) SET( CMAKE_CXX_FLAGS "-O2 -Wno-unused-result" ) SET( CMAKE_CXX_FLAGS_DEBUG "-O2 -Wno-unused-result" ) SET( CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-unused-result" ) ENDIF(MSVC) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmakefind/") set( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR} ) add_subdirectory( "querylib" ) add_subdirectory( "makedb" ) add_subdirectory( "cli" ) add_subdirectory( "scintilla/qt/ScintillaEdit" ) add_subdirectory( "showgraph" ) add_subdirectory( "gui" ) if (UNIX) if (BUILD_QT5) set( CPACK_PACKAGE_NAME "codequery-qt5" ) set( CPACK_DEBIAN_PACKAGE_DEPENDS "qtbase5-dev (>= 5.4.0) , libsqlite3-0 (>= 3.7.0) " ) else (BUILD_QT5) set( CPACK_PACKAGE_NAME "codequery-qt4" ) set( CPACK_DEBIAN_PACKAGE_DEPENDS "libqtcore4 (>= 4.8.0), libqtgui4 (>= 4.8.0) , libqt4-xml (>= 4.8.0) , libsqlite3-0 (>= 3.7.0) " ) endif (BUILD_QT5) if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64" ) else( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( CPACK_DEBIAN_PACKAGE_ARCHITECTURE "i386" ) endif( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set( CPACK_GENERATOR "DEB;TGZ") set( CPACK_PACKAGE_VERSION "0.21.0" ) set( CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Linux-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}" ) set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Code understanding and searching tool") set( CPACK_PACKAGE_DESCRIPTION "Code understanding and searching tool") set( CPACK_PACKAGE_VENDOR "ruben2020") set( CPACK_DEBIAN_PACKAGE_RECOMMENDS "cscope , exuberant-ctags" ) set( CPACK_DEBIAN_PACKAGE_SECTION "devel" ) set( CPACK_DEBIAN_PACKAGE_MAINTAINER "ruben2020 ruben2020-git@users.sourceforge.net") set( CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://ruben2020.github.io/codequery/") include(CPack) endif(UNIX) codequery-0.21.0/Doxyfile000066400000000000000000002343001310136352400153000ustar00rootroot00000000000000# Doxyfile 1.8.3.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" "). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all # text before the first occurrence of this tag. Doxygen uses libiconv (or the # iconv built into libc) for the transcoding. See # http://www.gnu.org/software/libiconv for the list of possible encodings. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or sequence of words) that should # identify the project. Note that if you do not use Doxywizard you need # to put quotes around the project name if it contains spaces. PROJECT_NAME = "CodeQuery" # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = "0.09" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer # a quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = "A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java and Python source code." # With the PROJECT_LOGO tag one can specify an logo or icon that is # included in the documentation. The maximum height of the logo should not # exceed 55 pixels and the maximum width should not exceed 200 pixels. # Doxygen will copy the logo to the output directory. PROJECT_LOGO = "doc/logotitle_small.png" # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = "build/doxy" # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, # Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English # messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, # Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, # Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = YES # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. Note that you specify absolute paths here, but also # relative paths, which will be relative from the directory where doxygen is # started. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful if your file system # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like regular Qt-style comments # (thus requiring an explicit @brief command for a brief description.) JAVADOC_AUTOBRIEF = NO # If the QT_AUTOBRIEF tag is set to YES then Doxygen will # interpret the first line (until the first dot) of a Qt-style # comment as the brief description. If set to NO, the comments # will behave just like regular Qt-style comments (thus requiring # an explicit \brief command for a brief description.) QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 4 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding # "class=itcl::class" will allow you to use the command class in the # itcl::class meaning. TCL_SUBST = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for # Java. For instance, namespaces will be presented as packages, qualified # scopes will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources only. Doxygen will then generate output that is more tailored for # Fortran. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for # VHDL. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given # extension. Doxygen has a built-in mapping, but you can override or extend it # using this tag. The format is ext=language, where ext is a file extension, # and language is one of the parsers supported by doxygen: IDL, Java, # Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, # C++. For instance to make doxygen treat .inc files as Fortran files (default # is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note # that for custom extensions you also need to set FILE_PATTERNS otherwise the # files are not read by doxygen. EXTENSION_MAPPING = # If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all # comments according to the Markdown format, which allows for more readable # documentation. See http://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you # can mix doxygen, HTML, and XML commands with Markdown formatting. # Disable only in case of backward compatibilities issues. MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented classes, # or namespaces to their corresponding documentation. Such a link can be # prevented in individual cases by by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. AUTOLINK_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also makes the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. # Doxygen will parse them like normal C++ but will assume all classes use public # instead of private inheritance when no explicit protection keyword is present. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate # getter and setter methods for a property. Setting this option to YES (the # default) will make doxygen replace the get and set methods by a property in # the documentation. This will only work if the methods are indeed getting or # setting a simple type. If this is not the case, or you want to show the # methods anyway, you should set this option to NO. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and # unions are shown inside the group in which they are included (e.g. using # @ingroup) instead of on a separate page (for HTML and Man pages) or # section (for LaTeX and RTF). INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and # unions with only public data fields will be shown inline in the documentation # of the scope in which they are defined (i.e. file, namespace, or group # documentation), provided this scope is documented. If set to NO (the default), # structs, classes, and unions are shown on a separate page (for HTML and Man # pages) or section (for LaTeX and RTF). INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum # is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically # be useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. TYPEDEF_HIDES_STRUCT = NO # The SYMBOL_CACHE_SIZE determines the size of the internal cache use to # determine which symbols to keep in memory and which to flush to disk. # When the cache is full, less often used symbols will be written to disk. # For small to medium size projects (<1000 input files) the default value is # probably good enough. For larger projects a too small cache size can cause # doxygen to be busy swapping symbols to and from disk most of the time # causing a significant performance penalty. # If the system has enough physical memory increasing the cache will improve the # performance by keeping more symbols in memory. Note that the value works on # a logarithmic scale so increasing the size by one will roughly double the # memory usage. The cache size is given by this formula: # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols. SYMBOL_CACHE_SIZE = 0 # Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be # set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given # their name and scope. Since this can be an expensive process and often the # same symbol appear multiple times in the code, doxygen keeps a cache of # pre-resolved symbols. If the cache is too small doxygen will become slower. # If the cache is too large, memory is wasted. The cache size is given by this # formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols. LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_PACKAGE tag is set to YES all members with package or internal # scope will be included in the documentation. EXTRACT_PACKAGE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base # name of the file that contains the anonymous namespace. By default # anonymous namespaces are hidden. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen # will list include files with double quotes in the documentation # rather than with sharp brackets. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen # will sort the (brief and detailed) documentation of class members so that # constructors and destructors are listed first. If set to NO (the default) # the constructors will appear in the respective orders defined by # SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. # This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO # and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. SORT_MEMBERS_CTORS_1ST = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the # hierarchy of group names into alphabetical order. If set to NO (the default) # the group names will appear in their defined order. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to # do proper type resolution of all parameters of a function it will reject a # match between the prototype and the implementation of a member function even # if there is only one candidate or it is obvious which candidate to choose # by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen # will still accept a match between prototype and implementation in such cases. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if section-label ... \endif # and \cond section-label ... \endcond blocks. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or macro consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and macros in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # Set the SHOW_FILES tag to NO to disable the generation of the Files page. # This will remove the Files entry from the Quick Index and from the # Folder Tree View (if specified). The default is YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the # Namespaces page. # This will remove the Namespaces entry from the Quick Index # and from the Folder Tree View (if specified). The default is YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. # You can optionally specify a file name after the option, if omitted # DoxygenLayout.xml will be used as the name of the layout file. LAYOUT_FILE = # The CITE_BIB_FILES tag can be used to specify one or more bib files # containing the references data. This must be a list of .bib files. The # .bib extension is automatically appended if omitted. Using this command # requires the bibtex tool to be installed. See also # http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style # of the bibliography can be controlled using LATEX_BIB_STYLE. To use this # feature you need bibtex and perl available in the search path. Do not use # file names with spaces, bibtex cannot handle them. CITE_BIB_FILES = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_NO_PARAMDOC option can be enabled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # also the default input encoding. Doxygen uses libiconv (or the iconv built # into libc) for the transcoding. See http://www.gnu.org/software/libiconv for # the list of possible encodings. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py # *.f90 *.f *.for *.vhd *.vhdl FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. # If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. # Doxygen will compare the file name with each pattern and apply the # filter if there is a match. # The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty or if # non of the patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) # and it is also possible to disable source filtering for a specific pattern # using *.ext= (so without naming a filter). This option only has effect when # FILTER_SOURCE_FILES is enabled. FILTER_SOURCE_PATTERNS = # If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that # is part of the input, its contents will be placed on the main page (index.html). # This can be useful if you have a project on for instance GitHub and want reuse # the introduction page also for the doxygen output. USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C, C++ and Fortran comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. # Otherwise they will link to the documentation. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = YES # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. Note that when using a custom header you are responsible # for the proper inclusion of any scripts and style sheets that doxygen # needs, which is dependent on the configuration options used. # It is advised to generate a default header using "doxygen -w html # header.html footer.html stylesheet.css YourConfigFile" and then modify # that header. Note that the header is subject to change so you typically # have to redo this when upgrading to a newer version of doxygen or when # changing the value of configuration settings such as GENERATE_TREEVIEW! HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If left blank doxygen will # generate a default style sheet. Note that it is recommended to use # HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this # tag will in the future become obsolete. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify an additional # user-defined cascading style sheet that is included after the standard # style sheets created by doxygen. Using this option one can overrule # certain style aspects. This is preferred over using HTML_STYLESHEET # since it does not replace the standard style sheet and is therefor more # robust against future updates. Doxygen will copy the style sheet file to # the output directory. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that # the files will be copied as-is; there are no commands or markers available. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. # Doxygen will adjust the colors in the style sheet and background images # according to this color. Hue is specified as an angle on a colorwheel, # see http://en.wikipedia.org/wiki/Hue for more information. # For instance the value 0 represents red, 60 is yellow, 120 is green, # 180 is cyan, 240 is blue, 300 purple, and 360 is red again. # The allowed range is 0 to 359. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of # the colors in the HTML output. For a value of 0 the output will use # grayscales only. A value of 255 will produce the most vivid colors. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to # the luminance component of the colors in the HTML output. Values below # 100 gradually make the output lighter, whereas values above 100 make # the output darker. The value divided by 100 is the actual gamma applied, # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, # and 100 does not change the gamma. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting # this to NO can help when comparing the output of multiple runs. HTML_TIMESTAMP = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. HTML_DYNAMIC_SECTIONS = NO # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of # entries shown in the various tree structured indices initially; the user # can expand and collapse entries dynamically later on. Doxygen will expand # the tree to such a level that at most the specified number of entries are # visible (unless a fully collapsed tree already exceeds this amount). # So setting the number of entries 1 will produce a full collapsed tree by # default. 0 is a special value representing an infinite number of entries # and will result in a full expanded tree by default. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files # will be generated that can be used as input for Apple's Xcode 3 # integrated development environment, introduced with OSX 10.5 (Leopard). # To create a documentation set, doxygen will generate a Makefile in the # HTML output directory. Running make will produce the docset in that # directory and running "make install" will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find # it at startup. # See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. GENERATE_DOCSET = NO # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the # feed. A documentation feed provides an umbrella under which multiple # documentation sets from a single provider (such as a company or product suite) # can be grouped. DOCSET_FEEDNAME = "Doxygen generated docs" # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that # should uniquely identify the documentation set bundle. This should be a # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen # will append .docset to the name. DOCSET_BUNDLE_ID = org.doxygen.Project # When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely # identify the documentation publisher. This should be a reverse domain-name # style string, e.g. com.mycompany.MyDocSet.documentation. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compiled HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING # is used to encode HtmlHelp index (hhk), content (hhc) and project file # content. CHM_INDEX_ENCODING = # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated # that can be used as input for Qt's qhelpgenerator to generate a # Qt Compressed Help (.qch) of the generated HTML documentation. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can # be used to specify the file name of the resulting .qch file. # The path specified is relative to the HTML output folder. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#namespace QHP_NAMESPACE = org.doxygen.Project # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#virtual-folders QHP_VIRTUAL_FOLDER = doc # If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to # add. For more information please see # http://doc.trolltech.com/qthelpproject.html#custom-filters QHP_CUST_FILTER_NAME = # The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see # # Qt Help Project / Custom Filters. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's # filter section matches. # # Qt Help Project / Filter Attributes. QHP_SECT_FILTER_ATTRS = # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can # be used to specify the location of Qt's qhelpgenerator. # If non-empty doxygen will try to run qhelpgenerator on the generated # .qhp file. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files # will be generated, which together with the HTML files, form an Eclipse help # plugin. To install this plugin and make it available under the help contents # menu in Eclipse, the contents of the directory containing the HTML and XML # files needs to be copied into the plugins directory of eclipse. The name of # the directory within the plugins directory should be the same as # the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before # the help appears. GENERATE_ECLIPSEHELP = NO # A unique identifier for the eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have # this name. ECLIPSE_DOC_ID = org.doxygen.Project # The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) # at top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. Since the tabs have the same information as the # navigation tree you can set this option to NO if you already set # GENERATE_TREEVIEW to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. # If the tag value is set to YES, a side panel will be generated # containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). # Windows users are probably better off using the HTML help feature. # Since the tree basically has the same information as the tab index you # could consider to set DISABLE_INDEX to NO when enabling this option. GENERATE_TREEVIEW = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values # (range [0,1..20]) that doxygen will group on one line in the generated HTML # documentation. Note that a value of 0 will completely suppress the enum # values from appearing in the overview section. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 # When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open # links to external symbols imported via tag files in a separate window. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of Latex formulas included # as images in the HTML documentation. The default is 10. Note that # when you change the font size after a successful doxygen run you need # to manually remove any form_*.png images from the HTML output directory # to force them to be regenerated. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are # not supported properly for IE 6.0, but are supported on all modern browsers. # Note that when changing this option you need to delete any form_*.png files # in the HTML output before the changes have effect. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax # (see http://www.mathjax.org) which uses client side Javascript for the # rendering instead of using prerendered bitmaps. Use this if you do not # have LaTeX installed or if you want to formulas look prettier in the HTML # output. When enabled you may also need to install MathJax separately and # configure the path to it using the MATHJAX_RELPATH option. USE_MATHJAX = NO # When MathJax is enabled you can set the default output format to be used for # thA MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and # SVG. The default value is HTML-CSS, which is slower, but has the best # compatibility. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the # HTML output directory using the MATHJAX_RELPATH option. The destination # directory should contain the MathJax.js script. For instance, if the mathjax # directory is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to # the MathJax Content Delivery Network so you can quickly see the result without # installing MathJax. # However, it is strongly recommended to install a local # copy of MathJax from http://www.mathjax.org before deployment. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension # names that should be enabled during MathJax rendering. MATHJAX_EXTENSIONS = # When the SEARCHENGINE tag is enabled doxygen will generate a search box # for the HTML output. The underlying search engine uses javascript # and DHTML and should work on any modern browser. Note that when using # HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets # (GENERATE_DOCSET) there is already a search function so this one should # typically be disabled. For large projects the javascript based search engine # can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. SEARCHENGINE = YES # When the SERVER_BASED_SEARCH tag is enabled the search engine will be # implemented using a web server instead of a web client using Javascript. # There are two flavours of web server based search depending on the # EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for # searching and an index file used by the script. When EXTERNAL_SEARCH is # enabled the indexing and searching needs to be provided by external tools. # See the manual for details. SERVER_BASED_SEARCH = NO # When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP # script for searching. Instead the search results are written to an XML file # which needs to be processed by an external indexer. Doxygen will invoke an # external search engine pointed to by the SEARCHENGINE_URL option to obtain # the search results. Doxygen ships with an example indexer (doxyindexer) and # search engine (doxysearch.cgi) which are based on the open source search engine # library Xapian. See the manual for configuration details. EXTERNAL_SEARCH = NO # The SEARCHENGINE_URL should point to a search engine hosted by a web server # which will returned the search results when EXTERNAL_SEARCH is enabled. # Doxygen ships with an example search engine (doxysearch) which is based on # the open source search engine library Xapian. See the manual for configuration # details. SEARCHENGINE_URL = # When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed # search data is written to a file for indexing by an external tool. With the # SEARCHDATA_FILE tag the name of this file can be specified. SEARCHDATA_FILE = searchdata.xml # When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the # EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is # useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple # projects and redirect the results back to the right project. EXTERNAL_SEARCH_ID = # The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen # projects other than the one defined by this configuration file, but that are # all added to the same external search index. Each project needs to have a # unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id # of to a relative location where the documentation can be found. # The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ... EXTRA_SEARCH_MAPPINGS = #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. # Note that when enabling USE_PDFLATEX this option is only used for # generating bitmaps for formulas in the HTML output, but not in the # Makefile that is written to the output directory. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4 # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for # the generated latex document. The footer should contain everything after # the last chapter. If it is left blank doxygen will generate a # standard footer. Notice: only use this tag if you know what you are doing! LATEX_FOOTER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = YES # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO # If LATEX_SOURCE_CODE is set to YES then doxygen will include # source code with syntax highlighting in the LaTeX output. # Note that which sources are shown also depends on other settings # such as SOURCE_BROWSER. LATEX_SOURCE_CODE = NO # The LATEX_BIB_STYLE tag can be used to specify the style to use for the # bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See # http://en.wikipedia.org/wiki/BibTeX for more info. LATEX_BIB_STYLE = plain #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load style sheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. # This is useful # if you want to understand what is going on. # On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # pointed to by INCLUDE_PATH will be searched when a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition that # overrules the definition found in the source code. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all references to function-like macros # that are alone on a line, have an all uppercase name, and do not end with a # semicolon, because these will confuse the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. For each # tag file the location of the external documentation should be added. The # format of a tag file without this location is as follows: # # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths # or URLs. Note that each tag file must have a unique name (where the name does # NOT include the path). If a tag file is not located in the directory in which # doxygen is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option also works with HAVE_DOT disabled, but it is recommended to # install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = YES # You can define message sequence charts within doxygen comments using the \msc # command. Doxygen will then run the mscgen tool (see # http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the # documentation. The MSCGEN_PATH tag allows you to specify the directory where # the mscgen tool resides. If left empty the tool is assumed to be found in the # default search path. MSCGEN_PATH = # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is # allowed to run in parallel. When set to 0 (the default) doxygen will # base this on the number of processors available in the system. You can set it # explicitly to a value larger than 0 to get control over the balance # between CPU load and processing speed. DOT_NUM_THREADS = 0 # By default doxygen will use the Helvetica font for all dot files that # doxygen generates. When you want a differently looking font you can specify # the font name using DOT_FONTNAME. You need to make sure dot is able to find # the font, which can be done by putting it in a standard location or by setting # the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the # directory containing the font. DOT_FONTNAME = Helvetica # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. # The default size is 10pt. DOT_FONTSIZE = 10 # By default doxygen will tell dot to use the Helvetica font. # If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to # set the path where dot can find it. DOT_FONTPATH = # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If the UML_LOOK tag is enabled, the fields and methods are shown inside # the class node. If there are many fields or methods and many nodes the # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS # threshold limits the number of items for each type to make the size more # managable. Set this to 0 for no limit. Note that the threshold may be # exceeded by 50% before the limit is enforced. UML_LIMIT_NUM_FIELDS = 10 # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT options are set to YES then # doxygen will generate a call dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable call graphs # for selected functions only using the \callgraph command. CALL_GRAPH = NO # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then # doxygen will generate a caller dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable caller # graphs for selected functions only using the \callergraph command. CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will generate a graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are svg, png, jpg, or gif. # If left blank png will be used. If you choose svg you need to set # HTML_FILE_EXTENSION to xhtml in order to make the SVG files # visible in IE 9+ (other browsers do not have this requirement). DOT_IMAGE_FORMAT = png # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to # enable generation of interactive SVG images that allow zooming and panning. # Note that this requires a modern browser other than Internet Explorer. # Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you # need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files # visible. Older versions of IE do not have SVG support. INTERACTIVE_SVG = NO # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MSCFILE_DIRS tag can be used to specify one or more directories that # contain msc files that are included in the documentation (see the # \mscfile command). MSCFILE_DIRS = # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of # nodes that will be shown in the graph. If the number of nodes in a graph # becomes larger than this value, doxygen will truncate the graph, which is # visualized by representing a node as a red box. Note that doxygen if the # number of direct children of the root node in a graph is already larger than # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note # that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. DOT_GRAPH_MAX_NODES = 50 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that the size of a graph can be further restricted by # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, because dot on Windows does not # seem to support this out of the box. Warning: Depending on the platform used, # enabling this option may lead to badly anti-aliased labels on the edges of # a graph (i.e. they become hard to read). DOT_TRANSPARENT = NO # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = YES # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES codequery-0.21.0/LICENSE.md000066400000000000000000000363351310136352400152060ustar00rootroot00000000000000Mozilla Public License Version 2.0 ================================== ### 1. Definitions **1.1. “Contributorâ€** means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software. **1.2. “Contributor Versionâ€** means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution. **1.3. “Contributionâ€** means Covered Software of a particular Contributor. **1.4. “Covered Softwareâ€** means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof. **1.5. “Incompatible With Secondary Licensesâ€** means * **(a)** that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or * **(b)** that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License. **1.6. “Executable Formâ€** means any form of the work other than Source Code Form. **1.7. “Larger Workâ€** means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. **1.8. “Licenseâ€** means this document. **1.9. “Licensableâ€** means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License. **1.10. “Modificationsâ€** means any of the following: * **(a)** any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or * **(b)** any new file in Source Code Form that contains any Covered Software. **1.11. “Patent Claims†of a Contributor** means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version. **1.12. “Secondary Licenseâ€** means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses. **1.13. “Source Code Formâ€** means the form of the work preferred for making modifications. **1.14. “You†(or “Yourâ€)** means an individual or a legal entity exercising rights under this License. For legal entities, “You†includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control†means **(a)** the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or **(b)** ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. ### 2. License Grants and Conditions #### 2.1. Grants Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: * **(a)** under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and * **(b)** under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version. #### 2.2. Effective Date The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution. #### 2.3. Limitations on Grant Scope The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor: * **(a)** for any code that a Contributor has removed from Covered Software; or * **(b)** for infringements caused by: **(i)** Your and any other third party's modifications of Covered Software, or **(ii)** the combination of its Contributions with other software (except as part of its Contributor Version); or * **(c)** under Patent Claims infringed by Covered Software in the absence of its Contributions. This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4). #### 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3). #### 2.5. Representation Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. #### 2.6. Fair Use This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents. #### 2.7. Conditions Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1. ### 3. Responsibilities #### 3.1. Distribution of Source Form All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form. #### 3.2. Distribution of Executable Form If You distribute Covered Software in Executable Form then: * **(a)** such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and * **(b)** You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License. #### 3.3. Distribution of a Larger Work You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s). #### 3.4. Notices You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies. #### 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction. ### 4. Inability to Comply Due to Statute or Regulation If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: **(a)** comply with the terms of this License to the maximum extent possible; and **(b)** describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. ### 5. Termination **5.1.** The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated **(a)** provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and **(b)** on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice. **5.2.** If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. **5.3.** In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination. ### 6. Disclaimer of Warranty > Covered Software is provided under this License on an “as is†> basis, without warranty of any kind, either expressed, implied, or > statutory, including, without limitation, warranties that the > Covered Software is free of defects, merchantable, fit for a > particular purpose or non-infringing. The entire risk as to the > quality and performance of the Covered Software is with You. > Should any Covered Software prove defective in any respect, You > (not any Contributor) assume the cost of any necessary servicing, > repair, or correction. This disclaimer of warranty constitutes an > essential part of this License. No use of any Covered Software is > authorized under this License except under this disclaimer. ### 7. Limitation of Liability > Under no circumstances and under no legal theory, whether tort > (including negligence), contract, or otherwise, shall any > Contributor, or anyone who distributes Covered Software as > permitted above, be liable to You for any direct, indirect, > special, incidental, or consequential damages of any character > including, without limitation, damages for lost profits, loss of > goodwill, work stoppage, computer failure or malfunction, or any > and all other commercial damages or losses, even if such party > shall have been informed of the possibility of such damages. This > limitation of liability shall not apply to liability for death or > personal injury resulting from such party's negligence to the > extent applicable law prohibits such limitation. Some > jurisdictions do not allow the exclusion or limitation of > incidental or consequential damages, so this exclusion and > limitation may not apply to You. ### 8. Litigation Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. ### 9. Miscellaneous This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. ### 10. Versions of the License #### 10.1. New Versions Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number. #### 10.2. Effect of New Versions You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward. #### 10.3. Modified Versions If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License). #### 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached. ## Exhibit A - Source Code Form License Notice This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice. You may add additional accurate notices of copyright ownership. ## Exhibit B - “Incompatible With Secondary Licenses†Notice This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. codequery-0.21.0/NEWS.md000066400000000000000000000121411310136352400146650ustar00rootroot00000000000000Changelog ========= Version 0.21.0 - Apr 30, 2017 ---------------------------- Fixes in the ctags file parser "List of files" button added to the GUI Improved "full path for file" results list in GUI Version 0.20.0 - Apr 9, 2017 ---------------------------- Major bug fix for a performance issue in the GUI, wrt clearing of the search results list Other minor bug fixes Version 0.19.0 - Apr 2, 2017 ---------------------------- Migrated from GPLv2 to MPLv2 because of incompatibility with Qt5's license Now officially supporting Qt5 for Linux and Mac, but Qt4 for Windows Replaced QScintilla (by Riverbank Computing) with Scintilla (by Neil Hodgson), to avoid GPLv3 Unicode UTF-8 files now viewable on CodeQuery GUI Source code preview text line length now unlimited in database CodeQuery CLI now has feature to change the source code preview text line truncation length Golang syntax highlighting added Travis script now also builds with clang and Qt5 for Mac build testing Fixed a build bug in CMake scripts for Arch Linux Debian and tarball packages would now be separated into Qt5 and Qt4 Version 0.18.0 - Oct 9, 2016 ---------------------------- Migrated from GPLv3 to GPLv2 because some companies ban GPLv3 software List of functions in the file viewer area is a major new feature Now the selection of one or two levels has been added for function call graphs Replaced Dipperstein's optlist with Sittler's getopt replacement (MIT licensed), to avoid LGPLv3 Updated showgraph (now BSD licensed), with rebase from the git repo Various bug fixes for the file viewer Version 0.17.0 - Sept 25, 2016 ------------------------------ Now Javascript is officially supported through starscope The full file path option is added to the command-line version of the tool for vim support HOWTO documentation updated for compatibility with Mac OS CodeQuery now officially built using Qt5 for Mac OS, but still in Qt4 for Windows and Linux Travis script updated to include Coverity scanning Version 0.16.0 - May 2, 2015 ---------------------------- Brace matching on the file viewer Better handling for current line highlight Annotation in file viewer to quickly and easily identify the selected item Changed version to the semantic versioning scheme MAJOR.MINOR.PATCH Qt4 (default) and Qt5 now supported by CMake build option Version 0.15 - Aug 12, 2014 --------------------------- Added support for Mac OS Allowed -q in cscope.out header Added info to HOWTOs on how to exclude standard include paths Version 0.14 - Mar 9, 2014 -------------------------- Fixed Java and Ruby syntax highlight bug Fixed bug where database file combobox becomes too large due to very long filename Version 0.13 - Mar 1, 2014 -------------------------- Grep feature added Last search history stored persistently Version 0.12 - Feb 23, 2014 --------------------------- QScintilla used for code editing widget Imported a number of syntax highlight themes from Notepad++ Ruby and Go now officially supported through starscope RPM packages will now be generated also Version 0.11 - Dec 31, 2013 --------------------------- File path filter New query type: Calls of this function Search results traversing within same file Improvements on graph's initial size and zoom Bug fix on external editor settings text Version 0.10 - Aug 10, 2013 --------------------------- ctags file processing optimization New GUI features: Header files only, Functions inside this file, new About box New GUI features: Ability to change file viewer font and tab space width Autocomplete made asynchronous and optimized Version 0.09 - Apr 20, 2013 --------------------------- Fixed some cscope.out parser and SQL handling bugs Added font resize buttons for file viewer Version 0.08 - Apr 14, 2013 --------------------------- Fixed Windows app icon and taskbar bugs Version 0.07 - Apr 13, 2013 --------------------------- Added ability to parse cscope.out generated by pycscope (for Python support) Added syntax highlighting for Python and Java File path can now be selected and copied in the GUI tool Version 0.06 - Feb 27, 2013 --------------------------- Fixed syntax highlight bug, added user warning if CQ database is older than viewed source file, removed the extra console window appearing alongside the GUI app in Windows Version 0.05 - Feb 25, 2013 --------------------------- Fixed file path bug in Windows and initial version of cqsearch CLI tool Version 0.04 - Feb 24, 2013 --------------------------- Initial version of visualization for function call graph and class inheritance is now working. Version 0.03 - Feb 22, 2013 --------------------------- Added wildcard search * and ?. Added previous and next history browsing for search. Version 0.02 - Feb 19, 2013 --------------------------- Fixed external editor file path recognition bug for Windows (could not recognize spaces e.g. C:\Program Files). Version 0.01 - Feb 18, 2013 --------------------------- Initial release codequery-0.21.0/README.md000066400000000000000000000235571310136352400150630ustar00rootroot00000000000000![CodeQuery](doc/logotitle.png) =============================== This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of [cscope](http://cscope.sourceforge.net/) and [Exuberant ctags](http://ctags.sourceforge.net/). The databases of *cscope* and *ctags* would be processed by the *cqmakedb* tool to generate the CodeQuery database file. The CodeQuery database file can be viewed and queried using the *codequery* GUI tool. [![Build Status](https://api.travis-ci.org/ruben2020/codequery.svg)](https://travis-ci.org/ruben2020/codequery) [![Coverity Status](https://scan.coverity.com/projects/10066/badge.svg)](https://scan.coverity.com/projects/ruben2020-codequery) ## Latest version = 0.21.0 **NOTE: Version 0.21.0 has fixes for a major performance bug in the GUI and in the ctags file parser.** Windows and Linux binaries available here for download: [CodeQuery@sourceforge downloads](https://sourceforge.net/projects/codequery/files/) To build on Linux, please read the [INSTALL-LINUX](doc/INSTALL-LINUX.md) file. On Mac, the software can be installed through [Brew](http://brew.sh/) using `brew install codequery`. Please read [NEWS](NEWS.md) to find out more. ## How is it different from cscope and ctags? What are the advantages? Both cscope and ctags can do symbol lookup and identify functions, macros, classes and structs. cscope is very C-centric, but is fuzzy enough to cover C++ and Java, but not very well for e.g. it doesn't understand destructors and class member instantiations. It can't provide relationships of class inheritance and membership. cscope can do "functions that call this function" and "functions called by this function". This is a very powerful feature that makes cscope stand out among comparable tools. ctags does many languages well and understands destructors, member instantiations, and the relationships of class membership and inheritance. From ctags, we can find out "members and methods of this class", "class which owns this member or method", "parent of this class", "child of this class" etc. However, it doesn't do "functions that call this function" or "functions called by this function". So both these tools have their pros and cons, but complement each other. CodeQuery is a project that attempts to combine the features available from both cscope and ctags, provide faster database access compared to cscope (because it uses sqlite) and provides a nice GUI tool as well. Due to this faster database access, fast auto-completion of search terms and multiple complex queries to perform visualization is possible. In addition, [pycscope](https://github.com/portante/pycscope) is used to add support for Python, in place of cscope. In addition, [starscope](https://github.com/eapache/starscope) is used to add support for Ruby, Go and Javascript, in place of cscope. ## What features does CodeQuery have? * Combines the best of both cscope and ctags * Faster due to the use of sqlite for the CodeQuery database * Cross-platform GUI tool * Fast auto-completion of search term * Case-insensitive, partial keyword search - wildcard search supported * and ? * Exact match search * Filter search results by file path * File viewer with syntax highlighting, for UTF-8 encoded source files * Ability to open viewed file in an external editor or IDE * Visualization of function call graph and class inheritance based on search term * Visualization graphs can be saved to PNG or Graphviz DOT files ## What types of query can I make? * Symbol * Function or macro definition * Class or struct * Functions calling this function * Functions called by this function * Calls of this function or macro * Class which owns this member or method * Members and methods of this class * Parent of this class (inheritance) * Children of this class (inheritance) * Files including this file * Full path for file * Functions and macros inside this file * Grep ## What does it look like? ![CodeQuery screenshot](doc/screenshot.png) ## How does the visualization look like? Here's a function call graph based on the search term of "updateFilePathLabel". A -> B means A calls B: ![Visualization screenshot](doc/screenshot2.png) ## Are other editors like vim or emacs supported? Yes! There is a vim plugin for CodeQuery called [vim-codequery](https://github.com/devjoe/vim-codequery) by [devjoe](https://github.com/devjoe). We welcome contributors to develop plugins for other editors too. ## What does it cost? How is it licensed? It's freeware and free open source software. This software is licensed under the [Mozilla Public License, version 2.0](https://www.mozilla.org/en-US/MPL/2.0/). See [LICENSE.md](LICENSE.md) or [LICENSE.txt](windows-install/LICENSE.txt). Files under the `querylib` directory are licensed under the [MIT license](http://opensource.org/licenses/MIT). See [QueryLib README](querylib/README.txt). This is a library to query CodeQuery database files. This library is MIT-licensed, so that it may be used to create plugins for editors, IDEs and other software without license restrictions. It's only dependency is on sqlite3. ## Can I use it in a commercial environment without purchasing, for an unlimited time? Yes. However, donations are welcomed. ## Which platforms are supported? It has been tested on Windows 7 64-bit, Windows XP 32-bit, Mac OS X, Ubuntu and Fedora Linux 64-bit and, Ubuntu and Fedora Linux 32-bit. Contributions are welcomed to attempt ports to other operating systems. ## Is the software available in other languages? Yes. This applies only to the GUI tool. Contributions are welcomed to update or provide new translations. ## How to install it? On Windows, EXE setup packages will be provided here: [CodeQuery@sourceforge downloads](https://sourceforge.net/projects/codequery/files/). The EXE setup package shall also contain cscope.exe, ctags.exe and the required DLLs. So, everything you need is in one package. However, [pycscope](https://github.com/portante/pycscope) (optional - only for Python) and [starscope](https://github.com/eapache/starscope) (optional - only for Ruby, Go and Javascript) are not bundled together with this setup package and need to be installed separately. On Linux, tar.gz, RPM and Debian package installations will be provided here: [CodeQuery@sourceforge downloads](https://sourceforge.net/projects/codequery/files/). On Mac, the software can be installed through [Brew](http://brew.sh/) using `brew install codequery`. To build on Linux and Mac, please read the [INSTALL-LINUX](doc/INSTALL-LINUX.md) file. Version 15.8a of [cscope](http://cscope.sourceforge.net/) or higher, works best with CodeQuery. ## How do I use it? On Windows: [HOWTO-WINDOWS](windows-install/HOWTO-WINDOWS.txt). This file is included in the EXE setup package. On Linux and Mac: [HOWTO-LINUX](doc/HOWTO-LINUX.md) Please read the HOWTO file provided for each platform. The workflow looks like this: ![CodeQuery workflow](doc/workflow.png) ## How do I generate whole-program call graphs or UML class diagrams? CodeQuery cannot do this at the moment. To generate whole-program call graphs, please use [GNU cflow](https://www.gnu.org/software/cflow/) or [CodeViz](https://github.com/petersenna/codeviz) for C and C++. For Java, there is [Javashot](http://code.google.com/p/javashot/). To generate whole-program UML class diagrams for various object-oriented languages, please use [tags2uml](https://github.com/ruben2020/tags2uml). ## Are there any known limitations? For C and C++, [inline assembly code](http://en.wikipedia.org/wiki/Inline_assembler) is not supported by all the tools. This mainly affects embedded software, OS and driver code. Please exclude files with inline assembly code from the list of files (cscope.files) to be scanned. ## How do I contact the authors for support, issues, bug reports, fix patches, feature requests etc.? Please see the email address below, and also the Issues tab in GitHub. Email address: ![Contact address](doc/emailaddr.png) Website: [CodeQuery website](https://github.com/ruben2020/codequery) ## How can I contribute? * Report bugs * Provide feedback, new ideas, suggestions etc. What would you like to see? * Tell your friends, recommend it on StackOverflow or social media * Fix bugs (see Issues tab) * Update translations (Deutsch, Francais, Japanese etc.) * Port to other platforms * Write plugins for emacs, eclipse, Notepad++, NetBeans, Jenkins etc. * Add support for other languages e.g. Objective-C, Swift ## List of Contributors [ruben2020](https://github.com/ruben2020) [naseer](https://github.com/naseer) [bruno-](https://github.com/bruno-) [devjoe](https://github.com/devjoe) [jonashaag](https://github.com/jonashaag) [ilovezfs](https://github.com/ilovezfs) [JCount](https://github.com/JCount) [brianonn](https://github.com/brianonn) (More welcomed) ## Credits We thank the people behind the following projects: [cscope](http://cscope.sourceforge.net/) - our database is derived from this [Exuberant ctags](http://ctags.sourceforge.net/)- our database is derived from this [pycscope](https://github.com/portante/pycscope) - our database (for Python) is derived from this [starscope](https://github.com/eapache/starscope) - our database (for Ruby, Go and Javascript) is derived from this [sqlite3](http://www.sqlite.org/) - our database is using this format [CMake](http://www.cmake.org/) - cross-platform build toolchain for CodeQuery [Qt open source](http://qt-project.org/) - GUI toolkit used to build CodeQuery [showgraph](http://code.google.com/p/showgraph/) - visualization done using this library [scintilla](http://www.scintilla.org/) - our code editing widget [vim-codequery](https://github.com/devjoe/vim-codequery) - vim plugin for CodeQuery [Axialis](http://www.axialis.com/iconworkshop) - free images for CodeQuery and this website [brew](http://brew.sh/) - binaries for Mac here codequery-0.21.0/cli/000077500000000000000000000000001310136352400143375ustar00rootroot00000000000000codequery-0.21.0/cli/CMakeLists.txt000066400000000000000000000007431310136352400171030ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.2.2) project(CodeQueryCLI) #add_definitions( -Wall ) find_package(Sqlite REQUIRED) include_directories( "." ) include_directories( "../makedb" ) include_directories( "../querylib" ) include_directories( "${SQLITE_INCLUDE_DIR}" ) set( CQSEARCH_SRCS main_cli.cpp ) add_executable( cqsearch ${CQSEARCH_SRCS} ) target_link_libraries( cqsearch ${SQLITE_LIBRARIES} small_lib sqlquery_lib ) install(TARGETS cqsearch RUNTIME DESTINATION bin) codequery-0.21.0/cli/README.md000066400000000000000000000003221310136352400156130ustar00rootroot00000000000000CodeQuery command line interface ================================ This provides the command line interface (CLI) for CodeQuery's query interface. Type the following to get help: ```bash cqsearch -h ``` codequery-0.21.0/cli/main_cli.cpp000066400000000000000000000155361310136352400166300ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include #include #include "small_lib.h" #include "getopt2.h" #include "sqlquery.h" #include "swver.h" void printhelp(const char* str) { printf("Usage: %s [-s [-p ] [-t ] [-l ] -[e|f] [-u] ] [-d] [-v] [-h]\n\n", str); printf("options:\n"); printf(" -s : CodeQuery sqlite3 db file path\n"); printf(" -p : parameter is a number denoted by n\n"); printf(" default n = 1 (Symbol)\n"); printf(" -t : search term without spaces\n"); printf(" if Exact Match is switched off, wild card\n"); printf(" searches are possible. Use * and ?\n"); printf(" -l : limited line length for truncated source code preview text\n"); printf(" Accepted range: 0 - 800 (use 0 for limitless)\n"); printf(" By default it is 80\n"); printf(" -e : Exact Match switched ON \n"); printf(" Case-sensitive\n"); printf(" -f : Exact Match switched OFF (fuzzy search)\n"); printf(" Case-insensitive with wild card search (default)\n"); printf(" -u : show full file path instead of file name\n"); printf(" -d : debug\n"); printf(" -v : version\n"); printf(" -h : help\n\n"); printf("The combinations possible are -s -t -e, -s -t -f -u\n"); printf("The additional optional arguments are -d\n\n"); printf("The possible values for n are:\n"); printf(" 1: Symbol (default)\n"); printf(" 2: Function or macro definition\n"); printf(" 3: Class or struct\n"); printf(" 4: Files including this file\n"); printf(" 5: Full file path\n"); printf(" 6: Functions calling this function\n"); printf(" 7: Functions called by this function\n"); printf(" 8: Calls of this function or macro\n"); printf(" 9: Members and methods of this class\n"); printf(" 10: Class which owns this member or method\n"); printf(" 11: Children of this class (inheritance)\n"); printf(" 12: Parent of this class (inheritance)\n"); printf(" 13: Functions or macros inside this file\n\n"); printf("Example:\n%s -s myproject.db -p 6 -t read*file -f\n\n", str); } void printlicense(void) { printf(CODEQUERY_SW_VERSION); printf("\n"); printf(CODEQUERY_SW_LICENSE); } bool fileexists(const char* fn) { bool retval; FILE *fp; fp = fopen(fn, "r"); retval = (fp != NULL); if (retval) fclose(fp); return retval; } void process_argwithopt(char* thisOpt, int option, bool& err, tStr& fnstr, bool filemustexist) { if (thisOpt != NULL) { fnstr = thisOpt; if (filemustexist && (fileexists(fnstr.c_str()) == false)) { printf("Error: File %s doesn't exist.\n", fnstr.c_str()); err = true; } } else { printf("Error: -%c used without file option.\n", option); err = true; } } tStr limitcstr(int limitlen, tStr str) { if (limitlen <= 0) return str; else return str.substr(0,limitlen); } int process_query(tStr sqfn, tStr term, tStr param, bool exact, bool full, bool debug, int limitlen) { if ((sqfn.empty())||(term.empty())||(param.empty())) return 1; int retVal = 0; sqlquery sq; tStr lstr; sqlquery::en_filereadstatus filestatus = sq.open_dbfile(sqfn); switch (filestatus) { case sqlquery::sqlfileOK: break; case sqlquery::sqlfileOPENERROR: printf("Error: File %s open error!\n", sqfn.c_str()); return 1; case sqlquery::sqlfileNOTCORRECTDB: printf("Error: File %s does not have correct database format!\n", sqfn.c_str()); return 1; case sqlquery::sqlfileINCORRECTVER: printf("Error: File %s has an unsupported database version number!\n", sqfn.c_str()); return 1; case sqlquery::sqlfileUNKNOWNERROR: printf("Error: Unknown Error!\n"); return 1; } int intParam = atoi(param.c_str()) - 1; if ((intParam < 0) || (intParam >= sqlquery::sqlresultAUTOCOMPLETE)) { printf("Error: Parameter is out of range!\n"); return 1; } sqlqueryresultlist resultlst; resultlst = sq.search(term, (sqlquery::en_queryType) intParam, exact); if (resultlst.result_type == sqlqueryresultlist::sqlresultERROR) { printf("Error: SQL Error! %s!\n", resultlst.sqlerrmsg.c_str()); return 1; } for(std::vector::iterator it = resultlst.resultlist.begin(); it != resultlst.resultlist.end(); it++) { lstr = limitcstr(limitlen, it->linetext); switch(resultlst.result_type) { case sqlqueryresultlist::sqlresultFULL: printf("%s\t%s:%s\t%s\n", it->symname.c_str(), (full ? it->filepath.c_str() : it->filename.c_str()), it->linenum.c_str(), lstr.c_str()); break; case sqlqueryresultlist::sqlresultFILE_LINE: printf("%s:%s\t%s\n", (full ? it->filepath.c_str() : it->filename.c_str()), it->linenum.c_str(), lstr.c_str()); break; case sqlqueryresultlist::sqlresultFILE_ONLY: printf("%s\n", it->filepath.c_str()); break; default: break; } } return retVal; } int main(int argc, char *argv[]) { int c; bool bSqlite, bParam, bTerm, bExact, bFull, bDebug, bVersion, bHelp, bError; int countExact = 0; int limitlen = 80; bSqlite = false; bParam = false; bTerm = false; bExact = false; bFull = false; bDebug = false; bVersion = false; bHelp = (argc <= 1); bError = false; tStr sqfn, param = "1", term; while ((c = getopt2(argc, argv, "s:p:t:l:efudvh")) != -1) { switch(c) { case 'v': bVersion = true; break; case 'h': bHelp = true; break; case 'e': bExact = true; countExact++; bError = bError || (countExact > 1); if (countExact > 1) printf("Error: either -e or -f but not both!\n"); break; case 'f': bExact = false; countExact++; bError = bError || (countExact > 1); if (countExact > 1) printf("Error: either -e or -f but not both!\n"); break; case 's': bSqlite = true; process_argwithopt(optarg, c, bError, sqfn, true); break; case 'p': bParam = true; param = optarg; break; case 't': bTerm = true; term = optarg; break; case 'l': limitlen = atoi(optarg); break; case 'u': bFull = true; break; case 'd': bDebug = true; break; case '?': bError = true; break; default: break; } } if (bVersion) { printlicense(); return 0; } if (bHelp || bError) { printhelp(extract_filename(argv[0])); return (bError ? 1 : 0); } if (!bSqlite) { printf("Error: -s is required.\n"); bError = true; } if (!bTerm) { printf("Error: -t is required.\n"); bError = true; } if (bError) { printhelp(extract_filename(argv[0])); return 1; } if (bSqlite && bTerm) { bError = process_query(sqfn, term, param, bExact, bFull, bDebug, limitlen) > 0; } if (bError) { printhelp(extract_filename(argv[0])); } return bError; } codequery-0.21.0/cmakefind/000077500000000000000000000000001310136352400155115ustar00rootroot00000000000000codequery-0.21.0/cmakefind/FindSqlite.cmake000066400000000000000000000035741310136352400205660ustar00rootroot00000000000000 # # The following license applies only to this file: # # - find Sqlite 3 # SQLITE_INCLUDE_DIR - Where to find Sqlite 3 header files (directory) # SQLITE_LIBRARIES - Sqlite 3 libraries # SQLITE_LIBRARY_RELEASE - Where the release library is # SQLITE_LIBRARY_DEBUG - Where the debug library is # SQLITE_FOUND - Set to TRUE if we found everything (library, includes and executable) # Copyright (c) 2010 Pau Garcia i Quiles, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. # # Generated by CModuler, a CMake Module Generator - http://gitorious.org/cmoduler IF( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY_RELEASE ) SET(SQLITE_FIND_QUIETLY TRUE) ENDIF( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARY_RELEASE ) IF ( UNIX ) FIND_PATH( SQLITE_INCLUDE_DIR sqlite3.h ) FIND_LIBRARY(SQLITE_LIBRARY_RELEASE NAMES sqlite3 ) ELSE ( UNIX ) FIND_PATH( SQLITE_INCLUDE_DIR sqlite3.h "/sqlite3/include") FIND_LIBRARY( SQLITE_LIBRARY_RELEASE NAMES sqlite3 ) ENDIF ( UNIX ) IF( SQLITE_LIBRARY_RELEASE AND SQLITE_INCLUDE_DIR ) SET( SQLITE_FOUND TRUE ) ENDIF( SQLITE_LIBRARY_RELEASE AND SQLITE_INCLUDE_DIR ) IF( SQLITE_LIBRARY_RELEASE ) SET( SQLITE_LIBRARIES ${SQLITE_LIBRARY_RELEASE} ) ENDIF( SQLITE_LIBRARY_RELEASE ) IF( SQLITE_FOUND ) IF( NOT SQLITE_FIND_QUIETLY ) MESSAGE( STATUS "Found Sqlite3 header file in ${SQLITE_INCLUDE_DIR}") MESSAGE( STATUS "Found Sqlite3 libraries: ${SQLITE_LIBRARIES}") ENDIF( NOT SQLITE_FIND_QUIETLY ) ELSE(SQLITE_FOUND) IF( SQLITE_FIND_REQUIRED) MESSAGE( FATAL_ERROR "Could not find Sqlite3" ) ELSE( SQLITE_FIND_REQUIRED) MESSAGE( STATUS "Optional package Sqlite3 was not found" ) ENDIF( SQLITE_FIND_REQUIRED) ENDIF(SQLITE_FOUND) codequery-0.21.0/doc/000077500000000000000000000000001310136352400143355ustar00rootroot00000000000000codequery-0.21.0/doc/HOWTO-LINUX.md000066400000000000000000000103661310136352400164620ustar00rootroot00000000000000 HOWTO GUIDE =========== This HOWTO guide applies to Linux only ## HOW TO USE CODEQUERY WITH C/C++ CODE? 1. Change directory to the base folder of your source code like this: ```bash cd ~/projects/myproject/src ``` 2. Create a cscope.files file with all the C/C++ source files listed in it. Files with [inline assembly code](http://en.wikipedia.org/wiki/Inline_assembler) should be excluded from this list. ```bash find . -iname "*.c" > ./cscope.files find . -iname "*.cpp" >> ./cscope.files find . -iname "*.cxx" >> ./cscope.files find . -iname "*.cc " >> ./cscope.files find . -iname "*.h" >> ./cscope.files find . -iname "*.hpp" >> ./cscope.files find . -iname "*.hxx" >> ./cscope.files find . -iname "*.hh " >> ./cscope.files ``` 3. Create a cscope database like this (add `k`, if you don't want standard include paths like for stdio.h): ```bash cscope -cb ``` 4. Create a ctags database like this. ```bash ctags --fields=+i -n -R -L ./cscope.files ``` 5. Run cqmakedb to create a CodeQuery database out of the cscope and ctags databases, like this: ```bash cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p ``` 6. Open myproject.db using the CodeQuery GUI tool by running the following. Wild card search (* and ?) supported if Exact Match is switched off. Or use cqsearch, the CLI-version of CodeQuery (type `cqsearch -h` for more info). ```bash codequery ``` Use `cqmakedb -h` to get help on cqmakedb command line arguments. ## HOW TO USE CODEQUERY WITH JAVA CODE? 1. Change directory to the base folder of your source code like this: ```bash cd ~/projects/myproject/src ``` 2. Create a cscope.files file with all the Java source files listed in it. ```bash find . -iname "*.java" > ./cscope.files ``` 3. Create a cscope database like this: ```bash cscope -cbR ``` 4. Create a ctags database like this: ```bash ctags --fields=+i -n -R -L ./cscope.files ``` 5. Run cqmakedb to create a CodeQuery database out of the cscope and ctags databases, like this: ```bash cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p ``` 6. Open myproject.db using the CodeQuery GUI tool by running the following. Wild card search (* and ?) supported if Exact Match is switched off. Or use cqsearch, the CLI-version of CodeQuery (type `cqsearch -h` for more info). ```bash codequery ``` Use `cqmakedb -h` to get help on cqmakedb command line arguments. ## HOW TO USE CODEQUERY WITH PYTHON CODE? 1. Change directory to the base folder of your source code like this: ```bash cd ~/projects/myproject/src ``` 2. Create a cscope.files file with all the Python source files listed in it. ```bash find . -iname "*.py" > ./cscope.files ``` 3. Create a cscope database like this: ```bash pycscope -i ./cscope.files ``` 4. Create a ctags database like this. ```bash ctags --fields=+i -n -R -L ./cscope.files ``` 5. Run cqmakedb to create a CodeQuery database out of the cscope and ctags databases, like this: ```bash cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p ``` 6. Open myproject.db using the CodeQuery GUI tool by running the following. Wild card search (* and ?) supported if Exact Match is switched off. Or use cqsearch, the CLI-version of CodeQuery (type `cqsearch -h` for more info). ```bash codequery ``` Use `cqmakedb -h` to get help on cqmakedb command line arguments. ## HOW TO USE CODEQUERY WITH RUBY, GO AND JAVASCRIPT CODE? 1. Change directory to the base folder of your source code like this: ```bash cd ~/projects/myproject/src ``` 2. Create a cscope.files file with all the Ruby, Go or Javascript source files listed in it. ```bash find . -iname "*.rb" > ./cscope.files find . -iname "*.go" > ./cscope.files find . -iname "*.js" > ./cscope.files ``` 3. Create a cscope database like this: ```bash starscope -e cscope ``` 4. Create a ctags database like this. ```bash ctags --fields=+i -n -R -L ./cscope.files ``` 5. Run cqmakedb to create a CodeQuery database out of the cscope and ctags databases, like this: ```bash cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p ``` 6. Open myproject.db using the CodeQuery GUI tool by running the following. Wild card search (* and ?) supported if Exact Match is switched off. Or use cqsearch, the CLI-version of CodeQuery (type `cqsearch -h` for more info). ```bash codequery ``` Use `cqmakedb -h` to get help on cqmakedb command line arguments. codequery-0.21.0/doc/INSTALL-LINUX.md000066400000000000000000000045161310136352400166700ustar00rootroot00000000000000HOW TO INSTALL CODEQUERY IN LINUX ================================= This INSTALL guide applies to Linux and Mac only (For Windows, a SETUP EXE package will be provided) ## HOW TO INSTALL IN LINUX? Step 1: Install CMake (>2.7), sqlite3, Qt4 (>4.7) or Qt5 (>5.7) for Qt4 or Qt5, cscope (15.8a or higher), ctags. If you have Ubuntu, Linux Mint, Debian or Fedora installed, most of these should be obtainable through the package managers. Note that the cscope version on the Ubuntu repositories may not be the latest one. It's better to have the latest version of cscope installed. [CMake](http://www.cmake.org/) [sqlite3](http://www.sqlite.org/) [Qt4 or Qt5](http://qt-project.org/) [cscope](http://cscope.sourceforge.net/) [ctags](http://ctags.sourceforge.net/) [pycscope](https://github.com/portante/pycscope) In Ubuntu or Linux Mint or Debian, do the following (first line for Qt5 OR second line for Qt4): ```bash sudo apt-get install g++ git cmake sqlite3 libsqlite3-dev qt5-default qttools5-dev-tools cscope exuberant-ctags sudo apt-get install g++ git cmake sqlite3 libsqlite3-dev qt4-dev-tools cscope exuberant-ctags ``` In Arch Linux or Manjaro or Apricity, do the following (first line for Qt5 OR second line for Qt4): ```bash sudo pacman -S gcc git cmake sqlite qt5-base qt5-tools cscope ctags sudo pacman -S gcc git cmake sqlite qt4 cscope ctags ``` Step 2: Download the repository as a ZIP file from github or clone git repository: [codequery@github](https://github.com/ruben2020/codequery) ```bash cd ~/myrepos git clone https://github.com/ruben2020/codequery.git ``` Step 3: Unzip to a directory and change to that directory. ```bash cd ~/myrepos/codequery ``` Step 4: Create a directory called build and change to it. ```bash mkdir build cd build ``` Step 5: Run cmake (first line for Qt5 OR second line for Qt4). ```bash cmake -G "Unix Makefiles" -DBUILD_QT5=ON .. cmake -G "Unix Makefiles" -DBUILD_QT5=OFF .. ``` Step 6: Run make and make install. ```bash make sudo make install ``` If you want to install to an alternative directory instead of the default one, use the following: ```bash cmake -DCMAKE_INSTALL_PREFIX="/home/johndoe/tools/" -G "Unix Makefiles" -DBUILD_QT5=ON .. make make install ``` Step 7: Please read [HOWTO-LINUX](HOWTO-LINUX.md) to learn how to use this software. codequery-0.21.0/doc/emailaddr.png000066400000000000000000000137711310136352400167760ustar00rootroot00000000000000‰PNG  IHDRa)䃘bbKGDÿÿÿ ½§“ pHYs  šœtIMEÝ—C% tEXtCommentCreated with GIMPWaIDATxÚí]{pe–?I¼!7/‘g€ ÈË…^>P@—ðXk‹AdÔŠ….¥@T p(j 0¬:8”‚X¥TTT¨aaAØ"f„ !!d!ÑkB¼ ’ßþÝÛÝ÷{uß›äÞàW•JÒó}ßùÎ9ß9¿sº;¬¤Ì"¢]ã©´ügêÑ5žˆˆJË&í¸J3ÞªM›ƒl.Æë´fäïoѵ*ÎP1Ô¢´©yÂ’S™s ¢Çª«?•Û. ÕR²fS(üaÉ©hC g•Zˆ°'Õ–`ÂX8 ´ƒ¹YËÔD%Q"C,ºž¥|¡„ÉñÊüDž˘ÈêY†™šË  mîk~ª›1KGUBg‘nˆdP´I„šó r¶X‚ñ8KÎdÑÙ)s‘e ƒµ¤'Õ<¾ÈÊ…‘mníÙiÕŠ§™iÕr£–¬ rÚ‡¨ÔŒwJéÞoÕ:êkÃâ¯u#ÑM<âvêde5ž-YÀ¼ÿí–1‰è¨”…ªøkdU6}•:bz¢õnIyµS³o§ÞWdtí8#vô+ÔËÑìlü*×’ªÂÈ èUäh !V»j¼ÌSÄXCÉ2ÚP1"ªN]ys4—\Û}@ȉuòàl3 æ‡_ìòQU^íΓœÊó<^Õ½¥™mÇ;w¢hªÆ4ȳ0; ©eažåæ=Ì 3@-)Ǫ±¿@ÕÚqÂé 7Ïl väÄ.lF*Ö\­% …?c«`ã¢ÐÎŽ`;ÁáB š=6l'pê:U²`ÚÌT‰m4²Çšá˜ÙîšsSÍe©>ÍêOÄ¥õCv –]aáÝGD0æ›r‘T Pޯݰ°%<+ïƒ): 4œBNSM%Ãv€™˜ƒ^½zÁår¡K×$Lxl2Ž?΢óEX¾|9RRR‰””,_¾õõõ¦~òóó‘‘‘^½z!22Ý»wGzz:Ž?Î\<¯×‹/¿ŠîÝ“ï\ŸŒåË—ãBq¥rXlWX¼W]ââbÌi!† †öíÛ£M›6èÞ½;&NœˆÏz7nÜht¢š4öWínšÍ©¨ÂN ŸÌ*)ó`É’%º|h?NáŠæp>œÒ@È ‹?ÊFXV`“‚ÑMh„U®µ •öŽw7}àÇÇ'>ɼ~úôéf|G‘®Ö¦M›Æ¥Ûœ!œl=nÞ¼‰… ÂårqçHDHJJÂW_}¥dÌTñÙ¦0xþà–Mf«êœ¿Ø«jÞ¢W¯^ "|þùç&çÀmYF Œ°Ý¤¶JoÇ“7aÕ¹’êdx›¢‰YwŒæðG…ììläÿ^¯_çÁ¨Q£@DèׯŸéÚ={ö€ˆ‡½{÷â—_~ÁÞ½{"Bnn®~íÐa#ÒÒRx½^œ>‰‰‰ÈÌÌDcc£P¸‹ŠŠtCc<>kÖ,2_[nºÕªU "<ýôÓÂE7Ò56îªU«LÇ3_[Υ˂ÂÂB<ù䓈‰‰Abb"^xáܸqC zàyµZ›7oˆ:uÂç_î ÷–-[—Ë…Ó§OKóFYÐæUWW‡¥K—"55ÑÑшÇ#<‚Ý»wseÂår™d‚å6""p®ðªR_ÖyÖÕÕ᥋õûbcãðûÑã°yë'úuõõõÈÊÊBÿûî‡ÛíF›¨( 4kÖ¬ACC“7<ØŽ%ãç ¯bþüùHL¼×¤‡7oÞÄ[o½…¡C‡"&&n·cÇŽÅ®]»¤:õÂÜ—tþ‰"ž’2.W"++ ƒ 2Íïµ%+ÐÐÐ ³f;¬òëvGKåÞüëF®=P¬v"66í™™‰KWª}6•þdz¤l„E;›1Tfu¢b„­ÇXáx·nÝðÓO?1sæLî ÇwŒ3fÌð¹výúõ²§ŠŠ ÜîhÓÜSSSAD(((0Í¡  €é9[›F7&&ÆtœG7wÿQ%ºZ«¬¬D—.]|ækä­S#\PP€ððp¸\.œ8qBÉËXðò« "LöS~dòñÌ3ÏÇtéJµ#™`É­¬/^“Ýçõz1fÌî5ãÇ7b™fm*¬ù£ÞØTuJd„íÌO6æÊÊJtìØII~1%ý_„cÿî‡ËR•Ù íºKWª¥ýi²0#,ò†¸_NNΜ/cNÌŽNNNÆ¡C‡PSSƒƒ¢G ",^¼°iÓ&Ý0ïØ±•••¨««ÃÑ£G‘6hÈm53Ó‡îý÷¾y8}¶ " 6LèQfff‚ˆ0âÁQ¦s±±± "œ½Pnº¾¶¶D„¸¸8!ß4ºcÆŒ1õ­Ñ­­­5Ýg¤«‚‡.\¸ðzè¼>D„5kÖùÏÓ)ã|²ÿóSÔÔÔüméÊ;W,Þ~ûm\¾|^¯GEzz:S§Nž.RÒ)c3Îoíº¿1ç÷Ú’>ž§6æ3çËôsº-c={ö”ʯ6öÎ]ºúŒ][û¹óH¡ î!C°ï@ª««u;10íýZ«¬±ú“ñªIŒðÎ;…p…HɬǬ!Ò_|"Bÿþý>ø ˆGŽñéïâÅ‹ "ôíÛ×g ùùùúÿãÝÃåyÁo¿³I‡ ¬}…‡‡ƒˆpëÖ-Óñ[·nˆôЖնoߎ°°0®±Ï°°0&ÝâË×}芰(Í£¶†Ð»vírl„µ¾úôùˆyyyú¹'žxB¿~Ĉ>÷VWWƒˆÅ„d›tϔۉ É“'ã7ÞÀ7ß|câ‘S™Ø¹s§Ïõ}ûöᡇ'è}_¾.­yÕîã1-- D„¿üÇŸ>ßÿ},å¿U§Xó1êÕ Aƒ@Dظq#W&yü+)óøðϺnZ?Úü²³³¹ó»oÀ@Ÿµg­A¯Þ}¤ò«ÍÝ8vë9zÊgíy³ÑNh­¬¬Ì'bÕúû싽>tD²0#ÌS–ªª*¦`²’m²Ýüúõë¦ÉUUU™8::Z\.—ϼ^¯)„á yI™Û·oGDDÂÂÂðá‡úÌÛ걊÷nݺÕÇȰ”™'7û÷ïGb⽦¹&÷ì…S§NÙ– –ÜÛþýûѱcGÓ½}úôÁ©S§„‰6Ù£¢¢@D¨¬¬äÂSn·[ÙfyqUUU>ct»Ý "TTTpõØ)ÿŒ<Ðdîäé"Þ|[p‘;?«í()ó˜ä×H§àûK>|Q»èÝ,F¾ž/ª0AÖþ¢¢ÜÒþŒ¹žf3Âqâ„~oii)–,]©î>úˆi<ŒYv–|h‰¯œœ,X°]»vaøˆ‘~Ë«+¼Šœœ<ûü\½¯Ñ£GK+S´1>ûü\tìÔÙtŸÕ³s¾FJÓ WaV¨­b„òÏ8ÕM†—´7ŽÛŽ¡:v»‹ñæj‡W";Ó¤FØÈÐ{ï½í\¹rE?———Çôp„‘QѧÏïÆ ù<ì 2FVÆãËÞ¸]݆ 6pa^ƒV1kÖ,sæöÍ7™t­M…®JÉÎ3ó°{÷n©[¡‘_ýÕt¼OŸÛ´Ož<©Ó˜Xó-//×éú+²¦õåV.¿*)óøŒQ ×·mÛæsÿ–-[|"™îˆpb㸠"¦M›¸ãÿTæw߀R¸¥¤Ì£;#›·~b’£üj×L{À4v;oyäÙoíòЧGMn„µ6räHfÎú#<¾ûî; 2Dš˜û䳟ÄÜŸæþ`íº¿ˆÐ¡CGlÚ´ ÅÅÅ8Wx^¯çÎÃÆ1räHåWk+W®Ô½ûî»Âyoýà3âãã‘›› ¯×‹ÜÜ\=±gϺaaa>t­Âñõ×_+Ñ•í꯼ò ˆ)))8|ø0jkkqøða¤¤¤({‰‰‰ "ìݻׄmΙ3D„×_]?váÂ<ðÀèÔ©òó󉤤$ü~ô8¬Zµ åååLÁ2t¸P>´9>þøãØ·ojkkQSSƒ 6˜ *MÉ;wî¬ËD]]S&dr;vÜ#¾xÍ8Æ3çËôû´îÕ×ß!!!Û¶mÃÉÓE¨¬¬Dvv¶žÔ3&æXºsÿýƒ„ù–<¬[·N‡ÈV¬\‹+W®Àëõ"//OOÌ‚ZbN›_ee%w~<\Yû1Êï§;÷àì…r|ºsI~­^ûÿäèc?xø>ö@–ß’•K²xų?"=j86oÞìãMœôÏLOG;6uêTa‰Ìùã ŽážÈèYìôôtæuS§NeòHFW›*]^¦·¤Ìƒk×®¡sçÎ>4¦L™Â¬OfE&¬R8pà€žm/,,T*Qãy#2ùñpæÌ™~É„(™Ìê‹e‰äGãù¢ Œ=š{ݸqãL¼«òF¶©444àᇖòD«z±bù§:?•Çy¯]»†:úÐxtÂ$S‚Z»Weíe0Ë&ñ}:áv»‘ššŠ+V ®®Î/™`5•¾Xro½¯Wï>X±bÎ^5ÉLVVúõ€¨¨(´‰ŠBZZV¯^m2À%e466bî¼h—€¸¸8Ìž=›É‘aÑþ.¼ô#Ö®]‹´´4DEE!&&ãÆó©DrÂ?c_Úü´~Ün7úõ€Õ«Wû<Þ,3H‡Ž|‹É“'#::íÛ·ÇÌ?ÌÑå·}ûDߪ£¿Â¤ÉS¸cU—Ø©Y×t@•W,= ˜ö÷ù|^¹¨ŒÄN?v^Eè7œùÛdØ£êËR¬mýúõºWbw}Œ¿üñG½l,66Ë–-Cîþ£8Wxuuu(((À²eËЯ_?ü×ç+ó>Ø^^ïôÝ»|Ç¿=‡UkÞÖßAa|ÈÎ#¦ÚŒòër¹Ð#9‹-2½D%«|EZÅf5w£æ2T¢ï|‰p"» ÈOÍ·´:ùò²]#nçååN_|* “¨DZ}ZÞ.Pð’~•Æ |*:ÏjawBÇ­´üg""êÑ5ž{N;Ϻ¶´ügæ½Æs¼k¬ôŒÿ‹è†j“ñÚzÜÊÞyÎZ++¿­ô¬´eÿËæ kh•c¿œÊº“u 6~ñÆ.’5Ù\XòèT¦DýµhkÊO„›©bÄ*^–ˆ~kÀÔT0b§•ÓpØ®×ÛðL§ëf'­ú5ŠPÊqØÒüÁvC1ú¢ædº,c¬ú¥2Ÿ9 öÐNõ«ÎP•M#ÞÖÔFÔÉ&dçkÇ­Ö †íä‹ÐþèCsµð¦ô²e!C®ñ¦c¬Ð—GÏzÌ‹®eÑV袴ügfÈË ³Ty¦¦YÃk#Oµ±ÇÅoB¥±dË 9XyÎ[#Ïy„  ¶[4nž®ÛåËŽˆ®åAeNÖ­)šß˜°?˜¦ Gcaa2ÜÍ.NÌØ±ˆªx¼*l žì|·36FÉr œôÁÃÝEøt¨òM%²¸oSá@—…TQlY%X oì¢D?Â&K¦ÉŒˆjDѤv’K¬µQI`ª¬C¨È²?–?]¨¶€yÂv½R¯×®‘¥Ì»“þíT!Ø=&RvÿUBÅÖØD|±fôeòlSñ†kM«ƒ!G¨”–9 ›U½‹Ö,4þr<ñ¦(I µ5pjý3Š­‹Oÿ¥´õp-IEND®B`‚codequery-0.21.0/doc/logotitle.png000066400000000000000000000462171310136352400170570ustar00rootroot00000000000000‰PNG  IHDRø‚ªæÚl OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-ÛbKGDÿÿÿ ½§“ pHYs  šœtIMEÝ'Hò…œ IDATxÚíw\ÓÇÿÇ_Ÿ$Œ°§‚‚¨(¨  ¸q!îYµZ÷ø©X±Žj­Öºªµî-uÕQ÷¶ZEëþV©{ï*{É I ã~Ф ù$$¦÷|<òP>ã>÷¹»Ï½îÞw÷>†B@¡P( ¥RÁ¡I@¡P( x …B¡P(Tà) …B¡P§P( …BžB¡P( x …B¡P¨ÀS( …B¡O¡P( … <…B¡P(*ð …B¡P¨ÀS( …BžB¡P( x …B¡P(Tà) …B¡P§P( …BžB¡P( x …B¡P¨ÀS( …B¡O¡P( ¥üÀ3v€„0 £ø "Qd2 {0Œ™Ê9 …B¡P(åZà¢.“‰ý OŸÞÄíÛðòå[Äǧ"-- ÔÆÎû˜ÓT/RcIóo …B¡PJTàÅâܸq»vÀ³gïÀåš¡F 7ØÙÙ¡Fº°²JCllÄâLðùTàõE.cÇŽ5pvvD­Z5áîÞ¦¦²³³Á0€‹‹#êÖ­ààV0`8llœÀåòibQ( E"M²#„@&c×®è×o<<¼Ð¶mX[[C&“A.—kü(†#‘Háââ oïºhÒÄþþ~¨R¥²°jÕøø´Àĉc}_™/ …B¡Iàâ¾jÕBlÛv=zô€™™™ò\ÁŸ\.ÿ÷ÿ4± …a0 GÙh’ÉdÉd011«« ¼½½q÷îK´jÕ»w¯„L&¦"O¡P(”¢ ¼\.ÆîÝpòäÿЦM RPò…_¦t¹\©T ¹\¡P€ OQP¤eA‘W¤·¥¥%jÔ¨Y³VcæÌIÉr©ÈS( ÅðIvÏŸßÆêջѽ{w5󻪰B’’‚·o#!‘ä"++-Z4‚™™-MqƒTr¥ ü¿âGAî8zô"¤Ò X»v ¸\s:B¡P>côždGP˜ˆþý‡¢V-o˜™™i˜âår9âââðáCºukƒ~ýºÀË+ s˜›o‚Ýç6k<%% UªÔAÓ¦MÁ盃Ëå² ¼ê/..óæMDhè,:ùŽB¡Ph^–ÃàêÕ³HOÂËËD­Ç2™ ÷îÝGppSìܹÎÎup‹%ÊŠ{ ‘ ''¹¹RDG?Çû÷‘žž‰ÌÌlp¹ðùæ¨V­*ê×o˜™™ÀµÂgŽ££+fÏT*GZZ&^½zÈȸ»»Ëå*Íôª–—ª˜?=ºtéoïÖ´„S( íÁë&// ƒ …³³»Fï]&“áåËW<¸¾þz¦QzŽry¾Óœk×Î"<üo<{öIIi`ìììÀ盃a8ËóǤ33³‘‘ SxxTG‹ ñÕWQ«VX[»UÈÞ¿zœeÈÎNDLÌ{,Y²׮݇««‹²q¥j®ÏËËCƒ5qìØàñ,h)§P(*ðÚ…&==]Ñ©S'51QüÿíÛ8s欬\‹%¤R©QQ±qã\½z|¾jÕª +++B ‘H4&ô©N@ËoŒä!==ÑÑ1ððpŰa½0ztllÜ*…™_*áÏ?Ç”)Kàèè¨ÖƒWô裣cpÿþ_¨_¿ -å”rÔP¥P(¥…^³è†ADÄØÚÚC*•jŒ§¥¥ÁßßÖÖÕŠô!ç‡%Æû÷w2ýúCb¢­[·Aƾ°´´TÎÊW}nAqW½ÆÆÆõë׃¹¹56n<„F±fÍ*|¦q¹æèÛw ¾ývÒÒÒ5&8Êår8::`ëÖ´„SÊŒmÛ¶¡sçÎTÜ)”ò,ððòå;899h«\.‡H$‚U‘#!&aýú%èÑcD".Õ<âÉd2eÃBñSˆ¹âœê2UÁ—Ëåpvv‚««+Ö­Û‡Ž»ãο • +ìr²üõñ¦3fär©†s!BLLLpãÆ}q´”SJ¥—999˜7oÌÌÌ0aÂ\ºt 4(”2@ïIv©©éàp8Ëâ!077GZZf‘"}¡¡³‘“#CûöÔÖyœ!®Í,϶”ŒmI™““#$9ºv‚Ù³C0cÆðxs¦9Ã0àñ8puu†@«1dBATT $-åˆím-½N:…-[¶à¯¿þÒ¸ÎÜÜü³*3 ÈÉÉP(„X,†¥¥%,--QµjUðù|ZÞ(åOà šUÿoff†øøˆÅ)07wÖûá^ÂØ±3àëëWW3¥¸+ž§Íí­¢Ç®íÇvŸª|7·êXµj'ž>}…°°U°µ­SA+—|w¶]+ò&33"‘ööŸ·ø$''ãÖ­[xöì>~üˆ„„ˆÅb˜››ÃÊÊ îîî¨U«š4i‚V­Z)+bZ k'""k׮ʼn't^W™^µ<¼ÿ.\À?ÿüƒÛ·o#22R©´Ð0<==Ñ®];£ÿþàóéÆQ”2x333MdBÂår‘‰$ú~Ë7ožÅ¸qߣuëÖj¢TÐü¯*ÎR©éééHOÏ@ff&rsó{®fff°±±µµ•2žl=}ÕIhŽŽ¸ví> ‡6Ãѱ~…Ë<™L†””O°°°Rkx©þrrÒ>Ë‚Žàĉ‹Åßïææ†^½zaðàÁhß¾={:uê÷Y¼«"ï“’’°|ùrìÛ·©©©E +22‘‘‘صk uëÖøæ›o0dÈZ¨(FEïer«Wÿˆ¿þº§\šUp¢Ûƒqûö%ØÛ»Z >ztÆ}ƒV­4Å]U”­á˜˜$&&¢^½ZhÚ´5ª×jUPŹ †A\\,Þ¾û€G_àáÃgxû6...033Õ0]4å‹Dbøû{ãèÑàó«T¨ <:ú!¼¼Z£zõj¬ ¯ØØ8ÄÄ<››ïgQ˜óòò°hÑ",[¶Li 2£GÆÄ‰ѼysZk°4v®\¹‚àà`­×Vô÷|÷î&L˜€+W®èì™×©S¶¶¶011Aff&RRRðøñc½™–––øå—_0eÊÚ˜¤”®À8°›7Ÿ@ÍšÞëòþŽ]‡€€^:É}€Þ½Ç I“¦ÿ:±!ËîòEXŽ·o£`bB0dHo Ò V–XXÊòmÓPî`Ã0ÈÎÎA\\6…ÂÉ“ç`cc§uö=!YYÙ6¬'Ö¬©X.^OœØŒ1c~€ƒƒ=«À'%%#>þªTñ¬ôBóóÏ?cÞ¼yZ¯ F‡àã㣬„­¬¬——‡ŒŒ ÄÄÄàéÓ§ˆˆˆ@xx¸Ö ¹ZµjX´hÆŽKkÌž=Ë—/×°üÅ‚RžÊÖ˜1c°{÷nóVVV˜0a† †Æë +'''OžÄÁƒ®óZ'''œ>}­Zµ¢BO)¿wïOŒ1û){𪂃 `ܸÙZ?–ÜÜ4 2|¾rÜIÕž¢×.‰ðîÝ|÷Ýx ÐÖ¶ “ã_× ™œ‹ø!þ†S§.¢JgÈdêÏRµ$'§`ÇŽ%6lz…ɼ… §bëÖ#އ @€ŸÂÁ¡f¥-À¯_¿FPP4—?vèгgÏF×®] î•Þ»wëׯǾ}ûX¯µ±±AXX†Ž={öÀßß5ú¬+“«W¯¢cÇŽjÇðéÓ§ ù>?~D@@€Fü---±uëV 6ŒÕšQXù˜?>Ö®]«óú©S§bݺuTä)%+ð„¤¥E#0°+üýý5zŠ2™ YYYð󫉵kwj #aaKqôèUxzÖVk$¨ŽÇÆÆÁÞÞaa P£†9ˆT^ŒÂM •q~þ&Nœ>ßBËV¶äß]ïrðèÑ%xx4­½‹\ ò%þùç1†Q¾‹jºš™™àñã`këV){íÛ¶mÄ 4Î7kÖ „§§g‘+GÕÊøë¯¿Æþýûu^_·n]¼yóæ³®LRRRP¥Jµc5jÔÀÇ+Ü»V9ÌQð}ÀÕÕ&&•k”¢¢›2e «¸oß¾wîÜAíÚµ•e·H%çßû,--±oß>Ü¿ÖÖÖZ¯ÏÌÌüì+ggÍ4®|=zôˆUÜOŸ>]lqW-[ööö¸uëV¬X¡õÚË—/#88XùS(FøüŠÎîîU!‹Y'¬q8åLú‚H¥B,Y²ÞÞõXׯK¥R$%%£Y3¬^ù5,Ì¥1Nk•aÈêճÅ »äï÷'„€Ãáàĉ xôèF¹Ï¸¼< bc“Ô† šè==ÝÁç;V.“à $$7nT;njjŠ·oßbܸqÅvm•qãÆ‘žž®u¬5--Ö&,¨®û®âž••Å*î÷îÝCïÞ½K¤lÍœ9“Õ€‚+W® 44”öà)%'ð~~õžž¡áYNÑOOÏ„T*cé½?Ç•+wamm­±ž]*•B,ÃÔTŽåK'Ë‘—LA–µkYâäÉ0dg Ô–ü©özì±pá2H¥Ârq™™)HLLa]GX,†¿0ŒI¥*°K—.ÅöíÛ5Ä=!!žž%7™ap8`ê´Ñð¨ál4³¼nr1lh'øû×W{7E66ÖØ²å7ä¯Å+Ÿ¼yó^)ðry¾ÕC"‘ ;;III°°àÃÓÓ¯RTŠFKPPƹýû÷ÃÃãÔÌ— ‘¿uëªV­ªvîýû÷´F)€‰‰I…(_éééG>Ÿ°°°Rý†ºv튅 j=?tèPjª§_àó'Ú™ÀÅÅA)Ô'Êñx\¤¦¦©ÝsûöeH¥Ð0é+þåpä1¬3ˆ¼t&¶1 ++‚Ÿ~úN¹›êÃ0 LLLpþüudg—ßZâã“`bb¹\Žœœ$&&"=="‘àïï33^¥¨ †Áĉ‘››«v¼mÛ¶:th™Ä‡‚»wïª/Øû£ BxºcÓ¦MÓ8®˜çQÚßЂ вeKÖs'OžÄ³gÏh/žb\KK'xzºC$©‰µB°MLL Ôî9sæ ÜÜÜÔ|È+Ä>!!ö€-§T?""Z6÷DãÆ Ôf¡«¶è_½ŠDbbl¹Í¸ôôLdff"99Y#ÍÀÏÏ ®•¢÷žššŠ-[¶hœ;|øp™Ut ÃÀÝÝkÖ¬Q±ª¼¡5 K:•wÒÓÓ±gÏãeå̈¢ÓTO'ÜQJDàÆuëÖDvv¶Ö¼êd# OŸ¾ƒ…_cæ½L&CRR"†éñ¯›Ò¬t+à‹/ºA,þ¯W¨ºa‹™™ÂÃÏ•ËL“J³‘›+A^^žÖkZ´h\i‚mܽgÏžpuu-óŠîÛo¿UNî{ùò%­Q* ª4!!!eZæmmm±jÕ*Öóׯ_Ç›7oh/žb\/¯Z¬›¸ÈdêN"‘ %%uó¹\//ØÙšÁuFC&ÇÀ/;A ¨Á+6´‹ExðàÊã8¼L&†H”«óšÀÀ¶•¦œ5ß}÷]¹¨à!8~ü8 ))‰Ö(õë×kûòË/˼|͘1Cë2ßþ™öâ)Æx77å2³‚ãéyy¹j³fÓÓ“þY/ÕØÆU ÀÇÇ–Öeõ1pv²BÍšnÊÞ{FFÒÓÓ•Vˆ¨¨…å¯ÒVuñˆ‰ .¾pB”;n©Z:t(Ã0ðóóÙ3g°lÙ2Z£T0ž?Žììlã;w.åkåÊ•¬Ç÷îÝK3b|¯^½òò$ãï2™ B¡..ÿ¹ª|óæ%¬­­4fÎK¥Rddd¢~ý:ÿmS˜ššÀÝÝ©©©&ïÄÄBZf™ÆáÇãj=ïâREçùŠÃ0¬Y·nÝÊ]\{öìYâk¥+j–gÖõNLùqí}Ф¤$äååÁÖÖ^^^h×®úõëW䲯zÏ“'Oð믿bÛ¶m€ªU«"11QíºÛ·ocΜ9ÊNFÏž=±fÍxyy)¯!„ ##oÞ¼‰‰ LMMabb333˜››ƒÇã)ËpVVr»j¶ø_ºt ‰\.W—Ë…L&ƒD"D’o=oÕªlll Mƒ©¾}û|¾9d²|—´ª=óºu=`eõŸïs.—™L®ÖƒWü8òòÊÚ½'au­«4op8åV ¼¼jélˆUþùçÖã%é’¶,X³f Ö­[‡˜˜=-8¦˜|8Ö­[GGÃöÙ¸wïöïßßÿß”j|¦M›¦1ùòìÙ³8{ö,¦OŸŽÕ«W+óÇÁÁÁ(ÖˆÕ«Wã»ï¾Óë~OOO¼{÷N¯ÄܹßÒ¤IÒ¸qcâççG6lHªU«NÂÂ~R»ö?¶_Ò©S'L:tè@Ú·oO‰§grðP!ò;„HËæ'>!½zähüªU«J23cIyäÞ½3ZãíããE²³ãHEgÈ!¬ïS¡ßK.—BÙ¿?ár¹Ê÷jÒ¤ Ù¿?IIIQ^›˜˜HþüóO2jÔ(Ö´˜3gŽZ˜E%::šT¯^ |>ŸlݺUëµW¯^%_|ñ…Öò§úëÝ»w‘ÒfþüùjéróæMµëÒÒÒÈ¢E‹4žW¯^=’žž®WzÜ¿Ÿ5ÎkÖ¬)we¦E‹¬qMOO׸VŸ|™1c†ÞÏÖ'¼ 6¹Ü¹»»+ÃYºt) …å­qãÆÏ\¿~½^eÛ¶mÄÊÊJgüëÖ­«¼~Ĉ…¾ï–-[”×8p€4lذÐ{úöíK† FöìÙÃO‘HD,X@ÆŽKÜÜÜXÃ055%3gÎ$ñññz•qòáefÆ’f͓ƥ¸7hЀ¸ººôôµ‡>ztž¸»{::víÚ‘6mÚV­Z²hÑLBäwËLà³3ï’† ½µfH£Fõˆ@P."##–8:ڱƛÏ7'iiÑÅ®ôËš€€Ö÷ûôéS…÷~ýú©½Ó™3g´VVŠcr¹œŒ3F#=ÜÜÜHjjj‘óûÆʰZµj¥÷;¤¥¥‘‘#Gê¬ÔúôécpÚtéÒEyÿèÑ£uVâñññÄÜÜ\í™fff$--­Ðô8vìkœýõ×rWn¦M›Æ×gÏži\»iÓ&2nÜ8Ò£G­ù2qâD½ŸýðáC²xñbÒ±cG½O_îÞ½«¼ŸËå’èèhåbÒ¤IÏýþûïÒ@©U«!„-[¶èuý´iÓ4â÷ÕW_i½¾W¯^§O:u4‰D5èõ¶AËd¹ [‡”” ôB¡C‡ö†£šz7·zàñ8×B`nnާO_B&-38!Iž?«õšš5Ý`jZþvÃÊw·ë€Þ½ƒYÏ‹DbDDœ¯ð¦zm&k]~Ê3 ó_`` Nž<ùï| s$$$ gÏžZ‡WTíܹ'NœÐ0e;99áýû÷Í!„àÞ½{hÓ¦ €üÉeÿüóO¡a(âcgg‡ßÿÑÑÑhذa±‡‹†Aß¾}qáÂåðÀ®]»tšË]\\pçÎsgráççWèêÚü(†'ÊS¹iÖ¬ë9¶%~“&MÂöíÛqöìYÌž=[o±6üýý1wî\\¾|ûöíc½ÆÐ1ý·oߪ½ÓÅ‹µ®^Päã¦M›”eUÁŠ+pôèQÏ»rå æÎ‹­ó+RSS_ýµ^ïжm[5ÿ)„:t5kÖÔ¢%5 Î÷‚C^óçÏWîΨïwÅ),ÓårÒÒ"±páLlÞ|ÖÖVj“åþägÏþ_-SLMypv¶ÿ· ÓpŽóüù[ròÊd¥Ãeð¿ë/u.ƒóòª »r)\.ß~ûÖó+VlGNNb…^F£mr—P(¬ïÃ0 ¬6·àáÇ›Ö&¬ýúõc]Þåé鉴´4½ò\19¨yóæÊc7oÞ4hìYq››ž­üûôéӅƇa4lØPÃó\LL ¾ùæ÷j[=# ËÕwÃ0 j×®]¤ÔÒ¥KYu—¿aƱn ¤oxŠ ÙªKJ»u놠  B󙂳gÏjœ4h²³³µæYPP/^Œ­[·âǘ8q"kCÉÙÙ@þÖ½üñ=z„‹/â‡~P{gôïß_cU§Wyøða±ËÁüùó ¾‡£ÞKaÿþ5صk%vî\¥K¿Ç˜1#ØGŽ\€í¿¢ÿ_o<))7.€“S}À--P»¶›Ò÷|Á¥rÉÉi¸{ï˜2èÄˤ>ò§ÎkÚ·oQ®£Aƒæ6¬/ë¹ë×ïbáÂù  n±WTá/ï}úÀÏÏÁÁÁøå—_——‡Õ«WcРAxúô)k|†A“&MX—ñFDD\ß¾}[ùÿQ£Fié3Gõ#ÉÌLÆðá3ðË/Û±tévìÙs¿ƒ©©9ÌÍÍÔ–ÅI¥R|ú”†¹s'¢K—Á¬‘çpøhß¾)ÒÒÒ5ö€Ï_V猭[÷A*-í‰ 1YŒ£:ÞÄ„‡ÀÀnåZy< ,_¾ŽŽö¬çW­ÚŽ®]ûàØ±MHK‹Aff,²³ã!ÄC.¯¸ûJ—Å:ìb•¶¿›‚;ß-^¼¸Èy@ÁÖ­[5*ê>`Æ …Þ¿gÏ<~üXù÷Œ3ŠÝËd›í­occ̘1jÇF­wÚ0 >Ÿà`Í!«¢lÌòñãÇrW†ìíí :^VVVE.{..š^2¦ãÂÊlTT”š™ßÞÞ¾¾¾zç!„ÕŒ®·~m³Þ<ˆþýû«•[ÕxMŸ‡¶™ IDAT>‡†•••Öø*¾K6vìØaP:«n84{öì"åGõ#ÉÎN…½½#ll¬acc£æLEu{¾¿ö Lœø¦Lù\®¹ÖîÓ§/²²2ÕÜÕ*þ/—Ëqõê-¼| 0¥'629«VíÖéÄ&88PmNAy¥zu<¨½Bˆ¸‡'ÃÙÙõë Y³¶h‹‘#UØ1úׯ_W¨ø2 ƒY³f©«_¿>‹^¾÷………iœ+ø,6BCC•ÿïÛ·¯QÞ“mœQŸeXñññW;Þ¤IƒÓ†mœúÂ… j˹ ŠOŸ>-weˆÍ,®®EÛ1ÒÚÚºÈeÏ¢HÏ0 ¾ÿþ{ ‹“¡åÞ××—õÜ’%Kôz'6ë…lз§í\½zõйsgsŠ¥uú4b=z¤\Š^§N"[úxl¦6U'6ÔzÝr¹¹¹¹˜:u$fÍZ¤SÜÀÑÑ >ˆ‹û¤æõNž½½=¾ÿ~%N_3SqÉ‹¼‹LÃÆ»t^6jTp¹|”w!èØqvìˆÇر³t\$$$#!!ùßҤܿ›¹¹9ë„§T¸FIÁÁ:uêd”pG…‰'ª'‹Åbœ?]»vÕøž!8vìrrr”ǺtéRbë¾ S±ö¾ >|@ýúõ‘›› ±X ‘H„œœ_NNÄb±ÆäC‡Æ„ 4â¢mîCyìÁ³÷®ø¢Âãñô}¶ºªàµb¢c^^rss!‰  µæµP(ÔjÁ;|ø0~ÿý÷BãÁfênÒ¤‰Qëä7j8_zõê^¾|Y¨X3 ƒC‡)ÿVº*–À+"§h9¨Š½B˜år9ø|sÔ®]C¯ ÁÌÌãÆ DHÈ8;;ª™,BûöìÚޱÀAIiû†ÑØÏßß¿ÄÊ´>“ì<¨q¬W¯^F‹CRRëûi×ò,µjÕª\[¹ZµjUä{‹3Ï&ð…õàµM@{òä‰ÑÒ877×he²¸u²··7‚‚‚4\m/^¼(4 UÏ…&L0–À QWcEFåææá›o‚Çã ÿ±àpÌtŽItìØ µjmEv¶XÍÔ¯ßÖÖ?ÎY_ŸhÛÖ•LE+“1øqÞfܺ¥{Fczz&zö­vÌË«6æÎ Å!¡àñÊWÏžap¹æ;6ééÌ›·ªR|ýúõY>55Ÿ>}2Ø“UYå ›À»¹¹¥b#„`ĈÏæÃ_AA¿Ûîîî%úþº‹Åˆ‹‹S;fccƒï¾ûNg#\LMMáëë‹>}ú°6¦tõÚþüóO´nݺܔ£OŸ>i+Ξ ú˜Ô øÂfÑ3 Ãêï}À€ZM1GGGå¿å¡QFÁúõëѨQ#ÆìŽ;t.+|ÿþ=âãã• Ýâì+¢–S&&ÈÉÉT*!G9^®Ú£W˜d šŒsç,Ñ­Ûh‰om] ³fǸqsáè˜?ÁAUà !°²²ÂÀãñ矛Ñ,ÀD.4bO^™Œƒ_–Æúõ…OtÈÉÑœ]ûæMFŽüGŽ„ã×_WÂݽI¹êÍ3ŒwîüeËÂ*M> þÉ>òĉ7n\…˜GÀærW“¦¾•[ùáÃÖëŸ={¦qÌ5ÌÆFu¦°OOOÌ›7¯Ä¦¦¦prrR®Vå÷ß׺Ĭ,`›w¢ðPŠºLN›Àë3‹¾ ¿˜2e Ú¶m[é6ÍQ,ßlÙ²¥Æ~+V¬À‚ ´Þ»sçNåÿ'MšT,Q³U888c„AèØ±)Ú¶õƒO-X[›#%%Um{^^bcc Š×¯# mÍôèñZ·nÌê—^ñãryèÞ}}ªKýØÆQŸáåå¥×3òæê(Ì%Õ“Ñ[ïYuS”’®€‡®õüâÅ‹Ëøœ;wNíïânìS,³o>++‹5¯+ëžö ¯•'Û‰D"ìÝ»Wã½ !xùò¥rW;6‡<ÅxM³‹=¬­«Ã×·=Ž9€îÝÛ±Vwî<Æž=Û ýêÔi†uëæ --MmÙ\Á­g---°cÇ4kÖÛ¶]A–€€À`Pˆ×;p™Œƒ÷…˜8y 7îƒ'O^–HîÞ}MštÂ¥KûËd]9!99 :ôkdff³^ceeñã#<|'bcŸ"99 ©©ïqõêù ñ‘ 8Pë¹E‹UØÖll¬QË Ûr)63¬êìyÚw”†À³YØ„ ¤â¬u¸äСCÈÊÊ*¤pß«à»ï¾+V¼Šóݰ‰yQ'®½yó¦RïiOјóæÍÓxo†a”Û×ù“g‹[öôÎ>ß+V,кù²eÛ•§3B„0øòËñ˜6m²³jËæT{ñŠB”‘™o¾™?ÿ/1iÊj\¾‰ôL ²s‘˜ q® D¹<äˆ8ÈÌ’#&.Ûw\EŸ~ߣ¶g¶o;Pâ—„·cæÌ|+Fi"—‹±zõrܽû„õ|›6ÍðêÕ?Ø´i;ºwƒêÕ}áì\ ŽŽ5aaáZ!>m¾´`Æ ÈÍÍ-ó Xñ|EÖ§òSì£m,ô]›Ì6VzíÚµ«d W›%É®=õE×xhHHH™ PAÇ) 6D:uŠ/‰DRä{Ù¾¨q)8>]{ñ½{÷ÖX’ùñãGܸqC£¾Päµ§§g±óXQ9°ÛS Õ¾•ÞÉ“›õÚ1J"’)SFkkkRµjUR¥JR¥JâììLœœœˆ££#qpp öööÄÁÁ˜™™)ŸÁãñH½zž¤cÇÖ¤{÷¤S§6¤Y3?Rµª“^»ü™˜ðHݺ5‹t/4¶ªô$\"R©°Tvr‹}HLLx¬qqw¯FŸÊ@Ó¦Mµ¦ùøñãËE»wïN´}NuëÖÕˆwÓ¦MúüÙ³g«…ommÍzÝo¿ýƺ¥±(öˆ#t^¿}ûvÖ|]¸pa©æ_ÁéP`Ƕ²Ü™ÑÞÞ^->ׯ_7(>lïtâĉ"Çgîܹá%''zŸ¶-[Ë‚‚q>|x‰>í»ëܹ³š.þïÿSž[·nqÞÓÐŽ߬õC6¬/‘ÉDz‹üœ9¡„Ï· NNNÊŸ££#±··WŠ;ŸÏ7Šø²ýÌÍÍÉÉ“›I—.íŒî’%3ˆ@_â…töì :ög^P)Ä].—“gÏžéLïçÏŸ—i¼sçNeã“aÆ•xÅ6nÜ8µ°ƒƒƒY¯»~ý:k\ÂÃÃ’†† ü•+WXããêêZªyxâÄ ­åËÅÅÅ -:ÉÚµkÕâÒ¬Y³bç þÝK½¨ï3oÞ<ðRSS ½¯Q£F¬q9zôh©§mÁ8 :´ÄŸijjªñÜÄÄDå»4Hy<77·lþÕ«kZ?/¯Ú$;;NïŠ["’ >ŸOˆƒƒƒ²çnoo¯µÅgŒŸ«kUòèÑ%B!‹O7zø-[6&¯_G¹<·D oVV ©WÏSëó_ÊÛ>èe]ËåròîÝ;e<7nÌz;}ûXã½oß>£Å¹}ûöja¯\¹RkœÙââëëk”ôÐlôÓyONNŽÖ|½xñb©æé_|¡5.ãÆ+õ²•––¦SŠ#ðű|±íMÿéÓ'ƒ¡ÿé†W™÷à TâÏ\´h‘ÆsCBB4âÔµkWã½§¡….1ñNaûôéƒAáI¥BrýúqâåU›XZZ;;;bggGlllJLÜî¥f¾ŽÌÚº*îÏÔÔ„lÙò3‘H„F/,QQw´>·ví$33¶Òˆ»¢BsrÒ> £ø(JKär9ÉÎÎV³0Mœ8Ñ QmРÑâcbb¢vzzºÖk›4iŸS§N+ýd2™F˜_~ùe¡÷U¯^½ÌnŠgxxxh-caaa¥ZÞëׯ¯öüÕ«W)¼*Uª°ÔµÚ*ÌD/—ËÉÑ£Gµ¦íÁƒËTàûõëWâÏ”J¥¬ïž››KÖ¯_¯üûÏ?ÿ4Z™7¸«Û\úöíÍ"æôôwäûïCˆ……±¶¶.a¯UËœ8ñ+‹àJȶmKJ¬AѳgùøñžQ+«;—k}^³f~D H¨T=x¹\N¢££u¦óèÑ£KEär9 …ÄÙÙY£’ÒölmˆsçÎ+¾r¹œ<}úT-Ì=z輇m}¬ÖgµháOrr*—À+¸}û¶Ît.ž|rr²òƒTý%$$hެ¬,ÖøZYY¹\^¬ø¬4bbb Ouâ*ÛoQâ3þ|ð ½O èÌÓŸ~ú©HqR½^ß{år9‹ÅÄÓSûðט1cJ¤Œ)Â[°`A ³îÅz^Áð¿‘#G¿·oß²†õä‰~zCBB´¦«ÉÊÊ*ñ|f³¨µk×®T>|ÐYÖCCCËVàOŸÞ®3‚'Nl1‚)CHŸ“+f‘ÀÀ¦ET''2dHorîÜN­ÂÎ&òÿ}œÔ¨Q½Ä„~äÈþÊáâTC‡öÑúŒÆ}Je’_yy;;;rÿþ}£VŠp.^¼H†aYaRh6lÐ2_£e‘¬`¯yÙ²ezÝ»wï^­é×¥Kƒãó÷ß³†ekk«×ý3gÎÔ™§£F28Nûöí#ÞÞÞdúôéEÊëê˜ÃãJ=zd´2¦£ º¸¸±X\¬g¼~ýZë{\¹rÅ øuìØ‘5œóçÏëÝx*lâ³¾éª8§L7}HII1ê…¡h}ÿ/^µáh°À¯];Og?¾Ù¨‰!Ä‘¤¤Wäðá dúô±¤_¿.¤iÓFÄÛ»6qss%žžÄ××›’Q£ú“•+ ÷î%±D*ÜzÏ/ÏÉøñƒKLä«U«J.\Ø«ŒŸ¡ä契~ýºéƒW4j*+111ÄÖÖVg:÷èÑCi:,êG£¸O$‘¯¾úJë³~øá½ÂëÚµ«Q,Šëj×®­ £ÿþ½›¶Êñôô$QQQZã¤zìûï¿×™úN «Y³f!v'røða­ñ „ÄÄDòã?ª-{ÓÇ¢¡íý<¨3N½{÷&?~,¶Ð_½zUcüßßߟH$£Tø 6Ôú§OŸÖ+þºzß¿üò‹Þqùã? ­#GM’’’t†sæÌµá‡!C†è•¯wïÞe}fTTT© ï8p€õùÆŠ0ô† t ßéÓÛJ4d2ÉÉI ÙÙq$++–deÅ ž… :?|C‘H„ääÉÍÄÑѮĄþÛoÿddD7‘(‰ô쩽r¶²² ii+µÀ+òwäÈ‘…¦s‹-4ÆÇ ³æ¨ ÆÔ©Sµ†Ý¾}{rûömƒzÚ&¹ùøøÌÌL½ß½qãÆëx m ¸»»ëL»îÝ»“£GªU¶™™™äÒ¥Kä믿VZ3Ö¯_O&NœÈ†>fz¹\Nrrrˆ££c¡ùÉ0 éÙ³'™={6Y²d ™={60`qqqѸ6""¢XåkÙ²ez}ËAAAj½X}óá·ß~Sk¤)~óæÍ3ªu à< ¶†Êƒ4"k×®UŽ»×®][­Ü)~ŽŽŽ:¿£‚¬Y³FOß"õÈøñãÉ¢E‹ÈO?ýDBCCIëÖ­5®kÓ¦Þßµ¶ÙüŽŽŽjÃl%)ölÏ_µjUÙ |NN<éС¥Î ¹pao¥¸¸‡dÀ€n%&ò^^µÈýû‰D¢¿s±8™ôê¬3ܘ˜Ç¤²£H¯—/_²~ôl?oooJ6nÜH.]ºDž={F>~üHRSSIbb"yúô)9vìùî»ïˆ···Öp† ¢³‡[Xœû÷ï¯sÌY"‘¨Ý£úŒ3gΨ­2Ù¾}{‘MüyyyÄ××·XeøæÍü‰µ¿ÿþ{¡•Ÿþ™dggkµ H$ŽôŸóbCÞ½{W¬rUpé¡>?G†NöïßO"##5LÃÿûßÿÈÒ¥KI»vì¾7  u.GqÑ6DÄ6¬Âæø§mÛ¶„Ý“"? ’­3>ºfÕò›|¸š°÷îÝ[¯õÇúÄ…mná¾Z’´´4eááázÝ7gΜBãÆ:×AŸßرc‹ÝkÙ²e‰•£‚¿N:‘Í›7»\éÞ={ ŽÃ0jÈÓ§O²<Ø”xyy‘¼¼¼Bã“’’BÚ¶m[¤tstt$7nÜÐ;ÍŠš?b±ØèõÕ‘#GԞѱcÇ’±rñóçšññÏ+©€ÈÈ»w7Iûö%÷á·hј¼z¥Ÿsœ!Czë kÖ¬ò¹¡šf.\ ¡¡¡¤V­ZÅÊ2kÖ,rïÞ½‹÷H‡ôŠƒƒ™:u*‰5ºH¥R²zõj“€ìììȸq㔳¦UŸ¯êqÐÆÆ†’!C†éÓ§“5kÖ³gÏ*×çëïõëד š.vvvdÚ´iÊ¡„â¤ËòåË5æG9r„<þœ>Þ }Ák?~L†ªWúµk×N9Ãt;tèù駟Ȇ ÈÁƒÉ_ýEîܹCž={FÞ¾}K^½zEnܸAŽ?NÂÂÂÈ’%KÈÚµkK$¢¢¢JÅ›óoËF/6lX€©Siß¹†Ã %å=<*íæBa"¶lÙˆ™3—}OïüÍ@L°~ý<Œó ÌÌìµ^7aÂlÛvHëùnÝÚãäÉ£07wÆç!Dm£†GáÑ£Gøøñ#bcc‘””‘H‘HBø|>œœœàîî/// I“&ZÃ+©¸>yò¯_¿Fll,¸\.lmmáéé‰æÍ›ÃÁÁ¡Ä㣠11IIIÈÍÍ…••<==•;Ôi{þÇáïï¯q®¸ñ•H$ˆˆˆÀ›7oðéÓ'H$ØØØ V­ZhÞ¼¹r7½â<‡¡P+++å±ððptïÞ5Üôôt¬X±+V¬0¨.hÛ¶-þþûïrñm¼}û>DLL rrr`nn777´lÙµk×.ô~c•Âqzôèbbb Àãñàââ´hÑ¢ÔÊIòäÉøùùilXU™­2™˜ þ…Ζ•››+ÉÌŒ©ô½D©THž>½F5ªWb½ù=‚H\ÜC­ñX°`ŠÎû«Vu"Ñ„R~üø"…1fÌ|úô ûöíC•*UôºgË–-puuEÇŽqõêUš•|è0##.\ØØØ E‹%6Ü ·À§¥%@*•ê¼ÆÇÇë³Ê,†aÀ嚣M›þ¸ÿ"&LjôgDDÜÃ… §Ô !nnÞàñ¸:ï½{÷1ý¢(=¹wïžòÿAAAÅ6l’’’püøq­cÙš ò«FÕªU±fÍec£ÄÆg)e¢Ó§OWþ=qâÄ}žÞÿøñÃB¯ñó«ÿYf8:ÖæM¿áÔ©­pt´7ê38 ¹\¬öL<=kê¼ïÝ»hˆD ô«¢Pô 11QùÿêÕ«¥WÕ¯_?DFFâòåËÐëžääd̘1¦¦¦èÖ­Ξ=«Ö¸×·§H)½÷>`×®]Êc“&M*ѼÒ[àcc  ÿ¶ŸuÁârÍѧOž<¹Š»-ÜW¯¢ e¨37çÃË«–ÎûÞ¿T*§_…¢OeÈù¯:T¬0V ((÷îÝÓ'OгgO½ïÿ믿лwop8Œ;W®\Ñû¹“'OÃ0XµjÍÜrÒìÛ·¯òïzõêÁÝݽDWè-ð))i:ÏW¯î[¡—.ëc®VÍÇîÝ+aaÁ/v¸yyyÈŸñ&&öðôt×y_\\"¤Rý²(=4hòÿ–––%R7øúúâÌ™3HLLDHHˆA½¿;w¢S§N`X¸p!Î;‡ÈÈHddd 55÷ïßÇÏ?ÿ SSSlÚ´ `ooO{ôå€Í›7ãÉ“'Ê¿CCCKÅl Ó¦Ñc}©¶ìEF"#o“  VÅôtÕ†ˆDÉÏØµ«ð™ôÉÉ‘43(=9tèÒ^i,Å”Édä—_~!|>¿DVâ(¶š¥”­DGGkäMnnn‰?›c¬†‚‡G5ðùUi3M­ÅÎAíÚÍqöì)¬Y3WÍhÁÁ­XÖ4kÖXÞ¿ˆf…¢'_}õ~ûí·ïñ*zô?üð„B!Ž;¦æ\©¸´jÕ ‘‘‘´÷^†òœѽ{w˜šš–øóõVkkÝ&+G ÍQÌÍ0eÊ<~|~~ º×ÑÑ!!ãY Ž«kÝBgÒ‹D™4(”" piÒ¿Ü¿qqq˜5kìí‹6Y·~ýú8uêþùçðx¼ÏzØ´<”£Þ½{#%%EíøÜ¹sK¥á¥·À{yé^êA'séÎd.—_ßvˆˆ¸„Ôìe÷îpp¨Ë&ÇAõê.:ï73³¢@¡T F…««+–-[†´´4¼|ù‹-BË–-uÞÛ¨Q#Ì;¯^½Â‹/лwï2k¨PÔ¹víšÚß;wFëÖ­K%oôöEýÚÍG]»¶Ã‰‡ÁçW¥…J„Èd"Ü»÷?Œ5 oÞ¼×b1±ÂÞ½«Ð«×Hp8æ¬iš–-;àÅ‹·ZŸ—šúŽŽ5iÂS(•€´´4ÄÄÄ //666pvvVîO@)Ÿõ=[ÝMJÉ—¾Þ/Ä¡}ûnxðà™Ök®_?Ž6múWøJ û÷ïÄÉ“ñæÍ{H¥2xxTGpp+Lœ8U«6ÐY@23ãàííääO¬á׬é†'OnÁÚº:Ml …BùÌàé{¡•Uu ÞG§ÀñÅX9’‹ví¾Ç§B_––®˜0a.ÆŒ E^ž„\. ‹ÿÜýjK?†aq^«¸@ëÖM`iéHšB¡P>CôîÁBúõŸ¤óÚAƒzbÚ´±hРLLx`€Ïw¡‚oiøþý´k÷…NDçÎíD·nch¢Q( øÂ9~üW|ùå$½®uqqF:5acc…ÀÀƘ3g.Mõb‡S§aúô¥HIÑÞ{oÔ¨>"".ÁÒÒ•6ª( … |á½G™LŒ©SÇã×_÷ô Z"<üºVÞòò²ññã ¤¤Ä !!÷qöì5¼yUè½gÎü†ž=ÇÒD¤P(”Ïž!+vO[µj->|ˆGx¸þ[R_ †#fÀË«¥Á÷?]»¥C" …òc°k5†aÀç;ãÀm<¸MÁD,Î5ø?¿úX¾ü'ðx|*î …BÞplmë`ïÞ#غõg˜››Ó”,øúzãܹƒ°·÷¢‰A¡P(Tà‹í‚cÆ©IDAT—kŽðîÝMLž< NNº\+R}I2lظví\]ýhbP( ÅðYôÚËÅ>áÞ½«8uê^¾ŒÂ‹o—¿¤®}û¸pá LMhªëIbâ;¸ºÖÕyMݺµ°lÙLôé3<Ÿ&…B¡PŒ+ð€ºû=‘( ‰‰ ¹¹p¹f¨ZµMqƒ>®®šiæèhvíšcĈ¾èÔ©/¬­«Ñ u …B)9×Wü)ú!&`È‘°µµ‚««3|}ë¡uë6prr…••¸\ê-B¡P(e,ð”¢"G1§JP( å3„*Í" …B¡Põ P( …BžB¡P( x …B¡P(Tà) …B¡P§P( … <…B¡P(*ð …B¡P¨ÀS( …B¡O¡P( … <…B¡P(TàiP( …BžB¡P( x …B¡P(Tà) …B¡P§P( …BžB¡P(*ð …B¡P¨ÀS( …B¡O¡P( … <…B¡P(*ð …B¡|îü?49l”˜óèIEND®B`‚codequery-0.21.0/doc/logotitle_small.png000066400000000000000000000215171310136352400202430ustar00rootroot00000000000000‰PNG  IHDRÈ4Ïwü OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-ÛbKGDÿÿÿ ½§“ pHYs  šœtIMEÝ &*`%ÍIDATxÚí]iXS×Ö~B PAA' âˆUÁòÔ¡h°jk[‡Ç‘[ZZçÛÚZ¬¬Uk{½NuöªµZ§:|(Weg !!d<™Ö÷C85Bµ÷Þó>O~°ÏÞç¬ì½ß½Ö~÷:GD8Ô>×8páÀ#A8pàÂG8‚pà🠭 ‹æâìÙ³ð÷Ào¼õJŒT«Õàñx°··‡P(äFë%ˆN§ÁÑ£qàÀÈd4i"EII úö÷ÒŒ‹›¡Ð~~~èÒ¥+¢¢Þ€ƒƒ˜=/Ÿ &“;wþŒ´´ HšA pÂ;¹ðõõxeFÊåZ å¸yóø !!»ñÝw«àèèÄ ‡—»¹ÿ:±X™¬îî¬Z•Œ™3çØô 7o^Á—¡Õ–5º‘..bèõjTT¨ðñïgb̘÷¸ÑãðÂÁ{:kÑ¢/‘Ÿ_ £Ñ??|ñER û **dغu3Nú?+ààà³Ù …¢-Z4ÅàÁ0fÌH¥.àóG Ø¿/þD„ÄÄ/0|øèÿÉÓjµ±˜ 5_ª¹uë, ”ÊrtîܵZ†ÑaçÎ͘4i*ÒÓ3!¹¢U+oH¥RˆÅbxx¸C¯7cݺŸ­[7€a´bì!£ðÆ}Á0 ôz=Žûý¥uTEEŠŠŠPTTµZýJËb±àúõëØµk† †¥K—¾ç0 ƒ{÷î!''ÈÉÉÁÝ»wa0¸=ˆÁ`Ÿo€<¸_­Á’%IÈÍ̓““3ŒF#Š‹Ç#¸5w…££ù…PÈ+ ;À`0`Á‚¥ÈɹŠ%K–£qTe ˆ2YÙ í™L†mÛ¶áÈ‘#(,,„R©¬ ù\àç燾}û"66-Z´x)ƒ•µk×bÆ `Ý»woÔûß½{k×®EZZŠŠŠàââ‚ŠŠ (•J8;;£]»vèÝ»7âããáìì "z%¢Í+%ˆ³³”Jf³7o^³º6oÞL”ÂÎÎ:: Ó§Ç¢G·°ã€ÉÌÙ3W1ÿëÙ‰¼q㸸H1gNbƒŒ5txô¨f³D>ßî…uÌ?þñÌš5 J¥ãÇǤI“>ŸÛ·ocÿþý˜;w.æÌ™ƒbÉ’%ðöö†½½ý ³)88‹/†ÑhÄúõëáààÐh÷ž;w.–/_Ž–-[bÁ‚èׯA¥H"ÇÆ‘””„£G"99«W¯Æûï¿ÿßïBè)$%}EC‡¥!C†RLL?¶ü·ßöÐèÑïÒ‡~Hǧ™3¦Q]"2]´þÐe²˜3(6ö-òöö!ooo‹%”‘‘N Aqq! <€¼¼¼ÈÓ³M›6‰^¦L™BhÈ!¤ÕjmÖÓétK3†Ìf3½h,Y²„Pjjj£ÜoìØ±¬ýµ¡´´”zõêÅ~ß… Ò;ªÅ<:…B.WÀl6á?JXÀ0üòËQØÛÛA«Õ"Àß ?ÌFÀl©Î:³<±sû×èÚ%Z­NN̘1§û%ŠŠŠa±X`±Ú¶õoôcâĉøá‡0mÚ4ìÛ·"‘Èf]GGGìÞ½‰‰=£N§{9ÊJeX#‘Hº8bíڵظq#&L˜€-[¶ÔZßÍÍ ‡Æ€*E8xðàÿÖ&=88 £ƒÁ`àÕ*‘‘µZ ½žŸO1¢„¢g¸wø|`úgïÁÕµ x<rsï##ãüs«VkPTT„òòrh4jtêÔ©Q;cË–-X¿~=ÂÂÂðÝwßչݼy󇂂¼Ì4šUPQQùóçÃËË )))uj#‘H°}ûvøúúB«ÕbÑ¢E¯L´x%‘HœÑ´©z=ÐjÕÈÏχB¡„Á`€Xl‡n݃³¹.KÂÃÛ"0Ð A«Õ"-íÌs«Ó©!“É¡×ëݺum´ŽP(ظq#ˆ+V¬€]ýö7sçÎ…Édz©i¨|¾mÛ6 …B¹\­V‹þýû#""ÂjÊÏÏÇõë×qêÔ)>>Víôz=>úè#x{{cðàÁpww‡J¥ÂÕ«W‘ššŠôôt›žä‹/¾ÀÝ»w‡.]ºàƘ1cV®\‰£G¢Y³f€âââÊEGô\{‡ÀÀ@ˆD"èt:èõzö sÞ¼y(--E=pøðavá°X,¸yó&þþ÷¿C¡P`äÈ‘èÙ³§Õó‹ŠŠ‹AƒaРA€½{÷¢OŸ>X¸p!æÎ >Ÿ…BE‹á‡~ôìÙ)))X¼x1{¯Ö­[cÀ€¸qãÖ¯_øì³ÏÊÚãåå…•+WâĉHII©îI‰ˆT*9ݺ•A{÷n£¨¨^D:´¡²²"""Ú´i=uëÖ•ºuëFÇ ¢¬êÒ®Vu–¢£{²·Pjjrƒd·iÓ& …ô¯mm)Ïl6ÓèÑ£ ÅÆÆ6šD8lØ0rss#ƒÁPíÚþýûI$‘——Éd2+[éwÞ©Qb.))¡AƒÚ¶m›Õµ;vP³fÍèÂ… Vå«V­";;;zýõ×Ù²¬¬,@ÎÎÎÕê×·oߦ€€@ååålùÒ¥K EEEY•WaÙ²e€ÆGF£‘-7™LÔ¹sgŠŠŠ²ªÏ0 9’ÐéÓ§Ù~Òh4tñâEVvމ‰¡sçÎÑŽ;(22’®\¹BDD………NhÍš5V÷¶X,ôùçŸSŸ>}H¥RU³DDë×ÿ@îîDÁÁÁØŽ?ÈV:sæ$õéó:…††RDD7J?³‘ÈréÙ1ÿ›NŸú‰\›º<1g4é rÉ×ׇƒƒ=5„fÏþ˜®_Ïn‚„……5 9öìÙC<RRRlÖ©:C™8q"[VXXHvvvtôèQ›í/^LhûöíVåÔ¹sgR©T¤R©H©T’J¥¢+W®‹‹ …B:xðñ¸fgg³ëرcÏõÝ»wÇêÕ«Àê0ìy T*qëÖ-ó¶l¡C‡H$(//‡L&ƒ»»;Ž?©TjS «éÀ°jR@›6m•JÇ~ø|>ø|>;‰Äb1¼¼¼PXXˆ]»vaòäÉõ–¶U* l¦œØÙÙÕ¨ŽU¥ã<ùËËËq÷î]@\\|}}Ù1}ò;Ø’£«”([ðôôĈ#°téR$''cïÞ½€]»vÁ××AAA¶SMÌf31 C:޶lYǺާcü¯¾šAMš¸§§'¹»»Sûö´vÍפQ'¢"Ê!•ò-_>‹Z´pcïcëãêêL))‹ëåÖû•\] ·§#GöÒ½{7I«U5($ÊÌÌ$—F ³JJJ(""‚Pzzíé5¡¡¡äããC×®]#"¢ððprrr¢óçÏÛlSãïٳ牽Ù4@}úô©³‰‰‰ìXdgg?W €²²²j ±†jBUáôéÓ€žH#*¦nݺ:|øp½ì¨ÚïÈåòZëéõz@^^^”‘‘ADDmÚ´¡õë×מjÂçó! áè舆Â×× ”dý.ÈüùË0vì;`&“ %%rLö$ÒpsëW××!uŽÀôéÉ(.–±«Hÿþ} Ú×p8§DBÂ\Œ ™¬¸º¸ß¿ …b±ûöíB¿~Cáç×"QÃÞ.ìСbbb999ìAX}Î+‚‚‚`2™àèèVâ}–Öÿ¤ÔÚ²eK¨ÕjdeeÕëùÍ›7üñÇìJü,ÄÇdzv¾óÎ;õzž^¯ÇÂ… Ñ¿øûû×èÙt:†±">éëvïÞýgdôÌ(ÂÁÁ3gÎDaa!Ž?Žk×®!??ãǯõÆVP(äÔ³gve!2=µ¡5Ò7ß$Qpp‡gzˆ6m|iÅŠÅd±h©W¯µÖõññ¤}ûv’Éd°Éæ[·®“ŸŸweýVž˜–MÞÞïïççGׯ_¯sÛ„„jݺ5™Lû+99™··÷3W¿wß}—ý{ݺÇ< €JKKkl“””DhëÖ?=ü©S§ñx …âQϼp!Äb@íÛ¼ìÍôôtrs{¶mÛ–vîÜYk}­VK&L 4jÔ(6›·°°üýý }òÉ'5¶]¶l 6¼ªÊ˜­"iÿþý©¢¢ÂªÍÝ»w)((ˆÐ·ß~ku­sç΀$ %%%USê~úé'Ú¿5;8ÀÚSëä4›Í4cÆŒeæ*”••±d]±bEµëUvN™2¥Zè%‰*Ç·=¥¥¥Y]ÏÍÍ¥>ú¨F‚téÒ¥N!"š:u*;çòòòêG?þx@R©è ‚ÔÚYjµŠd²GTX˜G……yTVVBš,s éáZÚ°a 9: k%J«Vžtá‰jíÓÒŽ“@`G¨iÓ¦/,ʤ¤„†JH P`` }÷Ýw”Mz½¾Ò›Ý¢ÄÄDvß’@ÅÅÅO-"9äèèÈJšO¦ÂÿóŸÿ$///º|ùrµç:tˆm×¢E ЧÔÔT=z4õïߟÞ}÷ÝÊÅÈ<Èž—”••±çöööäîîNo¿ý6EFF’““EGGÃ0Õž§R©($$„í‘HDC† ±’šóòòhÁ‚Ô¼ys ¡ÌÌÌZûpÖ¬Y¬7ˆ¥5kÖPRRÒĉ+£úüóÏ­ˆðÓO?YÙF#FŒ rpp¨&mWIÞ(..Ž.\¸Àzq[8{ö, ^½z=Û;=]påJºÕd%Ò6úÌɹDm‰ÏçÕJ”¯¿žMzýŸ:ú¹siäà`_¹JŠéáÃÜú.@ff&Mž<™<==I,“@ G|>Ÿ„B!µk׎¾þúëµþ'=ÌøñãÉÕÕ•¤R)õíÛ—ºvíJ'N¬q²VáêÕ«CM›6¥&MšP«V­(9ùñ!ë‚ ¨eË–Ô¯_?š6måääX½£2}útòôô$’J¥äããC+W®¬ñ9 ÃPdd$µnÝšfÏžMƒ&WW×ÇcâĉìæöY°X,4þ|òðð ©TJb±˜ÂÃÃ);;›t:uïÞæÌ™C‹/¦K—.Yµ½víEGG“³³35iÒ„\\\èõ×_¯FÊÌÌL=z4ÅÇÇÓ—_~I 4dÈgnòóòòÈËË‹6lØP‚,[¶€í''ñ ›|f³–¦Oÿ˜\\¤µ’äÍ7#éþý;DD”‘q™š6mRyH(¤}ûv¼´gär9åääÐÅ‹éêÕ«µ’Â=zD>|i6SYYÙ3•¨«íüü|š={6³ã ‘HhéÒ¥”‘‘Q£2UŠŠŠjÞÙÙñéË/燆¥ØÌœ9“kœô÷ïß§5kÖÐk¯½öÄÓbbbhóæÍ¤V«kõ U$''Ó°aÃj}[Ô&AÂÃØÎøì³¿½ƒµÚ úä“É6 "ð‰ˆ!¹¼”úöíÍ–ý7ËHO?ý´Z~ÒÓ]£ÑЬ<Š££#5oÞœÞÿ}úõ×_I­V“Åb¡µk×Ò Aƒþ²ßY.—“½½=­[·®n ÙÓíÚµf;aÓ¦^ªñ¿þº‹<<ª0¶oïW9XFzÿý?•°Aƒr³¼Édõ :DaaaäääD %RH'NœøË~ߎ;’··7ݹs§Nõ«å3øø´ÂíÛª¥¼ ÄÄŒ@zz0fÍšƒß~;­–‡‡RR–W, мù“?Êýÿц¢*ý½®8p ˆK—.áèÑ£ÈÊÊÃ0‰DÇØ±cõ•ÆÄÅ‹Ѷm[tíÚmÚ´©ó ¤6oþ3Õ$0° ]¾œþÒY®Ó©éøñC´cÇÊʺôÔi8«±üñTÎpx¡¨F²²RêÑ#œ%‰TêD¾¾Þôý÷ß¼2#õzeg_ >I|>Ÿ}·$+ë<7‚^(ÕӾݰfÍjŒõîÜɃJ¥†J¥ÆíÛ·_Ù/éµk×ùùOýHB:vìÎÅH^(jÜd„…uÇÉ“¿ã›oVàÒ¥ËÈÏχ››Û+û™É'Ó°ýý}0uêDÌœ9=/Õ~ÝýiTTÈQXXg´hÑê•9þL z aaáh×.ˆ9 ‚ü`4Àçóag'àFŒGþ*àþË-A8pàÂG8‚pàÀ„Ž 8üGãÿª½$ œÒÂIEND®B`‚codequery-0.21.0/doc/screenshot.png000066400000000000000000003042231310136352400172240ustar00rootroot00000000000000‰PNG  IHDRGᔈßÄsRGB®ÎégAMA± üa pHYsÂÂ(J€ÿ¥IDATx^ìýwœž>Žïýã÷½çNðž¤çÞó9ž`BP2,A,ˆd0!A#‚JŽ’„5¢bBÉArÎAŒHdÎÏûWOuWOuMõLÏììììîûy½žÝîÊUÝSïzºª«³®¼òJúç?ÿIÿûßéÿ÷é/ù ýÿßÿÇd2™L&“YŒùßôßÿíðW¿þ5ýú‚ è‚ /¤‹.¾˜~ó›ßÐï~÷;úý%—Ð%ÿ#ˆÿàïO¿¼äPs7ø{áÿûßÿN¦†HÓN‘–¤Í/šª|Š¿ûÃ߃†Ÿô7Σëâ†C9û[ú­h—߈ö¹è¢ éBÑ^¿þõ¯èW¿Š´£½óF™ö¯¸F¿×èq.º˜.eù-Ê¥ÊUöU~‹:Hª¶Ô=¯T×Ò£%Œ*<Ê…ûNò·¢n(§/=Ü'νbÞνf»>h3÷Þívá…y÷7Ò–eЯ±H×Yþ—yFʉ{ËÉ×9Vî‰P/³º·@YvQg”ýâ‹D/¿Å ÔoRœ_|1Úí¤]G¯¾¯ÕW«÷ÿøGºôÒKéoû]~ùåôÏr½( Âèÿý¿ÿGýë_å ö‡?üL|ðA¡áÉ“' Œ'NœH?ž0;È÷ß?.=È÷Þ{ÏÊ#GŽXyøða+:dåÁƒ­{/l쌰C…ý‚mƒ=”¶ÔgoºŒØYÉcá¿γµG…m<ªÑ´»*¬?]äk³õe0yc‡ÊÍ6–mãã¤)ʉ2»c‚C‡”m·ÛtÐ(ÚÆ  >¾1þ턼QYÞrŒöÁ§èÔ©Ótút„gΜ‰¦ò?…ð§´ðÊ_ káÙ³g%Ï=GçÎ9üî»ïèÎ;ï¤óçϧO>ù¤Õ=?øÜƒw[Ý o¯W‹¾ýö[:lýùÏ–â ÿ1Iô¯NS–.Œ†N7n¤±cÇÒ#<’}ôQæy÷îÝ©G>öêÕËcïÞ½©‡ÓÙ³gO+Í|lDyLêåÍúé|øá‡}ìÖ­›d×®]顇’ìÒ¥‹äƒ>H÷ß¿ä}÷ÝG÷Þ{¯ä=÷Ü#™““#Ù©S'wß}·;v”ìСƒdûöí©]»v’wÝu—$~ˆàwÜáñ¶Ûn£Ûo¿]þ¿õÖ[©M›6ÔºukÉV­ZQË–-=¶hÑ‚š5k&Ù´iSºå–[$7n,yóÍ7S£F¨aÆtÓM7Qƒ ¨^½zëÖ­KuêÔ¡ÚµkS­ZµèÆo¤š5kR5$o¸áª^½:U«VªV­JUªT¡ììlÉJ•*y¬X±"U¨PÊ—//Y®\9*[¶,•)SF²téÒ’×_½äu×]G¥J•¢’%KJ^{íµ’%J” k®¹&ŠW_}5]uÕU1ƒ ^qÅ’ÿþ÷¿£ø¯ýKbñÿø‡x¡³´6â·Èd2™Ì‚¦ê—>ûŸÿú7]-lI©Òe¨\ÅJTå†T§^}jܤ µ6õŽ;…½öµ°¯­„mm%þ·¦6°·°»°¿wÜN·ßy;ÝÙövþ6^Øá[…ým%ìnËæÔ¼E3a›QóæM…ým"ì/l¯csa{› ›Ü²¥HW¤y»´í°ó‚žÍ‡oC·ŠüÛ´n)ÊÐRØ÷"N içQ¦[…í¿­Í­‚¢œ­„ýo!òo!l¿øß¦µp¿ívjÛö.o\1FŒ;´qH§NwSŽŸ€wß1‰´o'â‰2Üv+Ý*òi!ÊsC16¨S›jT¯FU²+SveØöŠTѵë°ï°óºÝWcŒ 0>À8ãŒÔã‰o¬%ÇuêÔ•cŽ n¢›7¡fÍE]D=îlÛž:åÜKvéJÝ{ˆ±eß~Ô¯_ê׿? 8 D=ö 2ÄáàÁò|À€Ô¯o_ê×§/õáû÷@ ¢Añð 8ï/â# 'A"Þc ¦aÆÓÈ#iô¨Ñ4fôzBðàƒ²^Œ›7m¢Mb|½aÃIŒµ7 ·›6Ӧ͛ióæ-´eËVÚºum·á?Îna6máÏëÄÜ‚¸[¤Pìׯ¯kÛ¶mu‰´¶ n“ˆ‡üׯ£uk×ÒšÕ«iÕªU´rå*Z%ŽW¯YKk× ¿õ"ŒÈi#o¤±u+ò@~›$!RŸîÜ–Þß´ŽÞ}e‚äþW'Ð×<"ùsyBœŸz|žÎž<÷ú .ql'Â}m<}õ9:óê³tú•géÔ+ÏÐÉ—Ÿ¡ã’ÏÑñWÆÓ±WŸ§÷E> ò=üê tPp¿pß÷Êóôîäñ´kÒsthù"jS«º|èñü /Ðö;h”¸n˜‰‚@ªñÀPÊRÂhĈ4mÚ4«ˆGSP(‘¡„ Ä „NŸ>}$ûõë'n>Ü€ýåM âÆ5©üLª¸:‘fö?ªLЦ83iŠ4P‰2Uo´MJ(A$=ðÀ>Ô¹sgI%tAÚD‘FJµmÛ6JA)Qd #SÍ›7÷DQÑéÇEõë×E MA¢¨råÊ^çFé‚ÈEJ¥J…DЉ "v#Íd2™ÌôRõËâ¨ú T[ؽ›…l%D„Q›[aWñ€B§9µÀ¹°·-aw!n‡ºÍG2Ä„1Hqt‹°Á°½ŽÝm$ìoa—[;ÝæV<ìö6^ðÎ;ÛJqv»(Ãm"½6­!†š ›®Ò‹”§U‹B ¡$D„Q‹f-©Y“Ô¬©R-[‹1Âm2½» Ž0ÎÀ˜CŒ=ã“NÔY0G¤»å¸¤uĘD„¿âL´Ek‘o3Qö† êSkRõªU¨²E`ØuaÓaו7EÆA"ÉOHt£k8©¾GßBG­oï®”Óù^êòP7êѳõÁ¸cD1nĘR‰#¬’:t¨Hƒ!r„€pBL Âh@ˆ!ˆ¢Aâ?Žá?ÐZR4‰¸Hg„O=áG› „4q$)…Ž9J¹‚F$yìŠ#ˆˆ%ŽžFR ñqÔ·o)Ž fÁ“À§èðKOÓÁ£‚Ç&ƒÏÐBÌœryFˆœ³Qîðóñi:-âŸzé)Á'éƒI‚sé¸NávTø#/ùD9P¦w_|švOxŠÞ<°x>µ¬Y]® ‚|í$,D]°ÒGBx¬‡øÐÄf < € „0{äüP‰#™Ž oÖHÎê@cÎBq–H2¾ðG\ägŠ#!Œüâh-­]‡ò¹âÈ-“Ê_G¹íÚÐ{ëVÑÎçÆJîÜ#¸÷ù±´Op¿à!ÁÃ/Œ¥£ÆÒ1Áã/ŽÂf‚æô¤qt6ŠcéÌD??xñ :õâ:5Að…Ñôà‰çGÑñçGÓûãG ަ÷ž#ø„ÌëˆÈçð ãè€à~q¾W–ë zçÙ'hÇ3cèà‚¹Ôâ†lùªÅð#häãÓ(!ŒÞyg7]vÙ_©\Ýæ”…—™ žxâ «ø‰E›02E„„n:ˆ ˆˆÌT=Žrn$äå|ãÆóˆs“g#_2DÞ:Qž ¢¼6Ž9RÖG‰9%ÔÔ¬—.”ÐV˜MÂLf‘”@2Ũ‹"%ŒÔlDQ,adEAKè0S¤–Ð)Q¤ #]éÂHÍA¡“Ò…‘¾| »|³D‰,Ÿ‹%Š ˆ’)JT™‚HÑ@±h7ÒL&“ÉL/U¿ìôãž8º¾4•­P‰²«U§…ík(ìcóÍ…¸i!lhj|sCº©A=jP¿.5¸©5ÀCEØÑ[„h ŽAÔæ6a“!ŒÚ(aÔB¦ƒ™ˆ)²š {,V#!4nö6ZŠ£6V°ï°ó‚ÂÞßzÛ­ÂÆÃ¾#>„ƒŽÈjÒäY¾æH£©(‡`Ó&M©Iã¦ts#”B Kñnã1¦h‹‡¯XZç.«ÓQt7Æ#˜]ÂCZ1¹3gÈ_Ô±™ÈëæF7Q]1.À’ºl9c$DP9aÛ5›®l¼²ùA" TcŒ#”@r–Ú9Kì¤8j,êØ¼•hÛ;é®öwSÎ=÷:â3Gîê µRãRG$ ñ#p?&œ!ÂR:A,¡“nBA ÁMÎ*õÃ’»¾Î1Ä”5|Øpz|¤×B Ø/Ä‘¨ ftÖ®ÂCpµ!"Î26ÇM ÌØÑ"…–µ©Ù%ˆWPÁ­ ãÌð¬ß!Þ»ÆØï°céÜá&ÓqE‘× Á£Ä}˜Š«„Üz,ÅCž"uBXíß¿ÆÝÞ”¯ZFÛr‡ÓÁà“Ãi·àÁ½O §ý.<=BòØ3#éø3#è¤àâøô³Çu}Ä—7ÎO‰0c»>ìsûP7:ñä:ž;„Þ<2n°à:œ;”=9Œ!?‘ÏÁ}‚ï>5‚v ¢\(ßöqÃhß¼YÔ¬jEQ‡4JŒûÇŒþG¯Oyƒcýÿ»¦ ea§]»vIacŠŸX FX^!€P‰"%ˆ 2 J trssé©§ž¢§Ÿ~šž}öYzî¹çhüøñòX"^>óÌ3>"ÏDˆrÚˆ—ß@Ô‚B " ¢ b B ¢PIª­•@Â{HjI $ÕÍ™ÂÈEXB$Š0S¤/¡Óß+‚ R´-¡Ó—ÏÍ%;S$Š” 2ß)‚ Jµ(²‰ “º(² #SôÄ¢Ý03™L&³à¨úh›8ªH•«V£šÂö5ö±‰Íš5ö³‘Fujc¹WMª]§Õ†½¬ß€ê [ÚP&Í…8©Ua‹åR:G5¢¨Ä“ðWïI$„†´Ï7Â^CÁ¦C ytm=f®·iÓ›…ð¹YÄÅìU#Y®[nç"ÿ¦"fMDÚk7 ›ßèjÔPØ}!œÙ£Vbìp»œ=Âò:¼„Y$,³Sãø/…‘ðÇŒÆmÚPKÔ‚Nˆ9´CíÅX j!„¶½\YØuç!'hIag’¤@âH ¤š7Rºõ„Pm,ÚQˆ#!îîjßQŠ£»ôžà‘}èàpd_Ú÷x™ÏÞQiÈk·à.Áâ|» ʆrî›=n©XFnú-‚±»Ò#˜Ã…RaÇ7Sü(æJA8 ( ÄÍ /¼@/¾ø"Mš4‰^zé¥@Â?YNœ8ÑGä–&L$Ê®øüóÏKa!†ú¡¡Q_ÔõW" Oð?NÌ a™.Ô;GJé³E¦0²Í™ïéÂ3Eñ–Ðé¢È\BgÛlA "s¶H¯(Ñåsªó´½S”É¢4ÅO,Ú2“Éd2 –ªŸ}ºè×ÿ)lÄUÂÆ”¼îz*S¾UªR•nƒòzõëQc!< >nº©>Õ‚¨f ÌjT6Q Üa#a/…ý¬ßð&jÒ\ )†šR!€äÒ;Aˆ¬¦BdÁÝHÕÊ)ž„ —ö\Úu‡LÎ*„k,ÊÒPØó›„-wبØP †tKc!’„­or³°ùn¦F7‰r×oD oñcˆæbÌàˆ¯[ÝY)oéžû0VŽE0ÁãŒ9ÄxC.§ÃL×M ¨~ÝÚTó†êT5»²œ5*[Fˆ iÛ›®$”â‰$5ƒ¤f BŠú4u—ÕÝyW{º[Œ¥îã*Œ±œM³ü›eÁÍNx¾7õîÕ‡úöéKýð¾‘+–䌑$–×¹ï¿Ë%uœ9á  9 :dˆàP¹l«‚¸_01{Ölš5k–ÇÙ³gû8gÎçΙKóæÍ æ[óè­·Þ¢ùóçÓ[óß’ÇÛ·o£{îé,ýóæÍnNüÇùœ9³£ÄF, ,òz yhéàÿöíÛéñ›kѾshM¿‡iàzÁ }»ÑæþÝhKÿ®´Mp{ÿ‡h×€®ôŽàÞÝhß ntpÐÃtø1°½çrÌ=÷Y…œê|ìÿ èÿíë÷ íÜ öïBï /‘çN‘׎ÝhûÀ‡i«à–þÐFÁ ‚ëwO}••.A”cu5É~øá‡r‹ò|GXr†™¨3ˆˆ ˆ —É“'Ó«¯¾J¯½ö½þúë4eÊ”PDØ0Dº±ˆ¼å+¯¼Å—_~ÙbK~˜qR" í€Ù3üp0¥‹$$´1~°xI‰#ÌA ÙfŒôÙ"%Œô%t¶ ÐqêÂ(h¶H-¡37[cÍ¡ƒJt¦(ÞÒ¹°¢(/‚¨ fŠí™Éd2™OÕWkâèêkèÚR×Qérå©bålª&ì^í:µ©aÃ’õ„ ¸±¦°…U³åîlUªV¡ªÕ…@€v³V½ºB 5 ›oiD·4vWªF…0¢¥¡\:'D–\þQ„˜BìHä<ÌÔ©ÞCoiÒDŠ´›on(ìx}Qžz–×¶\ˆ2,ókP_œ7ÂE¦†B(5ù6hH êÝ$Ê-ì½øßP¥[n@ fµ°ÜÏb­0[%DÆÞÃXq.wçÃx£e 9+u³€xרö5é†êb,P¹’3c$EQ)ºN[‚ÿñDR¬åvU„@­V­:U¿¡Õª]‡ˆ:Ýq‡÷¦î¼‹Úaö¨sgùàù°Kð½t¯û~7ˆñÖý÷?@]„PêÚíazôQ¬~r6ëÓB©õÄŽuú93Jqd $¹LOŠ'ˆ*¦r74=lŠðæ›oFqêÔi4ušàÔ©á&ݧÒ4á‡MÒ¦OŸNÓgÌ gΜépÖL!¶p(Êô ­\-¸kÊdº©ÔUr–èÉ's½•_ ¶`Ç÷‘B‰£ÿüçzçôé§ŸÈóXøñÇè£Î¹g$—Ð!CSAÀ¼ñÆÎÍ n—8O–Þ̓¶›UeJ„Jˆ)‘„zª™$¨QˆC,µS3HJ aY"6jP³GXZ§Þ7RÛi‰"%ŒÌí¹•(RÂ(–(’;áhï™[s«%tA¢(Ñ™¢X¢H #%ˆtQ¤ ¢LEÉ#»!f2™Lf&Ñë·E?ÿÏþ‹®¼êj*QR èË”¥r®e ›W£f ª[·Ž°•u„}¬AÕ«ag6 âË û'ò°‡°ÂVÞ ìg-VŠ•†õåÌ<Õb¢®°µõ…íÅ;Lx¿" ‚«;FÛm„m(ÁMÞòw¤)X}”§–(W-a»#¬+„\ýºu…xyÕ­'ÎE¾µ…©UG°®I7 ÁÔ¨‘³uxcäçeQËú0³ä+ÆBÄÉåt¢>uk×¢š7ˆ1A•ÊT±|9*SZØuˆ"מ+êv^H`<‘„±Ee!P«ˆ¶­Výªyc-Ñ–Bø q×¼%Þéºîã&츇íÆ; vèàl!g½Û·ï@ïîDÄ€üÞûîc°.ôÐCÝèÑGœWEztB©§3£öéÝ×Yrß[rÿ«c¬ê#Æt½ñj –8ß½{·¨GÂF ¾ü²ó0Ý|àÊí2ŒÃH8<Èwö«ÉÛô7¦È÷‚ð@Ëë^Ý™px“ ˆ‡cAˆŒ/¾øBÇ'ê«¥&Fù#®ÊãÍ7#Ä{HÃëT¦wçL£å]shùCh…à*Á5Ý:Ѻni½àfÁ­w¤í‚o?Ò‘ÞyônzWp¯Ëý’è@w‡£:vò•A•ãñwÓ¾G:ÐÞ‡;лÝÚÓnÁwº¶£]‚;ßç[»u m‚[D^›»ÝM¾›Ö?‚²teêL«W¾ýê‹T¿Ä¿…8:(õ‰³Ÿ³Ä>€J½ñÆë4jÔH:{ö4}óÍWBobémúå—óÒ_ǹsgÅ€½häçå¹ZF‘€̬(a4eÄô_YY”VîM/ UjN5êÔ§$'õͦ¬ì¾4Ñ⧨ïD„UùÉ<ûЋJU‡ .ÜLBlᦅ@ÂM¥€¸Ù °„í€4µÄS°øQ©Ù#LóböO40k¤Ä‘¹„.ìlo .Š@Ûf JéKè’]>§„‘êø”02g‰ÀLE©DŠ6Ìd2™ÌÌc¤ï¾œþ!ìÂÂÆ\]B ꯃ÷²å¨¢°sU«U¥šB Õ Œ*Wt6([šÊ aP6ö«)„½¬^㺱VMªU[ØTñâê,¿võFakëñ‘tÓM åòv ç&6zh@ `£Ýåí`mØèÚ Vu8iB¤a«¦ \ÚW£ºWF<ܼÑeÍ"ÿ è„]¿nøvP!ª0pÆmõDž²L˜qãgv©)5U âI¸Kaä.+ÄìÞ5Âr:#G•TvÿM‘¤f“t*¤–ÛùR5ц5¨¶(÷M Eùš6©µã"Œ‘îc&¹›¶RoƒY.g|„m˱ë_Û¶í¨}! :åÐ}IàÛ”Q·®Ýèánbüð£B0u§îrf©‡L‘ïiöêÕƒz ÷îxãæ‡ÏYXNWJÔcÃ{î¹W¦qˆâ>(þ‹ãÛî¸G €0¼£í}QãôGyXäÙ•&‹q'îƒeË–Š1%ÄÞCôP×®ruÞEê&ˆ4ÔGjqŒÝñí*µ˜éÿÚAËëÑGâñQ1†…zÿíbÚðÔhšXáJš,ørÅ+èÕ WÐÁ7+ü›¦Wú7ͪô/šWé´°ò?hq•ÒrÁÕ‚k×{üm¨êpp£›|ePåx¬aZ—ýZWùrZ Vú;­\!¸LpI¥ËE—˼æ ήüošQùJšVéJšRùjz]ðUÁW*]M+ô¤Ê¿ÿ•\~8fÌh=ÊÙpmäÈòC¾ø l(qÔ½û#â"¿-ÔènÊɹ›è&ð·Éu±Ÿ|ò± £ã½÷ÉNÀtÄDÄDÄóÝ+JÒv”3[$ENV6õŸ<—æÎ¦¹Sqrÿ*Bõ£—,~ Vc;ü—L¿ßK±5¶=DR{ëžÛ„U,êS˜­ÂŒ“H€˜AÂBÔ³GX^‡ €åuG˜=Â.fpcç:ˆ#5sKÅúf‘MéOÀ0ïÅEDŠJ¦(ROtAdEê‰R(Ò‘EA‚HE6dRDAÂH:‰Òf|™L&“™™Ôûo؃ÿû ºJØ¡׊A¼°_eÄ`½BÅŠT¥ vQsÄ@9!ŒJ—ƒûëJÑõØ|va±$L-·BªŠ•Åy¥Êî{4¦b“š˜aªU[Ú`ØbÌLթ㈟šÒW‚ÆYÆ.m±¢ˆ_i‹t1kSE0y€U„®Šwu0ÛR¥ª8¯BÙ•1Ó%ÊQI”'[¸ChÁ$í½²ù˜õÇR¼Õ©ëˆ¥úÎÒ{¬4ÁŒU=QÆZXJ'Äb•l!+Ûï.§+U6ݱã% ».Ý\‘¤ %]$éBI%0¶p–ØU–IÍ9[zcÖKŒ{ÄØc!l!7‹ã!,ýÃöè5i‚íÎ[R«ÖmäûUwº³IîΡ{:c Þ}tß½3BÄv‘3KQWPˆ ùÑüwEG—.‡ýßç.å{€Þ~ûmY/Œ{ë¶—c;õN9„c÷? þÃa1VT¼_þ¿Gˆ¯1Þ/´hÑBùŠFçÎ`gêŒå„÷t–ï#!>Æü ŽmÔý; Qw/òuQǼ_Œo'RKEëÇŽ ç¯û;½(8ñú¿Óäëÿ½zÝÿ£×¯û½Yúo4½ôÿÑìÒ¥ùeÿ—”û_Z"¸Bp•àkËÿ jPÏ—¿N¸ª_—V—ý+­.s­\)¸´ô¥´Xp‘8~KpN™¿Ò¬ÒÿK3Êü¦–ý;M)ýwz¥Ì?èeÁ—'•þ-ëó0UüÍÿìßO#GŒ Ãñ‰ g—i|# ƒ %Ž  „Æ q!;ОwfßFÿùy«HPÜݺÈ0:V¬X&Õ7Ècý=#5kôÚ3R%£Ç¥t'3Q/ ÚÄ’âäBUéO“-~žHšÜŸªˆüÚ#‡/Q¿ì,Êî÷’á¡MéTâ3K˜=ÂÔ#Ä ÄfËÔ& ˜ºÃ ØÅNí`§v¯S3GXV§6b0Å‘EJA™ï)Qê¢H #]éKèl›-Øv KÅò¹DgŠLA”Ÿ¢ÈD,Š˜L&³øQïÇ/¿üò½#ÌáÝ£Â^aFv ‚,SFØ8!ŠJº3$× Qp-ì[)aï`û°)f?°­u|3LÂ>Â]ØÉrrÀ/„’°­xŸ¶6·zuGA€UÖ>ÊÿŠ®Ý-´%± Í)W„Â]RÄ-/âˆÿåÊÂVcU‡ë.Ò‚-G9¤]wm;þËr¡LBˆ¨qƘ‘ªÍ„0SÛv—¨¤+Œ`ǯ”+?„—熭7“¤‹$Œ/ÊÊY$Ì $ʦv®ƒx瑜íj$Ù¨¡÷!‡Ù·úõëɱÐÍBHAD5k†.œàÊï< !¡Ô¡½1 bðm' ˆ{ä»Kø÷˜î»ÇBx‚÷}œYg&› nX®¦Ò–Ù½ «‚ð¹ó.9þŸ}öY(",f¹LBh='ÆšÁ Ìw˜_ðÓÂ!þûᅧ+ãæà]-Qï{ñé‡xu¤Çe¿¦õãFЄë.âèr!Ž.§É¥/§W_¢äÍ2—"evÙÿ£ùåþ´Dp¹àJÁÕ•02ó7ÏŠka®Bi©àÁ…B|½%Üf‹ÿ³ÊüM—âèrz½ÌåôJÙÒË‚/•ù§Gÿâ¨Uüíÿ'7Ì2d0 ~ÌÙPï‰>}š~}ÁáÄѸqØžz¸hè;„0Ú*ÅøÁ‰EbÀz… £cæÌéââß)! Ô®tê]£×†ÝNÿ•u³F!J9;b¼B«jËß²ªÐ€WœÝ8L? Ô³ª  —]!•Û3DÊ¿#åÂ=·£È¯åZTnNÄŸ<7—:ˆ8r•_.µçíǹk\{-]Çå–³OBÈ´óü*Ñ£Ï(q4–º”Í¢2÷”ï\Aai.ŽÔ·Ô¦ øÁ™KêÔº èô÷ŠÀxKèl[s‡ÙlÁ&ŠÀ¼Ì¡CLÅL‘D™ Šl†–Éd2™…‰Z¿.ì–Öýë_ÂÞ\q%])ììllZ©R®=“¶ ö "Jü‡€ìœ;ð/%XRÄx@<•ŽÂvB¬À–B0)Ñ#…”°§ÊŽ*–Äáw¹éF=ˆ%n2›<LJJ„”¾Þo·¯wÏ¥°ó (gs6¼_¥v¥“›/Èö€]‡ íQ)ÚÌ´ëA"ÉJ²¬nùdQJ· ²1+V­:Õã̼a<ƒ7̼ÉÙ7ÌÄaœ#Æ8‘Y¹zÔKE6£³I­„PÂŽ}BÐÜŽ÷— j\ÑÔN›öíœÍ²±½¹þ>ˆ1Ü–-[å¸e„‰bì†1Üt¾#u'>œ Š1žHƒþS§N…"ÂvìˆÏ½˜¼›žyö9ÑUiþ‚…¢\Gÿ»ï†€rľ»†{÷ÝXÍ„ÏÌà{œøäÌ}’/qÔýÿ.¦µOŽ¢ ®  •® I‚/ ¾Zù š’}Mœ.8[ð-Á‚‹ª^A˪þ›VTû7­ªö/f¹p>èfg‰é¾ªÚ?ieÕÒŠªÿ¢¥‚‹«ü› Ϋüoš#ò˜%8=ûJz³Ê•4Eðµ*WÑËÙWÑdÁ‰‚Ë>Jÿk¹aÆÀÎöìýú9ï¡õ«_ÅGsçÎðær©\UéÛ¯×{âhåòñb \AnØ ïÁ}éÒž0s„Ížy´"eUìA/a„YÌÀ@@ü`[§îG–W¤z‹^XUˆŽŽô¤8~Òç÷$Ýý_B¸ç2œ)”:æÒËüîŠÈÓ™y²‹#ï|òª"ZÿɺPr–ã9Kó²¨Ý³¤Ðy§8¿}¸|§ê¥qݨ\V+êãî\§‹#µ¬âí q„)Rˆ#<À ;Ô©etJ™ËèôÙ¢  ‚–СsPÂ(–(җЙ³Eå5Qd¾S¤:2Õ™'#ŠâÍåEÙD‘.r’¡ÝÈ2™L&³ð1Ò·cö 3Hÿ¶öèJ!‚0øW‚èJÏFýËùsØ.Ø1&)Tx7Žkã ¤q±$ì¤& Ôfj³/N|ØKA¸AˆBHÂÍ Ü•›JñÁŽ]VâDCØ¡›$ÝÿáR³A®½ú—M/Ž;æ¤Á…÷š®ÀÌ”+ 0CåØDçܳ‡*½!¯¸"š*?çܱ©’"/åç0"\UØ+¯Œ!bÜÿÞ â"ŽÊGQË+’nò"IŠ2wÌ¡f‘06Áq1~Á’?¬|w³ªÊqŽ#’œ™&lFq‘z— ã'ìØHã*Œ¯¤`jÚLÐÙb§[à½&9&ÃÒ!nî—ì”ó€dNç£8þù‰TµzMZ´h©ßïž.tϽIÞ{_W8ï,ü@óø7Ì}÷w£ûx˜î|àÁG<¾8ñeêõ¯?ÓúŸ¦—o®F¯¾&8EpÚ-‚MªÑ,Á9M«Ò<Á‚‹[T¥¥-ªÐÊ•ieËÊ´Zp­­²åÿuâ?å/¸Fi€H\ؼ*Íwó›%8Sä?½iuQ–ê4¥quzlv#­xb(Uýã%ôÎ;ï8lôˆ|zè¿ÿû¿íâÈù`–CàÑGâæ9¹;v¡ÃÇÎÚ´iIk×®¦îÝ»ItÁ¿¦gŸ}JÎ"Í;‹Ú·o+ãb#s§:ý# ˆ£È²ºh%Žr#"'2+ô²GU¼ì?’ræG>Š“i@Ä™,ŽetsÆyç“ûcG¼þô’û’Î1í„8j7FÖïO½ñƺ]Ä»mÈj-þ·ìï¼s„vÀ6Ø/}aI¦ðð¾‘ÚÊâëTÕ’:}ÆHF¦(2…‘>[„ºm š)Jô½¢dE‘Fz§‡Ž0Qä‡>Ã@iÄ ¦Z)Ú *“Éd2 ?}ý½f?âÙ—ýátª0ι߆EÛ¼èø&õøy¡ž7¨‹8üwf‚”›n§#ñuÛ­l¹¢JÏ&’L¡¤RD$E–ÚÉ1ˆ‹`<⼋Yþ'Ç/â¿#–œ±Œœa‚PãˆHª!ÇEÎre*uy¨»9;= DŽÃN9zÌéÜÅÇÎ÷@¬@Ð@¤t“¼ï~ˆ”G<>ð࣮XÁÿG…`y…n¨Y‡–.])òëŇºö”ìÚ­—GåfRÓí‘>ô°Á—_™B½®þmzy½q[#zSpêígÞÑf Î|«íM´¸}CZ*¸¢}ZÙ±­¹»­;5  !¸>À ñ‘Ò—»ù ¿ùw5¤yw6¢Y.§Ýј¦ßÙ˜fåÜFËž{Šþãån‚x­ãpÅ@q¤ #%Ž4¨KS¦¼&mÀò¹¿þõ29£‚ŽÍ™3S ²«H?ˆÛnuÃïÀ»A•¨×ó‘Ù£qœÝêœ÷†"ï9378wÄŒ·ƒ|—Hœ»»ÕÉë0£3)ZÄDïVçlÆ –ÇÍš5‰úâ¼Ý²,O@ôˆ´±\næÄ¾TYWî;ÑÛ€AmÂ0ú.î®Ñ®0r¾wôÔ#dܬrѨ矗³gØÊ³FØÊ‚ÅÃÔNuXRq„]EðZN§f”(2—ÐÅEA³EɼW„FÍé¢H £X¢(h–(¢Èo¤úŒ]´P&“ÉdMÚì€äåXrgqb¬°[eÒ/ÍøÿpiºQ·¥ÊÆê6Y§n‡MêáLŸˆHý3I†Hr‰q ˆ1K”XT³Jj6IIêÁ±\v罟T7P,©Õ: ša ãB„Ãî /¾L=z  û…ˆ¹OpèÒ"Fgˆˆ]î-‹âÃö•|õµ7¨v›hÅʵôH÷~ôhþQìÞs€(ÇÀPìÙ{d¯>EqÊÓ©ßõÿ¤-o¼L3…à˜Ùù6šÝ¹ ͽ§ ½%¸à¾6´XpÉýmhÅmhÕ­iM—Ö´î¡Ö´¡k+ÉÍ][Ѓ[»µ Í’­i}×Ö´¶kZó`Z)y+-}àV‘÷­´ðÞ[iøÀ´à‘δ&w$=3p=zSG¹ÚcqzºÈ'ŽLa¤ÄQ¹r¥iãÆuò8Ÿ}ö‰¸ZÓe—ý…vìØBûÛÿJwlåm{ïèµ×^£çzTrD„¢&άÍdêäùAÔDft:üWĽ}{Ìêô£IJðøâa'ºIR Að8Û…kþÙ}i’p‡Ÿäí"~íÚÉMÚqDЋ}*ûãVîM¦O§QmÅqÛQÞ6Þx×èå'¦r"LÙ.c¼Y#soÌ©%uFøZ3fðrŸÚ„AŸ1 ZB§„QXQ¤/¡KV©Î'Q¤w|`QdëhM긢­£·Di3œL&“É,&´Ø……aì~6&69Úla¢´ÙX›-ÃDE_$E>&«‹$9›‘C(™"ÉJ?)¡¤DÆWJ(9Kðð]G(©±Æw?â3Œß¦N›Nó,¦™³æÒ¬Ùóhöœ·|œ3WýŸ/9wÞóÞZèã[óùˆtÁFn¡Ã‡ßóÎ,\Å…‹–&ÄE‹—Y9¬âÕ´ÝjÚ2yù9Úñ²Ã‚»ßyÕáÞן‘Ü/xÀåÁxhʳV< ¸ÏåÞן¥Ý¯§Ý¯Œ§wßVœ2‰–NOãz÷ ›®þ-^¼XNÜàÉïD ½ƒã(qdŠ"EàÕW_7ì?iÿþ½ò<ÿùÏè“O>7ÇMtß}¥Þ³Q³GØÎ[Ÿ=Â, f[°6¶šA2©ÏÖqƒˆ%o>Nè-g‚0ãå'ˆ²€(—Iˆ P}1XQ #Ô 1”Í*K÷t6bÀ¬–Ô©]ê0k„-¼¡R±…7öŽÇ¬‘ú¶¶íÆŒ„‘¾„D‘>[¤ #Û.tA¢H-¡S¢Œ'ŠR5S„Ž/H©N3Eh5”L&“Édf0mö,Úì«ÍÛìµIÝÞëã]$éBI%Ì1†)’0.QBI‰%5†‰5›¤ÆBa|¤‹$P¥0®R³IºHÂ8 ã156Ã8 ï“ã=üPF³Í‚ÚÃl½]‚Ú,SãµÕVí6b÷ÁXÄV鱨öŸ¦›ÿaãËÿñjòK©É?/£¦ÿºŒšýû¯ÔìÊÿ£æWþZ\%xõß©å5§Ö×\N­KüÃå?© þ{¼6rÜR°•Å l!â7¿æÔìêË©éU§&"Ÿ[ÿûÿèæý/5üç_é&Q°]ÉÐàÆµiÅŠR›Ø4OBâøâ‹Ïèûï¿sÏ‚ñõ×_Ñš5«è—_œì°;›Hê{GHØÖ3HºHÒiŠ•`±Ñ1Ž ;¼™ ;h„pC9!ÜL¾öÚk’(³IÔïSaf¬K‘f‹>r#´ZN‡w°;Ö6b9FXN‡w ŒÔr:]Åš-²‰"]ÙDž¨Ž@Ÿ-R¢LT™ÂHD ú!ãGmþèAÕ!èEõNÔ;jE[Çž,mƆÉd2™ÌÂD›}K–6»kÚf›ý6$À `Š$5ID$©±Æ=j ¤–Û'‰$%â‰$Œ×ð iýúõò=$Å7F›8(b·;“[¶lñqëÖ­Qܶm›•øîR,îØ±#%ÄÇoSÅ;w¦œÐ"6½&,Ž’fKð® –•©%v6‘„Xþai0±ˆüA”Å$Df»lDùAÔåùQP)¶šQwQWÔyäÈ‘ÞR:}ÆHÿ®ÑÝîÖÝêC¯úR:Ûl¦nñãSÂ?JÛlQÐf ÙQ„§'ª£ÀS]éÂ(™åsº(2…‘êY1™L&“™Úì]²´ÙaÓVÛì¹I}< ÔØ!ŒHm"IHºHR³H >‹$’Ô˜ ã+Û,¨¨/µSc9<ìÆCoŒñ@õ^9Æ~xÇ­Â-Âñ:Ƈ ^»ñn:ˆ±#(¿·Ô¡ƒ|Ðb\©¯m€99ø˜mg1Å« 63‰‡øAÄ86ˆxeD'fÑtbåTb¼l™ÙhÓ1‰0mâ;³A@$`E‰$̪@$a£ìd§ÞG‚ÐÀ“a‰´lD>A„XCYLâ])E”×F,D}P/õ-#¼_4tèPïc¯ú;F¸Ø¸ápSâ¦Å ®fŒðÃP/˜³Eø‘é³Eê‡âÇï{EAï‰"Õ™$²|Nï´tQ¤wt`ªhë´“¡Í0™L&“Yi³ƒÉÐf—AÓ†Ûì¼I›Hó*’‚f’â‰$µÔÔg‘”HR7èã2} ã75–S" ¿•H¸O‰$Œ•H² $%’’H )@%’Lq¤hG M)ÆHaE’M ©H¡ÅQ1È×1‚¥bØ… KÇðˆ$ˆ,/ÃLÞÁP²3,¹ÃŒD†ð Kˆ‘‡4 Êaå "ʤ1„ºA¢¾”3EhìŽ6Â…ÄÍ7'ndõŽ‘Føa˜ÂH-¡SÂH-¡ÓEQØ%tº(Òß+ÒE‘FèDÀdD‘zÒcvl,Š˜L&“ÉÌ<Úìb2´Ùiдé6»o2–HRBI„Ijl£’M$½o©)’0^S T³HJ$ $Û,R¼Y$Œ+u‘d $]$eêš%,ó,ŽÌŒ•@Š%’°´ ïÝ@$a¹ÄDÄ’AÔňHGé*bÖ*Q(Dˆ²ê„ÈQBH‰!ÔuEQˆ"´ .nÜp˜ÒÄ͉›X}Ë7¾Ú|?µ”?"µŒNý°ôw‹@]©#]ái‡š1 FêÝ"ÕI(q„§,jÆH #EÕé #RTÂHGŠªCS]Xš*hëxóB[Ïd2™Lfq¢Í>æ…6ûm³ó6êãS)ª1‡FŠº0RTImtqboÃ5¦2’¾Ìã25FSIáÔ2;%’ð ÜH Æ„ Ä‘HJJa ê³GJÙf‘”0ÂXT-±ƒ Ò©–؉¤ QdŠ “ñ‘)z¡)Œu†ž8ÂÇŽpq–zB6%Ôg!’ð® ––A<`FbbIÍ*Ah¨Ù%]„„¡*ºX‘~‘¿4:Q6E”D¹AˆuQ/EÔõFýÑ.¸Ð¸p#)Q„TŸ-‚0“üÔŒ‘š5R3Fø!˜žñ# Fø‘š3FøcZX-¥ FŠúŒ‘.ŒMq¤ $])ªLul¦@ŠE[giëh“¥­#g2™L&“i6ÉÒfÏmvßF}ü`Š"E]éã])*¤Ï éã  ¤ÆRW™3H`@¸MáÔ˜N‰#5{ªwÔ R˜Ù#%ŽÌ™#] ÅFúŒ‘M ™bHg02EP,&+B¦F‰Eè!ùØdÄQ<ª$E%”Ôl„D†J4)ᤎõp&•`1©ŒIär˜DùPNÐ,?ˆz¡‘ÕEÀÅQS]du“à†ÂÍ…›7$nRÜ´¸y•(RËèÔŒ~AÂH½c¤ÏÙÞ1² #<éPÂH‰#üà•8Ò;5cdŠ#] ©ŽF $])ªÎJub¦8ŠE[ÇhëTóJ[çÍd2™L&3B›ýÌ+mvÞ6°QWèÂHQHúxEF6q¤fŽ•8õÙ#Œ§Ô ’m‰HŸaœ†ñšš=Â8ã¹ 4{„±"ÆŒŠC-«3gô™#]éÔ’E¦8Ò…N]éÔI] ¦ðuÑDS)šš$F‰#% ‚h  ™p¨ÒR3JJ0%K=xeE9TÃÙY]u±ÔET7RËjjQ‰ uc)U®TºEj¦j75žèÂÄ?›8ÂT¬>k„\8•8•8ñ·Íé³G±’¢.’ô'4ªSÒÅ’ê¼âQïðmc^hë™L&“ÉdƧͮæ…6»oØhŠ!Pè¢ÈÃÄFjLdÎj,…q•ca¼¥Æ^6q¤’Gji.ŽÌ¥u 9sdÎé³FŠº8 ZRgDæL‘I}¦H@ŠAÂG;ahŽËuÁ‹¦æm:Ôµ‚ž8úÕ¯~E§N²Š¥K—Ê}Ùƒ¸nݺ¤”–é†zº6®]»6&׬YããêÕ«=®ZµÊÊ•+WJâcRŠË—/§eË–I¢í—,Y"¿Æ»hÑ" .ô¸`Áš?¾o½õÍ›7Orîܹ4gÎØ/´}$×üðm¬ïFÅúT¬ï=¯Y¶O×iÛ.=,Õ¶êL&“Éd2‹6m〰´?tÚÆ/ ã˜c}\¤—̱”c©1—>Sc35VÓÇoÏ©±ÆyæØãA}|¨1Ž1¦TTãL5öTÄxÔǨ:Õ4Ç·úØFsÌlÒ6ÎKÛ>YÚô‚"Ú̦{ ‡ ‹ë.¯»Y™Ž2¦‚AåÌ”ëÀd2™L&“Édf?üä»(qZÅ‘Œˆ£ÏâpºpWîXîF˜åÃ…`QKß \Tœ“Éd2™L&“Y„$ŽÀÐâhß{ŸÅ!Ù EÀ$å^z­Œu,8é.*Ýo‡sœ®N¥Ë §EQ~;¨f”¼2‰2ªpˆT®¨2«4£â‰4… ’~¢>#Ï«cåž2ºùYP¯£ëdo &“Éd2™L&³hñÃOS Žöý<§S+1¨î½*–»v¼ ƒpcPët#n”é¶£¢üÞ¦Þe,åpý_¸5‹ZM²ù™eö§>^•îÿ¶/C”{`ëq£Ó‰Ô‰Éd2™L&“É,ZüèÓïó.޼ÿEÎpÙ«c¹kÇ«GH¡1Á6Ü)DÜ¿d¸ûò3˪Ç1ýb—y„D¼xnØ¥ý+HU¶¤~”{`ëqÍtÚÉd2™L&“É,ü賈£CǾˆÃÔZ ²ûˆAv°»yœE¥ìÔ¦ˆ“Û ÒŽ^ôÜ̼ŒsWD8áõ2šçN¼Ö“]¿Ðñ"\6 BŠêlOßVÞèüb„ñÕ‰Éd2™L&“É,Zü8âèðñ/ãp¦p÷]Ëݳf•soÉ×m3µxy¤H‘´[OÖýr´¾Í™É1ý'Þ¦—'V™õúšõ×Î}eiGÝ|òF3¿wkëaœã ¶`2™L&“Éd2‹?ùü‡¼‹£÷N~]„8›ÚdU¢~ël~ÅÜL&“Éd2™ÌâÃO¿ø1ïâèý¾.BœM· Aнͯ¸‘Û‚Éd2™L&“Y|øÙ—)GÇN}S„è‚ëm~ÅÜL&“Éd2™ÌâäÅÑÀ=qtüô·L&“Éd2™L&“Y¨ùùW?yâzG×?âuqtâÌ·L&“Éd2™L&“Y¨ù…!ŽtdG*_}Çd2™L&“Éd2™…š6qF‰£Ó§Oû€›6m’‘­ØÁd2™L&“Éd2™…žÐ7Ð9¦ö²Š£H*qôÅ_0™L&“Éd2™Lf¡§GJóÄG*‹#&“Éd2™L&“YÔhŠ#Ð*Žô ‹#&“Éd2™L&“Y”hG`LqÔ¿GL&“Éd2™L&³HQ‰#è]ÿXÅ)"Ò•W^iM”Éd2™L&“Éd2 uq¤èG]t‘<80¢œ@GL&“Éd2™L&³(Ñ&Ž@‹8òog‡ý¿¯ºê*k¢L&“Éd2™L&“YØJá£G=ö˜[¶l¡«¯¾Úš(“Éd2™L&“Éd6ÆG_|±GC† ñ8xð`)ŽJ”(aM”Éd2™L&“Éd2 ㊣ßüæ7töìY>|¸ä°aÃ$·nÛF×–,iM”Éd23™/¿ü²¤Í™yäëUðäkÀd2‹ ㊣ßþö·R=þøã4räHÛ·o§R×]gM4ˆ¹¹¹Ô³gOêÚµkZ‰<‘·­LL&³øƒ<ÀæÇÌ<òõ*xò5`2™Å…G7nŒ!Ž~÷[:wî3Úã¨Ñ£hÇŽTºtik¢6Ž‚êÉ'Ÿ”i?>­DžÈe°•Éd/ò@¯p‘¯WÁ“¯“É,.Tâ¨_¿~vqô»ßýNŠ‹±cŸ 'žˆpÇÛoS™2e¬‰Úؽ{wúè£è§Ÿ~¢¯¾ú*­DžÈe°•Éd/ò@¯p‘¯WÁ“¯“É,.ÔÅ‘¢_ýþ÷tîC!ŽÆpìXz{çÛT®\9k¢6byfqtѲ筇iÛ«Í­Ü ¾Òœ¶¸ÜürsÚ$¸q²àKÍiƒàºI×LlN«_lN«W¾Ðœ–?/ü§võå…¼Q[Ù˜Lfñ"ô ùz<ù0™ÌâB%ŽúöíëHž8ú½G~ø¡|g—;NrçÎ ‹£Ÿþ™¾üòK[_iFkÆ•òq58¶­\ùD)Z1¦-\6º-UŠ–.~¼-YŠŒ(Eó‡—¤yÃJÒÜ¡%iö’4spIšñXIZülS_^țœÉy W¸È׫àÉ×€ÉdêâHHÑâèIG)æ‡8 FK!Œ!Œ Q¤„Ñ[E‚s Œ„(š)DÑtÁiKÒ§“G¨[AlÁd2SÃ0°ð@¯p‘¯WÁ³¸^ƒýÑò•ëhƬùL&³¿cüžm¿s“¦8R)¦8ÊËÌ‘î¦ÄD¸~ü ´sFÝ4ž>>º–¾ýü$ýüÃ×ôË/ç%Çß|v’ÎYK×§ S:Ñü1ÕålÑ´A%iꀒôFÿ’4ÿ©¦¾¼Âˆ£‚Ü4‚Éd¦†a6`áÁvá"_¯‚gq½'?øˆ>üä YwƒQxßñ‘cg¬¿s“¶wެâèɧž”G$%/Ž>ÿüsGž0z¢mžÜ„NïC?ÿô­[•øøùÇïèØ®¹´ø™[èM!Œ¦aôz¿kinn_^aÄQAnÁd2SÃ0°ð`»p‘¯WÁ³8‹#ƒQ4:qt‰.Žriܸq‚c¥8*[®¬5Qmâh‹Gj ¸ÙcBì|ãV!<~úáÚ:ï1!ŠJÒk}¯¥Wú\K³Ç%.Žà'϶“É,<Äï8Öï=Ì@o¬èë¥-fÞÉ׫àY\¯‹#£è Yqµ•÷%—\â‰#ÌAa[ï·ß~›Ê–MLá‰î§Ÿ~êqóËͼw‹°áÂêgªÓÑ-é›OË¥tÿùÏ/nu¢?,±ûê“ã´wÝDš1¼½*DÑ˽¯¥É½®¥™O4ñ兼È#ˆ(ý]%&“YøïaHØÞ7ß|È~ø~üñGúî»ïäyaèV¦âz™äë•‹ëo†ÅƒQt—™#»8r—Ó©ïA•)þ;GAâH߉nÝ„†´ê™iÃË·Òî…éðÆ tbÏ<:sp%{o=²NXIÇvÍ£½k'Ж¹iñø6BU§ÙcÐd!Œ&õ¼–&ö¸–¦I^ÙüÒÊ#¨B…´Óæ—Ìk~é.oa'·wrTõQÿTŠ£Ùó—FqëŽwhÒ›k¨çðôÞ±Sôí·ßÁvÝ{y½^àœËhÁÒ•´|ÕÚB30O StÍ2æ7“æ{ŃQt¨8 Ü­NGXNq4fÌhÚ±cGBUâè“O>ñ¸á¥¦Þ.tK/Eû– £m¡]oõ¡¥OÞHo(M ÆdÓ±5há¸Ú4lmš7ºÍžMo ¼ž¦«B«_ïB\K›ç•ÂèE!Œ&”=/× |ç݃´ïà{täè1Z»~c°8BÙõ¾Z²Øi„K–ùq]㥙¢<Óö›±^ƒv4CÕC¯OŠê‹ù.ŽåPÎ"÷ØÄ‘\ÊÎÎ¥#î)ƒÁÈ’GQ»Õ)q$ß5’³FchôèäÅÑÇìqý¤¦RÉï(Eï.*7XøÏþC¿œÿ™¾ùü9´šŽî˜N7N|™ŽlŸN'÷­ />zŸÎÿü£ û“ˆ³qÎPšÐýZz^£ñ\KSFÞâË+¬8B8}Æ)¯Ü1¬¼èØï¢išÛ´»üç&§ÝUž†íÇ;†QùòÃh‡%L*éågñ Å4•3c˜Çúr{'IUïõ÷{Ov ÷öîýtüäš³dÕƒ¼N=§ÐÙ³ç‚ÛŠr׎ÚU9ÐNà/)†)W>”=/×kϾÃtðÈûtôØ 1Ð=E›6o‰-Žò³Ýó#ýxi¦(Ï´ýf©O~´§Á|GBeeeSn®G¹B ˜kÈ G FJ‘qF6d»Õ“³FFcÆqäΕ.]Úš¨6q´vbSç»EîÇ\W>wÛ9CˆžÜjÄÇùŸ~ [fÒ›#ÐóB=÷ðµôL·ôڈƾ¼GúŒ“ÿ镟z8;·ÑÐòåiè6›Ÿà¶¡T>ËôŸJm³ÚÒT7’Wù¡ÛÜðÊÍ·òm©­¶íÔH¼¶S£ý=÷¨üÔ±Η§ gº –JÛ¢ÜõºùÓ–áeÙÜx*n¬t\ÿ¡mái£H}‡¥½e¼m$Âl kägºË²%r]ô²ºe)í-ÕnQi©ønÁHº}åôÒÒïéè2¤Zí;t”Ž<-g¾úújÛíªwÇ3´bý~:òÞ{Á=—;GT  #vÒŒvYò¿t7vÞ¹;ËäÖY†‡Ÿjœ¶mÛF¥J•²&j£M-ߘÞ¢hîÐ’4gHIÚ½tÜ»˜V½t'½õDmšöXYš9òZøl+Z6©#-™Ø‘æ=ÝŠ¦ ©N“z—¦×× Y¹­éÀÖÙ´~ÎãôT×ô¤F¹]JÐKƒ“GwäÈ‘(êŸÍßÊå}©L™¾´ÜæÀ‰m²¨ÍD÷\c­ ÛÐD3Œy¬»IN¤6Ye¨ïrçÜË/*œÅ çfžz8éo)£Ìÿ-áIÇ /I[o»å}ËxqËÜ{o$žž†y¬ç'Ý‘¶›7Â(ÆŠ§Âëa4‹öî;,ºÝ‚òVç6ű¹ëy Æû½'2Ð{ÿø ê2pº|ê½kïIêÜëMjØn<-^½OæóÞÑ÷ƒz`ÔÎøúÜó cuîõÙ„ >ê§ÂÚ⥯ŽÍxªÜó47ßÝ©™^P¸˜ÈõZ²|µ\BwJ1|ï ï }¥móózEÕÛOÕÞQ³>zý¬í§…çëØÌ'VxEÓÍ&Óö› *Ÿr×ýÍc½}${= Æ[V§ç—â½s$Òõü!¨x&‰ÁHÉÌYÅÑoû[:+ÄÑðáÃhذ¡4dÈÉ­[·RÉ’%­‰ÚhKŸkLs„0š-„ÑÌÁ%i×’‘r™Üß~Ngo ý_¦­ó†ÐÚ7¦å“ï¥e“u£õ³Ñ;«&Ò±½«è›/?¢ŸEœµ³GJQ4öÁôÄ%èÅA }yÅ,ªŒ‡¶ŸÍ=˜©5„È2›ŸË¨o-ü2g¸Ì<ÖFGÅÓˤågKßtÃyVkšhs·æ¥ˆ^:î[gQë‰F:õx¶cüׯST>HÆÏM?(=V÷bÒÞµv ÊÛÞ`P›»Q–x¿÷DzoïÚMïŸøêßù,5¸ë99ÈkÿÈëôÃ?Iÿ'OôýË¡zK€ôA[¬AŸÎ&0Ìp67Ww·›ñlâÈç¯1(í<0‘ëµbõ:úàÔiù®,fŠ ˆàŽÝÑâ^¯x啳:š8Bx%vÕy¬ö ãn;Æ[>±ŽM7[˜LÛo&¨|Ê]÷:Öä’aÞ9Â=‘/0—Õñ2;#OHvY]”8úÍo~CgΜ¡Áƒ{ôØ Ú¼y3•(Qš¨6q´ä™Æ4Kˆ¢•¤éƒJÒâg›ÒÇ'w{KéœÍ¾¥ï¿þ”¾ùâœäw_"?úª/·;sl7½6âO¾¿½009qzðàÁ”qiŸÒ¢ãlM4· ­Ýó¥}¨tViê³ÔõÃyé>´T…•þ*î9Ðl=ÁõÓè8¶c3Í ­)ËþàRêSÚLߟ§¬Kë ®{¤ÜÒ]¦PF3m½lZÛÄMǬ‹î.—î³Ôï®û«x¶c#]¯½µ—&êàÖá¹.V·¢ÝÞQíö’™–­þ‚¾2ÔÛ(W¤Ü4ñ;N•8Ú´e}ôÉ4ú…åtÓ]ã©QûçiîÒÝÞ÷ZÐ?ôl˜Բ& Ú4‘#E”>Ðóü L"ixKãÜx&¸¬Î6¨TǺ¨—YºûÓõaÊž,¹^ë6lò„Üá†ë¤óz™õöuA½ðß>û¹†1–Õi×Üç®Ò±æã†ñÒ XV§Å:É´ýf‚ʧÜuÇ»×’¬¯b¾mÈ,ŽŒ”"q´aÃêÓ§'@O]|ñŲ#4h 8€  ?„´iÓ&ºúê«­‰Ú¨Ä‘z² .zº±FÓ–¤7”¤Ù× Ù£n¤=«'Ð'§öÑw_}L¿üò³[¥~9ž¾~žÜG[—M  ýn ñ½«Ó!ŠFÝW‚¿·ÐЗò+ŽöïߟR.é-o¢ÓöØêÇoIo1,M½—D•î½Ä÷…VNé.Ãké”îMKà†ÿ*=óØŒ“ÕŠ^pÓŽÊÏÛêÓ-wÿ ­¼p¥[µòç녌㮷MÜtà¦ü}\B½Å\µcõxǪýåxZieÐÛ*¡ëâ²Ø´·­ÝliyFê§Þ¶²êé ¦RmÛ¾Cô!GèØÉiÌ Ë(wÒJúêëïè1øþøãOÄ@ü£z‘Áµäºõ¨Ð®/,6oîQ/š[׊¾pî@ÑW/—íØH'Ô’¹Pe÷‡ ËD¯×Þ½ûèÈ‘÷èø‰tæìYúï¢}òI¸ë¥—U×ÊxË$§MT]Aß54ÒRq}mƒp*¬Ïr˜ægkoµ!ƒ ëK?ìoFs7üãÞkIÖW1íâH.¥Ë!¹’ŽÅƒ‘R$*Žz÷î-’Iž8ºè¢‹ä D‘#Œœ©%L7]uÕUÖDmTÂCº;ÿ©Æ4ÕFSú•¤ÍsÒ¾u“iö iƨz´ü•.´}É“ôîú×å{Eûw¯{6-|’LìB“Õ¡‰ëЖ%ÏÓ’×ûKa4R£÷” çú7ôåo°ÂöÞ½{ „ã[fQËñv¿¤¹¨']}OZdñË—üÂ0F™’âø–”•Êôò‰ÜÞé#~Ç©GŠèCðä/”ãX÷­½ÂÊ<(SÍd®W<©ë•×ß ‹#£è Ñeuº0²Š#µÞDDºòÊ+­‰ÚhGórÓýKÒëB½Ö÷ZÚ±hŒ\F÷ñ©½´gÍKôÖsmiBÏëËÒ‹}*Ñ„ÞéÙGËÐSÝ„ z¢ m^<žN¿ÿýøý7´zöO ë\‚žé—¼8Ú³gOð9j‘Õ‚ž³úå zˆqZå—Où…a`™’ãs-²¨Åsv¿Ì!·w:‰ßq*ÄQ¢´¥S(YHÅQ¢´¥Ã´³¸^ƒ]VÇ`0RŠdÅQàÌ‘RM*¦›’GúÒ—Ùco–¢è•>×Ò˽¯¥yOµ¤³ï¿-ß'Rüñû¯éãÓéä¡ÍtâÐ&úèƒýôÃw_ùÂ|pämziX .DÑМkhH§kè©> |y…G_ý5íÞ½›ÉdbâwœWqÄÌòõ*x×kÀâˆÁ(:Hæ#ž8ŸS§NyX""ÛµÑ&ŽfŽi$…Ñä^×Ò¤ž×ÒÄ×Òì'[ÓÑ=Ë¤Š‡ïE˜ƒ»–Óä­ål‘FƒŸì¸8êÞ½;â÷‹ß1~϶ß9ȃíÂE¾^Ïâ,Ž>üä YwƒQxßqÊ6dPâHF½zõJZéï¼9²¡œ-šÐýZzÞFÏ>\‚žîZ‚žr?æ:Vð©GÊÑ ýkÑóýjÓØ®åä»EXBQä͹¢hPG‡Gz^aĈÜâ‰3Â2™ÌÂGü~ñ;¶ý¾y°]¸È׫àY\¯ÁÇF|ø9“É,ÄïÙö;7©ÄôŽ.¢–ÕÁS £T‰£)#Ò B)QôL7G=)„Ñ8£JÐ÷»EúNtêÝ"Kè Šta”qÄd2‹>y°]¸È׫àÉ×€ÉdêâH $з¬'©˜9Â’ý¥éOßM¯ ½‰^rMÒ€&=Ö€&j@/ NØ€^ЀÆ÷o@ÏõsøLßôtŸôTïôdïú’¹½êÓ8°§Ÿ/ŽìàË y³8b2™ ô ùz<ù0™Ìâ ™#«8R *qT›„yA›Édò@¯p‘¯WÁ“¯“É,.4gŽ@Ÿ8JÕVÞ¹ÙòŒ÷‚6“É,>ä^á"_¯‚'_&“Y\}£4Ò@ÐCÐEQUðq¤«®ºÊšh j³ƒ0/h3™ÌâCè.òõ*xò5`2™Å…Ð7Ð9Jó( 䉣‹/¾Xž 8 àqÓ¦MtÍ5×Xe2™ÌL&z6wff’¯WÁ“¯“É,.„¾ÎÑutôtQÖo~ó:sæ 2„,ùØcÑ–-[¨dÉ’ÖD™L&“Éd2™L&³°ú:zGiè è!袬ßýîwtöìYù¾ŽÎmÛ¶QéÒ¥­‰2™L&“Éd2™Lfa#ô tŽ©} ‡ ‹².¹äúðÃå†:wîÜIåË—·&Êd2™L&“Éd2™…Ð7Ð9¦ö‚.ÊúÃþ@}ô=÷Üs>¾óÎ;T¹rek¢L&“Éd2™L&“YØ}cjè!袬?ýéOò;A/½ôMš4Éã»ï¾KÕ«W·&Êd2™L&“Éd2™…Ð7Ð9ºî‚‚.ÊúË_þBŸ~ú)½þúëôꫯzÜ·oÕ¬YÓš(“Éd2™L&“Éd6Bß@çèº:zº(ëÒK/¥Ï>ûŒ¦N*ùæ›oÒo¼A¤Úµk[e2™L&“Éd2™ÌÂFèèè襠‡ ‹².»ì2y2cÆ š>}ºä´iÓèСCT·n]k¢AÌÍÍ¥ž={Z?ÔšŸDžÈÛV&/_Es,¦Yo-L+‘'ò¶•‰Éd2 ; ‹ `[›l«˜LfQ&ô tôŽÒ>ÐAÐCÐEYýë_åÉÌ™3¥‡âáÇ©^½zÖDm1r$=ùä“tîÜ9:þ|Z‰<‘7Ê`+›Îy —Кõ›è˯¾²¦•ŸDžÈe°•Éd2 + ‹ `[Ÿl«˜LfQ&ô tŽ®{ ƒ ‡ ‹¤8úüóÏiöìÙ4kÖ,é "Rýúõ­‰Úؽ{w¹ËÃO?ýD_‰Ž5DžÈe°•Mçìù‹Dœ¯é矦o¾ù&­DžÈe°•Éd2 + ‹ `[Ÿl«˜LfQ&ô tŽÒ<Ð?ÐAÐC)GX2€'Nº!ØóÖôíÕæVn_iN[\n~¹9mÜ8Yð¥æ´ApÝ$‡k&6§Õ/6§U‚+_hNËŸþS»úòBÞ(ƒ­l:±dauC°cÇZ»vmh®Y³ÆÇÕ«W{\¹r¥Ç+VЦM›|y!o”ÁV6&“É,¬,,6€mÛ*&“Y¼ZÁCg2âO›¾üòK[_iFkÆ•òq58¶­\ùD)Z1¦-\6º-UŠ–.~¼-YŠŒ(Eó‡—¤yÃJÒÜ¡%iö’4spIšñXIZülS_^È;Yƒ#²xñâ(.\¸0Š ,ðñ­·Þò8wî\hdpùòå¾¼Øà0™Ì¢ÈÂbØV±­b2™Å›J™Ú'Påeæ(žÁ 26K5c³HelÞ‚¡œc# ÍLah¦ NX’>¿'ž±‰gh@´ã²eË|y…18û¢å+×ÑŒYó™L&³À‰þý’­¿R,,6€mUêlXP›[0™L¦b¢›ÝØfެâ¤ò“Gº›280402aŸÀ½ðnÚ ’4u@Iz£IšÿTS_^©28ñ M"Æ\²d‰/¯0çäчŸ|A ƒ‘ @täØk¥˜Œ XñDiZ™[‰–=Q.m6 Y[µlÌõ´gQ?úñÛÏè羡½Ë§#Kk[U›[0™L¦b"›Ý€¶™#ô‡âHu”ÉŠ#¤¥ƒãah:ºñ9Ú>µ£|ˆ·…0ºg÷ÒþóÙ_~t˜ö®-g‹Ö½Úö¯y–ÖO¹/£lU,a” [U›[0™L¦b"›Ý€¶™#ô‹è£}âHWO˜ q´Eõôf‹4a´ô‰ŠtpM.ýðÍ'ôÖˆë¼'p³ô'pÂØà ÜëýJÒk}¯¥Wú\K³Ç¥ÖàÄ36º¡ùî»ïèÝwß•îÊÐèÆFí™ÎâˆÁ`$#Žl6`ÕS•éìÁ%²ÏÿÏ/¿È´!80óá{híäÛóÕ„-çÇG×ÊrÙ0^Úªm–eÕñáû[d9÷­yNžŸ>´®ÀmÜ–.]êÍ0ùe«P„³ V˜L&3D_¦ouq¤ëôÑVq„€ê;G‰Š#(·O?ýÔãæ—›ICƒ'…rY‚&а^{éØÊtlûúåüÏÒÍvgñ¤ëµ'p×Ê'p¯ Córïkir¯kiæM|y!ïTÓÐè¢OÝðñÁ#GŽÈsehtc£¾¶‹4õ¼¯ ÅQVV–{Ä`0áFųkž­!ÐÑßÿBß}õ!Ü3ö,FG6O¦/ΔvàËÒªI·ç› k«>=±MÖû½ÍiÑã×Óüáîʼ[¤Ä›äu´Ý‹2ì¹÷·¸­Âw:ôxÈôtQ”*[…z@ìéïT1™LfA0ìƒ'P‰#õ}#èô‘1Ř*qäÍ Q¤¿[´ìÉèðÆ ôË/ç¥Qf ½ÎyRèDõîU÷ Üdal&õ¼–&ö¸–¦I½Á 26 ¾,ñaÄñß¾}Ò_ÝØ¼ñÆ,Ž F‘@²â(²bà:Ú»ô1ú釯„0:G;çõ¤…£Êyïì¬x¡}~îì[ïY˜o6 ¬­úÄG_œÝOG6M¤ƒëž£kŸ•ĺ}‚{W‹c!Œ>=½O†=÷þ¶·Ux‚zâÄ Ú°a­_¿žŽ=J?üðC”(J…­B=0 ±ùyîA*Œ ê¿-L^™ª´g´“vl7ÃâÏd&*Ž:äG`”8‚bRâ)qôÉ'ŸxÜðRSo Ýw¶háa|ÆU¥÷¶¼,—QÀ*à \äI¡0ŠÂ Ê'p06½có¢06½–¦ŽºÅ—W^ ¾ÿdhtQ„6ÒÅ£sàÀé® 26 ÒÓóbqÄ`0 #Š#½_ÖmÀŠÜ*ôÁ»se¿yb×,ZðxYçÝ",¥ì¼[´uv/úåüOôÓßÒÌáUóÅ„µUJ%‚³G·¸­‚8Ú³gg³¶mÛ&gŽta”*[…z`@‚1Äço§ î<Âv4~© Ò¯0œÞ6 Šª æ[ØD¦ž å5ÚeU áoÛü’d˜22™if^ÅQàÌ‘F`²3Gü±Çõ“šJC#g‹„(† Kso Sû{âBÇùŸ äŽ%OÓ„î×ÒóÂØŒäZš2ò_^©2802˜ BzAÔÅŽÁcǎɆU†œ2eJR‡ÅƒÁÈ4„Gz¿¬Û€•ÏÖ¡Þß$Ózû­¾Þû¥úoKžkN_öì[—Mê5 “ ÖV}|ßØÝž»-}ª}ðî:ÿÓRL$ŠmB=ë›§*A“‡4òå…¼“58«W¯öšdĈ ƒ²À@ÁؼöÚk4oÞ<_^I‹£#¹”C9ÙÎM‘³èåzÇ*H¶vãdSî/—rsà–C ƒÁˆôÑ4FŲóG–¥Ã›^’;Ô}t|;-[+j'ºƒ[Þ}é/²?>ª¾7 ó‚; “ ¯œê¨’G§ßÛ–²r†±U ÞRT³J š9Ò°O°óº8JÖV¡žÐܪŒÅîbp¼U Duî†o;ÕuŸÚVî·~¼U¾=w3žïظ«°[!ÚNõÊ•¶terÓœÚ6rì0 oHKå¡Ò4ÿ[ëå/«¯>:u÷ ´|yŪ ™žž§/[™óñZ¨´˜Ì8ô÷)máGú† qÅ&;sdœåã;_†fñ“µèä^ÑÙÿüƒkFÃÖ%ÏÒS]KÐ“ÂØäv)A/ N­ÁÑG^ÅÚÆ&åâH žE9âæÐŽ…øÁ¡p‡j’ñ" ÀÅ`0€it‚ú‡dÄ‘n°ÃÛª‰­éó³„@:OgŽl Õ¯äÐü'o¦Eã[Ó¾õ/Ë~øá»/iúèFRAl<÷p Gl¤À„)'fµ>:–¸8:%ÄQªÊÆVá›{X6ÛcqA›ˆw‘”Ê‹8B}°jâÈò¾T¦L_ZŽc¦»:ënúÇ ‹ó¬64Ñæ.Ï'Ry‹0ÊO§Ow×#zÞAÿõ¸±ÜÕ¹Í=nZqê&”^wÓ?VXœÇ¼î9“‚º}²ùƒaûVPŸ9R)ÔÌQ²âH/èÒç;/ÛºëÊ=Y޾=Ë3€‰`Ëâg¥¡û` zâôâ †¾¼òbpV®\é±µUÁe²¸¥7 >`2é¹›þ±Ââ<Ôµ`2ÃöÉæ®¶ouq¤´U)O%ŽQ^ÅÑ’gG}·hÎã7Ðñ=Ά ‰`ó¢g=c3úþôÂÀÔESüÄ"ÒÃA¼ìªpΜ9¾¼Âœ¤Ä‘Fîl’éÎâˆÁ`ÄA¼~!qd³S]G+_Ρû–ÓO?|+ûPà§¾£¯??#ˆ¥sÇwÓ´±­½Y˜TØ€°åüðýÄÅÑB¥ªœal•GXR§6\aÇÏœ9#©Þ1RKèpŒtMq”Œ­B=¾ýö[:xð \Ú‡J—îCKq¬îb<Á=_Ú§4e!œÞ;_J}JgQë ®»î¯ÒñÂN¢@…•i·ž]u.þ·î³ÔMù”¦>KÝ0ž›‘·‘VTùƒþGÅGYµüÌpzø¨zj~zâìúhqÔq¦\ uÎd¦ˆè‹Âô­ ô tŽ.ŽÀÀ™#ÌËÌ‘®â=ÝØÙ…È}ÙÖYW~-M’Mï®}‰~üÞ¿•÷„×¹K(®¥§»^ë-Mçš1ÂÐŒº¯=~o ? ¡/¯¼œ+VHC£7nhÌ—X_ #,iÀ¶©ð×EÑäÉ“%Ñ®z^a NÒâHAòý#‹;ÀâˆÁ`$аâHï—ƒl€únÑ«ýJÓÔµiÊÐ4±wizsäMtòàFÑOþ$óDûí—ŸÐÔ±·ÓØ.%Sb–ß,JÞ–6[…0°?_}õ•H;°Cx1Y?ü‡Ú²e‹GýÏ‹­B=0 Ù¿?í_Ò[ z{Ó\"®-ìXºU+'œ^?DZlõ‚æ…Vn;„mE/˜iùÎ_ V^X‘Nï%^=ZòVùÊ8fùƒþëé©óZyéHêá4Zë Få²>Z™s-Üs&3ELT¥mY÷Éåü§{»MéW’^Ó¾þÆàª´sùsôËùŸ]³B4þÑRr½6–PHQä>ã>ƒ±)ŒÍˆ{JÐsýúò Û(6ƒ³lÙ2¯î6Q¤ #]á¿2H6a”Vq$ÉMfçä8î,Ž F F%bÔNtrÃm‡·©£›Ññ|Î>:u¦æÞE£î¿6Ï6 l9ÏÝêæ'…8J—­Â9¾±‡Ãbã¬x€-‚àÁG`ñ~fš0[!q„%wØê{éÒ¥ÒvA¨åU!ìÞ½{™‰r|KÊj9ÞîÇd2&ú¢0}+¨‹#Õ§ÆGJE¥BÍËmìíBôšö…sEìB4¹_zgÍË¢vž>ûp)¹»–%@©'p06x§ŒÍ°Î%è™~©786a¤‹"µ,ñÕ:o¸ £I“&¥N¥,Ž F¢HFųú÷€°ÃÛÓîf/i ‘–ØíXý:=ѵ\žm@Ør&+ŽÒe« ‚6lØ íGˆ»cÇÏf­_¿^Š Ø'ˆ£“'OÊc$5s”¬­B=«'˜ñù\‹È̬¬ôœ% “ÉLŽè‹Âô­`Â3G* ¦ÿ“Gú×ì±7{†F=)œˆoVh[³NèUŽ6ÎCß|ù1=Õ­¤·^[‰¢Qx'Œ Ípah†æ\CC:]COõiàË+/gÉ’%Q¢HFJ)"^jÅq(RD›êy±8b0…aÅ‘Þ/‡±¶è`& ªOG÷®£ó?ÿ$ßGZ1c¸·džm@Øržyo«oö* NÚ–6[…s„ƒØÁÌf‚`¯ÔG`O:åù)q»…{˜YÂò;¸çÅV¡_ý5íÞ½›Éd2 ”è‹Âô­ ô tNhq¤R²3Gº˜9¦‘ó¤PÛΟu—ÐïYžN~˜Æu¹6j½6„ ͰÎ×xÆf°à“½SopLQ¤ #,IPÄr%Œ‚Døâ‹/f¤8b0ŒD‘Œ8 kÌÞäÃ1a& nL›O 5sŸ¤§{ݘ¶œ¶Í¢¾ýRn+îç‚ßð³Óf«ÔÇ^ÕîtØ”v Ëìp®³G°QØåï©]ë6/¶ª{÷îR€AhíÚµ‹Éd2 „èƒÐ¡O²õU&uq¤´O¨™£dÄ:T}ýߌÑ"O …±‰<)t?g<)„QT³EFê ŒÍelÌíÕÀ—òNÖà,^¼8æl‘.ŒÔLQa”¬Á<"—Éd23޶þJ1¿lÀ¨ÊÐÈû®O™ [Îׇ֡™¹·ÑŒÜ[iú¸[iÚØ[iê·Ò›‚SÆÜJ¯¾•^u+½úø­ôŠàË#o¥gz×)V¶jäÈ‘4nÜ89K…§¶L&“YD„¾}’­¯2 }“¶euèPõõoŽlhYWî>)4 bÜÙ"×Ð êèGÏ y'kpðÄMÝØäÅÐäÅà`Â`0™„°âHï—3Ѱ­J­‡.ŸÖ¢NL&“YD„¾ÈÖGÙ¨Ï%$Ž’9ÒÀ” å.DÊÐDíDC£=)T/±ÂØÀЀX–C£›ü28ÊÐèÆF74±ŒihY1Œ‚Þ9ùàƒèìÙ³ôé§ŸÊþ^'úõ_ç—_~)_ØÇNh@2â(mÛªÔÙ*&“É,ŒLX)”Œ8ÂÔ–þrÔŒ§ï¦W†ÞD/¹‰&i@“k@5 ' l@/ h@ãû7 çú9|¦ozºOzªwz²w}ÉÜ^õiØÓÏGvðå…¼“58kÖ¬¡ H¾õÖ[’øZ¸N| Om¥·W,b¸ž‹#ƒ‘N¤SÀ¶ÊÎdl“ÉdFBߨeuªD_ [èGÊS©¨D—Õä‹™‰¼ˆ5{þ"a𿦟þÙgÒA䉼Q[ÙY1ŒT!]⨰ضUñÖV1™Lfa¤mæ„-Œš9RO˜’Gùbf"/bÍ[´”Ö¬ß$â9OÆÒI䉼Q[ÙíâhåàÛ9‹Üs?ŽäfSVV6åê_{ ¤™hyÏ`0ò©GèkÏ;Gü±Ü2ZWXlÛªø k«˜L&³0RGÐ=JÁ¦ùÄÑìÙ³=q&*ŽÀ‚z1y&ò"ÖÜ…Kä1,H'‘'ò¶•Ig°8ʦìl›q…‹#ƒa •âhÇŽr;j¤dÆ+,6€mUl†µUL&“Y©Ä‘Ò<Ð?ÐA°iVq¤R2∙ÆG99B ™jdQeåä$!TX1E©GÓ¦M£åË—K„ô0{dÆc2™L&3“©‹#¥}Å‘>{Äâ¨àKåÁÿq¦p„rål’_¨,ÊÁL’Ko)ž+K¦¡ÇÁ±öH.e«øz~š{vn®/Oƒ‘yˆ'Ž°Ü &޲‰£§žzJ $Ì a‰‹#&“Éd6šâHi ØDGÊØâÈ>žÞXÉÎÉ/Ž"ˆ@‘™'奥i¦µ(ÇãÄè§dÞsb0éD,qñaT²dÉ(dGxWæÕW_¥-[¶È4‘žÞw1™L&“™é -ްí§.X㉣ˆ ‚nQb%ZÐx3Gž»Æ=ÏÂÈ·TÏ7kä™hù:0Óc0™† q¤„Ñßþö7*_¾<Ý~ûí>dGx_ßÐaqÄd2™ÌÂJ%Žta(Ží#¿¨™#Iá JqT¯ž/± ò`>µ°·§ó!ßÇZ5$÷Í!skoƒQÔƒ³}ûvš9s&½ð Qœ0a‚÷_çôéÓiçÎ,Ž ƒ‘¯((qäi—ðó‰£ùóçÓ|WA=±8*8‹£lÊö¾Y¤ÃN,Ž †£S§NÑwß}çQ}ÓFèã?†åcúðÃèÌ™³tüø zç=òËá,Ž ƒ‘Ÿ€–ˆ'Žðý=õ>]ƒäUAÿ¨ÿðó‹#x€¾™£º¾Ä‚(Ž´†feé,Í+’Ô1KåädV휓“DÝX1E08ãÇ÷‰¢¯¾ÆE”Ï?ÿB£ÓB ¤£ï§Ã‡Òî={iý†Íôî»ûèÙçžeqÄ`0Œ|´D,qñÛU²dÉ(”¬8:zô¨31¤~>q´@#P‰££Guó ŽŽäR¶.ˆÄynÊÔQñG¹Gð_šG(WÎ&ùë¶(G‰RAo)žË«zkaåõSi¨üÌø #Ó¡Ä JĨ|IŸ}ö9}òɧÂ@§C‡Þ£ý A´Ÿ¶lÝAk×n”3G,Ž ƒ‘߀ GJýío£òåËÓí·ßîHyG ,ð?G]v}!2_ „Ñü¹såÿDÅÑÏ?Ÿ§ïø)ÂywSVå'h¯î–2¾E³*Óè}6¿XL6^z[9ÂÇÓ;1Ù¹B"éBGG´ŠÌ<)?,-M3­E9n3>ƒÁÈtèâè›o¾†ä+O}øáÇtèð{´oßAÚ½{/½ýönÚ¼y;­Y³víÚ%ŽFMo¼1•ÞÞù}øÑ'ôÍ·ß[û0&“Éd2Ãðüù_èì¹­âH £Ë/¿œ4h@½{÷¦1cÆÐðáÃ=”Š™#£… J?G]z©#ŽæÌ‘œ $ÅQ:Q ÚˆÂü$ÄÑwßÿ¨quéJ£÷inûhT¥,ê0W 7Wˆ¨Jcè]¾2š;†*¹3÷îèÊîì…žVtX_>{#î*_¼½ê<3OEt‹5Ñ‚FÕ?ò.’Æ=ÏÂÈ'x|³F.e&f|ƒ‘éH¥8z\ˆ£)o¼)Âí¢s"î×ß|gíØL&“É Cˆ£ÓgÎZÅìVË–-©gÏž4iÒ$š={6-^¼˜V¯^M‹-’þÉŠ£÷ßß›1‚0ò‹£¿ü…¾†rÁÌY´`ÖlZ0"i.½ÀÖ®• vq:bƒkO @ uœç…™ÛQù9bÊJn8qî‰y~7Í•ñŒ°R )ÑãøyùEùq¤–Ò-Šˆ$Ÿ¿7jÙ›Zv‡c›8ÂHøûvÁóÅ×ÁâˆÁ(l`qÄd2™ÌLe,q¤fŽ‚˜—™#ˆ#%Š¢ÅÑŸÿ,ÄÑg´`ÚtZ0c&-„HIŠ£Zµ¢´1X¹tgr""H9JàD —X禟&²d^*}ÃÏ/_áÔ™Š^"‡Cá§D“:±Ä‘sŽ(Z¶åsf|ƒ‘é`qÄd2™ÌLå/¿üB§NŸ±Š#Ðê¿Î¼Š#Ì@)ÂÏGú}! ±è©´hê4Z8c-œ5‹Ž%*Ž~ú™¾ýî‡@îU™²:ÌóŽ+Úçýw¸Âå]'ֹ駖ë‰ãw!Ž:ÒéîpN×/*^f2”8’3BúìŽîï¼C$—É091gŽŒ8>Qå¦ò²:£P"•âhäã£èõ)oÐŽ·wÒ¹sÑW_kíØL&“É ÃóB}p*ýâèØ±cr‰žN¤åˆ£?þÑG¯¿.Ò›´hÚtZ4c¦GõjÞhMÔ¤UÍ%^N¯½>…¶m›Îœ=G_|ùµµc2™L&3 !ŽŽŸø íâèøñãRéŒGK^y•–£·dê4Z¢–ÕÝpƒ5Q“ ‹£Ý£¨R¥QôŽÍÉâˆÁ`¤ ¦8Ê˲:GL&“ÉL% R-[¶ÌGC}JK_–¾ñ&->–ÍžMÇG?ü$×ŸÇæ)·ö®D#ß±ù3AG #U°Í%»¬nĈ‘ôêk¯ÓÖm;èô™sôù_Yû0&“Éd2ÃðüùótìøIi«¶oßN3gΤ^x!Š&Lðþëœ.tËÎ;G'Nœ åË—{\±b…YÎ;GGB¡-óMZ>M£Y³hù¼ytâ½£ ‰£ïøQ®?gæ,Ž Fª`GÉ.«qôêë´eëv:uú,}öù—Ö>ŒÉd2™Ì0üYˆ£÷¶ ÂèÔ©SÂN}ç¶ ÄlÒÇ*lÒÇôá‡Ñ™3géøñôÎ;{h–Ð.Ɉ#"EØÀˆ8úÃè«Ï>£ÓgЊY³iÅܹ´â­ùtòý÷ÚÅQêhGØF;Ëÿ±V Gr³)+ám¶óº5·[&ÅKøþ’ž¾bô7˜ † ¦8Ê˲:GL&“ÉL%uq[¥‹¢¯¾úš¾øòKúüó/èƒN 1t’޾œ>J»÷ì¥õ6 ›µÏ³U‰ˆ£“'OJA¤¸jÕ*]ýQˆ£Ïi¥F+çΣUB­Z¸N;–8Ú·o3E GÙ”í}³H‡)!Žò?¤3/£èÀ6s”첺ž"ܸqãäLÓÖ­[iÏž=Ö>ŒÉd2™ÌD¨Û*ð¾øâKï»|G§C‡Þ£ýɇx[¶î µk7Ê™£dÅÑêÕ«}Œˆ£? qôùç´jÎŒÉd2™Ì°üé§Ÿ¢lU2,OF­Y³Æ£!޾ÂhFk-¡5K—ÑÇS½š5­‰š´æÉ"–8Ê=‚ÿ9âLáåÊÙ$¿xð-GóÖº9a °²dzkaäR¶Šïå+¾{¸È¹€/}}9ž%¬„žêl,áƒ@ÌÎ>n¸E‘ô}bÒZ/£èÂ48yYV7vìXš1cíÝ»Wîêƒi ƒÁÈ+Ra«GØ‚híÚµ‘—'޾× a´vñbZ+„ÑÚå+èƒ'Xb‹#èM`°¯‹‚¡â¸ãX ÊÏFZBx8qlñ#'"6ìáÌs_˨w™ô÷¯"mâÄw„’@TÚ¶z1E©x°8b0 F~Á´UÉ,ODaã‡uëÖù%ŽÖ-\Dë–,¥uË–Óº•+éÔÉ“,Ž ñÄQD™¢À ’âÀ=ÏÂÈ'|³+.e&öøzTqÂÉôý³6õð`KScJ Yâ{iÖ‹Á(º`qÄ`0ŒL‡M%º³j¢âhýúõ>F‹£E‹YeâŠ#!äR:,³‰ŸøPËîpl œ a$ü}"Á"^Øâëç qÂ¥D!çý+õßN› ¬ƒQtÁâˆÁ`0™ÓVå÷²ºÓ§OÓ† b‰£/iýâ%´~é2Z¿|­_µŠÅ‘}°4p‡ÄâÅG8uf†¬¢~a–•iç'þ´B,m‹:WˆÎIßÓc>Ñ6MÄËΡOüNÚ^Ù£Ò¶Õ‹Á(ºÈ?q4“:‰ß“>›ÈD¬üü@"¬Ðû… ¾£À·RÀìãÌvq¡íýý>ƒÁ`l3Gù¹¬âhãÆR )úÅÑ—_Ò†%KiÃòå´aÅJÚ°z5>ù‹#‰TßÄâ…GÒÀé³ º¿kü`(}âÁLÃÇ'ªÜ4@9ˆ±Å×Â:†6V>.|éÇ +aw‡q÷°œpΆNú>ok½Œ¢‹TŠ£ÊY§öOë⨲å·òÁ†šõÎ ô~!¨ï(âÂH¯·Ó—GD¿]ü‚a‹a›1ŒŒƒMåç²:%ŽtF‰£K—ÑÆ+h“F›Ö®¥Ó°8r ã›X¼¢Ýž©Ed9žB1 1Ð :~|7Â_?wîC:pà°\ž°k×Ú¾}'mÜ´•V­^—¯âÈ¿6/HEÿ\˜á¡¨g›¿@ç. ‚nXĹgÜä¹Í@(8FE7†Ö'fN^ÊÙ`º‘ÑÊ! SX?u„HGñ  ¶6 ÓÖ Fñ >ÜŠy°‰‚³¤îúøãOäìÑÑ£ïÓáÃïÑ¡ÃGèàÁC´ÿAÚ»w?mݺ¦L™gæÈ¨ûñN_è&æ¹Þ_tÿ¬áüq|vÆZ-Æ oÄ_·aê8*l@š¶ü…Ó¦Np'}OPEþ±ì'ƒÁ`ä?lâ(Ñ–'*޶lÙâ£_}õmY±’¶¬ZM[Ö¬¥-ëÖg 8Ò Y¼sÒZ:én°(c£§OdYWb~`ð\Ã¥Œ<‹#ƒ‘*ÀàÀ˜@ Á€„%„ÑòåËãˆ£à™£ˆ»í\ë ¼–'QýpTœ òxñ\ÊD£ó †=Ÿ¨4ó· ËÌ‘œ5³•IË`0Så÷²º³gÏÒÖ­[}ŒG[W®¢­«WÓÖµkiëºut¶8ˆ#jyž´iÚøšOçÂú¹ð•+b X1ŒT_‡!øôÓOéóÏ?÷}¸ú¯³L_ ÛP`âÈE¾÷ÏýptQå±–Ý×#l"íá«£_ZúRšiÃ?8?ƒÁHLq”ÌæA‰Š£íÛ·ËÍ£ÄÑ6!޶­^CÛ×®£mëÖÓ¹S§©Þ 7X5™ñâÈ5 ¾'n`p¤16Ž!Ri;~^:Q(–Ÿ¥|0TÊÐËðNG #UÈ£fMä“¿œ$òÏk™Ó9àHg^ FÑAFŠ#9Û¶ î?l3H*m[½lH$,ƒ‘¹`qÄ`0ŒLGºÅ¿óÎ;>~÷Ýw®8úË_è;¡”ÞÙ¾]ãúèÜ9ª_«–5Q“,ŽR‹xâ("ˆ0f×E! $Ä{žmîå›1q)3±Ç×£:ˆN¦ïŸ‰ ¬‡[ššóÞ_ˆŽï¥X/  Ë`d0X1 #ÓQâ“ÕG—^*ÅÑž];wyüøÃ©~íÚÖDM²8J-âŠ#!äR:,³‰ŸøÐ_¸5…Î…0þ¾¿E¼8°Å×Ïâ„K‰8B2ÎûWþ¯ÌpÚ¬X`½,H$,ƒ‘Á`qÄ`0ŒLGºÅÑÇLï¾û®qtÙeòä]¡˜÷îÙC‹Lê×­kMÔ$‹£Ô"¾8©33d𠳬L;‡8ñ§bi[Ô¹B¼pNúžó ‘°i žoë]ÀIÛ+{TÚ¶zÙHX#sÁâˆÁ`0™Ž‚G°e:#â诎8Ú+“NDª_¯ž5Q“,ŽR‹PâHΈè3º¿3["—‚Åún‡-ŽOT¹i€RÉØâka1+¾ôã„•°»CÔù—»9ᜠœô}ÞÖz ‘° F†‚ŃÁ`02&ŽþJß‹“}ÂQç'EFéƒê wfÅfxD–ã)ŽkÌ`¤ ù'Ž¢?›ÈóƒÔlå]øú÷|ïSsÆÛl÷A˜h{ÿŠƒÁ(8¤[áJûöíóñûï¿×Ä‘8Ù¿¿ˆ„ȶDM²8J-X…fv¼w®½ÆT8äwE©G•³þNíŸÖÅQåäúSëo7¾þ=åÂH¯·#~"¢Çß.~A„°Å°Í FÆ¡ Ä‘©}¢ÄÑÁƒ}DÁX XŃZ6h»–Åt€Ä` Å‘•¼ ðõï©…ÓFMÀÉ%ÁÑïqZgë ®ò<ƒÇ`0yCºÅò0µO!Gj@ìÐéËmnp޼+’›m<­åûÉ'bHœ8‘–Æ/ÿ[@¶²8b0©C*ő׶C™}›­Ÿ4EL1èßõrôc[Xkš–üe8å¯Coc·î¹zžFJfñ #y°8JŽQˆzÒh}âC1\òI ƒg$„aQ†@–0~:\C£ÅñÊX-Æ oÄÕÀâˆÁ`¤ ù;s¬û…)LÌs}@_LúwÄWùëÇQaÒ´å(lœ6u‚;é{‚* ð· ,ƒÁH2R:tÈÇÏ>û,sÄ‘4d–Î[º(ÊXè†Æ0:‘úcùÉm^Py¼x.e¢Ñù)°8b0©BþŠ£à™£ˆ»í\ëÏ‹Yÿ {>Qiæo6–™#9kf+“–Á`0 éGÐ9¦öA…K¹À÷ÄÌ †ãŽ>b,ü¢ÁñóÒ‰2 ~0(Ê Kw==»4Ë]öà¸ÁâH¤i}Âçä‘^q$?¯ù2Œ°ÈúqTØ 4#ˆä/%xÌøþôe›éuÖÏ £‘âèÈ‘#>f–8œ_ÎTJã(‚rÓŒƒæn{a×yñUKG"–Ÿc¼¥{¬ª•G\å.èÞWC,q„òEMä›#Ê^0‚ËÉÆÏk¾ #,R)Ž:Uvû0oC­_tú&ó÷ý{÷ î%&’N‘ìß?”8°¥”?àóÓëD§/7 ÐËâÀ`0iGAˆ#SûD‰£÷Þ{ÏG ³ÄQ~Ãb  ±ÄQîü× £z ë/¿4~ÊXz†Ï ã †ÇZXŸqVùÅ‹/ޱ#’Ï7øÑÒóhü~NºÆ“dß@‚Á`$‚TŠ#ÿG`¿¤óçÏK¿„ß|ZÓz_ň@Ù÷”Á`0 éGHËÔ>,Ž¢9Æ3¶8‚VО zƒŒ òëî8ÖE‹òsÄHäá¡‘–'‘'¶øêXˆ•ˆ|’©‹ªHúÑKa‚òRL¥Ã`0EFŠ#ÙD:|†ÑÏ0$äC´´]ƒÁFFŠ££GúˆH,Ž ñÄ‘þÔ5"”ŒòKq¢fc”»YGç<Û\ïï›Éq)3±Ç•¶>qôã?Ò±cÇ|Ô#Ç#‹£Ô"”8’3BºhÐýwˆäµX»/ÙâøD•›(•MPˆ+mœF–ùÅÞA0g¢L[ ¦¨­g Fh°8b0 F¦£ Ä‘©} ‡Xe(¸= FªÀâˆÁ`0™GŒ˜àöd0©‹#ƒÁ`d:2R?~ÜGdV4Ä‘¾¼Ë\ú•™`qÄ`0R…ôŠ#ô±ÚYÁÔo¨’ý¸¶L8_Ê\˜‘˜ MïíÉ U÷¸gròc¹wí­–«ÇYvÁÈL¤[!ž©}¢Äщ'|dqTp`qÄ`0R…ô‹#­•ƒ·To¨’}ú¢Ü|.saFíµ3i~#™ëŸ÷{ƀ➑LµðÛÞð +ä!þóVg#¿QâÈÔ> q: ålû¦Žg°d‡ÆO‡Ûiq¼r–GKG„Ñ;·¨: ØÛÓ-_Túüõ £l #?ÊÄ`0R‰TŠ£¿7éãŠ#ñ»o7Ó™9B¿ç´ ?E_ß`ô7ª/ Óoú΃ŽM$b7œ8žw`Ùl Â+¢qÂÛ£~"MÝ~xeC^ÆC6?ÒeCõ2äi¤om [½˪µ±ó÷]'kÛéi;q¢Ó BºÚ[¯»ÖÖvðu0‹tŠ£zBß@ç˜ÚzÈGŸ}ö™\*¡óðáÙ#Žd‡`ùQKw£‚›g½1;ôªSŠå'ODG#:É€ô‚ÊãÅs)ÎO!Xe‹ºÙâÀO/WX—!ò£L #•H¥8ʪÜÉG×ÓÈ]jYÞhÇf¿ÔÚúM_š@@Qá4˜ù+Xós g ¼N_Àn6&–²„²=nþQm'N,ùK$\¿e•~æõÊ3l[hç¶²F…×”¬<äi[1ëžÊöÖýâC°ùÓb02 iGõêÑ¡C‡húôé>í=ä‰#dÔ¨QGM;vìÈ|qäÂyÒ¢“ÐótÇÞÑh~¾üõƌ㠪<¡:èb‰#LëGuù4*'0½`—!ò£L #•H¥8rÞ9 )ŽÐz}C"ýxTß”‡NCBù¹çêÄ@TŸž¯â(Èöè0ãÄ)C"m³~1Ê*ý´<‚òL¨-¢ëû>ÑLÛùâÄ·õÌÛAêÚ[÷ s\&£ ‘nq´}ûvzüñÇ}ÚçܹsŽ8ºÌG#GŽô‘2~Yt6Ž?:Õy¨NHïh´t|X ? ôUç%ÝõôôÎ'³<ÑeŽK9ëìõNuàþô`lÐùJªÆpÓð­›öâàX +ë©ÒÐÛÈÿóV¦ uÒö8Zùük´ý~Áeg0Š REûÙúÂ"ý¦>Oómy˜ùéHÀnè}|BÙ=_šþ8N¥÷MZ9cùy0ëmž›H‡ Uý¾<ÊÓŸ~t}ã×Ë_Ö zÇÊ? $l½éhïõ0Î7Î=Î`$Ò)Žê q´mÛ61b„Oû ïB$ާ“PeÙ‘Hƒi‚4wÛËÎYKG"–ŸÓÑI÷ìÊ zšTÙ¡)wA§ðþ¸b‹#dcÙᥧ»ãXï°•ŸS?³-"Á‚Þ“Š„Ëk™<á#ÛPk;ÑqT”hc¢åXv£x •â(¡eu.äïÓ7à4ú ~Sw÷ÍBûóð D:0 Îï^¥#ƒDå§õïía]hîÉmÈ ·‘S»íe?¢Û=aÚÂEPýâ”52àW°ä Äi ëy@Y¾þ±òÐï…X¶>,y§´½cÕ0Α‡µŒÌ@ºÅÑÖ˜âè²Â"ŽòfÇRpˆ'ޤaqnD”X:B·3 îy¶ù„Ë4Æ Ó³[ãËó—)f-/F9¼ð.­eg0ŠR?sk+ï∼ö-E¨oŠê›™ˆ>¶ŒÌ‹£ŒD樸âHutØÞÓ3Dš¿ê©”Þ)šuĹFÂß÷DÉ_‡-¾:Oe™âĉ2ÀAqt˜ù0Å,Žòyí[RÙ7!-ãáµ?Ì?È™BÝž0 rv¯ #ÑVqT7®8ºŒÅ‘Dæ žã‹#œ:3*¶%nÒO‰)T<³Ž‘stžþ´ŒÙ$‰àøÎijË;NdyAÌ5ÚÌ|ŒâGù¼ö-Ü71 ‹#FL„Gr&E"¨ûÃÏ}jsÝ´%ŽOŒ¸i€Ö¥ii*STWˆ±7d´–Á(`qÄ`0ŒLGzÅQ]Úºu+ >\ $EG nÏ!ÅPz—Ž0…,Ž ƒ‘éH§8ªãŠ£aÆIB$,Ž2Üž‰A®§ö½ƒÄ`0X1 #Ó‘NqT»NÚ²e <˜†€C†Hž9s† ‹Xe ¸=ãA[n'ɳF FX1 #Ó‘NqT«V-Ú¸iõïߟ àñôéÓt饗²8ÊDp{2ŒTŃÁ`02éG5jÔ õë×S=\ö¤ž={Ò©S§è/ù ‹£øÐ_äOÏKý,Ž FªZqÔ‰jg]I½rq¤6tÁrܘ»g#5[V'`_ô2»N6øwe0ŒÂtŠ£jÕªÑêÕ«épù =øàƒtòäIúÓŸþÄâ(>X1ŒÂ G&ÐG>àGÈ>‚*%ï9†µ/±ÊlËŽóßN1 F*‘NqT©R%Z¶lµk׎ÚÝu—üß¾}{:vü8ýá`qaWê`oOÇ8=©ôë',òVëJ<Ý ´àéi?ƒ‹#±ú¡p}úÛÔÌÎèùå½\böà ƒ‘yH§8*[¶,-\¸š7oFÍ› 6oNÍ[´ £GÒïIaG®aXù~ ú}G8çñ •ÿ%~ÇnØÜàÉÇÿ èrDòå—‚Å‘0ÈÖ'‚ðCž6¿XpËœ\1Eôh Ál“ó˜ƒÁHù"ŽÆ÷¢Šyéo‘EúŒ8iøâ©XÜ8¹î²33Ž«â«pz¿¤ Xó³ÍÌä§}‰Qæ :#5³…~šwód0ŽtŠ£R¥JÑÜ9s¨^½ºT·nùÝ£zõêÑáÇ鷿ýmaGÂè½n äy¬Ë#å3€õéš“—röÏÈåF.Œ_bˆ%Žrr,O,e=r¤bù9i&SF YG½Ý‘^¬ëÇü FÂH½8ýÜõ½hfŽŽM¢tÂùÅB˜4ŒþCô{¡ â¨ãÚ#ßyÐ1NõüôôÓe_´²¨°uÖÊ?•&ƒÁ`d(Ò)ŽJ\s Íœ9ƒªW«JU«VÄÿªtðàAºèâ‹ ÙÌ‘Ï0Ä:75ˆw!Ýc£Ë/1ÄGº TÈeꉧ^~½œól³mdÙµ§¥ ÌÄŒ/à•mœHþö²ÈóÀü F¢ˆ5sÔ²eKºë®»¨wïÞ4eʹµiü™£,º¾×"GÉeuaú@ó·éc£Ã…ìc=èi湉XáÍc[~F_—6ûTfÀ8G\Ÿc0ŒÌFzgŽ®’3GÙ•*RÅ å©lÙ2týu×9âè׿..â@˜È`Ûëëxe„4wÛ ³Î²2-‰X~‰!®8RÆ/îzPó÷UÝëi8uþ>ñዯÌXÊ*[YÜóÀü F¢28J uïÞ]‰;vxÂýz°8ºRˆªëìß»ü;a"∕†€/ž ôŒÑ—X+¼ágÍÎæ»Ÿˆ ç+õöÅ^fÀ8G*2ŽY(1Œ G:ÅQ‰%hæÌ™Tã†êT­j6Uª(R™Ò…M˜Æ*yÄG8u lÄ@kþº1”Æ]Å 6¨˜ò§¥Ÿ+˜ñ8O?µð¡òwž¶zÆ_ÖGgËŸÁ`$ epÎ;GŸ}ö™¯ï†‚ ‚‘Ð…hGciÆŒ´w¯m+o{ÿR‘F€~-c‡þ@ ]«!0 #‘NqtÝu¥hîÜ9tSýºT§ötCµ*T©ByÚ¿¿HŠ#gP­žº9L× DêŒz(q$  ^7Ýß²þ"LNÌ™##ŽOÔ¨6t…Úëè@@Èü]ç¤oì¶gÍŸÁ`$ ep>þøciX`Ht~óÍ7ôÝwßÉÿº;Œ ÄRáGHKëC$SgäC¡ ì— †"åBð,<ƒÁÈ|¤Sá=£… P‹fMè–›R½:7RõªÙt`ÿ~º€gŽR‰ÔunOƒ‘*(ƒƒY#eD¨p‹#ƒÁ`¤SUªT‘–.]Jmï¸Ú´jN·4j@un¬A  φ Å Üž #UP}µ)€@ õ߯ðâˆÁ`0ŒäNqTµJZ¹ruîÔÚµ½Z5oB ëסCÒ…²8ÊHp{2ŒTAœ „åtê¿,Ž ƒ‘ßH§8ª^½:­Y½šºÜ/u¾»=ÝÞ¦%5¹¹>t.*<ß9*^àöd0©‚286á†,Ž ƒ‘ßH§8ªQ£­[·–îÚ…î¿7‡îºãVjÞäf:|ø]t‹£Œ·'ƒÁH”ÁáH–‹#ƒÁ`äÒ)Žn¼ñFÚ°~õx´=ôÀ½Ôá®;äÒº#B]|ÑE,Ž2Üž #ÓÀâˆÁ`0ù…tŠ£ZµjÑÆ ë©WG¨[—ûéîöm©MËfB¦‹/fqúîIéÙI íÉd2™™Æ<‰#µu?>øý³ØPÛgû¿ËÆ`0ŒÂŽ´‹£¨wÏîôðCP§ŽíèÖVÍ…mbqéG6àÂ:tˆ,X@/¾ø"åæ:f!e§&Ô¤:®,•©“†é²5©üwú{Öß½6ëT9‹þÞ¤<îÓäï”õ÷&Ôǧ°³Uöê«§š‰¥¾}ú"ôI¿üò‹ÛCÅúΠ‘†ìW}^õè”Á`0…&Žº>H9BÝÖº9½Çâ(,2Cá#¸i6oÞ,'ø¢=žà2‹ûPí¬+©ýÓ6?æŒ>µéÊöíµ6B{Õ¦>^˜¢Ø~zò³~‰¥¾}ú¢o¿ý6AqÔw†ëW1kä›-ÂLšÁ`0ŠÒ)Žj+qÔKG-¤8úMlq´-ƒÄ‘k<a)†ó¥sØD¹ÄÂ=¿ÄO°*¾Ý Α|²ss£Å‘VŽH¾±üòŽŸ~úIÞ¸qðÔvß¾}ri 3Ó¸ˆz]¹§ZŽrÓ¸¨]}/Zß ãº]ß«µÌºžz-rý|´Å§±È Ë/ˆú´¤ñªœ²Î8†›ÆÒ®yftÛ E½®÷Ú7~[Ù®G¢×8U×/ƽ¡î%­ ‘0ÑqÛÍüRöIÿ9<Îëï²²rD/húÆH\§_Ô‘~, õ¿‘4-3EúL„’7«Ä`0ŒÂ†GñfŽFŒáã¶m™&Ž„¡Ô ¡gdÕya%V¬O¼”³#Àt#®•#jÝ|_Þ'´Œài-nÜ ÌLã.Y1‹*ŽÜåwŸÙ޲ÚÍô»ytâ`°)Ï­agR;qo©0»FV÷dE¹KäïÆÏª8’vá|×HªèÅå—ôÚåTå2ê‰0Zû¤ŽFÛ¸ùøómG3}qt&r?ĺƩ¸~±î Z^;êi¹eF߃YlôE¿ü²Ð/jDü@È@¾ó cœª4ánöñšúrG ƒQhQ0ËêuÞ9êp—ý£áÇK6LrëÖ­T¯^=k¢&Ó6säY¾xç¤P±ˆ'÷ ¥Ï ëO#%ô´£óÁ‹ÁŽŠå—wüç?ÿ‘„Hñ"43Ãxp,UÎêD ¬îYTyìA¿»à‚Nb`ÛiAÄÍn•ÇÒAu~~uʪLcªs—Aù[Â#ßN âù4ÒØÊªlF9Ýv’³ ÆjáRI³mâ º _ãè|¾~aî K/-·ÌÙãÉþGöG¾Y#—^¬>[;vûäè4ÆìÃù½#ƒÁ(*H»8ŠÚ­®©³[ÚÊûÌ™34lèP:t 2˜L[¶l¡:uêX5YhÅ‘ µ£Y¾8ƒ݈kéø y,?Fñ@÷Yˆe@áïIu”Q¸oõzêˆßæÉÃÌ3Þ¹‰‚îwôòź7üùxb(à^0˦ z>€™o@]= üz|”/ÎoˆÁ`0…éG7Ö¬Ië×­£G»=DÜ›Cíî¼Z4¹™ qtÑERÖ¥—^J§OŸ¦úS¿¾}¨w¯^Ô£GwZ'"Õ¨QÚ¨ÉÌG€ctÕh9ÀÕsÓš»mC†œçé)è $bú1ŠÂÜgÎ@5âæ0/÷¤ÿ·`¤é†)Ü÷­^Oà Γž'ïÜYór¿~¶òª|U8#ŒD*ŒæTf_xÁÀ›ÇVýìeˆ¤e.P&•ŽY(1 F¡E:ÅôÍÚµk¨ëƒ÷Ó=9èŽ[[Q“›o¢Ã‡ÒEzâè”E=©û£P·®]éÁ U«VQÕ*U¬‰šÌqT`#¿è½+<ß·…ÅèúùfŠü3I©|¿“Á`0éG:ÅQµjÕhµÐ9÷ÝÓ‰:¶»“Ú´lFÔ¥CÒ…^@YùË_èÔ©èч»Q(¨Î9Ô±C{Zºt)U¬XÑš¨ÉÌG(hO%µ§œù d2Ò…DïµXáù¾Í;¸ß‰ ÛB.7*b(2K…<ÓÕÞ ƒÁȤSeggÓŠåË©cû¶tÇm­©Ù-¨^íštðÀºð)Žþ, s’º%Žþô':qâ8u¸ëjÝ¢5º©>Õ¼¡:M›6®¼ò k¢&Y1 ƒÁ`0ŒdNqtÍÕWӌөZ•lª\©¢Fe©ôõ×E‹£ömo§VÍ›Êé¥Õ«Ò´©SéŠ+X1 ƒÁ`0ŒüC:Å&¦ S¡|9*W¶ •.}=]w]©€™£–Íèæ›êÓ5ªÓt9st¥5Q“,Ž ƒÁ`0 F2H§8ºâŠÓ›o¾Ae…0*Sº´Ü€îú믧}û±!ÑwŽ:u¸‹n¿µ5½åfªW§6Íœ9CN;Ù5™ÙâHß͉wvbd ü‚åo´Àü ¨ï;7™Ü~ŵßA]µë•/×&?Ú³8ÿ»WÕvêIAþžƒÒä­ÚóïãÎ #‘Ö™£+0sô&•ÇÌQ9ÁòåÅq:€­¼/ºˆ²þ"w«;I÷v¾›ÚßuµiÕ‚ni܈æÊÝêJZ5ÉâˆÁH‹r#÷!¾îÏßi±C¦,m“ñíW\û£®ùrmò¡móý~ÊK9óûþI =}âM5ô¼ýùe0EéGØpnÆôéT¥JɪU«Qµê7ÐÁC‡èâ‹ã|…y€Í@jK·µiM .[ÝÙ5ÉâˆÁÈ ø¾ D8ò!Û¯¸ö;f]ó£îùݶ™–f~”GGøöĬQþÍèyC¤ò”:ƒQlNqTª$v«›CuêÔ‘¬[¯Õop9r„~÷»ßQÖ¥—^J§N¢îH]ºËâˆÁÈð}ˆXâH ¼³ss3´íŠk¿cÖ5?ê^\Û–Á`0Š.Ò)ŽêÕ«G[·n¥¡C‡ÒÐ!Ch8x09s†.»ì²Â$ŽlË–&iKqüƒ'×.Òý•Uå'|ñÅn×=òån'NNN¶pÇ.~y"OQ͸Œ¢îSÜÞr±Dïi¶øÉß÷ßoG¯3ê‰ß[þ|+r׳°ö;˜ÝQ÷Ÿ~ ÄH#7³BŽ_T}¼Ó0éŸg½ˆú¹:ÆÿH¼Hû(8á|u ›¿YnƒÁ`ä+Ò)ŽêÖ­K[¶l¡ÇDƒ¤ЀèôéÓt饗q䯨A ˜Õ FGrau£*  2zÒP†ñÓá\=ŽW®Àòhéˆ0Nx#.£ ‘ûTÁ‰ãy'|OëÈߟ·û¾àáÔ[ÐË1~_)E1éw_å¯ÇIÃËq|ÂIø)úÊâÇ+¿ï<èØüôºacå7¯ ƒ‘ßH§8ªS§mÞ´‰úõëK}úô¦Þ½zQÏž=dþþóŸ ‰8’e|5HwÃÐÃÍgÔbR<™uìb,?y1øAé•Ç‹çR&£#‘ûÔ…œÐfA÷Pà=­!(KøÐ÷}FA•¢E•9G‰\Ϙ×(í_ýNè4ôsíXÆ×Ú/(=[ùÃæN‡á—Pþ ƒÁH'Ò)ŽjתE7l Ý¥GîFݺ>D]º¾û2lúy<¿°íé´½'TP.kf~:le ›?ƒÁ`0Ò‰tŠ£5n Õ«WÑ=9wS‡vméÎ;n£6­[ÑÑ£Géw¿ÿ}aÚÁ1lÎSb×hJƒ©Ü´æn{1ÚyAWKG"–Ÿc¨¥{vå=Á *Ø(wA§ðþ¸Œ"‚0÷©v?iÌË=¹,ù»a¿ï F;YŤYÿTÃÒžI^£Œíwß*ŽB¥¡ŸG§/…¢JÓ–^ˆöÌÊõÈCŠf•––º†ÍßlƒÁ`ä+Ò)ŽªW«F+W,§vmï [[·¤æÍšPãF éðáÃô›ßü¦0‰£ü†Å2‰DïÕXáù¾/Xpûg"2÷½;ƒÁ(šH§8ªVµ -_¶”n¨Ù-7SÃõ¨N­éàÁƒtÑE±8Š€)ŒÂGEÜþ™\m‹Á`0ùŽtŠ£ªÙÙ´tébjÕ¼ Ý|„QMª.Óè /dqR…‰Þ«±Âó}_°àög0 #â¨JveZºx5¿¥5¨[‹jÞP*Wª@û÷ï§ .¸€ÅƒÁ`0 ƒÁ(8¤SeW®DK-¤¦7ßDõj× ªfS…òeiß¾}ôë_ÿ:"ŽFŒáã¶mÛX1 ƒÁ`0Œ|EAˆ£&PÝo jU*Qù²e¢ÅÑðáÇѰa·nÝJõêÕ³&j’ŃÁ`0 ƒÁHéGi±G·4ªOun¬NU³+Q¹2¥…8ÚK¿ú•G—]v9s†† "9xð`É-[¶Pݺu­‰šdqÄ`0 ƒÁ`0’AƉ£Ó§OÓÀh€`ÿþý%7mÚDµj×¶&j’ŃÁ`0 ƒÁHéG è–†âèÒ¿ü…N:E={ö¤ž=zPÁîݻӺuë¨FÖDMf¶8Òwƒâ¡™ÿNù›*0?Úô1Ñüø`§ÌCë/ÔÇBò’;Å…4ã"ÆGn­FEÿ¥…Ìöeí¹¯âúÊš@ÿè+ŸYŽüj_|ƒ(ùIĹæ’³+i­GAo›äÚ©pÃö»[®}Ü÷UP»DÇ ¶nب–´~»ÞÇ” ƽGcöfô²Õ/º0ŠÒ*Ž*ÅG¿¢¬?ÿùÏtòäIêòàƒôàÐ÷ßO÷Ýw­ZµŠªV­jMÔ$‹##A,Ê܇ҸðwU¬ƒwKÛ¹çƒ88Ayh²üFzÂ-çfÝ”»,ƒepá%bøûÒ Ó÷… # ïW=œ#òòu ºxí‹üB”3ÏpÚ7ðš{ÙnQHE=’Í;]ÐË—éeÍÕ9L»$Ò^NØlñ;ô߯F¡~» ä7=Zò‡÷;Ê'd]EéG•㉣?þñtüøqêоµkwÝuW[jÛ¶--]º”*V¬hMÔ$‹##/àû2¦PPrÏ7ľF0úáÅ3€tcÀaZ–2Ä@úy˜{,L˜€²çóõˆj_´Q|Õ’G„i l8 ò\<äèåËô²æ‚ê¦]i/7ì"ý! §ö·6ß0é™iéçAù¸î1ëÂ(ŠH§8ª$ôÍ¢… ¨qÃzT§¦E]rÉ%tôèQjÑ¢95oÖŒš6mJMš4¡ùóçSéÒ¥­‰šL8r~ˆþéW›œñãtܲss£ŒøÑyþê—ËOøêSÎ^FNœœœláŽÎ ~yüKdô¸Œ¢îSܾ§â–°÷´ [üäïû‡ï·£Õ9È=¥pÛæþ«¼líƒ6×Ë âáØr=dÙcýæü¢óÑÓUpÒ÷]gåïxÛ⺻Æ×ÆnyË®·›NÐ=eKWÅÉÅ“h3ŽÙ¾HÃ* S”G•1R–XvÀ b¹ÞÒÙVgÀz8iúìCTþ2:åÑËèçfš®ŸµÍMØê¿®…Êþê%|(,a­iÚòw멊 Ý=L˜xˆ„õ/×ÔÒeVeÕrëù„Ì7TzfZúyP>÷Àºø®£¨ ½â¨‚Gó©ñMJUtÄÑ^Wýî·¿¥#GS½zu©nÝ:T§vmªU«Íš5‹J”(aMÔdþ‹#§Ó‰ê¸­OÝðŠtŒr×÷c—úQÉw?ÚÔã•+°UpâxÞ ßÓ:òwãçí¾/x8õŽ6ÆAîy‡þÛÕMÀOÏ_ k»žh㸆ݹ–¾Ažµ úý'ŽÐ˜~z[¼T¿XvK9ï7Kº*Žª,ÚÍ+?üÌëksyùë©kŒ²ú ûiÇ¿_[剽Ò]ÿ-¥a¸Ç<·¥)êomsýJ`]#íY¨ì/â«üõ㨰iæ¹Ï"÷šž†‘ž3®íÚ(¥§£M½:éл@Py „JÏŸ–¼Œv®_@ùõcßõa¤SU¬Pž-˜O7 qTÛGeË\G_|1:xªU­BU«T¡*BñgW®LÓ¦M£+¯¼Òš¨É|G²£ 6„¾.êôCs€'¶1ñ“'Ú8 ½ òxñ\ÊD£ócr$rŸºOD#V)ø ¼§5åo ú¾Ï(ýfòë·¤§+øéí®… ºžÖëd?èZ‰b PF7Àσî]î¨~+°ì1Ê!àÝSAéFÅ1Ëeæ©ç—_ˆ®G\;àÖ/œ žõ0òNªÝý<‘°‚®yP]‹œýµç•¦-ÿÀ|t÷0aâÁë 5Í]–/Þo™o¨ô–ÞVzø |BÔ…Q$‘nq´PG• qtÑ…Ò¨|ùrT®œbYzã7è_ÿú—5Q“&Ž\8O§4ãºsÆ8¨sÖü|ù›?üèkTy¬eçz‘C"÷©:W'ÂßÓBßk!ïûŒCÐo&¿~Kzº±ò€ŸÞîÑaý×>±6ŽÜ'–2ø®¹éë:+èîÚqà½Pö°å}šå2ãØÜR £L¾²£Nzùô²#¨ñû ,kP=bå­ÃÌ;Öy"a5Ä,¿¥®EÎþaiÀ|t÷0aâÁ «ÚOw×Û[CT}Âæ&½Xiù…© £("⨂Ð<Ž8ªG¥5qtÁÐþýû©té2T¦L„Gÿüç?­‰šÌwqäþ8üOdü@‡äøãùÁ:•úA9~^:Q?â?<¹P¾t×Ó³ÿXÍòD—=8.£°"ûT¿§þžVÇAù÷`Øû>À'ɶ6 rÏ;ô¶ÕM Ýu?{ØÈõpŸ„û¢íå®t‹´ }×ÔL×¹v‘4 ÿP}•înÜ˲ìú=b†5ÎcÝoô¼ýÜl_¤i»æ2/ýIµC¯âùû`”)A;ßÕÃÚaÚ͹_¼úÈkTÎxç AýJáûª÷…î—`»ñÛÞWÏG?Ž ”fþümeÔÝĉKXÙV¸¿5wy?Äúí ä7½XiùYÜmua9¤8ªâŠ£½¦8*S¶,•-WŽÊ—/O*T 7ß|3sfŽ$œϘɦrÓ~ š»í…PçÅJ-‰X~ŽqîÙ9”ôä*¨<ÞÛ¥Sx\FA˜ûT»Ÿ4æåžŽÜG–üÝ0‰ß÷ £¼ÁJ{ª¡·­ÙÎ~DC€6èzf¿àŒiîÞ1Ü£ÊË?¨üº»ÆÚo¹ðÕ˼gœtï©Pý¡ÿÜß¾Èߟi>À,S;t½ƒÚ2°fÞiȇfš^QN/ØmlÍÓüÜ4eVAuÕÜ •ýEüPâHÀ–¦5K\_}¨x#ÂÊænƒ-íi©§–f¤ìi"fz±ÒŠUï8uñ]FQAÁŠ£ B]犣ÿvÄ–ÕU¬T™*‹N§JÕªT­Z5š>}:]yåÖDM¦Gå7ìŒC¢÷j<Å÷}žÁkùpOùڃˢpÏ•z¤Ü1ÂÃ÷>£È  ß9ò‰£ÿâè /¤ƒÒ 5jÒµjS:u©~ýú4gÎl*qÍ5ÖDM²8b0Ò‰DïÕXáù¾Oä“M¶ØùsO©ö•3%E ‹J=Rî‡ÂíäŸm‰š‘N9 "ÏX@y 2F~!ÝâHß­.J]„Ýê¦ú75¢Fo¡&M›R‹-hˆtÝu¥¬‰šdqÄ`¤‰Þ«±Âó}ÏH5øžb$ ¾gŒâŽtŠ#ý;GVqô›ßü†Ž¼÷5oÙšZßzÝqÇÔ®];Zºt©ÜµÎ–¨É¢!Ž ƒÁ`0 Fº‘^qTQˆ£Ô¸¡¶•·÷Îѯ(ë·¿ý}ÿ}ºã®öÔ¾ãݔӹ3Ýÿ}´jåJÙ–¨ÉüG¨ðÉ“'éðáÃLfÆ÷&ߟ©eA¶)_O&“Éd2ÓGØ\ŒõtŠ£Ê•*ÒâE è–†õ©ŽMýî÷¿§÷§»;ßK÷Þÿuyè!zä‘GhíÚ5TµJ¶5Q“ù!ŽÐ0h¤o¿ý–~þù<“™qĽÉ÷gjYmÊדÉd2™Ìô6c}ŒùÓ)޲­âHÛÊû÷—\BÇŸ ûìJu{„íÞƒz÷îMÖ¯§êÕªY5™âèý£GéÇ~¤üIÿ™ÌL#îM¾?SË‚lS¾žL&“Éd¦Â抱>ÆüiGB ùÄQ¶Ge4qtÉÿü8q’zøQz´GOêݧõïߟ6nÜH5jÜ`MÔd~ˆ#L·ýüóÏ¢±~d2™L&“Éd2™EŒëcÌŸ~q´niäGû”8úŸÿù8y’éÞ“zöîCýúõ§AƒÑæM›¨fÍÖDMæ—8úI4Ø÷ß_ÀœK³*Ñè½æ1“™î¥Ñ•"[£vœk ÔœÛ1²…l¥Ñ´Wºëíבæšq =3±ßA9T›;Lí}k¦ŸLã·ÕÞÑ•(«ã\šÛ1‹*Þë¹›çL&“ÉÌb¬_ âèFG•ó‰£?üNžü€º÷ìM½ûö£þÒàÁÑæÍ›èÆG?þô}ûÝw̹ÔAÛQïšÇLf8wTä>šÛA ;Ð3 “¾}wU²üæöŒÜs£Ž‹3¡ß1ó5ÎåµIå}ëO_^×J£hOT8qÊheöÒ|—FUÒÚçL&“ÉÌob¬_ð⨒G¥uqôG)ŽzôêC}úõ§!ŽÓ–Í›©Ö5­‰šÌ7qôãôÍ7ß0gKcûønó˜ÉLù¾ âìYTéñ݆ûnz¼Ru˜ížï~\ÒgûÂvfB¿cæï<¯L&ýÄâì~¼’ÿ~šÝAëÙÁçL&“ÉÌWb¬ŸqâèG¢0={÷¥¾B 8ˆ†@m)xqô½h(Tø«¯fRû¬ 4ræHªà.¹h?ó+Ú5²‚·£ÂÈ]nØ î¢‘"K6ßî&¸+’O…‘#¼wÁ/º‘|cù1‹¸Ïq¿UI»ã»a\7ÿ=iÒ¿°Þ·nÙF¶·×Ç«¿yž*F· ò/´ýN¬{HóËÊjO3eºê\°ýLÎhç™âºHwç|f{3<Üã×ÕÉîFúÆytú1Êhm”EO_åð~{Æ9ê§û1™L&3åÄX?cÄÑ¾Â Ž¾ÿÞÍcµƒ¡«0‚vâ|F;ÇèØéøËóv4Ã-O4wÒa ½ðŠˆ×n†ßÍÍ«Ý ç|ç „*Ј?¯;GÆY<˜È}¦èÄQ÷[â÷¤Î€ü í}‹²UõqÛÃûÃ]ÿ½;áR_f£mdþ…µß‰—¾G”Ï)³á®òòTw-^`]ãç'˨êå£ÎHKžkíá»Fð3ËlºiçˆkÍŸÉd2ÿÿí½w˜Å™ö=ÿ¾»Ždð÷íõÙkv½&ƒBIà€Á“”%F€”s´Íšal`±ÁÆD’@„a”PdÉxA("‰ &Úïû|õTwuWÕ©îÓçœ>iÎý»®[šîê ]]ÝUwWŸn(-ñX¿âÌ‘|¬Næ† “ýÇêfTÌcuŸþ9}ðÁBÐ@ÑÎ{šÿN²lééybÀ0p®ƒ—yO›ëºÌ£§ƒíô´3óy`` | [TÊ¥ùâ6R7ðp]ÎmRSTþUÛní²=Mó„Ùø€½>¢> V¶|²ä›K{ˆ=Æ™ùä|üâÒ÷ËšÕ&í´­eO[~` –†™vƾÛù òÓ×[uçJ?[eþÛ>ܦôííe‚ ¨˜â±~e™£ÿ£½s4y M« 2ð³ˆï½÷žÐ}4 ®3ÍÙÊ'Y¶´uu®@÷¹Â„¶Îé,;Ü÷‰eÞ¶óÚ„ëiÛùl¥9ýx±aPM(—v¦–Ü—±]–¨MjŠÌ¿ZÛ­«l¼¬þ÷×g©÷üeçŸmÙR.í!ö»ê!Çã—~âv“—‘†u|„2ö5Q~š"ÓÏVF}™ÿ¶óµ×¹¶ ‚Š%ëW¤9Ú#ÌÑØ&Є‰“iÊÔ©4³B^åýÉ'ŸÈ}ç{e7{3ÿdÙÖfš-:ñγ7;Âý©¿4!fžÆ¾:ó³Êk("}–YF= sY´ ].Ÿ¿¯ËüwÑÚAÄâ±~噣ƒ¦Ý{öÐÈë®i,Ý0~¼0H“¨­íIêqÆéÎDmÓq%U‡R¿ºN4s£+ ‚ÒT®m-n{´ÛêVžÇoãLêT׺Â:²x¿;ͤry#Íì¤×¹¼°_õ[¨Â ‚ b¨,æèT6G-ô“F˜£o~ó Úµ{7 ¿êºfäu4êúëiܸ±´~Ý:ê~Z½3Q[Å0G;wî”ióÎ8p ¡îÿ.b ~t·sÛ´Åy‹Žuƒ+ êˆâ¶™[ûLK¹¶µ¸í+«Ý–¯N É»ú®;w‹0 a]fv¢º~w{u þWëÍe®×RC‚ Ú÷¹<Öç1)ÍQ7ßÇæ¨§Ã}ãß…ÚE‡ £aW §+¯ºšF޼†Ö¬^%#»µU sÄóÆÞ½2}ÞñÊ×bϹ Ž(Õþ]aÅU®m-nûÊj·å«Óòæ¿’¿çäkÅCó6ˆ;·ƒ ‚ Òˆû\ë󘿔æèÔ®]¨õq6G}éliŽºšæèk_ÿ:½þúúù%—ÓåýúÓÀƒhèÐ!´bÅrêÜ©“3Q[Å0G WÎÎ;ätUš¸m¢}¦«rÖ)Ž'A•NÜçòXŸ)¥9êÊæ¨å1úñ"ÌÑW¿úUzmûvúÑyçÓùü”~ö³ŸÑÅ_L GuÒ‰'8µU,sèØ”ÒuéÜ™æèGçöñÌQ·®tŠnŽþõ+_¡W^}•Î:»7õîÓ—Î9÷\úáH?¼„Ž=æg¢¶`ŽùPJsÄOƵ<öhhŽø7G§°9z‰þÏÿæè_þå_éå—_¦úÓºS÷î§ÓgœAgžy&-^´ˆ¾÷½ÿt&j æ¥4G:˜£Þgõ ÓOë& Ó)º9úÚ¶m›Ø°3uîÒ…ºvíJ§žz*Ýwß}tôÑG;µsȇr˜£ÿðê{vOêqzwù’öCì‹stòÉ' B§œrŠˆÔ‰î¹çúîw¿ëLÔVÇ6G­ÔPWOÛí¿(„íÔX¾=¬¡Õ_ 2imß²Vß(jÎZ‡úK \뜨¶Æmo{#Õ—­Ž2óÛÞXOu¢ñ·6ÔQ= Š)­9êD--Ñùçý~pNoêuÖ™túiõòIºý×¥:þ‡xC]÷Üs/fŽ$0€"ÐÚ¶#9øj­ d` FC¶o×V þR¢œ×ºJ½¶r¹¢Ìw™ëˆÏ u³@Þl©Äú€d”ô7G;Skëãô³ Ï÷ RazÒ+¯¼B_ùÊWømu_‘ §‰ k½¦û￟þó?¿çLÔÌ…€vE²;â\0G…SÎk]¥žqå*oñ¬‘qnðML¡ª”Rš#þ ѲeËèòK/¡‹/º~zþOèÇ?ú¡|½ø×¾ö5ªûú׿.zŸ}6ÍêÕ‹z =øàƒṯÇ:µU|säw ­|9|ŒF>Rà/g@¹cŠx´IÞ­Vé6jRf9Â|ãÂ@íC;SdÜvlÙ&m\ñ«µÝúek ¡Ë¨;z´(}¼üø:ã›/í8„³UYŽoNdN¯:¯uÙóôêÓ ·óŽ¥ŸG¬¾œ4Eô9aÛŒíÌryy8Ê™µ#gû[6„ùm9òøpY­¼y[ý±Óàš•O)ÍO=±r% <ˆ èOý.»”.¾øç´cÇëôo~“ê¾)þá…Ÿ^p]pÁùtþùçÓO~r>=öØctÒI'9µUs$:ýÂ/; ÿÒŸõ±¯ÓËè@wÚ¼¼ÔjoP¢w†Z9dÇ•$ Ô¹´3…'ιMêDä_µí–ËÆwÇý7Îso_3“©âÕMXŸ^yÂÅ/,öø dúeÕäŽb¹ÏUz­‹ÌÓQ‡öúØå„ù+bö=¬§¸s'®1ùfäam컎~Üñ±Û¶Ž÷YÕT¥4G§Ÿ~:­Y³†F\}]uåpj¸b 2„víÚE|0ÕrÈ!raàÀ4`€PÿþÔ_hÙòårÚÉ•¨­’ÍWúl˲ót (üA‹ÑAñ:£SÑÓÎ̇ïøyW\¨ rig>òޱÞHrn“QùWm»µËfIû](Vþþ±1L&æøæŽ½ÏÙ–-¢Ú€«Œ¼®˜×º¨öøØååó#®<P¹”Òñ'‹Ö¯_OcÆŒ¦Ñ×_O£®»Ž®9’öìÙC‡z(ÕvØa´wï^ºfÄ!tõÕWK­^½šºwïîLÔVÕš#õÈŠì§²vHz>ú`-. Ô¹´3µÑ@’·IÈü«µÝºÊæØï¨ú(+Ýo~Øû’mÙ"—2ƶ+;ŸüÛLFž‰ÚhÜrnù+Ìãc¥‘W¹ì0›„yëµ6žõøØi¹Ö@uPJsÄ?Ú°aMš4‰&MœH&L ñãoù~øáTwÄGо}ûè†ÆÑ¸q¡ØQ±³r%j«âÍ‘ßyÆÝÙåŽÓ ç´ÂŽÖëPõIKÇèÔâÂ@mC;KðØKò6©þŽÊ¿zÛ-Ϙw×e+Ú#DzÝ2V]9™†¬S5+Ê=˜wå·lSîk»|vž™å³ãyûÔ‘<öIÊYŽÌü²—K_¶Ãl\qyèíW~ÔñáòZysÜ¢œP|JiŽz÷îM›6m¢3¦ÓôéBӦѴiSiÿþýtä‘GRÿà S§N5´qãFêuöÙÎDmU¾9b¼ŽÆ˜ÈW­Ó:Wm½ëGÊÞlµt$qa vHÒμX¸ÎS!mÒ<¬4ýmª³Ýêu¥öÓ®¿dãܱëV ¯ZÞ\YQÇ,/\Ç3nÙo–±v•{›ÑÊ•§«ÒkËFü††„esà,‡VÎ^§¶SiÚÛéË®4táÎ}×Ús½ØOÝôDNÊ2â¼­^w0J€*¢”æ¨OŸ>´eËš={v Y³fÑè¨£Ž¢:þ‡x¥®Í›7ËÈ®DmßUÙ:JÒ"×¶·=Ú-È•r·´Y‰1SdÎ$Åþ *Rš£¾}ûÒÖ­[iÞ¼yRsçΕ⼿õ­oQÿà *@‰Gv%j«rÌwšþ¸@ź«lƒ”Š\ÛZÜöh·ÕI-_ë¢ò/W”ïXÈGí„ 2?•å)U[€t(¥9:çœs¤9š?¾¡ sdoÀ‘8²+Q[˜9bÊ=`µC®m-n{´[+ån3h³ÐÑ(µ9zê©§hÁ‚†2Ì‘½G‚9˜#À€æ0G €9*)ú›ð–#P)˜2Å7IbÐ?âiØR†霖ìÔÒVåˆø¸¦z­rzðõªÔ¯dÆõR¢·9!ãc«õâŸËþ+µÍm$樤 ³HkcØå@ ß%qb1(m¨ O¾vĘXボiÁy•œ Ã홟Ðô˜õb"óc¬ùQ£õ¨i`ŽJ :{Pé ]F{'^ bëKTwñLjgÒŸ1àoümŠRd•6ÿÖifýpYô2xñŒsÛy ÈÒ.d:ù^\iGäW­×K6!ê¼Ñÿvm›´þåv*\‡·µê…Û¥k¶ÓpÎ"&)o–É«;?¿ A}ÙNÓÓÎ÷ùlÇ$­#£® `ŽrÆ»@g\äwèø¢v´òΞёˆ‹¼º°ËÎ I˜Žßùhq‚rE–GKGlãmoÅ€\ک‹çܦu"ò÷ãÖîËwîÔ7ú;Îu£mA=yÛ§¼zÚqùp˜L2¼¬+®ºĶ FÄ3Ž‹7@ÕåŽ^#×Kޝò×ÿÎØ6"MWþ¼A::úyê¥]ÿ®·EÂrÙëc—]iв©‚ñ>RWñ:g@þÀåŠìxxÀ^à›Ý‘è _çõ/*L.sð Å‰*OÏ—L43?PåäÒN}äv}ðÕ†"Û´FTþŽí·û²b—M Pùµ¾˜ç‘žv\>¦×»µ­L3®1íÂCìgCƒÐ¨vàÊ×u¸ë¥;ŸŒ4#ówCŽ6'gÍ\eÒ·ÕIX®Œ}[Îe[k}.uEæ(W";,ïn§ß1ó¶‰;{5Øâ¿cÂŒüd˜™$£<β»ã‚*&—vª–Õ‚Eò6­‘¸­%l÷eÇU6^æõÖ@®(ç’ž¿]ÓëÝÚ6ÇvQ0¹äÛ¶ì}NØnŒüÕ1ã¿í8åIԆ㰶ͩþ#Ú¿‘†–¾4vÚž`ïkÜr.ÛêXësª#H˜£œñ:¬¸»W|ñöÂù¢^Ľ‹ºÞ‘hédtxaúcr½žž«ãÉ,OfÙ£ã‚j%‡všàÑ”ämZý•¿Õ“¶û À˜Y‹ˆë<ÒÓŽËG7Œ½­UÇÂc­Ãñüý•ÇÅ6„QƒÕ¹^êù瓽mTš!Fýg´3;¾™¾¬3ý\æ}vžÛIËeoçÏàXËò©pWšqË ×v9Ô¤ ÌQ^xocP ; µNëÌ´õ®{?BÕÒ‘Ä…y“\_ß@ QwB£Êcl¼Â›qA!I;ÕÚ“¦BÚtØŽùûÛäÞî+½®\狽ÿi¢§Ÿ9ptlëºDëNǵ> 7̯¶U±×KŽŸÈ r­#Ì>'2Ó—&^/‹Á'a¹2=mÙ(Oƒ¨Ó ;ÍlËŠ„eqÕ¯sš?Ș£Š$ª Òȵ­ÆmvŸ <°¬©#Ú6†»^Œß–@JÀU$èìAµsT‰ÈÇ«jfÔˆvãÂx ´CÂÇ=ßÙLˆæ¨"Agª…\ÛjÜöh÷ Ðn¤Ì`Ž@P‘æhþüù†¶nÝ s(*•kŽæÍ£y¾ØõíÛ×™¨-˜#@>”Ú±ÏÉjŽæÎ+5gΡٴeËêÓ§3Q[0G€|(¥9êë›#û©¹ÀuÔQtàÀš={Íš9“fΘA3¦O§M›6ÑÙgŸíLÔVÇ6Gú[™ð†&æ‡`ñÝ|¾…uäIzýuÄW 㺓:ꃦü=*ùÁÓèúµ_Ë.—ULx²òk½Ãˆ£¤æ¨oßxstä‘GÒþýûiÚ´i4uÊš¥4GgŸÝ›6oÞL³çÌñVä½o!0G‡víÝ»—®»öZºfÄÕtՕéáŠa´rå :õÔS‰Ú*¾9ò;¯Vy6p£?êýñ×cL®u¼:̧¾±Që83Ëæj‡Ú™"cðåØ6²MÚ¸âw„vë—SMÿ›±—Ó"³n¸>«öº׆´0o“ÓUËBA!müüýGÖ„Œü3Òõö=ØFÎ6Ð%Á6B‘yE·í†>&Ê ÛÛ™ûâåí—[Cÿ›ãjõâÃÆÜ‹oÕY’óVm£Í|0)¥9:ë¬^´aãFš1sÍš=Gš¤9Â$yæè(ª;äCh÷îÝ4lè4h õïw9]zÉÅÔúøãtòÉ';µUs$:½“ :9µwçØêλz^^jµ7Ò;Q­²ãOjƒ\ڙ‹çÜ&u"òïí–ëE•Q–Y?ßy¹e¶êF^gªõº“-}-Ž(ŸWfk½?•°Q'qéò6ê˜=¯˜z ë8îÐÓ×—í¿­c*÷‰Ã½¼Œ}uým ¥ÇÛm€N)ÍÑ=Τ'ÛÚhÊÔi4}ÆLš)MÒlù~CÝAD;wî¤K.þ9ýìŸÒù?9~ôÃÐÃK–ÐqÇëLÔVÉfŽœc/[ȃÕá1r½Õ‘ò:£ÓÓÎ̇ï(z}b\¨ rig>òŽ´ÞHrn“Qùw€vËe ëÄ.sD}L¶|²ä›K{ˆ=Æ™ùä|üâÒ÷Ë£f=¤dYöObo“$]ÞŒ ‡^Îy¹êÍŽ'·IrèËößZ|Gzª-õì,Ãf-Ë~(©9ª?­;­]·žn˜0‘&O™JS§M§Â$æèë_ÿ:mß¾]¢Ò9çô¥Þg÷¢žgö E‹ ï}ï{ÎDmU­9òQÉÈŽŽ·M]u·ì‚·ñË©ê¶d׫|‘é ¤©ò¤üDøÑ1}9»¬åŒtï0ާ4iþñËš—³Þìü^§¶SõWN3Ì07Œ½~y=ƒé/ÇSµ?ü7Œ8)¥9:áÄ“¨ué2”ÒýÇ|?øûãóéŸ_Fý ¥áWù~øáT÷¯_ù ½úêktvŸs¨OßsèœsΡüàZ²ä!úþý—3Q[0G€|p™#6=Ÿ}öY¤>ù䓼ÌÑÑÿñôÀâ©÷¹?¦Ÿ\øsùÛ£+†_E{•9úÊW¿J¯ñwŽÎ;Ÿ~rþùtÁÐÏ.¼€{ìQ:¾b> 舸Ì O<‘Ž>úh)þþj÷îÝ©¡¡n¼ñFž9úîÑÿA÷/ZL½úü€~tþ…tñeýièÃiï^ß}ík_§í¯¿Nþüúù%—Ð¥—]Jý.¿Œ–¶>N'x‚3Q[0G€|ˆ›9ºè¢‹hàÀ4qâDZ¸p!­Y³¦ ™£ÿîÑtÿ‹è̳ϡœw]téåòwG{÷îõÍÑ׿A;vì¤Ëú  þÑ ÁƒiØÐ!´bÅrêÜég¢¶`Žùõ›#eÆG÷ß?=ýôÓ1b’Ÿ9ú.ÝwÿÔã¬>tÎΧŸ]| 2Lš£ÃØ}ýÂíÜEÅÊ¡W\AǧW_E«V=A§víêLÔVÇ6GúÛ ðf/æÛÃðý“(øœSõ¤Ÿ{zýáÍké€k]nä[G¥®ÛÌüÔ«Êùuã™X€Ò£ÌÑ[o½E|ðá3ر!Z¼x±aŒXy™£÷ÌÑ={SßžGþüR8x(íast˜0GßøÆ7iç®]4´áJ~ÕÕtÍÈ‘4jÔu´víê~Z½3Q[0GäHkcØŽä×õ1Àwa Þ¸žüoóèß¡Iã›4€)çµ®¯­ù–¹Ìuk|äÖüP-” eŽÞ}÷]9cĦG×§Ÿ~JŸþ¹ü__ÏÆˆÍR®æèÞûï§Ó{žM}~pýô¢Kh@`Žæè›ß¤]»vSÃU#hÄÈkiÔõ£iÜ ãèÉ'×Sg8µs@! ]¹±nÁ Î›5 ü¯‡¹Lr^ëªñÈ·Ìå­[¾™`ÌñMÜ\”eŽxÖH™ž$bc”«9úοÿ;Ý{ßýÔýÌ^ÂýØ3Gƒ†èæè Úµ{7]9âZùuØ1ãÆÑÄIiÆ Ô³gOg¢¶ŠoŽü‹{+‚ÂÇäc9û£®Ç˜\ëxu˜O}c£Ö±d–#Ì7. Ô9´3EÆ\Ƕ‘mÒÆ¿ŠÛm0«Æå´ö'(¦½œ^º |ñÍ—vÂÙ¾,Ç7'2§W׺ìyêÇVmç Ôý<‚dõå¤ù+ìrxËAy˜`V23mÞÎ]ÿYÊaì§žŸ½o6^xövÇÅÓ7 Näqå}·òæmÕõG›€R¢ÌûŠ(¤þw)ost.›£‹MsôMß]uÍu4jôXºaüš2u*mÚ´‰zõêåLÔViÌ‘¸ÐëpyÑ÷/áÁ* ¯3Ìè@9žÑC2^^jµ×)ªÎÄ*‡ì€’„Ú —v¦°j9·Iˆü«ºÝzûd ¹ÌúùÎËÅ(³W7a}Zùˆc%Ãb¯@Ö©Ú‡Pî(Öñà´ÅrP¹\%׺È<uh¯]N˜¿ÂUk› oÑJ›·Ëîú+‡d‘S^?nx ­íƒ:ÓÑ·1óÎ<®vûÑÖñþ©ý€¢ÌQ”âÇéÔÿ.åkŽø[GsÔ?Óí¡«GŽ¢ëÇŒ£ 'Ñ´é3hóæÍÔ»wog¢¶J6s\±³-[ÈŽÉ1 ë­¯3:=íÌ|ÌN5* Ô¹´3yçWo$9·I¨ü«¶Ý:Œ£Ü?»ÌõQ0Vºþ±Ñ Žø<‹+eŽ\Æ'‰ò7G? ÍÑ˸öz=öš8i ͘9“¶lÙB}úôq&j«jÍ‘zd"èÔôÁ[\¨ rigj9¢$o“‘ùWk»å²éû£qêµ:¾ÞóǪ›o~ØÇ#Û²E.eŒmWv>ù·™Œ<µÑ¸åÜòWØÇ‡—Ù0©ÿ=R*‡c? 3GŽ:3ÖkçDÖãj§åZ¥E™#69ùª8æhÜxš8y*͘5Kš£¾}û:µÅ… ‚ ‚ *—\>ÅV†9ú™mŽ2ÍÑ$aŽfΚM[¶nMlŽ ‚ ‚ ‚*]9™£1lަèæèg¢AAAÕ¦Àõ€9‚ ‚ ‚ ¨†¥ÌÑi=΢³Ïù!áÏ©ßÀÁ0GAAÕ–ØÝ#ÌQý=©WßÐO~z]>`0G{èP˜#‚ ‚ ‚jEßþŽ0G÷ÞGݺ÷ ³zŸC?>ÿBºôò´›ÍÑ¡‡ÂA”›îºë.)W±ÐF ‚ JÕ·¿óºçž{©kýéÔã¬ÞôƒŸO?¿ärá‡vÓ!i›£ÆÆF?~<5ª¤â<9oW™\Zºr5-iYJ>úxIÅyrÞ®2¹T-õ‰rÆ«£•“½Œ+ÌVµÔ9”®:bA[† êúÿ¾ýZxÏ=Ô©k=uïqõýÁè§?»˜víÚE‡rˆgŽv stÍu…™£ù ÐÍ7ßLo½õýóŸÿ,©8OΛËà*›®G_FkŸÜH}ü±3­bŠóä¼¹ ®²éª–úD9³«£•3éÀ·ZêJ_­ -Cuýßþ6ݽð:¹SWêvÚÔ«?Z÷SÚ¹s'|ðÁº9-ÌÑ„¼ÍѸqãä×i¿øâ úX˜€RŠóä¼¹ ®²ézè±VçúòË/éÓO?-©8OΛËà*›®j©O”3»:Z9“|«¥Î¡ôÕÑÚÚ2APÇ‘4Gw/¤OîD]ºFgò£u?ú íØ±“:Hš£ƒåFŽCco˜@“§L£™³s7G<ýÏw¹ô‹ú‹Ž¦­¾Ð©-¬?]H›}mºëBÚ(´áB¸Ú„ÖßéiíÒšß_H«…VÝ~!­ü~ß(#/ΛËà*›.~¼·ÕMËÓO?MëÖ­K¬µk×Z³fM U«Vzâ‰'hãÆF^œ7—ÁU6]ÕRŸ(gí•3éÀ·ZêJ_­ -Cu}ç;ß¡»zæ¨s×z:ãÌ^òѺ×wì ž4ª;è`Ï]wýX7~"Mž:fÍž“—9♑>ú(Ж?ý”ÖÞt¼¡5¬_O«…Vý÷ñôÄÇÓJ¡¿:ž–ÿòxZ&´ôÇÓã Ž§–ùÇÓcóŽ£GæGÏ9Žš}-žu-šy-½å#/Î;Içá2Glx–.]š¡Çù[£é3fЬY³iîÜy©˜£Í¢óàŽƒ; Vp7Mëà–ÿwWzem#ýýÓ÷èÑù'ÈŽï¦=¨ßMßM»{ÊqÔ<ùXúÓ¤cé¡›òëä¢ÌQ6c¤Ï}þùçô—¿üE®wͱ)RJÓEÕç—ÿøL6ˆ(þïÿþ/½¹}=-¿õüÔë3[9×þ¦íñA9Ðe½ñƒ´îw?¢ÞÚFÿì}úòïŸÐgî£7þÒB«nÿiÑŽ{.õ©Ú窦3hïóÒ{»·Ð®gî®>hŸÏïLÝx&="ôð/Ϥ%¿8“z`nwúó”ã+®œOüþ2Yÿ;Ÿ{”ùõ¹•³¯k_ÞݱÎ3nm·Ék»»6ÉôuÞÞ¹Y¶—ÖÞ*—÷¿º>•¶ñë›nÊY®t Si·»ßàÇÓVÝÒ‡¼²’ÞÞÑFOÜöã¢öù–ó‹¿}DÿüòZ2¯Sêå„9‚ ¨–•Ë5°sçδTŒÏ/¾äºD˜¢þÒà!CåÛ»åÀqÄ´ÿ~aŒfÊWxó#uóæågŽø•£ï¿ÿ~ MwýTv|7; –Þ¹-ÿu7ÚõÔBúß~)GÏ=!èÜøn?{íÝM;VtÇÒŸE§q×Äc鎥Åÿ}¾‘礓ËfŽâLÏñÿŸµ}ûv¹lϱî»ï>)NSÏ+s”´>¹îv‹Añ2a4›çϾÍõú\yûÏè¯ïl§÷Þx‘–ß~iªõ™­œ«›êiÿ_– –yãŇiÓÂÁ²Ì þ›õÏ/þF/­ûZýÇÁ´òŽþÔ¾övÚúØ\Z8£SÑËi·OžÍ|ëµUAÙXo´·Òà :ËöùÉûŒ0¥/þñ9m|xN‡.g.ß$ûòþž­2½×7ÝA­¿8ÑÙ†I@ÛÖÿ^nûÖΧRiÃlvôó3›`Ž’)í6¢÷Ïç£Ó[Û׋¶ü¿²=¿³û)y+V¿‘o9¿üâsY6Îé”z9aŽ ªeår ¬¯¯—o”6l]qE]yåU4âš‘´wï^:ìðéîÈ#¤Ьٞ1âY£yóç§fŽ‚»i¢ÓP?ú³âæôÚ†ßÑÿþï?åÎ0Î9Á»›æwênÚŸý»iÇã¥;n8–¸1¿N.Îe3FJŸ;dþÿ¥—^’áúl‘2Fü&Œ´Í‘«>¹,üø\Ô›¸>Wß5ŒþúöëôÖŽÍ©Ög¶r®º¹žöiæhï Ó†»‡È2»àõ_Š;φñ߯?ó-œÙ­èå´ÛçS‹®¡¿}ò¶_*Ïþú&­o¾BÖç‹«o‘¨½¶õz•µåzE¨½­™½µÅ•s× ­²>?m൧*¨œ…|í}yÏ7G}smßx½"ÚòËën‘âGè^j_#þÆèýý/ÉmßÚ¹5•6¬ÌÑC-wjIË jY¾ŠV®^'·+‰9zv>ué2Ÿžu…¹”ëö.¥‘†¦´Ûˆjïüèõ²›ºÓ—W}·í·vl¢GnìU”~#Ÿròõ8Ê-šÝ)õr•FÏÎïB]æ?ë +†RË/ås¼£*•ú.¤®Uܘ4JÝ«E¹\{ôè!Çþ×]7J^[GCcÇ“OÒñ¤QÝQG%ÍÿÎH£yóh~æè½÷Þ Ôö‡ ‚G ø7ênÚrѹ½¾ù.ùck}Ìw†Ã»i¢ã†¼›ÆÇ¯ãø½è8~7öXºï—?1òJÚɹÌ«(‰)âGçtsÄúûßÿN/¿ü²\¯L‘2F,NOÏ+Ws¤ïcT}r9x@)Ÿ¹gc$L‘z–]Õç½3N¦mmwÉGìÒ¬Ïlå|¢Q˜£MsÔÖlÎÅñÚÓK¨yz·¢—S¯Ï¥7v¥[ïuõOùÌ?>ÿ«¬7žá|¹íô€Øp}Þ7« Ý;³ -œÑE”± ýyZúãäNô»Ž«¸r>ÖôSYç¯n}î™sfAåÌuà«§ïÚeŽráÍ[Siú9zê¹— =ÿ—Wè¥W^§í;vѺ'7Èí"ÍwduuTç« Ž+׎µŽX)44¥ÝF¸½?&Ôúßõ´óé{ c¤àö½ëùZ¼àÌÔû\Ë)ßD'®ÅQæè¾™Rïß`Ž Ô¢AÁù+5hQôvzXÊçN†ìüòU±ËYiÊwÓ¨ïBêZÅK#ß2ršZ¯hƒ¥a9Ñ  üƒh‘'—k`¯³Î¢ mm4qâD©I“&Óä)Sä“tºê“?âr¼¼îV9[ôþ¾éûX곿¾Eœ$ÙàgÙŸâYÏÜ óÝÉ4ê3[9WÜT/¥Sì~þaZÿçäæèÕ§–Ð]Óº½œz}®ûã%ôÙ‡ûeþ½ó:=·t>}ú¡÷xÚÇïï¥ÖÛ.~ ßí-E}æ[Îô’3rYÿgúƒ0F…”3ׯž¾k_ÞÝ»9: ÌQuî2Gϼ°^|é5zeûNÚ±kí}cmÜ´Ynç6G|ÁîBóŸÕ– é\síX 鈕ÒHCSÚm„Ûûò›{Òžçæÿ‹ÈëߨóÒôà¯Î-Ûy©ÏÞG™£…ÓOIýús”¿øN¼=ØZ4(sðå‰Ïw-,ås'SV~ùªèå¬0彿)Ôw!u­âƦ‘g…á´H-sz¿UA’Æ(sÿ ª Ê/ÏY«ŸÍ娻woÚ´iMŸ>]jÆŒ4sæL9YÄ“F9R¦ÈÓz*s´îŽ Â»i󎧕·œC»Ÿ]œx`¬óôò[èD§qëècé·×CÍóÏ3òJÚÉE™#}¶ˆÍ—1qšê7HlŠ”xYÏ«sdÖgøF2ÎÛÚ[ålÑsËIÛž¼SêÅÕ·‰ò%Á³ìÏ®ôÌß¼;âê3[9—ýw½œ-R°9Z{WrsôÊÖ%ô‡)ÝŠ^N½>·­ûmP¾Ï=L-èNû^Yãëÿ¥çV6Éúüƒv··Tõ™o9ÿ8éDÚðð\zø·ýèö±ÇTÎB¾®}É×¥Qçº9zæ…—éùöW©ýåír¶hÏÞ7h¿¸P¾õÖ[ôô3ÏÈí¢Í‘«£z–æw /æAgôwz¢“a|lÐ"o;ïo±ìÃð:½ã0ûÎYT'³í|ÑÉxëõ<9ˆ2çØ¦ÝFûE'Úùô}ôÏ/þ.Óãÿ÷KÚùâ2úóôú²œ—êwr|=Ž2GÍÓNIýús”¯¸ÍÇ´qy™áá -VÛ¶Ê”Ë5°OŸ>´eËšÍ?)š=‡æÌñÄ~ˆ}Q†9Z°`T>æˆßâ¶cÇŽ@«þç<ÿnÚñ´¼©—|#wnIÆ:[…9ºÅï8š®;†þ8ûGF^œw’NÎeŽÖ¬Y#~<.sÄâŒËÂ3HlŒš››å«õ¼r1Gqõ©ßä¼Û×Üê½ùhÆñB'Ò=ÓO¤»§žÜäŽø™ž9ºÝ¿;™F}f+'¿9mÏ Kd¾Ì.1ˆ_óÇäæèeaŽî˜Ü­èåTõùð¼“åì‹bÍŸ‡Ëßl|prPæßƒîš|Rp··”õY åÌeà›d_ÞÉÃí}k*û¢ÌÑ£KŸÐ½öú.Ú½ç iˆøq&õ›ö—¶ÉíÜæÈë¨äßž1ÒPëÞqòß|±·: ÙqÉNÀ넌NY¥—ÑqÅl«wJzž* W™ešÉ•fytÁ)´mÝ-ôÏ/³#¤ö¶…tçäSKz^oÌãGš…¢ÌÑŸ¦œR¶ó²$Ï mÐeË:Y|>úç_ÄNO#Á9ïm¦æg VĹn­ËQF;m½ì2ÜÞ>n_­2&¹¦Èx1udo¯Ò‘ñÂr3~A9y}e ê»2é«|£ê=â8éy‹õò¸jyƶ #_­NtùØÛF´7PTÞa¹½ziF­ÏˆãÕ‡2P¡‰²ê/c9·k`ß¾}åχ¼§æBe˜#eŠÒ4G+o;/xözéͽho»0&9tp:[–ÝBM£Ž¡›EÇÑxí1ô‡YùurQæHý®( sÄo­cc”¶9Òë3x‹×LÏýE˜£{¦'ßH§«“úüczgï‹ô{Ñ ?í›#uw2úÌVΖ_u£Ýχæhç³Sëo/ ÷¼L{ÚŸ çVü†ž]ÑD{¶­¡Ï>~Wî‹Î¶-Kèö §½œª>Ÿ~djP†ßzMŽã©yʱt÷4aFþú–\ÏáëO—w{yPsëècJVŸ•PÎB¾®}ygWîæhŸ0Giì‹2GËV®‘ÐíÛ¿ŸÞyçùúä?þ8Ðë;vÊí¢ÌQ yÁ×MRx7ïFúëo}Z¯:—$ëUXÒ4xÙXï(³Ú>¡Òl#m ¯¤·wl¢÷÷·ÓûûÚé=!~|ÎÅ;o¼Doïý‹ÔÏв?)Ùy¹ñ¾kè£ww×_ûz¦ø»¸.+}üÁZy÷úM‰ÎKÈ’}N$‘ÇþÛØèíùo}ŸƒÚ@2r;-L_Îv®»Êh6õísIÇÞ^Ê}M‘~?n—±cÃxzößz~r=§íçÍÛ(ÅÅSÛëÛ¸âÚiDý­§«â©<ô4õíT¸ž–ž¶k½žk;©ˆ:1Âm3¢o/¹ìÌ#b}Æ:?/ùÄ„c½jãÆz+o¹l­ÏXÎíÈþ†Í‘ùÔÜüâ™#~´Liù­çy/¿9­õæ¾´ãï›7¹²yé-²ÓøõÈc迯9†~?ã‡F^I;9—9ZµjU`ŒxÖ'ßÇê^}õUŸMÑŸþô'©BÍ‘¾v}ª7Ñqþ/®¾U¾ùè©ÇIYw'½¸öNzAèù5wÒ¦G)Ÿej¹gŽÔ 2úÌVÎG~Ñv=š£Â=0§žº±¯ÈŸüùOS»ÐŠ?’ƒ5ðáÿŸ_w7Ý2®SÑËÉõùÈ/N£7··ÇôÙå¿ß$%Êùâº?Èr1o¼¶‰þ8­»¼Û˃šRÕg%”3ׯž¾« K§@ˆwIDAT¿9Ú¾5•}Qæè‰5ëé}ûéí·ß–3ElˆxýgŸ}&ÿß³w¯ü?«9’2/ÚÞ`@[§w®¿íÎEuI׫°¤ið²µ>£Ì9*Í6òмÎôð/Ï %¿èA-èA‹ç÷ /¿ø›Lßæî9gÓ]ÓÏ ?L;ƒî˜r:ÝvC§’—Kæw¥VÞ$_ˆ’yþ®þý~r÷’—-nç®AZœøŽ¹G?wìóK)jõwF<»L~~L!;./çp®‡²Î÷¨í³¥±>ë5Eçú›ÿ×ë$#N[äG¥§+j½«¾]éñÿ®2ùÿ/ fñ¬øºìõVÆz£îbÚD «N‚uZ™ÛZÇ)iÙëüüò5GÁ¹–½L¹š#ö9¶÷)‰9ZöÛó‚Ù õæ4îàv¿è½!6µÞt¿q Ý>=¿N.ʱ©Q⼪gqz|w_ã­#Ö’%KŒ¼ 1G®úä7Ñq^Xu‹ÿæ£ãè®É'Ð&@wN8~?þaŒŽ£[ÇK[—yæHÝL£>³•sÉ‚n´S3G¯?ó0Ý7»[ð=õÌ=¿¡‰Ÿ¹¿÷—?¡ÝD¯¿ðmli¢»æünºöØ¢—“ësýÂôùGÞk±ÿþÙ‡´ñ¡iôØ-Ó£¿½˜ùÍÅ´aÉù} æ³ß£Ö?\gÜí-E}VB9 øºÚðÛ;s7Gos”ƾ(s´¾mc`Œx=¯ãøJü#M^ç4G|‘Ö±/Ú¼,:çc8®¿­øQÉë­í=%Ü6"O¹^/sŽJ»Øo0z\íwãO¡[®?¦,ç%—sÑœ.ôòÆfçÛôløºýê3­ô?»•ô¼„2åÍ`è2ÌûËò\ÈÄ3 2\Å5Ï»@úùåú[_Çr<¶ååÇE;ýˆs]®Ë-×Ë4#Ê(¡Úz½lZÝdMÇÞ}}Ü5EçúÛJ7(‡X?(HS ¤ýx¹K²¾åïg¬rè[ñõ2©õœŽ·ÏQõqœ\iëýŒPd›q£ëÄjËÎm#Ú‚ú;¨WwÞz¹ƒ¶µ^ÅÑÊÖ™ óòóö×ÛÆUmŽ^{íµ@­¿9Ovªsó¾ëp¬×Ó_Öýþñ7óUÞ¿»áÿñ¾Ë}lð8ÄM~§q£è4~yõ1ô‹«Ž¡Û¦ýÐÈ+i'ç2Gü!(6E®¹Úß-bq|eŒøUÞ/¾ø¢ ×MÑÿøG©|ÐÈ+Ws¤ïcT}r9ž{âùÛ"~„NdƒõÖže}n^ú[YÏiÖg¶r.ž×v<š£íO/1¾[¤¿¡é–ÑÞ †Ÿ¹oLù¸'+çCA{TÇ×%þÊÓ-tû¤Ój®œ¹|õô]m˜¿Y”+o¼¶5•}QæhëSOS{ûKb ú:íÞ³‡ˆkâ;ücø÷Þ£wß}O§wävî™#¯ƒ•°:½sâe½“pý-;-=®¶ ÂüJOCW’mÕrFV™sTÚmD~$U{Cäæè¶q'{×a6Jy^êå¼wÖ©ôšÛé ëS:<óõbÛýâ¼ì^òórK¶‚óEH ¼äyä8xpçoÃ6Ž#tÆy'dŸ_®¿í8ÁàS“ÊÏÚVuZ\Žã¯ï"Ìž‘o°½P–õzÝdM‡×©pCY®)z¼ˆ¿U=›åðLG°>èçx\lqÝ]hí«ãog™Œt½òE–Aåå¯3Òpm«+²M¸ë$£Ë°&wýEå/×kmÌΛ ¥¶lô=®õA˜Þ6ô>U_¯ïWæ9R±æˆAyå•W=ÖtÝçw §'¡ÞœvϬîôìÊ[Gn{¼|äKÝõ»É¿›v£è8ønw DÇ1ÿÊcèÖ©?4ò⼓tr.s´bÅŠXS¤#ÝñÿÏ?ÿ|¤1*Ô%­O. ¿‰Ž ?B÷Üê;éY¡gX«î¤õÿRÖç¦VÏqGœV}f+ç¢9ÝèõgBsôšÿÝ"ùCd6FÒy¿*æqÏVÎeÿs }â¿›ïú²©üÛ§ú\ˆ×«»ÂŸ~ôÝß8 æÊ™ËÀ7n_T~sÇ™^.ìæ(}Qæ(©Üæ(‹¸sul•¬ËœvQý†zÃ[”9úíØ“ËrýÈèßfŸN/®¿+Ò½´y Ý1­Wªå„9*µx –9@ËK<8Ìz¾¥˜_%*Sªºë`‰ë;/•¨Œ¹´…¨mÓnOU9z¤ñ<ÿnšè8´»~ÜÁñ¬Á§t¡ç×Þ% Ãr‡n}|x×OHÝM㎃囹Žcîðcè·SòëäâÌ‘Ëé¦H½ž›ãóËøñ;^eŒî¼óÎTÍQT}rüÒ†{ä÷knwœÐ Âhž@·Œ9~;úa8Ž¥ßŒ9…ž_w¬ç4ë3[9ù:ÝÙß-’¿…áß@ù¸g+ç OÜ"êÑû­Óom§Öß_AKš.¥‡n¾”7^J‹„¸ézôwW‹ðr;®÷§Wÿ¹æÊYÈÀ×Õ†ó5Giì ›\åJ'Nú£Õ¢BËœvÑû ¾±¢µùÍè“Ërýp•óOÓëiÇ Ëåù§óÆk[èöÉ=R/'ÌQéå~åpJ8pL-¿$Jy0[×ÁÖwž*IaŽBåk޶mÛè¡_ÿ8è4Ô]¿;ø7&×?8[¾l_wÎoõcñ ,6 mxÜS[Ë-ô¤Ðò{gÓFû´ËyÇŒsåïåwÿzPM•³¯« ¿¼õAúûgÑß?×ÄËB‹ÐóJ­Î¡ô•v±û(sôëQ'—üú‘­ûÓì¾ôê³KiçKëé®9?.Úuæ‚ ZVÅš#ü···Zô«…wÓDÇÞåÎüÎŽЩ»iÜq¨»iÜqÌVǰïÓL¡Æ çyqÞI:9—9Zºtiìl‘nŒÔLQcT¨9âíõ}¬ÄúLRÎ;&œDwM?þ0ítºmÜIWÎ?OïJoîz–þùå?äcžYëShóŠ;Åíot`w;Ý4æ´š*g.ߨ}ÑÛðÝszÓâÆËüG/¥û})Ý÷ß—Ò½B o¼”îþÕ¥ÔüËKéÏ¿¸”þ$tׂKé·{§VçPúJ»Ø×¹¥KKÿ<^ªõOãéñ»ÆS‹Ð/GW¶ë\Üõ˜g‹î˜qŽaŒÒ.'×9AP-+I¿Ã*¹9â7·)Ý»à‡™wÓô7’iƒ¹¬wÓüNcÆPOÜyèy%íä\æèñÇÏ:[”«)JËéûX‰õÙQÊÉ¿ÕúŸq'x¿JRN¡ùW/ÊzLÍ•3é(Û¾TJÛ€ÒWGk#ÕPNU`ŽÎÿ¡|#™ê4ønw|7M¾Qˆ; !5k`ÿ†Åp§¡w…trqæÈ5[¤›¢8cd›"¥4ÍQ%Ö'ÊY{å,dà[‰u¥¯ŽÖFЖ!‚:ŽJjŽ>ùäzá…-úÍ0úÓœÐ]³@œ}.Ý9ó\ù;ˆß ýnú¹tû´sé¶©çÒ­S<ývò¹ô›IçRÓÄs鿉çH5N8‡nb7õûCŒ¼8ï$‡Ë­]»–ZZZ¤}ôQ©GyÄÌU‰ß@Çbã“Mü{&=¯\ÌQ5Ô'ÊY{åÌeà[ u¥¯ŽÖFЖ!‚:ŽJfŽÆG{÷î¥÷Þ{ž{î¹’Šóä¼¹ ®²ézè±VúøãOèË/¿4LK)ÄyrÞ\WÙtUK}¢œÙÕÑÊ™tà[-u¥¯ŽÖFЖ!‚:ŽJfŽ8ÎM7ÝDûöí“w¹J)Γóæ2¸Ê¦ë‘Öå´öÉ"ž7‹SJqžœ7—ÁU6]ÕRŸ(gvu´r&øVKCé«£µ´e‚ Ž£’™#Ö¼yóäÝ-žþ/¥8OÎÛU&—~|™œ½áÇÛJ)Γóv•É¥j©O”3^­œI¾¬j©s(]uÄ6‚¶ AÔ1TRsAPÇ|]ë!H m‚ ªTÁAAA ÁAAA ÁAAA ÁAAA ÁAAA ÁAAA •Ì566Òøñãßi€ 8q»áöãjW¬Yó!‚ ‚ (V®q¤­’˜£ùbû›o¾™Þzë-úç?ÿ A9‰Û ·nG®öÅ¿_MÉøûßÿNo¼ñ†ô$ï¿ÿ>}øá‡†x<¨þ×õÑGÑÇLï¼óNe™#þ‚7ê‹/¾„ \Äí†Û·#Wû‚9è¸t8sÄFñ €=è… ¤âöÃíÈÕ¾`Ž:.Ò}ùå—²€”¸ýÀU9Û©¾®ZåB+5—†Ö†:ª«óÔPÊŒ#ÙNõa™ê·ûë²®2Ë™Æ>pF\Ϋ¾Q”¨L*ÒÍŸ?ßÐÖ­[s6G®°Tõì|êÒe>=ë ˦Bâ[•\¶©X樽¥‰f̘AÍmÚú¶f¹ÎS3µiÛ§¥š¤ÌæÈÃ3$aŽZ¨.Ê”D˜#ü÷a{c=Õ9"JÓU•dRjsÄ>Çö>æhÍ›ç‰#õíÛ×™¨-eŽ‚xfuñï~²ºÌ{& K"Žße=“t}©¸…¤Q,Ub™J¬¢˜#6AMÍÔܤ™£öjÒ ‘ܦ…ÚÕrJªI`Ž ¢ŒJvòÜ£þmøxÔ“>yT ¥4GìoØç(Ï£”aŽæÎhΜ9´eËêÓ§3Q[<¨åÕóμÿþý4°®3Í}šÿö—ÞïÿPOÏ¥ÎçÒÓI×'Q!q‹­J.[‰Äí']sÔFÍ3š¨¥½ZtsÄf¨¹Í±ZNGå€ãõb\'g,ýG´’²õGºêôA¶?Ë¡Â\‡eÆóÍÏždÄóÂÙ8ݸzŒ4kþ1J²o@1ÈfŽ>ùäúì³Ïäÿú1sÄþ†}Žî}X9:ꨣèÀ4{ölš=kÍš9s&mÞ¼™z÷îíLÔ–2Gï½÷žÐ}4 nÝ'ÿ¶´uu:w^×yÍ Öm¥9Ã@ç9[ÍøЀ ¼3ÍÙÊa^œ÷ùÛÉ2¨0_~>[­ÿ½|=ñ9Ì_æ¡)*®JÛÚÎË+,÷€ûÂ} ã¹öËóóÖûé†uæo[aòÊì–½mÚæ¨­y5µ´‹¿æH›9ò»ë8æÈ„³ùðÊžaÊn<â»â0w—O&ïº9ÒÒ”ajæ".,ž¸rz8Œ…¾µ¿ºùâåä³/‘fD7;ä ËV–e3ŽÌ€2gŽØü°1:î¸ã2 R>æˆý ûö<ºØ±/ ÌÑŒÓiúôé4mÚ4š:u*mܰzõêåLÔ–2Gï¾û®Ô}Ê4 ¸/X÷î»lXØ xË[ætö·xƒµ^Š×‰Áÿ– ®¶ž ÂoY¦¡¶»o@˜Ÿþ·’JSÿ_Ï—ãÈ´|sgÇSËj+®½­‘—_nÞVÿÛñÂýŠ(‹ÜÞª³ •nˆ”\Û¥jŽŒÙ!Ë ©ß!±šZZ:ÔÌ‘7ÊÉÌQüÀÚ3]âØÙ£gû75ÆàÛÌëþ¸°8GZ.“¢¢Èý“ûc¶Ýº¬ù‡¸ò ÉÑe-‹]§.’ÔPz¢ÌÑǾ1ú·û71îL—_~¹aò1Gìo6nÜ(=Ï´iì}<íß¿ŸŽ<òHªãxaòäÉ4iÒDš8qM?žž|òIêÙóLg¢¶xPûùçŸÓöíÛMÝq‰×‰_rm_9™N>y2­Ta¼\w Ýa¯Waö:×z•†\¾ƒ.ñÿ¾ã’:ºä}[Žkÿï Ï„¨<¬m]q³­wý튧êÆU{û —^~W8‹ÛO:æÈ3Cá 4¹~[dÿ)%•ƒp0‚y]¡æ(@="§FíÄdÛ¿IÕe-‹]§.g Ä¸Ì‘2Fßþö·éÜsÏe"Ýxãò÷AÊ åcŽzöìImmm4aûžP<~;âˆ#¨Žÿá…Æ£±cÇИѣéú믧µk×ÒgœáLÔ–2G¯½öšCwÐÅuÓ+¼ý µž—]ëU˜½Îµ^¥á/ßqq]|‡ŸŸÚFIŵÿ ×ãÚJ×µÞõ·+^Tݨp×ú :]ë•Ò3G¶2gŽì0ïñ;Wxþ*ù›#o0=×Ð ü[ ¶ý4¢Ì‘4IÂ||£b)I9ÆÂ(§cY'ÃàE˜ì¤j޲–%<æ‘û¦á×u’Ç/€bà2Gl€.ºè"?~<ÝyçôÐCÑÒ¥KiÍš5ÔÚÚ*Ãó1GìoÖ­[G£G¡Ñc„÷ñÅù~øáTwØa‡ÑÞ½{iÔu×ѵ׎¤‘#¯¡#FÐêÕ«é´ÓNs&j‹µ\ÀW^y…^Y>‰NºøwÞßjù¤I´ü•ß Ó"ÌËï¼õË'Du¼]îo¯âsð;}Z¯m¤¡‡‹‡gÔÐpE`æh àY£+hø•WѪU«¨^Dv%jkÁ‚tÓM7ÉA!Ï@P.âvÃí‡Û‘«}Át\JiŽN;­»ÿ¶ºtõÕW “Ô üÏP·92d(]Ñ0œ®ºêjïUÞ Í‹?ÈÄwþùÑ(ÊEÜn¸ý¸Ú«šÍ‘úÁ;~óঔæèôÓO—ßså1èu×]K#Fx)x!¿­ŽÍÑÀƒhÈÐaÔÐp¥pQü£5‰¿sAÅTîæÈü–‘Ts[ÞÞBMAXµ´ëqÓ‘IÜk”j›Rš£=Τõë×Ó¸qciì˜ÑtÝµ× ïs•4GÁ«¼•9âß54 ÍQ=ÌT~åkŽÜxm£faŠ‚0i”š©-c»Âd“ñ1 )¥9:³gOz²­&Nœ@ãÇß@£¯E#¯A{ö8Ì‘÷X]]yÕÕ´jÕêÄ¿9‚ b*UsÔÖL3šZ¨Ý_noi’3Hn#•¿l`ŽÜ”Òõ<ë,Ú°aM™2™& ƒ4n̺îÚ‘áG`õÍÑ i޼2ð×bsy[Sùš£ð±ºðÑ9i†üGìÚšE˜0J-âÿ¦–v-~á²as„mdRJstV¯^ÒM›:•¦LžD7ŒK£®»Vš#öEu‡z(íÞ-ÌÑ Aò5vC‡ Íù;GTLånŽLy³CÞ£sÊIc¤™¤b›#Æ{9~{ Sjs´qãFš>mM2™Æß0ŽFºŽö²9¾È7G»i0›#ß ñ+½ù˱üYW¢TJj޼ßù³GüXÝ Ý Åý>)Ù`æÀM)ÍQ/ß͘>¦MBÆß@c®š£Ã|s4Dš"Ï 8–/_N]ºtv&j‹ Ai(ª}¹ HR©Çç¼ßñ ´7ÔI³„2”‹Òš£³=s4c:MŸ6•&N/ßZ·wï^b_TwØa‡Ê·3 :Ä3H 0€–-[F;'7GJzæÈúÍ‘ö©’¿Êæ Š’š£³Ï¦M›6ÑL1œ>}Mž4Qþîè 6G‡Ææè0ù¤†+†ùI˜£0G ô¤gŽÊ/˜#7¥4GgŸÝ[š£Y3g ƒ4¦Lž,­ãü?\˜£Ã…9âgì®Þ@ ÆÒÐ!ƒ½Çê`Ž@‰é¸æˆ¢”æ¨wïÞ´yófš={–4HÓ¦M¥É“&ÉñÛ‡.Ì‘pH{÷î¡«¯Nî³Güh÷›£.ÎDmÁ4èˆæÈ{C]ÕaÚÀI)ÍQŸ>}hË–-4gÎliøñ:~­÷þýÂq›£ÃåF\u%])ÌÑÆÊßÁRÓ͈§æhîܹ ͡ٳ<ƒ´ÿ~:òÈ#-s4¼Á0G]Kf޶Sc}w‡]7Ùk˜#€Ú£”æ¨oß¾´uëVš7oÍSiöl:pàuÔQš9ºÚaŽ~ç¨`sÔÚþ£µA¤‚?ª=`Žjr˜£ùóç{iÞ\9‹˜#þῺn䈫å ¡C½ÀžÚõTg¢¶ 6Gøñz­sP{”ÒsÎ99Rb“Äyë[ßæèaŽÞØK£®I׃tÕUWJƒôÄ+©[·nÎDmE›#×ãrY¡ÛÞHõõb+¹àÞ–·ñ×Õ76ÂLuÒ3GÖwŽXÍmÎðæ6=^zÉ(·9biæè1˜{ƒÆŽ¾ž®u];r$&iõêÕtÚi݉Úr›#ÏØÔÛ®…›‹üQ‘'vnË3Ká6ÞÛÀ`Ž:i›#·ñi£fùá׸m HF©ÍÑSO=E ,Ê0GüV†ýb0Ç?â¯ÃŽ3Z˜¤Q´víZ:ãŒ3œ‰Úrš#9»ãøí?ë“ašü¡Là ¹¶5f–<†×Q(9R‚9¨ÊiŽ”stÔQÂíßOS§L–@š8aFéÉ'Ÿ¤ž={:µ•“9òQß1f€2f‰<ŒmaŽ:,i›£ð±:ž)rosP^*Ì%ßÎÀƒÈéӧɯÄN2…6lØ@½zõr&jËiŽ¢«Ó`Ó#Ãùñ9Ãðdl‹Çê:,é™#Sí-M¢}7S›±æ ¨(sÄÿ°9š3{¶üÒ,þÒÌ™´yófêÝ»·3Q[nsÄxFÆx¡‚|U·ZÇ3KæK”ÜÛúhëñB†ŽC±ÌѾöjʘ=‚9¨*Îñ¿ß[})–Å_Žå/ȺµmŽJ«ë(˵5Ï M-Ôn¬‡9¨JmŽbßV§Ì‘þ$›#þH’+Q[0G Ò3GÖoŽ cÄo«ÓÂ|¥m’@2*Ò)S¤f0sJMzæ¨üÉ(¥9âÉ6GÞÄмÀÿHstÔQá ØÍæßÍö~wÄ¿9êSðoŽHÌ@íQJsÄ“?< ¤~JäùŸÙÒ±/ Ì¿„/š>}:M›66nÜXàÛêÈ ˜#€Ú£”æˆ_8Ç“@³„÷ÑýÚˆ¿ÿê}V~çh Mž<™&ñ·Ž&N¤¶¶¶Â¾s@ŽÀÔ¥4G<ùÓ@üù¢iS§Òáø[¯<~;âˆ#¨Žÿá…ñãÇÓ 7Ü@ãÆŽ¥1cFÓºuë¨Çg8µsÒæ ö(¥9âÉžâÉ ‰&Ðxßÿpþ‡~8Õñ?¼0zôh5j]wíµ4rä5´fÍjêÞ½»3Q[0G `ŽjRš£=zÐúõëiì˜1B£ézßÿìÝ»—=ôPª;ì°ÃäÂ5×\C#®¾š®ºêJ>|8=ñÄT__ïLÔÌH˜£¶7R}ðd~;£öAdP‘´6X´“<ÏMn©µ‹Ö›izÝEtKcÌuÇßf‘Ê“Ë]ßHxÉ+ R(¥9êÞýtZ³f4D׎I׌þçÊ+i÷îÝtÈ!‡P;¤={öHCÔpÅ4lØ0:d­X±‚NíÚÕ™¨­ê7G…¼¯O‹ôÌ‘õ#Vs[ÞÞBMAXµ´ëqÓQªÀ×YhVêJv¾n§Æz× 8j}‘í§ÔûE1ö½Äõ©“ǹ¹½±žêÒ,l>æH |Y* 2)¥9âÉŸU«VÑÕW])MÑðᆥݻvÑÁLuìØ) :„† Lƒ ¢AÒòåË©+ÌQ`ŽÒ"msäþ°+‡5S›¿ÜÞÒd}$6¥ ÌQ˜ç¨œ–ä®y%˜#Î+l/¥Û÷(jÜÛ—‡9Bߨ$JiŽN=õTZ¹r%]1l˜ÐP9)Äþg—2Gü/°!(4`Àêß-[¶ŒºtéâLÔ–ÛùÞÖð®%w^²sö—ëc¯Ê^‡§¶mhut€­ ~GŸK^vº7\öî¤%MÏäKiÌ‘¥¶fš1#4KiIGĪNwô­óÁ ãq›sÛψç…5Fœcf9ÌsI>æÓ¨ç™_9§ÉøûàZW‘0.7Ó6M°®~ ½Ë‹¾±Q gˆT\{½eš#¿þœJ ›£§žzŠ/^L·ß~{†~÷»ßÿëzàèÙgŸÍÉñäÏŠåËiÈàÁBÞ¤ûŸ];-sÔ¿?©~ý<±9êܹ³3Q[ÑæHtê.¥ßaƒÝIÛp¸}ѶÖÉÁ—\Ì!/Wº2¾Þ¡æRv;.È—´ÍQøX]ô£sræHä.%)äà+bð¶_¯ýar0¦·7-M¦Ú_\˜…‘¦_NmFA/[|9õsØ<âÒ”øç•3mgX\~־ǜ£²\AÂqizÛ:ËgdzêÓ#jF#j}ûì3)žMz÷Ý÷… z—Þ~û:pàMÚ½{=ÿü‹ôàƒædŽxò‡Ÿ4p ¦È›êO;wîTæè ¹ÐïòËér_—]v9-]º4s×1Dt yѶï²q­# ^9ä™nÂø}Ùù’ž92% kv¨H³F,ø¶Üõ¶Ga<°ÔL…9€á4õÁŒ>0Œ øÖPá¶qƒÏÈrúç’™f¸¿ñÚ<ˆÍÏÚ÷Œ:ÓâdÔ­&îCä¾Ç槈´ç3˜çüòhK:†aôȯ Bľç}˜ÖgÞç&c‡+ü †­réÝÆqÁ¬‘üÛ˜UÚJ‹²!o­S2G²LÑõ¥‚ÍÑm·Ýf˜¢?þ„þúÑGôᇥ7ÞØ/ÌÐ^Ú±s7½öÚzáÅvz²mýå//Ñ-·Þ’›9þfù²e4@"#Ï©™£ƒ~î}Ï÷8x”¬>cëÅjƒúù'1Û¡‰gz5²ÑÑÌojL³¤™ÆõXa†Âß&á±:@¥¢›£O?ý”>úèãÀ½ýö»ôêk¯ÓK/½B/¼ÐNÏ<ómÚô­]ÛFÏ=÷BžæhihŽäÌÑó… ÁÌ›£K.¡‹…ÊnŽüÎÕ“yñæŽÐìÔrÈ+"]™&¯“éæ/qA¾¤gެßéo£3^ã*ÑËrPˆ@)©6g¯7†Þ€V­çö¦âñßz<»]F…iíT¨¾±QKÓ s7ßørzƒ+-\»«¦O>ƒëÈüô:ƒ>ó|õ–µÁtdšÉ‘YŸ™ñXÑõf§hòhKö¾áÉ÷Ïlƒ>ù?&jßó<’RÕ§ ¿sӃω(·­Áq‚ÿxÂ3D~˜ap @nÀÔ¥6G+V¬ ¡C†ÿ3”†úb?$ÍÑaÂíÙ³‡®~]1l¨üR,?{Ç?Tâi'W¢¶`Ž@ÀÔ¥4Gݺu£'žx‚†74j¸¢Aš#ž4ª;ì°ÃhïÞ½4rÄÕtÕ•ÃéŠ+† ƒ4XN7±³r%j æ¤Ì@íQJsT_­^µŠF\}µÔÕ¬«®’“EÒ~øáôÆoÐèQ×ѵ#¯\%Ô+WJgåJÔÌHƒŽlŽäŸù÷xÎÀ@7Gê°lŒÞyç]zë­·éå—_“}î¹é©§ž¥ ·Ðê5ëó2G§Ÿ~:­]³†F]wÔu×^K× ñdOÕqÄr07þ†q4fôh±Ñµ4òš´zõjê~ÚiÎDmÁ4HÏYß9b5·áò£°AXµ´Ûñ —Þô‰2GþøãœÌQïÞ½ióæÍ4kÖLš5s¦ð?žØ±/ªûÖ·¾% 2wîš3g6Íž=[l¦I _‡¬2]Ûò:ã÷x ¯Z(–9’o§‹z|ŽgŽðB€²QJstÎ9çHŸ£{V¬9bq$ŽìJÔ–Ûñ,fФI²}‹~±‚7ãcÍEÜ}7¶…9ªZÒ3GÖoŽ ó£ýÞ¨”¿9‚9pR¡æhÍ_°€øzê©§ 4GÙˆx¬NƒM O0¸ ¶•fÕU#陣òËæ ’R›#ö9Êó(9Ì‘rN¥2GŒÿƒu_ÒÐâ±xfÉ|é‚’{[m=^ÈP=tXs”e– –©ps4¿„æ¨౺j¡Ãš#zô/f0©(stÔQŽßÁ2БÍpSaæè(: ¼×Ø…©ð2T 0GÕÌ@íQyæèÀÿûFÞ»¾;–9ÕÌ@íQQæèÈ#”æhÖìÙ4›¿Ë&©€ïq!÷îÝK¯½öÅŠÛ ·ÌQ…`¼@‚g^ñ2‰JG~Î ~Ö Ú¨(stÄGÒþýûiúŒ4sæLš5Ë3I[¶lÉÙñÎðŽ}öÙgôå—ÿ„ Xq;áöÂí†IÏYß9b5·el×ÞÒ$ÚÛÌõi¨ª9*®³Ð¬”îSÞ›=3ÍQÔz 2¨(støáGÈÁÜäÉShêÔi4mútš!LÒæÍ›©OŸ>ÎDm)s´sÇúÇßÿAÿøÇBü?ÅI´Ñ^¸Ý0i›£XÓÓÖL3šš©9Ûvyªª9*ówŽòM…%ùÎ̀ꤢÌÑa‡. 3î†ñ4~ÂDš4i2M™:•6nÜDgŸ}¶3Q[Êñ£R_~ù¥ØÁ@P"q{ávÔεQóŒ&jiO`¢òT9ѱ2¾ÿ%MOf|€Ù ãùæÈøv˜Šç…5ª×”av9ÌÁ9‡54êyæWÎÄi2þ>8MBTXd~qûnš#/èý3òŒÜwÿ8øKiJ2MPð yCÉf²r9FÉöÁ'î8¨I*Êzè¡ò·×E£G¡±ãn&iµmØ@gõêåLÔ–n޾ƒÝ¿ýíoU®‡ihÝ©ô«vûo(mq{)–9 «c#†·5Ï ¦–ö`»Ždޤ!‰uÊÁ®3ˆÞZ˜1ðö‚4e˜\Ç…YiúåÔfSô²Å—S7¼æ—¦$gs—Ÿµï2¾^gV¹‚„ãÒô¶u–ÏŽgÕ§Gº3GÑõ™ï>øÀ°¨(stÈ!‡Ðî={誫¯¦kFޤk¯E× “´~ýz:óÌ3‰ÚÒÍÑ?¾ø‚>ûüó*×Ã4D¢_þÅþJ[Ü^Ò7G¦¼ß5S/óãtÁï:š92©6‘¢åÁªþØW†9ÒÂú@;.Là‚C…ÛÆ  #Ë)Ë¥§ÇÊaPž+±ùYûžQgZœŒºÕ¤Â}ˆþXp\~ŠôÍ‘3NÞû¸©(stðÁÓîÝ»iØWÐðáW “4‚F\3’Ö¬YK§Ÿq†3Q[†9úÇ?èÓO?­r=$ Ñ/^°ÿ†Ò·—b›£}í-Ô¤=FÎ(ijj¡vWÜ‘‘ÉVN‹ÔÍQl~qfEÛwßH–eÙ‡{ßcóS”Èå½€›Š3G»ví¢ÁC†ÐСÃèŠ+¨A˜¤U«VÓi§uw&jK7G;Ç…”znuáÎÑ×àÅþúÓàº.´`qÞeÁsñÓb=΂ÁAzF§ž£]T:*×:!-Ï.¢‚d^ÏqX–²B‰ÛK±Í?Fç6?mæÈ'Œêƒkù·22~Æ@_„Ëo‚0#MÒÓô–™ ÀùEÇËš¦?Xwnã ‹Ë/άpX¸ïÞLJ²}0ˆLÓ>FŠhÄu“ñÛŸ,D×g¾ûàã×u®åÐq©Hs4hÐ Aݺus&jË0Gû›¿~ à EþvÏÎæ¢ Í6 «ë2Ÿžu†©¿… ¢.óŸ ã Z¬¯«D‹d^.=Kó… òâjë9žJ#YÖgçwi')+T¨¸½¤oެ¢ÈY¡Ž÷›£pତ¦özsp< %×ëo Æ ýñaÞàZ…Õ76jizaîÁu|9½Á¶®Í`¤oŽ‘ùéu$ˆ1GÞ²f"ÓL~ŒÌú̌NJ®7ó8E[ŸyîƒDÅL@­Q™3G ‰MÒ@¡åË—S×®]‰ÚÒÍÑçŸN|ð}ðôþÛ×}êhÀ}ü÷}4 ®3Í٪¶ҜÎ~˜#ž';޽l)2O[çt–Æ+ȳóÚ„ëiÇ”5ØÊWÜ^`Žª˜#jö Æ€NÅ™£=Â5 JC† æhõë×–.]* Cgg¢¶tsôÉ'ŸÈ¾óνÂTq/ÿ-´y¶4+÷jagoΈ×w¦Ù›£–mm¦ÙÂÄd¦jóìÎ~¸YV^_¤WV¨Pq{9ªV`ŽP8eŽø;G{öì¡á WÐPaޱ9ºürZÚÚJ:ur&jK7G\À·ß~Û“4êñ86þú·ï¥þb¹oö†Õÿ^fÇêoÇN#\v‰· Ó‘yÜÛ?L·®?Ý«¶ÕÖwž=[K;KY¡‚Äíæ¨:9åv¨T;iŽ®Þ@ÆñÍÑeÔZ€9âÄãµúÕu¢™]aP- æ¨zq Ô¡Ò ¨v*Ò]å4G§8µ¥ÌÑÎ;å2ðÀ1ºÛ3G\a¹ŠÓR3AJýènç¶P%‰Û ·n7 ÌQuá¨C¥PíTìcuà |¬Žwæ½{å:.l´{¯ë~ÎÕŠ¸p{ávÃÀ¥DëÍ4½î"º¥Ñ]Žm Ép©†­þÚdè¯w苈v‹åuOhëªMû0Ýóí’JÝ¿ Ä12~¶]\Ÿë½kt¥[ÜGëêÃí£ÚuÎð+ŵWÁƒ‘¯d×__ßò§b_È ~sÔß!C®æˆáÚ¹c‡|T ‚âÄíD#&=sd}çˆÕÜ– ,=••sônã86ŽÖå1"”oÓ¾M Ðó4Gºñ`îéÈ0?½±\/Ò·™®¥·Î_§ÐËcçÅèq³íÃ]ä¸Ö>ÓXˆcäü8¦ ù®PÞmpûº%Ms$ßâ*Y½ø&/Ç ÌQQ‘mÓx"F¯ë¨0ï:õ6Èè4cÈøh³÷*þà´Qß-ó¥ÖëßeÓ•èM•iºö]?}#÷/Û>€Š â̿ʛ©2x0GiÀ€ü^å @!¤mŽÜw-Þ‡_uU*Þû›i›¿œc äá¨'›ÀôèòME`”t±9ñ.÷—/†Kš6Gáámµe6G…”\Í—%Ø>nŸRP€8Fb¤ï/؈#W'ŒS®†¤äßÓ7GÞ`+ÙGq æ$GŸ¥wã®ólæ(gCÀÆ¢^¤i}èÙKÇ3+Aš²MØçS®m#.M+-+¿Èý‹ÝP)T”9âÀîÞµK£Áþ‡`ËÁæóX æ¨P²?~”ïÀ”;»ÃåyìcgÖìÉnafôõÆÌRœ‘`ã™#›•n†9Ò¶3G±ûàËiެýSá—³i³Œç¡—ó.ߨ1A½°"ÒŒ‹ ŽQì(?jV©Ä¸Û Ùví7Êù3¥tóáljLS`ψÆã•“ÓñfÀ8]m_"ò3# äÏžÙûåïÏ"Y¤˜üüx‹´ýÏÁx™wÙígfœ÷V˜9›!þöïЛñ¼°Fm&AOÓ,‡9`•ƒÝF=ÏüÊ™8MÆßg“ˆË¥œFܘ}iºÊà6Å1GÔ*Òõâ†ÆÂuîpfþîrFŸ¦–ir"÷/fâŽ;( gŽv sÄÆhÈ!4dèP:t­\ùuëÖÍ™¨-˜#i›£ðѹ&jiO–žÊŠc¬t%}´‰;¤Ì»ëÁ€^Èe¢ Éå<À·LNF8co#Ò²×Ù¦CG7Xº’8ò›r…fÌ_æ<õ2)É}ëÕvyòÍ*kTšñ¸.¼­‡èÑÅ1òo‹º±è™% kЦ$qa1äÒÞ9Ú5ÑVZÄé8Mæ6r’Þ|³" É"N×(S¶ü|h—5‰9råçÿ­Ì’³Î"àAd”!Œ@óu@ 3êÍ Ò”aúÝþ¨0 ëXÈrj¿ ÓË_Nýxš×¯¸4%yš#wšÙËâÞ?M®7%-};mlæ(>M¾±ØÎÇF64œžW¦¹q—3Šø4­´äñ°Ž­kÿbö! ’P‘æhÈ¡4lØÔÐ0œ†_y­ZµšN;í4g¢¶`Ž@¤gŽLµ·4 ÔLm9†¢²âDzä7säîÜÔžå2—+“£ôúz‡9±ÄWÛ&0G±°LG”QÓ•“9òÓ·IjŽt¤“fF<[Óe3>¼Mù­‹jƒ™æ)‰9ò ‡Ç0>öŒ’¯Ìó°ƣòsœCYóËß9ó‹GüþÊ(,íQ¢`ú‹¦‘±¯úà3.LàJC…Ûò`7j°YNY.==V2C’/‘if)Kä>²—Ó}]æ4ãÌQÎû®÷Ö.{¹Í‘».™Èý‹ÙP9TäoŽèJaŠ®q y-­Y»–N?ã g¢¶r3GܸÍ]yèe¬†òv ŠeŽöµ·PSÔ Q\X*+bމõe’üeÝ Ä‰ML›ãYæHÏ×e:ŠfŽeQº\3BJ‘&N(H;&MVIÍ‘sPç&âÂàlƒþÀ^µÙä3G IÊO;%³`ap˜¬ù`Ž\ùÉ(Ó¢lQÌ‘U#MÎ2A»ÊVN‹¼ B’ Êc±÷A½œv½zÓÉ¿ƒã—i„¼<ÌüÝåŒ">Íø´k@åPQæH½Ê{›¢k¯¥Q£®§ÑcÆÒúõëéÌ3Ït&j æ¤A±ÌQ[ó šÑÔBí9†¢²Rs”yè÷8c!¥ æy™·· „S~D§i×'+¬3ý)©tôºöm4 c!°ëÀ_öä+éí$!‘iƧ¹ÙöQÇÉ]é T”9:âˆ#ä`nü„ 4qÒ$šÛ çJ#{ºÞZ•Ñ/o«žqöƒHÏ•_y~˜ç[0 ‡r’arRP€8FÑ3CâȉëX8:VŠ@ƒcJŽ76Äø®|T”9:òÈ#iÿþýÒM›>]ÞMŸ9smÞ¼…úôéãLÔ–ÛE54½3â¿mƒâ‡±³’Õ‘‰m¢rDþ‘é†åðe î:èe©sTÙØwØ]u(»ŠfŽqŒÂ ªFCå|¶’wšQ/E†ûP˜#P¹¨Ù6£òRQæè¨£Ž¢HC4kÖlš={6Í™3‡¶lÙB}ûöu&jËiŽwš=4ƒãØ&˜J–aVcõשY©¨Ž-*ÿ¨tõ)W½ŒÆßÑÓÝ `Ž*½í»êPvÕ1l„ôëSkŒ‘ ç2>0G• k\¨7‚K¨*ÒÍ™3—æÎeÍ£yóæÑÖ­[ËkŽ|”£—ë"ÓteÛŒt›#oF }júÀ†ÙÉ@AT êT”9âx Ѽyóiþ|OlŽ8²+Q[NsõX[†ñÐŒF„¡a#ã¥ãmŸlê3ûó£vºªžq2ˤ“‹A9sT|lnn† ‚ ¨FsTDs¤LQhŽž*Ð1ž±PÎÖ3¼N›‰‘fCm£­çG‚õš1¶ŠÂqä•®¶ÞõB††o¦‰›%Ș£Âà¶éºpBAÔ1Å}G "Í‘½G*ܘ£Âèæh,Uwu†utgßÇž¥nÕÑYcÝÛDêÆ~tt>ñ*IûPP½”I\æÔÊšäØÊm´6ÉËG÷£õmrPPçgu†CyÈ8FE¼~&i/¹*"Íqnæy®ÜØïèœÏÞ¾#s”*æì'<öVÀ·}×…³`ù˜wnMýntl“š ìÜÇžå—SHuLú:M•×éÓÞHýŽÎcŸó郣ÍmIH 2Ž‘^\/z˜Y3/–U‡±ûG½Xûsæ)9hJÓT$9¶r³>e}çSGZ…)Ï6ÝÑdÔke™£Z?7ó>WäqLÞ×ò¾v`ŽpsT|t]8 wPa‡&;îgWþ{ò²åÖñä#.ËÑýnt†E«ˆ›’ $½|œ9p‰¨w6GÚ±“Ç2jÀ'T¸Ìü÷+×zá²hÛÇíSš’ù«mÄÈ™ožçuŒ W©Út…Ë8Fż†ä.œ›yž+B¹ÔÌÌèÀÀFsdÞÉÓ.èò†Eì­il<+,㮡S~ç®Í$d”Å3;ŽäPÔ]¾´%ë:§Á`–}·êÓØÿ¸0©Ü’z[ɈuÜåúˆã,Ã"ŽQÆÀÙ+¯—®_/ÛÆ "b÷A*¢^"êÓÕv8½œý¤±³ê…yŒ²Ä ó×¹nÛEæ—¥^¬x®ó6¯s(ã{ⲜÕOÏSË/î8hë=©¶eµ™F¸_öãà—åh‘žœÝû×ϯیz~, ¿¶úûä·¬\Ú‹ž¦¬ëˆzˆMSªzÏM]‘犌âê'*̧Ӏ9ÀÌQaðÒuáT’QÄ€&é…Ø¾ÐGÇãNE “ÖñGÊ‹ä!;+ž«SáôÅÀdlL'æ‰ÓOx'Ïê0•d¾qaZÞ .É~³¬}—yøeÕÿÎ%,H;wsäÉ/ê¸Ëýu €pÞG{ÇÀ™ó6z=›û&Ûµž‘ܾ»Â8?ý˜…m&,S¸}xNÄ¿˜43âe´y}[]öz-¼Û„W–`Œçh¿QëãÄû¥öQ“<~Ú1 Û–¶?RöþFW+žUÖøü⎃[á9îÅçöÁëâÌJ²,Ž:Qa™ûÆòòq#kŒã–D¹] TXmž›š¬öH¦_wIÚ‹ÓéÀàæ¨0øéºpzŠ¿ˆƒVÕ ¸ä,DÆãmõŽ0ªƒÈÕQ%'·Ó;÷þ†¥¹¾¨’õ–¥•²ö]¸Ê­%qaẸAHœÜñ¢Ž»\Ÿ1ÊT_mk·¡ppàja}fî«­`~[’å äåç°„õ}üâÒÌÞæítCéåÑÛþ·¾­YŽ}O|Þr™’´io+ö×*Räñ‹­3VÔq¯Ïèö’í8¸e¯|¼.ûÀ6¾eº®z‹=FÖ>u–Dîí#Ë)]×Jqep„Å´ ý\P2MľǶ3+^F›°Óu‰·‰>Îqòê6{\.sGæ0G…ÁH×…ÓS ´È‹ÎÁê輋tL'`ÇK<Ȳ•­3Šoç\gv¬9tRr{½ÃôÝ¡fvòYëÍÝцxØÉ‡Û«ý‹ ×Å Bâ”%žë¸ç´¿~Úv{1òuÕKxS€e”%TT];MœžvLšÙÛ¼®¦ Ý›u’w›°Ë™Q%.Sç’«L¬Èã[g¬¨ã_ŸÑí%Ûqp+ܯ°Nx]¡æ(׃}ŽE#kŒ:Š K¢,ÛÛåªés3o“۹ Ëî×ÅõÞ€9ÀÌQaðÒuáôäu®ÁI†¬@v:Y;!=žü[u~Þv~gjvŒÙ:#!g<«#5ò÷ÄM¢ýOI2¿ØÁ-kßå~ºêÓZŽ Si¹‰” žÌO•;×væ—ӠȺ ÒŒo¼mü~Åíƒ+Œó‹Ø>¶®cŽ_\šYöÏ ·§—_„q2ÌQåTrì»±,²èÛ9ÖÇÉ:ÆJÑÇ/®ÎFz9™#oF æ¨ôÀÔiŽfΜihóæÍÔ»wog¢¶™#¹ÿ{64^xsõX†™^ücuA:YL(0GµGE™£#<’öïßOÓ§O7´iÓ&:û쳉Úr›#a;´Ççi<¬Çêø7BÁºÐ”dÄuâ_n‘ž¾ÞõB††o¦‰›%(陣vjišA3fhjn3·ikÚZ¨]KA iަNjhãÆÔ«W/g¢¶¢Ì¹¶9jns…í£ö–¦¢"] iŽ&OžlhÆ bŽÌÙ!Oxì­#RsÔFÍ3š¨¥Ý–ž@2*ÊqÄr07iÒ$ClŽÎ:ë,g¢¶ŠkŽ@­¶9 «ÓÌP{ 55µPÏùáM-íVüÂ’Q‘æhâĉ¡&L ¶¶6êÙ³§3Q[0G Ò3G¦äct3š©—Ù†¨83I iŽ&C$5~<zòÉ'éÌ3Ït&j æ¤A±Ì‘gˆ|äÏé¿7jkŽþ}R¾ɨXsĦhü 7Ð ãÆÑúõëaŽ@I)–9bó¾€Áú=’nœ´8… $£"Í£„17n,;F˜£uÔ£Gg¢¶`Ž@¤gެßÙo¦ó­Sáiϱ@2*ÒIc4V£1£iôõ×ÓºµkéŒÓOw&j æ¤Azæ¨üɨ(støá‡Ó>Q6FcF³1E£®»–Ö¬YC§wïîLÔVu˜#ïc¯ú‡_½¿A¥sP{Tœ9â°1º~Ô(ºîÚkiä5#hõêÕtZ}½3Q[0G `ŽjÊ2G‡yæÈ3F#iäˆtõUWÒª'ž únÝœ‰Ú‚9isP{T”9:ì°ÃhïÞ½tíÈ‘t͈«éª+‡Óð†+艕+©Û©§:µi޶7R}]Õùjhõ×+sÒ†×ëNÅˆ× ¶fü8 AzFZ:õ™æ(*P`ŽjŠ2G‡z(íÙ³‡F\}]9|85\1Œ† B+–/§®]»:µå6Gl@4C$ŠnN„)©o$¹˜¦þæÅ߸øqT‚b}hœ\˜ùoo¬Û'É” ˜#€Ú£²ÌÑ!ž9ÞÐ@W JC‡ ¦ÁÒòå˨K—.ÎDm9Í‘4¦yimPfÅ2@‚ L›í $ì8™ip:ÊüHôícòeæ(%Zo¦éuÑ-îrlk¸H†K5lõ×&£(ç‰ãZá†ÏÛ$ÛåHƵ¥¤¢ÌÑ!‡B»wï¦aC‡ÐÁƒhÐÀ4 ?Z¶t)uîÔÙ™¨­ÂÍÑvj¬×Í‘kdÇÉ489™#-P6Ò3GÖwŽXÍm^X[³¹ÞWÚß:*+1æèÝÆq"l­‹:ob³¯Å8IÊmŽ|m*ʾ +eŽ>ø`Úµk 4èOúõ£~—]FK[[©S§NÎDm9Í‘Èh†ÃyaÁï|âÂlCc/Û˜ù»«sçÊEÚæ(™ái£æMÔÒî Ë_•Š7kt3mó—SÌs¤ÌQöë ŠEEš£ýûSÿ~—ÓåÂ]vÉ%ÔÊæè”Sœ‰Úr›#ô¨Çã2MC/ܸikÄ’öà%Á`Fþ.ÉKÃõB†ÈüAY(‡9joi g•RTyØGëêÃGæ\3Gùš#žY±oXð ï¼çP}#5òìKÒsÉ>ÇuÓc……éñy+¶3ÎkU&?Ì_òÒЖµ8™q=Š63€X*ÊtÐA´kçN꧌ѥ—Ð¥_, nŽ"I`l@Í‘¶9 ›‹š*ά«¬l_B·XæÈ{œ.4Nž’>^ç>_½ÙX6 î™ Ï0eKÔÛ>ð!†‘±LŽ\Öojc£"ÊxzX”9ÒÓàEa”\¿1² JBÅ™£ÂyÆèRºôß=^-æÈ0§IÏ™’³C3š©Íµ¾³F¬²â0GŠüfŽ,ãáδ„çs"sd›ݔȿíó9¿´Âò1Göv( jŽ.5ÍQÕE‚AȤXæh_{ 5Ù3D®u)ª¬T³9Š4.Œ]Ž¤æˆ“u™-\—€rP±3GÊ ñ£u…¿€Ü(–9jkžA3šZ¨Ý^W¤Y#VY)Š9Ê4 y›#i\TzžÁ1?öõ»%˱‘2âE¤ÉùE. ËP 4TÞ äoŽúÉßõ»Ü“|•wç^å @ޤgެßYƨسF¬ò°•¿' µHí§ýB†¼Ì‘@ÆõgrZ-Ó#MŠšå Œgœ‚õ–aÓÓô^¦iα2MP¸?(%•gŽví¢ø(µ|ùrêÚµ«3Q[0G Ò3GåW‡£šgUŒ&L³§Ï< ”T”9R:tˆÐP©aB+W®¤n§vs&j æ¤ÌQeSµ3+æÈ›ÒwEÎ,aÖ( eŽ=ôPÚ³g]9|8]yå•V­ZE§ÕŸæLÔÌH˜£Ê‡MDva?þ¦«³3ê7H¡ŒY#6O0F@Ù¨(stØa‡ÑÞ½{iä5×ÐÈ‘#­Y³†N?ýtg¢¶r3Gåz|EÏÐT"0GµGE™£Ã?\æú믗Í=šÖ­[G=zôp&j æ¤Ì@íQQæèß7NêÖ 7ГO>Igžy¦3Q[0G `ŽjÊ2GG!s'N4ÔÖÖFgu–3Q[ÑæÈ|Öß{¬ß2&Ök{ÃGÿ]qyµ¾}–·giÛz¯öµÌQ«§Tn`ŽÒ#xu5~K€ §¢ÌÑ‘GIû÷ï§)S¦Ú°aõêÕË™¨-·9òÌM¦é°gplãã‡9$m+±M´©1Óö¾bæ|?EÏ”ôÌ‘õ#–þÁ×¶æè°”TVd{®Ò×n æ¨Hs4}útC›6m¢³Ï>Û™¨-§9Š iDZMð6,f™+7k”åÎ8ok|_7V–É${ (&i›£æ6WX5Ïh¦6c9ý–¾±`´}€Ê¥¢ÌÑQGE ™3gÚ¼y3õîÝÛ™¨­¢˜#õÕûÐ0%¼#ž“9òf¹`ŽÊKiÌ‘ÖÔÒî-ó,RS µglW˜Ê ̪ˆŠ4G³gÏ6´eËêÓ§3Q[NsäŽÜ«Ë4?l¼t¼í£¥Ó1Óv=V¤“‹éE#ms>:—93ÔÖ\¼GêXeßí@QQæˆÿá…¹sçbsÔ·o_g¢¶ÜæˆñLˆzίñ:mÖFµ¶žxÁz͸Û Å µ4\/dhhðf¥XK–ŸôÌ‘©ö–&a„Ô£t¾qòM‘4IfæÈ?ßИPET¤9š7ož¡­[·¦`ŽHN±ÌѾöjR³Gòoû7GQàå¯r"gIaP%T¤9š?¾!6GÙ•¨­òš#svÊ‘«FŠeŽŒÙ!Ý(¹–SRYÁoŽPEÀà =sdýæÈzlÎ{Ì. O{ÖˆUV`ŽPEÀà =sT~•˜#TiŽì 8Ì(%0G)·/ Š€9ÀÌQz¨ïƒáÅ ¨t`ŽpsP{à7G8€9¨=JmŽØçØÞ'ÓÍ›gHš£šúΑõqZƒ¸00GµGIÍ‘ð7ÒYÞ'4GG%Ðܹs mÙ²…úöíãLÔVáæ¨˜æ#iÚ0G忍Æ/ލ£tµëÃožÕ;NÚÖ3Ï]âòõý:¢5âï‰âÿŸUè½.—±£RÒýÍâg"?>îwª&"ÚÄ÷ëE{ð£¸Sl31åŸòcß³–Ó¯ƒ´÷¥£ÃõÊí†e\+"êsMC¸}%×u¾íºZ®Ÿ ò)¥9b³UøœyÂïèb?ô­oEuG stàÀš=k†¡-›7QŸ>½‰Ú‚9iž9²¾sÄjn ÃÛšµ°fj3â¦#€¼Ì‘g~"ãdy¹|Q…Y,ªÎvç®nXÁ`Zü¯ØRb;‰Ÿž.}àË=,逤£˜£¨AX)÷©,+ÿ¸%Î_‹“+Qm©ûsTøØ‹zuè,õ™¯ù(¼où´kŽç·_×õ€¤”Ò±¿aŸ3Gø]ì‡ØÕuät`ÿ>š1m’¡M7Pï³Ïr&jËmŽÌ;¸ÁxÄyëùuÃl<Âí¼‹mFôeÿïÖ0×ÝaWÚbmCæºøt­òdìƒ\éÞ_˜´Í‘óã®í-Ô¤"6JÖGbÓ(ñæÈi~Q¯8+Ô€ÇÀð²sÀ ®< Œ’Ž–£ßYeŒ0o«/Çs”¶9 –Âûà<ö1D¶%AYÌÈy.GÃlTÃñȧ]Ç]?È…Rš£Þg÷¢ÍÂçÌœ6ÙÐýûé¨#¤º#8œöï{ƒ¦LchCÛzêÕ³‡3Q[NsÄwp3)–ÉÛxÄZ»Ì ¢î˾­–NÒtíí´ôÔ>8÷äBIÌ›!}i_5Ïh¢–vm›Tð¹Ð@êµáBú ùøZ£ëF‚澑fðzrCÞ¹è3ç©—/+bS6@ÎA«–Ä1:§™ùH]8sÔÞÒd†§¤Ú€Ï ¿ý3Æ ïüÑqËxû r"=sdÊ3@¶!òŒSSK fŽò†Ï‹hãÓ‚q»Všç[üùoŽ¢Ï[Ù´Š “$2±ãñ@G7GÁÀB\SŒÁa ö Ålqž\MjÛ |ö ÎÏÛŽW̲0QHW½èñŠ:.rð'¤ŽQdièÇTµÙÚRä¾g9F/êxq=gÛ‡¬v½,#?>Î1û¤UŸr½µN7qe‰3‘õâ§¡×%+I›g\åÕ‰jÛLFX–²$iƒÅ —v @š”ÒÙýTZ¿f»fˆ¡7öî¦Ã;„ê;ä Ú»{'];ìRCkV¶ÒéÝ:9µgްx3*<@qÍ®hæCb €äÝcÝÄhid1+isZ‘ÎE¥«§amç Ü_ Å2GÞïŒ" ý¤”Tð¹m\ªÝñÆ<8I:à„üpØøÛ©¥’+ý 8®(ËÑ}ÉÁ ¿lÔ‡]g:Ží#÷ÁO'jbãÙeÒ0êÚBÕ3oU®cwxà¬×s’vkà׃ªÏ’›#Î?¦>³‘ª9JZÞN«³¢Ãõl•+î8¥4GgÔw¢µO,¥Q —b?ľ¨îЃ¿A{v½NW¼ÀÐêåÑi]Or&jËiŽŒG×ìÁŽZ>>#ÁÑ–ø –9©§†o††5PR˜i{ƒ+¹\/ÒµfŽÜézaßqíCÔþ‚Ä˵5ψxé‚÷ø]SK»µ¾pÕ–áç@¸\sä¥uó!ÞiçpBx@“hP"Ò僉ìõAPªÁD¾ #ç¡–õ¼v~V~œfÔ`.ŽBÊÂëì;ÓL©`|l¹œ<à4GLLYìzÜ>ĵ¥¸xqÇ(.Í`0î§çJ#ØF#²,ü·«~rÅNSük™Ë¢þ–ûªâ ìº×ÉV×Qñ²‘ª9$.‹_/ÁqaD<®gü|Ã|ri×YñÇFñ}¥5G§ ³fE |¡¡½»vÐaS˜£ƒ¾N{vn§á—ýÈÐK¡úNÇ;µå4GE#¿A¨|Ò3GÖoŽ cd†9_Ú‚j>µ›ÖymŽ´š¼m³›#óæ„™g´9òʓό. x0¡$k" }+LØaÖ€Ò™^ââ)Ââ¾>˜QƒJ%cP$ÒàNn•5Š|Ë"±òTqíümÀr„Ë4­<ªnbëL‡µVgÙö!ªÞbãi哲ޑ]VÏŒs9E˜Úg;KmWýØ*ÛÆ[Ÿ~Ù”ô¶ò Z?î†ÉŠôÚµ76ƒ7Ù(¥9âÉŸUK¦+/û!ž,:ô Í ýyC+ˆN=åXg¢¶*Ãjæ¨Ú¨2s$ˆ›YÉ9ªAæˆÛAMCòz+Œ~ƒ ’PZst,=Ѻ„†_Ò×О¯ sôµÐ ¹èlC+N=ùg¢¶JkŽ@Gæ¨Ú¨>sÄdÿ-ÈÌQmb?ê…Y#@Z”ÔÂæè!j¸¸!öCì‹Bsô3aŠ4­h9¥¥£™£·>þ¿AAPŒ˜Òš£c|sÔŲ̂8ªÉñ£®õJŒëAA…b`ŽpPmæ(Î 1® AAŠ9ÀAµ™#~x”Ab\¨ŠõÜMÔ©®î‘ËSÿào¨¸J^×÷ ®£þ‹µu|̺ÜD›µm…AA%sd÷ö¹r½™.ß|ËUÞŽAêæ¨­Ùý­£öjRëg4QK»'Fj¶HI¥í2HŒëU±*Ú½F³ºXÆ@ŠËi¶ÛÌmÒT!ùÅíCöºÞ¼ žê?ž±ž “k}¶0‚ ¨4b`Ž `Ž€G𿍽¥Éúø«R5 C|üU¥fjËØ.S<Ð Ì–%Ó·e\¨ŠUµæH+çbþZ}1Ëmå'묞f=§o¥Ì‘qllqü¨2Ä…AA¥sds<Ò3Gl€"f„x6I3MÒD s˜¥Å™#–n×Ê_<3ÐiÁMb0[Gu]n¢Y|×_ütfBÎp\){†uZðZÏ ãùvi6ìx^Ø,žÉÈË"-½Œ¸VYÔ~Ëm½'5à·Œ§¯=JfÖ‰U—9ÔKÏÊÏ2Åaî°—O& ø{aAš2LÌG…ʼnãiÛF†ÃtÓam›ø±º˜rû—­^¢Êb…Iƒ‘§•_Ö}Põ)ÓŒ« ‡2òJsAT158s¤›þ;4 ž9Iæ€í:¬uá½´=£$dǘ¹¬>him+Í»Œ™aþß®²XR5G¨„†'œIRæH#Í$¥aŽ8\m˸.Pþ ïð‡ƒádæ(~ðì™.mð­d˜!cm™c`'«œzþ2o67ºô}Š3ZYd:VFšá¶‘õ[ÎϵÞWL~¹íƒÏ®o—¬ºMA[Lí˜#߀¨NRš6ÊtH4CæÂŸÁ1fudÍäéÙiÅ-Ûab2Y2O•¾‡iÀüxβ8R5GÖïØÉGçü—4„f¨Zš ¬ŽÃôm×Ê_Å2GÔÀ]Ÿ¡(©9²;ÓÊl—%C …ÜN¥kÕK†éð•­^ ÙùÙaqùÁAÕ¢˜Ú0G†‰àGÌ4Ó–9òQÆ©‰^fS¢þ÷°ÓŠ[¶Ã´Çõ’š#»l šÔÌ‘mxäL’ú ’õ{$i–’¿AW”1b1® ”¿ò7GÞ ;cÄ%}à-ÿVƒf?`n È¥H¦¯³Œçk:â –ûw7VY"÷O3«œJz¼Ø²XùéJ_Îû„g17q„ùÇ({û‚ ‚ Sæˆg”Ñ‘†B7¦‘ f•bÃâ1Œ4Y Ô  ™Ä6.qË^9ŒôDçéË,cfXfyM“¢HÏ ùÖ)cÌ aÉ_å­K™#—1b1® ”¿ò7G,en”Ô`Ø^oúežÁz}ÎëñôÁy\˜'•®m0Ì™#–6h—ƒx-Ì6RF¸Ê3¾,z~ÞË.’ÕKtYô:ÊTt~¾"÷Á®3žÛT… ÛNaª,IL5A”·˜y¬N{!mT´Çí2^ºfc<¶—9›cþæ'Î 1ú²÷wCC802’’†Hå‘FLÙ€›TÍQ‘¥Ž­+ŒÅ¸.P-(Þ DÊ1ÔmÐùr¦P|<2 jö0Ï ¢þ!‚Š+¦_ÈPzÂGÝ@µPmæÈµ^‰q] ZPZæˆÓ‰z| ²5$g«"f¢ÂÔÌŒAPñÅT°9ꨲÌÏȨY¥˜ÙùXþÛ%P T“9Ê&Æu€Š!ÏD˜×¥¨Yb*Osäx” ƒóÜÄfÇ0“l8£‹‹ ƒ ‚J&¦<æ¨!Í}U,¼j£Ê3GIQòéºj¡£™#˜#ÀÔ¥5GÇzæèçÂiŠ4Gƒ}ÁRsP{”Ü=cŽæh—0GÊI]虣®0G „ÀŽú®–ù¦F€Ê¥”樛oŽ®†HW´9Æ(0G'ÁÒ‘º9’xõ¿gÔÔBíA˜÷‘،泌òb¿¦ r©Lsä›"˜#P.Ò4Gí-M–!Rj£fùáWÏ uLs„WÙ z€92ˆ»Ë])wÀq'¾¤gŽ”r…)ÁT0GÅÁ@Jj樽…ššZ¨güÇêšZÚ­í:¾9ªGc@sdsÓÆIýïa§³œ­Œ®ý²Ó‹ÜD‘ª9*³Ê ̪…Ê2GßæèuaŽ~*L‘¦åhŽxÖD itõÈZ\X<†’æ¦ Cb™—Øå˜rÄî—–^äv ˜£´°Û6@åRæHΖø”ÙFE{Ü,㥠qa6Ú¶áï…<øÎ¹ù{¤83Ä8̳Ñû%óäõ2ߘýN`Ž Ç3òª T>iŽ^Ð3ÔO{¦`ŽÊ +ª>`ŽjÊ7GBlŽºTŒ9âY&9Sd «Ó3ª˜#€Ú£"ÍÑ€ó{†ª8s”õ(a«F`ŽjÊ7GBÒX½Õêæ ö¨HsÔ_"]Ë`Ž@‰Iݵ5‡ß2jj¡vµÞø’ýqØt’Q™æè'ÂiZö(Ì(-iš£ö–&Ój§–¦fjó—£·+L UcŽ:Ã’ž9j£æ¤3Brv)4Ki $£bÍQ?M0G Ô¤fŽø±¹¦jãY!ÿñ¹¦–vç¶r樹ÍVˆ@2*Ê$ÌÑNaŽtc”š9RRå×jóëµ z‹œö‘Ö‚Ó•HªæÈ0D3IEš5b€dÔˆ9ò¾M”Þ‡X5s:$©š#ëwDmÍ3¨¹-\–3FE2F,ŒÊ7Gçùæè„BÍQšf樣“š9’/]ÐÌœI gŽŠmŒX •iŽ„!b]îkiAæÈ›5’Ô ÕKG£›ÿïFÿ±»`Ö†0n]0õäˆ/þÞÞXn«o/½SëD Pé¤gŽ„Œ×uÛF)\Ÿž’@2JjŽNöÍÑEÂiÊ0GÊ¥cŽÝÌ0¶¹ÑŒŒüm’ËÀ¸ ‘ù·‚ש4¬p‘¾n¾@e’ª9*³@2`ŽbÃx1œQªsƱãsí÷MƬ‘¯ô~üŠÌ@ís&šÚNõ®8V|6Sºù1ÒÕÌ@ísÆF‡_ýÍ«WvGÅç¿m#ÄëÌß1Êæ ö€9Š ãÙ"ÿQ¸újÈ2sd¼¼AÆÑ•¶ÕU<0GµGEš£Ë„!ÒÅæ¨SAæ€Ü€9¨=`ŽpsJ‚ñ›Dž…ÆïÓG{@ÈxÄÙŸÕ·'óõ§*j¢?æ7¬Æ‹€ÞV=½ 1jŽÎ4䙣ÿr&j æ¤Aêæ¨­9ü–QS µûëÛšõo…‡MS ‚©hs䙊ª Xÿí¨M„9ò¨Àý0Gò{Ž‚J“WõJ ÌÒ4Gí-M†!ŠRÒír¨``ŽŠN”qÈN•˜£Ãä¡ÿ>@JmŽVÂj =sÔFÍ g„¤9jns†¢r!óiôîÌ{(i8ÿ޽óÑ%+¬˜ozäs½(£üt}#5úS%›/a‰Þ?×£\™ñ|s¤}[-Œç…5ò@?#, 9”Eí·4ÚzOúKhì}5÷!írƶ%ë8¸÷!Œ§ÇqïÜÍQ¾mÞ,¿•§ϵïquiýv–Ëþ@-s€ƒÔÌQ{ 55µPÿñ¹¦–vm6OþcuE˜5b• 9àÓg’G9³×r9¼»n—HOÙÒñÐ\.ƒ7Èô Sö½Ü¿ˆ ¢÷ÁË'Ë0Zš2L7$QañÄ—%ú8ˆL"Ì/ñ>ÄwÜe];Û’Qi$q(?s”O›7pÔgP#Œ‰IG‘ÇæœÀà Usd¢˜™$ù»¤fj³×¨r¡` ä`M " …¼àŽ FmáÀ9d&3GñƒÒÈ}°ÿ’1Ö±úà<.,žÈ²d9ÑyXeI¼ñÄ÷ȶ$ó‹7á1vW¾äeWäÛæ•Q å×al{aìúv‘½Ž„Àà UsdÍñKšÛ´m%/•‹È¢=à‹B “ŒNƒÏìÛpà y]¡æ(ÀÞ‡ØÁ®=ÐÕçqa ÉV– ¢ò°Ê’’9 p÷ª7G±umíƒ^Ÿ±í…±ëÛEö:s€ƒÔÌѾvjiÒÌœIŠ™9ê@/dˆÐ&tf Ó%sä œ£Ýú>È¿Õ@ÕO#Ø?k +MB’0ßTÄɨÏìÇaf]„u•Û>ä€uÜ£ÛRöãPæHÖKD˜Ñ&¼4‚:‹m/Œ~,"°ê2Ào/I!€Zæé™#!ÿÑ:õ›£pÖHû½«þæ(zLÊ6èù `¨\§¹’¿9b첪hü>È<ƒõº™ðÐa<}Ðæ¡Ò5ë+K}F#<ÌSßï…Iö!Žørƶ¥ÈãàcÌüXÞfqañä׿½xj½YŸ~ùý0³½xpܸöêÞ*O’€æ©š£2 t2Å•Iµ”³!MNTóñˆ2¨ž Ä̘ÀàæT0G š¨Ù!9#åX¯f£`Œ “r˜£a0G Ò9ªux>êd*é£biRíæ¨Òê3*{2éãßá‘9Ș#ÀÔå2Gº`Ž@ÅsP{Ààæ ö€9ÀÌQJ´ÞLÓë.¢[ÝåØÖp‘ —jØê¯MFìk“K…|SX…ýfÆx{YµüV©àãù!X•ÌR7Güטïµ·4Yß@JOe%ƽÛ8N„£uyŒ#¿ÝRj`ŽjY¿áËÂfhÕµ¿ÞL£ÞWöѺúÜo:@­s€ƒ4Í‘4>qxeãÔÔLÍMÐÅàÍÝLÛüåăÿrSæ樈p}j†GÖµ2Çz][ÛðúR™i˜#Ș#¤gŽÚ¨yFµ´»ÂX*¼Z:”9òfþ#s®™£|Íß}w}ŸE>fרßÕ×LAäÝ~–Û·_Ò7rv!(Oô>å´ÂÂx~ùøµÎñ¼°Fÿ›7f˜]ŽÌ¤uWÎÄi2þ>dADXÚmÂ5cÉyxáa[×e’Û¬§wñùãÍ´ZçÌö%t‹Žéç™ñ¸j –Öœ“þìî"Y¤˜üüx‹¼í¥¯´C@\›€<©,sôu‡9ú±0GÀÒ’š9jo¡¦¦jó›c5µ´ámÍj¹£™#{ &]º’>^}ç`uÚo:ä€Lšlc¦n—vÚk@§”$¹F—“Ë …ÉüU™¼° M¦ÏtD…YiúåtÖµù·‰]W¼l‡¨4%yš£4Û¯·è¡ÙñÓä²8 écÕe<¾Y†dŸCÆù´• “ÃDÌ%1G®üü¿•YÊ屨´CÌ Tž9Ú.Ì‘0Dº`Ž@©IÕ†H›IâÇéšÛüõµcŽùÍÙƒ©È”ŒŠÁ™¡p&·¼.¯VtyrÇÚD–“ˆÚÀÓ|ÛåÛNõQS=LàãCÖ4ý²s›ˆ°ÔÛ„U/æ²^Ÿ1éu’ìfÅ&ñãÖ/¡wý5ãœô· LN‰ÍQ\=Ù¸êÍ?îñ3umŽ.õÕ sJLzæHÈ´NÍ ¹ PG3GÞï!xð¤KHå… Qƒ,9°â¾¯ànµ2¡ Ôö`¹`ìò¨Á`|9ƒÇäúÌAzO/k\˜WŸ*¬¾±QK3®®³ÔgäqÈrü˜TÍ‘ ß6áçåÉ®Omðî§o·U×ìS41f…Q)õ ßÀØaú 5zi”Ç 97UÜÄõ Ùq™#6=Ÿ}öY¤>ùä“â›#eŒ`Ž@9HÕ•Y9 ²î ƒ<°ó p§i¦kÏ@aæ&.sÄèÄO¤£>Zê{ßûuïÞèÆo”áE5Gº1ºôÇ=`Ž@É9ªlr»ûÜÀ•9‡v› j¶Æ6q3G]t 8&NœH .¤5kÖ”fæ(Ó-‚9%æ¨òÉúÈÌQIáÇñÐ` â‰úÍ‘2HãÆ£û￟ž~úéÀñ±Dæ¨Ì( 0Gµ‡2Go½õ}ðÁÆ8¢Å‹ƈUdsä™"˜#P.`ŽjeŽÞ}÷]9cĦG×§Ÿ~JŸþ¹ü__ÏÆˆÍÌèÀÔÊñ¬‘2=IÄÆætX`ŽjeŽxÜe‚Ôÿ.ÁIêæ¨­9øÎÑŒ¦j—ë½oëYÍm™q H†2GQˆ§Sÿ»s:$iš£ö–&Íé*Þ‡_u€d(sä2>Is:$陣6jžÑD-í®0˜#€JB™#69ù æt8âÌŸ4AAPÇ“kü—‹âÆ‘¶`Ž@ÕgŽvîÜ™—vìØhÏž=ôä“Oʯ+ÿö·¿•ºå–[ E­‡ bKµ=]ÜV¹ÍrÛ… ‚ jÑÞ½{s’kü—‹âÆ‘¶`Ž@ÕgŽ\'R®Ú¿¿lòcoü|ªýc?ª4q»å6Ëm‚ ‚ªEÈà•{ÿý÷åøŽ_¾ ~/dýrUÜ8Ò–gŽ„9•Oœ9zóÍ7ó’~RòÉwë­·ú_WöÌÑÇ›ú裥ìõTl©¶Çúë_?’ßzøàƒéöÛož§† ‚ J¸5Jï½÷^ 6EÜ·ñØN½•æ€âÌÑÛo¿!>™Ôßê£aü¿¾.>)o»í6q"²9âÁèGÎü ìâÁ<×#+îoW\(»Ø½ów&ïÓïÿ{Ùv!‚ ¨ZÄã153Äÿóò‡~(û8õ‘×r™£SÙµ°9:Ų̂8ò5GÊ]tÑEò{;%>YÙñ¬‘wgþC9ø„rŸÓêë©áŠ+œÏš9SþíŠ e£7ßòÚ8ÌATmⱟO<10HgŽ~&L‘&˽" Ñ0G ¬äcŽ”1úö·¿MãÇOhŽ>¡>ü«?}ÊCüè×Ð!CèOwÝåüûá%Käß®¸Pv½õö;´ÿÀ›âo˜#‚ ¨ú¤ÌÑÑG-o^+ƒÄãºJ4GCMsôÍ…‚9¥&Ws¤ŒÑ¿ýۿѹçžKwÞy§\vmËâ“•ÍÏh¼ÿþÞ ô­·¡<ÄÇe‚0£<òˆóïÕ«WË¿]q¡ì: ŒÑ¾}ûe»…9‚ ‚ªMº98p 7ÎÿÍ·÷³†J0GlˆtÁŠ#WsÄ'ÖqÇG;w¦‰'ÒC=”Ƚýö;´{÷zíµ×iÛ¶W <Äweˆ\³9â¿]q¡ìjoßFÏ=ÿ"½úÚk0GAPÕI™£ï}ï{rŒvÿý÷ÓâÅ‹¥A‚9 !¹š#5stùå—Ó7ÞHK—.MdŽøÎüŽ»èå—_¥_| ÊC{ö¼"×ßlŽøoW\(»žþ/ôôÓÏÊ6 sAU›”9êÞ½»ü$ÅÓO?™#r%WsÄ'“2HóæÍ£5kÖ$2Go¾ù–œ5úË_¶Ñ³Ï¾å¡;wÓÍ´jÕ*çß›6m’»âBÙõÔÓÏÑæÍOѶm/ÃAAU'eŽäøŒÿfCÄã:˜#’9âÿ•AjmmMdŽø÷/¿ü=÷Ü‹´uë3Pzýõò¥ [·nuþý /È¿]q¡ìbcÔÖ¶I>^sAU›”9â'{”1ª´·ÕÁŠ'_sÄR‰ÿ×·ÑÅ'+›£½oì“wç7lØ" PîbcùÊ+Û¥âþvÅ…²kýú´fÍ“ôâ_ÚaŽ ‚ ªÇØ)cÄË0GäH!æ(‰ødesÄ3k×¶ÑêÕëè‰Uk!¨²ôÄZZ¹r ­X±š^xáE˜#‚ ¨êÄfÈVŘ£“Ž¡Â ùY/˜#PÙÄ™£÷Þ{//½ûî»ø¤\´hmÝú”üÁû3Ïr#m±9ZþØbüSaŽX¾IÚ½ãUe޾ê™#aˆtåbŽ ‚ ‚ ‚*]Ê ƈ¥LÒ®×_¥ƒ¿ùUeŽ^†¨‡!˜#‚ ‚ ‚:’stÁYBžAbIsô ˜#‚ ‚ ‚jD]|s4P˜#–4HB0GAAÕ”ºœhš#%˜#‚ ‚ ‚jJÊ 8ÿ,©,˜#‚ ‚ ‚jM¶9R‚9‚ ‚ ‚ ¨¦š£ž0GAAÕ®Ø- ÌQh`Ž ‚ ‚ ª)ÁAAA )sÔ_"]0GAAÕ”`Ž ‚ ‚ ‚„`Ž ‚ ‚ ‚„`Ž ‚ ‚ ‚„ŠfŽæw©£º:¡.óéY^·h¹h âõš-ÒË%?ßA‹a¥gçweéBóŸÍ Ë]œW‚´žO]RË3Byå‘°ü±Ê3 »ÝD¶£dÔA\¹ÒØï(3í¤*^äùœ[ÏÒüA¯¬ŠÚ^¯®+ƒh‘X·hPu™ÿ¬µ¯Jh«ATqæHïP½AŠÛô³ãKÛ ëÒ%nP•­\IË^Ì},D¥,>ip½ÝØËi(®\iìw”Š™vR© l>}óꙤùÒÍ/š1‰ØE"O]hŠ„Qsžóµ |w%´U‚ *:û樟0D¬"š£¨Îµ˜oö| ɰñìÄ A Ê•´ìÅÜÇBTÊò瓆§õ—f1òS*fÚIUœ2°!2Î)¶¯x3ÂÙ÷Ã(“<¿Ý3Æ[ùïJh«ATÙæH)EsÄÿ«G[\wŽ]/ßÝÕ¶åÁŒ'šï«´ÌŽG… Zdæ›9ÒËç=r¦£Ö‡åÊÌ7*}»Z^‹øq.o}f=hÛÉ<]éèÊ ç2†Û™å—wóƒr«ý ãT~ù˜šŠ£Õ¥¶¾Ëüùfytñõ<Ãu]æ7YË®ú˵"¶ ò°Ëì>&î6é¥Ëæ;¨“DõqÜ: ë8qÞ©׈òâp}¿DòÜåõZÛзóçûQ E•-¶m±´ë‡\æ¸eæs,õã*¦¾õº –ý¿Ç".LÈ(‹~Lôr÷¦ÞÚ6Á¾EíG.õ AAHQæh§0G•næHuÎzÍëùoõ¿+žJÓˆd˜³åë…ê`àW_ooW±oj@&ï¤gÙ§lw·]áú:ñ7?2¨ÊÞ9O»üVœoOX¯òñ*#/%s;oPU>{Ù¡‚êÀ,‹Y樺ѕ™V¸}\ÚšôòÒÓõ¶É,G\Þ)Wgùtqõ·’Óï0Gº1‚9‚ ‚ ‚ ¨¤?>·wï^zà2Ö+IsÄß9òM‘ÌAAA5¥ÀiÆ(Ææ‚ ‚ ‚ Ž$ÓeŽ^1Œëþ?ÿž®>D$ª E®8.¹âæ+Wú¹È•f¹ÒrÉB=A”·:;äÚ.©‚tNô¥¯ ôýâH BóRFZŽ2«ý)¹DyR•+RÉUžŽ®ÿ¢k¯B‹î¾Ã7F¡²š£Ù¯“©õáEž ‚ (»K-µõh-J,=Ï¥,Ç6¦\ùÅÉ•FZråWN¹Ê˜M®tŠ)W’È•”D<»)OA®| ¹òvˆ·sÆgYÛÖºØÍ›z}´9úöÿsÝøËtÃ5ƒ=côÃY*”ù{¥8Ù¯ ‡Š'³îã›+~ÍêÇrm+uF¦~œT"~”œyå!WÚQrÅÏ&W:rí{šrå å/W—Z®rå*Wº…È•GœÎ¤Ël§ t†”«|—±œq”\yÆÉ•FZråWN¹Ê˜D®´ÒÓå¾¼eWþI¦¦¥žN]®ÉÎÒ· ô“dÅu•/ØŸ”FöZJ”5»ÎÒä ç}vç™!W4q¸3ËÚ6”(C-IÔ…!«>&ŽBÿý«_ÐwþßèîÌ.ß§ÿç[GÒò–%nCdK üÜŠ€»„y)¤ê9úØ„á®ø5+ç Gȵ­”˜ä#9 ñ£äÌ+O¹Ò·åŠ—D®´œRû\ ¹òƒò—«ŽK-W¹r•+ÝBåÊ'^ÉÌ‘=˜’«L¡.“ùÙq”\ùÆÉ•FZråWN¹Ê˜D®´Š)W²É•NRe S®8b@. I#EVWºJ¥4GôÁ´(ovE›£p¿ù¸$òŒ29*,*ž+ŽÓ”‹ÄÀ$/¹Òª2iƒÀx‰ý-–\劓³|P(G—\®rå#WÚ…Ê•O¼<Ó"vÒ±Ùä*‹©Àe¤+òÊYv)ÊY¾œe)¦åK,WzÅ”« ÙäJ'WÙ¦(Þ¼°‚±­”4RÛhñ\i*ÉmÄÀ¶¼ÒÊ©³|¹Â\if‘ÄgȵK„™†HI…Ž"Q¹Iì¿C¿ÿÍ/è¦_ßHóktÚÉÿIu—ÿ¨;Ýí8úêWþU$žAšxí0·)Rƒº4å¼@K7?žìºÃ\ñ¡\Äí8¹Òª2‰AXr‰}ÎEÎ:sI¤«œåƒ<‰:-»\åÊW®ô •+ŸxÆÅ%çÀVÉU[V>F|÷ 3^v)I–O¤'gyŠ!«lyÉ•n1å*ƒK®¸…*»)²¥oàî0 Ú6®4t™i•[ö¾ØJÑå(·1b “ÐQ$ê2w‰:ð5yÔ09cÄÆèkÂu9îßéÇ=O¡ºažE??§õ:õX9ƒÄØýêóåKJ«W¡’ õ]Ùm:›\iÔ‚\uQ¨\ù@ùËUÇå«l…È•G¡råS€^wÉ•¯-±KÎôÊ(W£äŠA”’Øïð£tãkÔåøïÒ{œD?ëÛ•êF\Ú‡ßC¤³ºKÝN8šúúWʤ¯BP•ËÕ®£äŠ_KrÕI!råQ r••åÚ¶Rä*o¹Òb¹¶M"WZiÈ•W1äÊ;‹¾¡K¤Ár¦­Ë%#Í"(iž®í²É•APJ:ñ¿þ?ª?é?èG=O¦ŸÓ•úŸw:ýÿ– .$€È×IEND®B`‚codequery-0.21.0/doc/screenshot2.png000066400000000000000000000461311310136352400173070ustar00rootroot00000000000000‰PNG  IHDRyÍK¯ñ¼ pHYsÄÄ•+tIMEÝ*;Œ+ IDATxÚìuXTËÇg¶—.i¥»ai;®ÝŠbw‹ ¶¢`+v+v‹J.¶^±•’XØ<¿?ŽîåÒÞŸø~žÝ³sæÌy'¾Óƒóóó? ˜@k´ÐZ­ÐZ@k´@k­ÐZ@k´@k­ÐZ­´@k´ÐZ­´@k´ÐZ­ÐZ@k´@k­ÐZ@k´@k­ÐZà‚#T v€æ­^ïÞ½Û³g•JcýD"Q@@“Éüá>§¥¥]¼xc FþÅ`ŒMLL $‘H~¬Ït:}ëÖ­yyy`äF(´ ,øÙ->>þæÍ›‘U¡=aÂMMÍzÊüüüº]gdd´k×lú³¡R©‘‘‘ýúõûá…r¿~ýZ´haii vþňÅâÀÀ@@PRRòc} …šššk×®åóù`çFÔ‚¡Ñ6oÞѶmÛë3“ÉlÓ¦½½½ع‘pûöm{{ûE‹ý¿íZæíí½xñb°é/ ..ŽF£ýpo ‚À8°oß¾`äߢµ?©ÅŒš7o¹±ý3úÉ~é#Fx{{ƒ‘O»¶¼¼¼^g0^ ?ÐZ­ÐZ@k´@k­ÐÚæ ¹Ò¼™íƒ*}ØßµnûÍ5ú 4ƒhþíÅ]£ÐÚ}QcîßoúòåßA+WaŒ›bæ¬1¨ä†Sg£/,_¹ ¶`­>Ÿ²~ûwïÁM‹œ‡†S9U×–[1Æ;vïY·1 ²@SͤBáÄi3>z\¯KŒñ™sçç-\ôÃãºQhíî½ûž¿xY‡ƒ7oß&%'ÿ²ðTy\m9°úõÌìì#ÇO¶pɲ.={“–ÄM~ÿ¾Q—ÅA|ÎËó9ÚØÒF½¥^zF橳笜x<B(5-íÉ“§¶Nð{+4%¥¥;ví)-+mö½"‘è~lì—ââÿVi«û®ŠŠŠ[·ïˆÅbé•ââ’·nÿ¼4óúÍëØøxòëÅËW,ì¾|ùR›ié?~‚^–×Õ‹Ä&­ÿ×¾àÚå¡÷>˜ÙØÝ¾S›?ÎÍ}ýÃmÕ(´£zj!ë6ìŽÜ[¯?ÇOÖ14neb¦gjnbe«ojÞÊÄL×È$rÿï O•ÇaŒ-1¶´nelÚÊØŒü X¸¸†ŠO¥+­Zµ431&?÷4øQ£ÑªÚjs¦N§ÓiçN¿s튅¹¹z 5ccƒÑÛÿƒåÄÅ»xµÑ75×31³qr:bäͬAˆD¢uÚvêbdiíâÕÆáâüü‚ßj:„kkçÂåËf?–@ãEË»õêóªíï?|2|d½Ç aŒ½;u6³±kiljbmÛé¯kC7Ö['§¦Ž7^,ùGk/^¹<}¶ß±Ãã'O'N›nçìjhnÙ¶s× •«ªœ¹¤ªªbbbü3Î×úõÙÉÝÓÀܲ¥±©¹­}¯~wïÝ÷ó4cì¿p±­“KKcSsK¶íçÌ__PPï㪉 LZ K¥fÏ àxx˜Yz´m?ñ’*g~ÈȰMŒU”•qÔü¿ÛÜ“}Œÿç]"êöN§U¾\›³ŽíÛ]>waôáÃÇi³foÝ ¯¯‡¤­­Uõ‰¾mÝNþTÙA•Ç!„X,¦©‰ÉæÐ €¼¢¤¤X=0”o‚˜4~œôWƒ!Ãf7ò\šš–}ꤕ¥ùµµ§gkOÏfÑï²<ùµ´´¤°°ðê…óAž:svòŒ™{wîðpw«•㨴´´S÷žT eòÄ Æ††ï?|ع'²mç.gO324¬;)ÖægwÕøÊשTj¬tM^^~ˆïÈ[W.+++‘af1Y2²2u¿`m+N—•‘­¿¼{ÿaÚäI];w*ãñ²²s6nÿûï¿·nÞTÅ€ÿÊ;*FcÐÒШÔÊçpÔ_Õ/V¾rõúi³ý\9œ•Aª*ª¯rsïÆÜ«r0€›‹Ëù“'8vÛÈ{’KKK§NšØó¯n<^yfvVè¦ðÔ´ô-›6þŸeum·çåç9sœÌãñÊ_¿yñWï>‰÷ïÕq5‰5&­ÿaÓ33‡øŽ464\௥©ùþÇ —/+((””üÓí¤¨ xáÌ©†Dèëÿ·]‹1VÓn)íêÉÌÎVÕÖ-(,DÝí?ÄÇÒÁÉÀܲ}×nû"CO¾Àšõ8îžFVã&O‘vaŒaíÈ10³ìÑ·_Ff–ôA·ïÆèë™øëI?rü¸W»ŽúfæÝûôKMKG©(+ÛÚXÛZ[›™šˆÅbc##[kk[kU•¢¢ S¦[ZÛr\–,ÂcŒ.wpu'ãO šZÛí:TýqäƒaldhiaNþiki‘ן>{Öˆ‘…•kë6g£/`L!_dYðŠžýú“A¥Óé>#G陨é´Ìyø°æO@Àb±ú $ ä…Ë—Õ´[Ö˜ÔnÞ¾Ýé¯îz¦æí»t»~ãfÝ–/-+›6ËÏÜÖÞÚ‘ã¿p‘H$’–hb‰ÄÌÔÔÜÌÌÝÕuÚ99¹D.—Œ¡P8'`¾¹­½¹­Ã ¿9L6~ó)ÊÝ׆âæêÒ§WÏËçÏLœ: jÝ©.|ë6gÖf–ƒ† •›K^ܶsW—½Ìlì Í­ºõê“ÄM–æ´ÜÜ×>#F˜[:¹{nÜ.-,Êx¼©³f›Û9X98- ¦3è¶äå m¼<ûúVžFP¹(©n“‚ÂB=Ssi^رÅÞÅl²Ù,·6ÞºF&ÊšÚe<^ÏÕÒÔ051q°³óõ:lÈà”´t2_Lš6cÔ¸ ¤%1ÆîÞí6oÙJÞ"'/ßÒÈT×Ȥ…®é€J¥ê뙸x¶&¯<~òdÀÐa†VnmÚnݱSú+V¶ëÒÍØÒÆØÒºÿ¡/^¼$_¶¼¼|¶@ïÝî‹ìÞµ«»«Ëàý·…oªbŠ·n«jëJS{|bbÏ~ -¬\Ý>R¥Ä9nB›*ww7¶nd--3SS{»ÆùÏñ»zý:_ (**?y*ÇÃKßÔÂÊÁ‰ŒÐêy9/?_M§Õ­;w¥ [ŽKøÖmu¨Ž‚‚¼‘¡¡µU·.ƒ–,)((|÷þ=BèÐÑ£ú¦Ò¸X´dàÐaµ‰U’A5ãSgÏõè7ÀÂÎÁÀ̲]ç®—®\‘†d”iŽööѧOöéÕ“,ölßV%®ª¶n|B"i«OŸ>4ÙÔÚÖÂÎa朹UâzѲå6NÎ?¤sûô!Ë+ÈK«ŸT UAA´æË¿_å¾~}hoä™ãG}Y·~SÄRäW¬väê…sº:º#Ç—^wqæ$ÇÇÆÇÜ]à?!tüä©•!k͸{ýš£ƒýУJËÊê¨ôèÓc|õBôîm[¯Ý¸¹2d BhEà2%EÅEË1Æ~þ.§‘¾Ãj|BˆB¡TOÓEEE½VSU=qøÐ†ŠŠ i‚d1™2ߪi"¡híêUñ1wSâMŒeß [6…II§Ñää«¿r|bâøÉÓÆŽuÿÖ~}zOœ6ýÅË—uL*éÑ·ÿû÷ïíÛ»kÛÖôÌÌþß2éÔÙ¹  Ûxy}=þÏgxnîë³'ŽÿÎݘIãÆIÓ©sgÏzýæMvNNÝ©nÝÆ°ƒGކmX{óÊ%•þC|Èddf©·hqâð¡‡øŽ[^^NÇëÞ·Ÿ¡Áí«WÖ®Z¹{ヌ“í7xè³gÏwm8¹[QQ‘Òˆ:B`sèBBÌð›S¥¸¬Í&*ÊÊá¡V­]›ŸŸŸûúõÆðˆCû"É{+øü#öÇÇÜÍà&²YuuÕHûcs_¿¾tõª§»;ù•Íf±+5hääd¥.yee÷n]¹›š+­e%'ÅÇÜ=ê$BèÝû÷½ 224ˆ>urñü€»÷¬ ÝHŒ›œbok{úØáÃû÷1™ÌAÃ}Éë'OŸ …Ë—.‘¶Q*ÿÿ§FSPP SxZz†ÏˆQîn®çOžØ²i££ƒCe—‹—?{þüúå Õ „Æ©»²22ãŠòŠ‚ÂÂÛ11 ýç]‰>J¡PjÌËjªªÎNޱqq¤‰Þ¾{W\RòW×®u<…JýšKJJ:¬©¡A6Etº¼¼\åÞA™ÚŠÄ*I«Ž¢ãÉ“'b‘èhÔÓÇ´ñòœî7÷å߯Bwbî-YPw\#ŒÈŽ @еW±H|äÀþ#Qûûöî]ÙáîȽç/\¸u岂¼üïïC®ÇwÕÁÞ!dokK¥RCÖo˜9m*BèðÑcÁKûôꉲ±¶Þ{ Jš2Z{y’ŸW.ãxz½yóVWW!Äd05ÔÕ¥>o Xà?·[—N¡àeKOŸ;wùêµ}ûÔØ¿tö|t·cK8BÈÈÐ`æ´©aá‹æ±=|s—^½ÕÔÔnܼ•{_IU‡zöâ…®¡ é}IiYÁû7 %ò@”‚¼üŽ-á¤Ø}ù’’šZCŠG„ªŠŠ®Žv£Î–©©ªÖHŒñÆÍcG2h BhÚäI.]>}ÁoÆôóyôÅKï߸zá<“Á@EîØÞ¦C§„Ä$Wg„¼¼¼¾©¹„ Br²²“'Œwrt ‚›’’‘™õòqéOàâEÃF!»Böv¶U‚ä`gKÄÓgÏ­,-ëHu;wïÙ»kYèoßl`nŸ˜èæâ‚ÒÐаµ±&ÂÉÑÁÈÒúvLÌ_]ºìÙ·_GG{eà2„¾^+_Ÿ¡ç/\1Ì'>1éÅ‹w®_ÕÑÖFèëWiú4BŽFí÷êÐñÌùè¾½zV¾^›Mzõè~úì¹9 ¾=Š4,§êê-êMÉ eÞ‚E3üæŠ%“idh°vÕŠz{ä$¡­­%íF&Ÿ§¬¬¬ümhmó–­Æ††kV® ÂÊÒ‚Çã-^4wö,Ò[}==[‚ Ö®ZéݱsVv޵•å“gO5ÕÕe¿ñ é¨[Ö±C‡…þó*4‘=[[¶ï¸tùê­«—tFcîI– IjzúÆÍáÆFFŠŠ yùyb±ØÃÝMSCÃÜÌ !T[^îҩ㩳ç/˜º~ó––¦¦‘a]GÓ_¹víÄ©S‚ ÑhJJŠ'j@iSµH¬œ´‚8ábE‡‚‚‚­ Avv—®\½vóÆÄ±cŸ<}Jùj dϾýT*ußîU'•J¹ríúÚÐW¢Ï©©©þ¸¦ý²èoçÝfÅê‡Q¨T±Xâ`g÷¯bþ[_І°MgÏGøøIKSƒÍbñüê^UTT¯^³ty0y7“ÁxûömÁgåäP(Cs+òw •ZÎã‘?™™™N7.rßþÀŋꮼ´ÔÕ¹}ޝ•H$ä³>zdgc#ÍâO¸h–dçädfgGîÛOZžA§¿~ý¦¶b+=3ÓÔĘõ­á¢£­­¬¬œ–‘Af˜²²²Ø»· QÁ¯HËÈ ^µúË—/«‚–geç())ZXáo·D"ùôùó×9Hø¿¤:*•Æ`0ÆLœ,‰ÈÀÑiô·ïÞU 0BHUY¹° |Ó÷>’Á ¢ÑhŠòòd¤3 ]¯ !£F¿DMM-tÍšYsý[{zH§Gv|Ýê•æff¿zå;z\¥_+çdB$¯ Zîåá.½(++[GGŠššÚíkW***¤>HóáÝ{÷ddØGOœ:xP#¡ÓèZššÕÃÜ$º’~ ‰dÒ„ñƒú÷û§kˆÉú^„tØÛÈа´´4xuȪ å„D"ÓÊxeÒTUQQPP JÏÈ´µ¶®¹é™cc#Ã:RAHø|þÈÝÒÌCHIQ¡†6J6µ%á`gº&D(VÎÛcjµÔÛøù«k—+×®›<ÅÃÍí›jµ Æ86.žÁ`?ˆõôð@á¯"Ý òLII‘l£´ÔÕqÜmoíȹ|íz¿Þ½0¦Ô1ÒYyIÑ€ ÿTÕkH¨BÈP_ÿØÉSB¡F£5P ‰ZjÌ6VÖŸò>Ož>óú¥ l6»ÑÊ-AS&NèÖ¥ ›Ín©«SG…£¶¼¬¯§gfbrö|ôø±cbãâW,¬»ÊÂf±454HE´µ±NLâ:zÔÞÎcŠH$jH˜¿+iUoÄ“Qf ¯1~þâ…¡AcGB”šjjhØX[- tt°×ÒÔü!qýtBAA¾öÕ±ÿ1-=‚)æff¦&& ãNMË›Ò3³Úy{·oÛV[KËÔÄXòm“É"‡cÉÚ™Œ »…ªjjZ𦆆ôO®­%ÂÒÜüÕ«WŒ5ÔÕ5544ÔÕµµ4¥=¢| >æîë7o¶íÜUããêÀÖÚ&1‰[¯KŒ1WFÎÐi¢+ ·•¥ER—4#iyÅš‹´‰­õ“§Ï*ø|òÝß¾{WXXX½ÂKšåË—/¤†YYZ‚Ü×¹ÒøÒÒÔ¤R©,&Ó»µ×ö]»¤ 6È"`ÝÆ0k+«:R™©)•JËÌÊ&ì¡®®¥©ÁbÕUK°4·HÏÈPUU‘¾)9¬`gkS^^^y!MÓˆA‚[¿öíÛwgÏG“Wj³ A峿ú¯\8}Êäé~s…B!AL #D¦äïztqI ˜Éd „Z´P#ǪxÂb11BeeeÒÍ×X,VyEù¿²›õý±Ò{cãâ©TZ¥x¯Þ½zb„V­]'&ý_Û;X[YÆÜ»_}*™œœìé£G””” õ©þk£Šhõ-LMŒI¡­ÞhC ÈË>CŸÃââ²²s=z\c0¬,,"÷G¥gfÞ¼}çÅË—MNh•Ÿ={žóðBhæ´©q ‹–¦¦¥§¦¥ïؽ§Ë÷îÑCKKs؈Q)©i ‰Ic&N¶²´$‡HBT %çᣬìœqqëBöíÚ=x@„‹³³™©É¤é3._½–•sûîݸø2Ë…®]#‰Útì|ôÄInrò…K—zôíÿìùó›¥ù¡¶T7jÄðM[¶Fî?™•”tê칺WûŒ=R,îû .>+;ûäé3dÿªƒ£ƒý؉“¯\½–ýðaB—JiÍ\Œ1SB×®©¼cC6Áû/Xä`o×­Kç)'´PS[°dÆXMUUII)|ÛŽÌììó/Öñ¸wï?ävŒL{Ï^¼X´8çᣠ—.¯X³vü˜QuË€ªŠÊÿy™4mÆÍÛw¸))—¯^›=Ïc¬¬¤L§ÑΞ®ÜÎ&bÖ´i·îÜ \±2-=#!‰sÿAå:ÜñCQŸ>}^Ø öª#/40//?dý†‘¾ÃëõçKqñ“§OÓÒ3®^¿á3rô§OŸ† L„wëÖrr²ÓgÏᦤdde½«´yE•"±zÒª»è¨ kBîÄÄ ñyùÚ5nJÊ[·ç-\Äã•ËËËS©Ô /—––ý+Åçó‡—š–.­†’q½Ï.›5~Ê´F1^KÄŠå`Þ‚E%¥¥êjjn..d–¬«&r¹«×­WTTØ¿9Ýc½zŠD¢ââb²Fâáî¶w×Îu¡:,'+;xÀ€6^žÒD"++»amÈ a¾];wöòðh„‘^RR" kì1...&»ÖIêÈË 㯮]¢/^"«¿u ¦ªvùêÕŽÝzÐè4õ-œÎáùË—®Î7Ž£ƒµ5FH „‘ µ@#ÖÝŒ¬,2÷&q¹f¦¦nnÎGŽ£#‹Å »ÿJúÎË›2c–žžÞšAäé`–†ð9/oÜä)nÎ.KÎ …`·†è+“Éüü9›’’Ä寯'|øôÉÃÍÕÕÙÙÉÑÁÊÂ\,–k:t­µîR(”̬l²½›”dbdäáææÂqä89±ÙlÐ]i!Èd2Ã"¶œ<}fsèz;‘Hf©Ã\ ãÚ›‹—­X¶´sÇÐo\wÓŸÉ`ä¾yC¶_ÄÅóx_ðŸç' µ@Ñ]J£e?|Èå¦Ä%&ÄÅ'êµjåéîêÌá8sœäeeùªî’‹g- |üäé–Mµ45aß®*Ÿ<ÕÊÒrEàRhýÿ»:K£Qi?æ&§$p¹bã[¨©z¸»9;99;9ª«« °ZûWÀi´œG’’Sâcãâ[êêz¸»¹p8ÎNN r|þŸ¥»dòÕë×/š3sæÐA+** |$‚A§ß½ÿÀᢥ ôø«ÿÏžG&]üJ¡àŒ¬lrñk|b’ž^+wWg'Gg''EEE@ ‹!ý µÀ¿u—Nôøq"79>1)6.N[K‹Ô]ÎWp”””L÷›+Ãf‡®[Ãb2ÿt¡e0BÖo¸uçÎîm[µµ´þÌæ>AŒé †X,NKO禤Æ'&%§¦Zš™¹ºº8;9raZ |·î>~ò4)99!1é~lœ†z OwŽ“ ‡£¤¤Ôìu—\´{ム‘ëW¯òòðøcg•””ŒŸ2ÍÐ@upП¦"•¿¦¤¦qSRâ³rrììÜ\œ9ŽŽö°ø­~î2èô'Ïž%q“ã“îÅÆ¶PSórwsvæ¸p8ªÊÊüæ«» ååßOž1ËÓÝmÉ‚ùT 9 *.>av@@€Ÿ_ÿ¾}þ~ão‹_é%%¥Ü””¤ä”¸ø„g/^¸:s\9ŽŽ¶6°ø­~^„F£ÓéÏž?Oâ&'$%Ý{§¬¬äåáîÂqræpZ¨©’,›SDNQ^²&æþƒí›7èÿðMç[3™Ì a›/^¹²{Û––ººÍ»ßøŸÅ¯yyÉÉ)‰ÉÉqñ ï>¼÷pssuvæ89Z™›‹%°ø­~}{—Jc0èÏ_¼LJ&u7V^^ÞËÃßUWWçóùÍCw ‚`0èâæÎ_0nô¨ñcFUT4ó^YYÙÄé34Õ5Ö‡¬j®­7éâ××oßrSR’¸)±ññeee_ç::ššÃâW´hteÖ‹¿_q¿é.›Íöòpwqæ¸p8š>_Ôôu—Ïçû,(+-ݼqƒ‚¼|¦ P(莌²êKPÈëÉ))ÓçÌ›=mêÐÁ›_­‚yöâerÊ×ů4ÍÓÝÍ™Ãá8:èëé‘iò5Z 4zÝe2^½zÈå&p¹÷ÄÒét/WgŽ3ÇI[K«é.4$'L;qrÝÆ°àeK»vîTe“N§ïÙ·¿WîŠ ù ÆÒà>ƒèëKÃIöoÞºíäé3»·n10Ðo6ýÆtF£=|ü$9%%!‰û .NMUÕÜ3ÜÉQSC¿ µ@“oïæ¾y“ÄMNHâÞðS(­=<\œ9.']~,ã0Æ?}š2c–‰±ñª @Téø˜û÷ 8`꤉V¨‚xóöíß‘††G÷ï…c‚ ø|þ”™³åädÃÖ­mÒûBײø5Q¯U+w7WŽ££³“ãŸ0—­þ\Ý}óöm"79‘˽÷ V"‘´öôpá8»8;µÒÕýºûôé3 •bh`ð‹KLrÉiXxÄésç#6†Z[YŠD"׳ÿ@òlàÛW/7ÚMø(ÊÊ5koÞ¾#‘Hºvî¼(`žD"ÉÈÌœ2söÄqcGðý½ÛwñáãG‘P¤««Óð`H¿JÄâÔÊ‹_ÍÍ\]`ñ+Z ü©ºË`0Þ¿ŸÈMNLâÞ‹…­¿õ3ëëµâóë×]æç??-#cßÎÚÚZ¿å-2³³§Íòëß·OÀœÙ>#Ǽxù!$‘H¦MžÔ¯w¯Æi±XÜ®K7ƒâóù!+‚Ÿ>{vàÐá[ÂMML~û,ë×oÞŒž0©—çò%‹ë®¯H¿òùüäÔTn²tñ«­›‹‹“££#,~@kà«bQ© &óÃlj\nb÷~l\yy¹—‡‡›‹3ÇÉÑP_¿¶ö.›ÍöhÛžìÿܳc›~«V¿%üB —.ËÈÈ,çó© yUFVæZôù >¿Úü艓;÷D’ío„P$´±²Ú¸v Fûí‚ôìù‹ñS§R)T9YÙ«Η——W78yòkII 79…›’›øìùs''7WŽ£ƒ­ ÆH €Å¯h-Ô¢[äÇOŸ>'&s’¸±±qÅ%%^ž®ÎÎ.NNF†@:G4÷õkŸ‘cX,&ÙVÛ±%ÜÔØø·ûӧχû2ètéE‘H´lѶmZ7¶âžÅbuéÙ«¬ŒWù¢†ºú±ƒ~ï´ã¬ìœ)3gÑét„Ç»rþœ‚‚|å„‘——Çý¶øõý‡în®®ÎÎGK ,~@kà¿ê.ãs^~79‘Ë}WXTäåááêâìÂq464:tìxøÖmÿ´Ï„­›6Z[YýÊIIAÐé´>‡}ùRå' õÓG—WT4*«&r“ý.¢Wª×Û·õ^¾x‘à7ÉãÄäd?ÿùdÏ6BH$/[¸ {×.oß½KJNIJN~_VVæéîîÌqrvr416ÂâW´~°î2ù…IÉÜ„$îƒØ¸¼‚ uõâââÊ.AØúuNö¿Lni4Úêuë¯\»^½E(6oXogkÓxš¶ }òŒÙÙ99Õâ Ë/jßÖû7-…sïþü¥Ëªœñ ¦¦öùóg …B.~uvr„ůh-ü:Ýe0åååíºþE£R«jŸ¿nõJOw÷_3 86.>`ñf-Y˜™íÜÁo4£¶yùù½ú”‘‘©þ“X,.(,Œ¿{‡ÍfýÊ Ñh´KW®­ZÍbU}.›Í>~(JEY¿ µð{xóöí Ÿá…yŸQµ"˜_Á4 ¿Œ û§gŒSÓÒ>~\›@à3xP•ÛßHZFÆÃG5„#Ô¢E -MMk«_¼T©°¨è\ô…*•%Y9ù²²²ÛW¯ãñZ ¿¼u‹ÐÙsç—-_®¨¬Ôkðà?á0€?‡g^={ÖÌÚV(/[êåá-Z Ù@M:ÆMI¥R(ÖÓæÏ¥mNÜˆŽ¾|ú BˆF£%§¦¶ñòü3¦š%0Є`2·cî aj3EG[ËÜÌ”ÇãÅ'$Jg&´kà—Â+/?qèàÝ;wîr¹`æGK]ÝÈÛKJJþ~õJ €Ah×Ào€ mm1¬ýh¾ …bh`Èh- µZ  µ€Öh-4E0B¿f*,A„¨?ÿqAàçOÃCKº§þ*{h-4\qãÂ…ëÑ(?m@‚ ¨±É³ù0Þºný…Ó§ö–„¥Å%›W®úRXôú“ž˜tx÷zƒCKÃøøÞ}ûwì¤Âž‹h-$T„.8ù(3«e(ÈËç>ˆ¥4,ÉþûO!ŒqÔ®Ý]Ü=)ÓŠ»s'ÿÓçzC%óívvš‰b‘ˆéðÁÂü¼SQ~uág!ÄlX»#w÷nü»”ï)e’ããß¿~ J ü±À¾QP›¦ÔõÛÉýûãïÆxž?[ï±y²³Çöî‹1}S2Yy¹»©Éêššú&& W¬sÇOD¬Z]VZJ¥RUZ¨Ù»¸Œ™1]W_¿6÷Ÿ>|œ5|äáWåêö™ñ$ß‘lY™uÛ·Áî—Z õC„,Æ„¤²!‹P9BäA „¨a„$ñ’„´ç#ÄDˆòïÞ‚ Ó¾ÝR!meÒht:]!Bb„Ê¿ùÃDˆúo— •ÁdG„«kj~½B¥”#ôWÏzö($ˆ*±AP0f!„!Äÿæ3¯´”Ébí:sŠ_Á/ÈË;yàÀ˜ž½÷DŸÓÕÓ£bÌ@ˆ‚!1A`Œ1Æ4:-#+‹B¨ì›ï S!!B¢ož³dØ,6»º%™“æ#ôïZÁ@ˆöÍŒD¥[¨3 T2/üÉ@2ÐÜÁ¸µÃ‘}ûɯ¥Å%ÚºYéé¡çŸLîÛžãâbfÑ»]‡Èð:ÆdÇ)¡c‘ûzµmïjn9f¸oaÁ׳&éÌoÏqq65Øõ¯„˜©t¼Í͵04v02?l8c*B±·où«»³©ùÀ.Ýî߸)Í]„D¢gdhlaNþššÚ·ßÉ#SMhïߺ­«Gk3ËIÆ¿ÍÍ•víb„L Œ-̽<Ãw픕—?ä㸘{Ý[{»š[utv ¦}ó“Åf hãí`db¦©]Îã!„Læ¼±ãÜ-m:p\C/Áß^¿FXO>¢­#ÇÅÌrDß~3³¤?}),ç;ÒÕܲ§w»#»÷Ð+Õ6­\Ýžãânií7~â—Â"˜Юš'²rrôo§Ä`Œå¨T*B(ïãǜԴõ{÷°XìOžl_·þ]nî²ukÅÞµ;,l²ÿ!$FˆÎ`ÈÊÉU 9ãmÃ.Ÿ>³xÃZuM­¡¡Ó†øDÇ=×TM¦Ñé~FHߨxYX¨ŠšÚßOž®ž¿PÏШïp„€Ï;°_«eK‚°Xl„D,î>p€¹õÇ÷ï7, ”•—Ÿà_›… Ÿ4±…†:Pä¦ðyãÆ_Iˆ"„*).0rÄäÿ‡ÛÖ¬ÅÊ1£é/žå÷âé“u{v±ed6ù}øüYؽ@k? ‘XÌqq!dnk£¤ª²hÊ´ÉótÔZÙµkÐèQý‡“ dcmuóâů M„ìœ9dÏó¢ÀeçÍIKstsCQ©TM5U²g•ÐÞÍGô4P„íäI·.]¾}aÌŒé!›= µ7yd‚X$ ŽïУ{m!<²{Ïš];Z»»#„V†oncn™œ˜hïâB†ŽPByŸ>mÛ»¯¨ À³c1A¨kiêjkѲÔÓ»{ýzvZê€á>dCSU½…¦Žvå×÷hß®…††¹µõ³‡o_ºâà_›Š ÂÅË“ìWŸ¸¬Ÿ§×«7oµuuB-õõû (@ÈÂÚª0/ÿè®=£ÆŒ~ûùó­K—ŽÞºa¤«‹Z¸6dHû޹ïßëhiAÂ@kàŵMŒPvjºŒ—ga~¾¥9ÒI DH¾ö|Ò:¼oô±ãïrsÕ44ddeaéiNÎãììûöcRéô÷¯ßPB *øë#÷¨ki’ê­¦¡Q[ž?}Æ`0Lœ,&ÏèŘN£|÷î«ð„±)9ÚBCcÖÒÅ^^"„^}"'F}mk²ÙÛÂ6y´o_˜—·iÅJGw÷V::åŸã·rž¿œ‚‚W‡£’/_HÙ627»ræÌå‹—L¬,i4:…B%UÄÔÚjoDıcÇM­,s_¼èÚ«×ÈiSÆMX±,°kŸ>ãt.wĸ±Â†U””’î?èÚ·¯††z¿Ã÷mÙJ£ÓmœœÊyeß½ÿ«Oï:¦éÓŒ=a›Í–•)ùRLꪦªª‚’RÔ¶¾“'¾y•ëäî^w0J‹K²3³Äbù‚- ÍÌ.Ÿ>wï¾N«–ùŸó(”–-”–gdfaŒܺ}æÐáù«W•#¤­¡áÙ¾]è²@^Y™‘™Yñ—¢ ^yëŽ$)(*e§¦åææ6¤q µÐØ!1~\Q~þöµëŠ ••¬””¤íÚ÷oÞÎðNg0Úvë2'h9¹€µK÷¿ètú­ÛmßA£ÓõŒ ÍÍ„zøúï¿7¯XY—'+'§ob¤ ¤ˆ1öðòì;|ØöuëÊyå¶§½z¹zx„ìܱ'lÓ¥“§¨Tª±…Šѣ¨TªD".-)‘H$UÂ)ÊJKÉÊÁÄysVÎõ?9}Áüéóæ*©¨œ9t(bUˆœ‚|Û®]»÷ée¥¥ÕÛ§t:}ÍÎíá«BFõèE£ÓÔµ´ÚuëJ.´ ß¼vÑâ‰ýjêè´ŠØLg0J‹‹¥CÑB¡°¬¤„ü\Á+Ïàrbbȯb±xYè†ñ~³ óò–Ïö+-.–SP045eÉÈ „ŒÌÌ’cã¦û  …†¦¦KC7tìÚE„€ VF„oß°1rÓæÏ>(©ªö>¬MÇ"‚9uÊ¢©S·¬Y»m+l—üàüü|°дˆŠŠºŸš¶oŸ¤6¹­´£!²}™s/`ü„øÇ)Õ6søÚêEˆl‹"$&„Pe¯$ "jß´ñ­+݆‚‚!^¥ ¤õ\BeÒÝ$óGº«!!A`Œé1*­¥CXr ù¾•¼¥|Ûq!$S)$4„˜•Bˆq•Áê „DAØQéÝùßÑ2*ŠÿoËS0–^ja‚ X#„*jïоzîüy¡P‰€v-4ú*$Æ’J#šU~UÚRªJ¹Ï¯æ©^åõ=Bê!AµÛËj  é•n!*m;%½(DHX-Àu‡ýÛôïT@E-fW{wrž6¿vË×xŒ1¿&ƒÀìüAˆD¢Òâb(ì­€ŸE›öí¾{#€™±€ÖÀOBŒPtcZ  µ€Öh-€ÖZ üÁÀdâæ¡0?h¾À¾Q@ÓC$¥%&®˜?ŸHšœž „ÐÏ^à‹1j‚kˆŸ?y"¥Ïh-4†ZPP@£5±Ô+vìÞ3h@ uõŸ÷‚ vEFvlßÞPznAÍÆ¦k×®°2Ð,³à§Cžä:p˜o¿º9B(ú¹GÝ<~òdÜä©ÇEijh@Ç,4`¼~ºÐÒh´Ñ&zy¸=êg -BÈÜÌ,lÝÚ¡#FÁQíZ Í_h™ Ƥé3 ügÏâóù¿æ¡ÎÇåKæËãñ@nà·ãµð3…–Éô ˜/+#³bÙÒ >ÿ—õèJ$D{oï’’ÒÃ|Ï8F£Ñ 3 ] ÍPhYLfàŠ•_¾|Ù¸nͯZ±XܧgaC1Š D €Ö@³‚ÉdlØþèñ“áà·4+E"Ñhßáí¼ÛŒ7žF£‚Üh-4h4Zäþ¨;wcöïÞ)‹cÿ-_ ð›9ÝÒÌ|ÂÔé ä@k 9@¥RÏž>|ìø‘ûÐïÞ c\QÁ\²PQQqÖ\&“ r  µÐÄs…rëΰˆ-'E5’I¤Ü††¬æ•—/YĹÐZhº`Œ“’“—­8~(JFF¦ñLýÅó‚á›^¼x¹nc“É„ÈÐZh’1‰l‚“B;rÜ„‰Óf°Ùlˆh­€ßNÏÉyˆò9úõë7!@0h¸oÀ?/÷¦Ò"Ä+)*Ú?'`~vÎC„D"6zLîë×yyypª€ÖÀoÍ0JFVùyäø iƒ†;jT÷n]$MêàzŒ±¦†Æ=»&L–ž™9Äwä‡ÉæôŒLˆh­€ßFÎÃ‡ÒÆ+•J1gž«3gøÐ!"‘¸)¾Ž¾þêà )3fIî©ééÑZ ¿Ô´t:.ýÊ Ó/_½võúõ¦8§— ˆOŸ?¯Z»ŽÍfUn捻¥U~G@kà×A£ÑRÓÓ+ÏÝE1™ÌÅAgÏGÓšÚŠÕם߸Œ]}t6-=ƒ«o´~ #95­úu‹µ&tãC‡«Èpc&çᣑã'Ôø“P(züä D7€ÖÀo 7÷uIII•‹‰„Çãéjk£ß}ÌÀwQZVjinÎãñÄbqµ*=%- ÙÀzŠ€_ AMHªšžÎ`0ÈÏb±X 8ØÛ·mÓº}[o]mí >¿ºn5Z˸:;·öô(/¯¸sïN̽{±±±˜¦¥P(ié™úö‰Dbà‡€óóóÁ À/£¢¢bÅŠMq&Æ89%åéó¤.êhk{y¸³˜LPøÿ/«•‘‘Y¸páÿ#Õµ…ùìÙ³©©©u‡F£ÑhÔä”´¬ìl„1Ù´Ô¯Ÿ°‘i­D"6l˜¹¹9ä#´êâÌ™3!!!“'OþáºÒta0~~~)))-[¶ü±>ËÈÈhjjNš4IUUµÿ›eú àIDAT*..ŽÍfoÙ²¥i-e}ÈÀ/†J¥ZXXøùù)*ô“æUI$’éÓ§ëèè4+mß¾ýÁƒZ€¦ÌÐZ­´@k´ÐZ­ÐZB5lm[òZ ?„«×o;q²úa|¡pâ´=þ.ßöEŒ¹¬  µÐôHâ&¿ÿ¾®fèåìùóIÉ)Õ¯ ø‚k7nTT”—o»÷î{þâeS·ö›·o“’“¸©Ÿ¿x‘™ ‰hÞÀ~È@¦Ï Á÷Fjii‘_1Æ:F C,þº7}¿âε+–ßï÷<Þ#Ü ¬²nƒP(pvr"M½.4,|Û6„…B¡ÓèŸ@H(Ú··}[ï†{;{^€«3ÇÆÊ Ò3Z ¿òT×*g»J¿2 6»²{99¹IãÇuéÔ‰ü*!$†u [›Ïß¼ê_«^GDc6oÓé´Ên}‡ íÒ¹#B(##3hÕêㇲeØAèëW7 )Ï5F(Ag2™Ôæ ô!‹qqþêÑÊÄÌÆÉyëŽd¹\XT4aÊ4cKk[ŽË’åAäE„N÷9J×ÈDM§eÎÇdQ®©¡aiaNþY[Z²X,Œñ¶»ºôèefcghnÕ­WŸ$n²´)ܾK7 ;# «A>Ãß¼}+í}þâE÷>ý Ì-ÛvîzæÜù…J(Î ˜onkonë0ÃoŽ@ $‚’5ë7pÜ=,¬ÆMžÒ8$ƒ:wþK{G}3 ïŽËÊÊÈŸŽ?îÕ®£¾™y÷>ýRÓÒ¥·Ü¾£kh¬kdâ¿p‘¦††­µµ­µµ¾¾žX,¶´°°µ¶¶³±‘—“ËÍ}í3b”¹¥“»çÆÍácŒ±ï˜±»÷$ãîÃÇZú†wï}ÃÞ³o¿®‘‰Ž¡ñ–;! Ю€Ÿ‹D"5~âø1£÷ìØöåK±T·zôégcm}õBt~~þt¿9,&sÑü„H(Z²ÊÕÙ™ M uÒ“*$Ò‡ŒÌ,õ-Ö­^% ÷8à;fljB›ÍF-ðŸg ¯ÏðƒWN˜:ýò¹3äEEE~3¦ëèߺswî‚…²²2;v¬ì3Æx Ïp~öÄ1‘Häç?†ŸßŽ-¡À+Ïž\¼ÈÈÐ )9…[ÓÐïoc¼!lS"—{$j¿’‚bZF†¬¬,BèøÉS+CÖ®[½ÚÒÂl÷Þ}CGŒâÆÝ—“•E¹8sV …"YY™Úô›ÇãuïÛ¯w¯ž«‚ƒž¿x1ÃoŽªªêˆa>{¶osñj³sO䄱c&OŸ9z„¯wk/ò®~}zO4Q"!å! µðs)úòE$¹:;·jÙ’ÐýÚÙxæÜù2oÇ–p„‘¡ÁÌiSÃÂ#H­%¡ª¢¢«£ýOG …2ñ’™sæ’_Ûµõ>°g7ùYCCÃÖÆš 'G#KëÛ11uéBD§íIóçÍé?x¨Ô+gŽSÏÝB6VV/ÿþ{ÛÎÝU´–›’’‘™õòqù5pñ¢a£ÇŸ=¸´O¯ž!kë½¢§Áóòó••ìllBzz­ÈzÉÆðˆþs»ué„ ^¶ôô¹s—¯^د/BˆÉ`j¨«×­ß{öí×ÑÑ^¸ !¤¯×Ê×gèù G óa0ëV¯š2cVaQÑû÷ïÏž8&íI–“•Õþ6è µðsQQV3rĨqãû÷í3Êw¸µ•Æ8+'‡B¡š[‘|*µœÇ«Í‚ fN›Úã¯näW6‹U] BªÊÊ……AH$’À+¯^¿QTT¤©¡É`0ƒÁ@I$„ÔO'{ûËW¯Uñ*+;GIIÑР“y‰Dòéóç¢"±Xâ`gW)XÑÚALŸ2¹÷€AÞ;5Ò×g(Ƹ¢¢¢   xõš¥ËƒÉ€3Œ·oß6ÜÛ윜÷>’f!¢ÑhŠò_[«:´ïԡ݃‡vl‰øÞ¡q­€Vú/Y0ßgðàm;wöê?pÔߥ ¡¦¦vûÚ•ŠŠ Ò™TkôAEYY¯U«ºD¥Q%1ž·`QrjjøÆÐVºº±ññó.ªqÊ0•J­~™HazbB¯LútU•¢¢"„ •ÚÈ­1ÖÖÒâÆÞ?zâdĶí›"¶FŸ>¡¬¤,‹×-÷òp—º$û–B G A8ØÙ…® Š„•ë7äˆ@rJª¼¼ÜÁ#G*û͘4®Ò!dh ¿>dõºUûDˆ°47õêc uuM uum-M©{¯Œ,ÄÿÛ3²²ú÷éíêÌÑÒÒ44Ð'$’êâ1¾y玭­´‰J>ÌÊÒB ä¾Î•LKS“J¥šš˜0Œ;wc͆ì¥2pÀý[7äåå9*#Ãn¡ªšš–¦©¡!ý#k™LViYú6¯¸6›[š[¤gd¨ªªf!-CF–Ÿÿ|CCÃk/ܼ}çÒ•«¤{“UÆã¡ºf ] µ";îîæJÁ˜›œÊf³1Âúõݰióàá#æùÍVoÑâUn®¾¾ž•…BÈÊÂ"r”¶¶v^^¾¡¾¡ÆøÝû÷YYR?UUTt´µk{¢¹©éÙóÑn..ê¯ß¼ÅøŸÚçÇO3³²Äbñ‰ÓgîÜ9v(Š yyy*•záâeScgg3S“IÓg,˜7¯UË–Ÿ>b³Øn®.ã©“&­Û„1vuæˆÄ¡PÐ8k6×nÞT—×PWÿðácii™²²2BhÆ´)Ë‚V¨ªªvhÛV(>|øÈw˜BÈÚÊ2úâÅ+×ohj¨üø©K§Ž5ê÷ØÑ##÷ï<Üwú”)JŠ ?qwsÕÖÒJLâF_¼˜{_A^>`Žß‚%Ë:vhÏ Ó­­,Ïœ;×­Kg&“YQQáåá­€ŸH~AÁ‰S§‚W…H‰•UTän²ø¾rþìÒ ³çù).ÖoÕjùÒÅäõë×Θ=§ïÀÁ-Z´X³2ØÐÀ ´´4bÛŽM[¶Jýôõºry`yy9…úŽ–”– ‚ Ö¬ ö ˜?rÜøòòrK s*…в·µ9yælßAC DØÛÚ9°ŸãèHÞ»d~ÀÚÐÞmZ·ñò®ç>ä/ ]¿vu?kïÞ¾Uþúmùå«_{{7gg›Y[¯7~îì4?¢½42ò%úœy»úàñÒîîîå©©+ÓÓáääÒòó'ŽŽA°¸Zû´þúMæý»ÕÏžnm}O-¦â‹ )Y˹«V«ª@ÏDQT(¢(êj¯ãÞ£é°EK‹‰ƒÃŽÜåðÆ è¾ÆŸÅ÷øx±X Ãðt«=<<<11±¹¹yäÌÝžfç}?ÚÌÜ2ÕÁ6'N›Ïç766²ÙìÞ¡Gý`] ÿ}KxÌÅ·eû‰Ãövä.‡7vxmFöEUÛŸf‡Õn?sËT}]@èœw£@Ö€¬d-ÈZµ€¬Y ²ÎŽf þW« ®Wô+}£è©z½^©TVVV´ÙkŠÇãÛÛÛgTX,–Éd’Éä9(T¹\>õ6–У[^ýé¥F£‘Ëå,PZ$‰t:]«ÕN}æR©T©TÎÍŸgnn. CFµÀ_,/@Ö€¬d-ÈZµ€¬Y ²µÐ~ZÆ?´¸IEND®B`‚codequery-0.21.0/doc/workflow.dia000066400000000000000000000063441310136352400166750ustar00rootroot00000000000000‹í][oã6~ϯ0Ü—]Ôex¿ÔÍÛY´ÝÅ{iûÒ—@¶G;²äÊr2Þ‡ýíKJÎÄÉ‘EQ4ä¡ù‰ùï’ß}ÿiÂl¥ÉÍ8„É4EÉüføÛ¯?~#‡ß¿»únßê¿y,úÉÊ\Ý ïó|ùíõõãã#ˆ7« O3Gk° ¯ÿÄqp­ ]ß] »Ì‚<0ßm¿ ò<‹&ë<$Á"¼N‚éÇy–®“Ù°,µ-7Mã4<ñÍð«»â3¼ÞVs½Wωº—Á<œdað±¾j¨?Jµ©zf‡Õ.–é*ÒEòÍò¨HM=æß2ÛR+](™¿ûêC˜çaöUy[Û/Ÿë«ºÙZ |dó(9ÆÒÏ'.Œ(óáH2± OÏå|¸I¿pq¿pY¿pÑêv™fyDù1ä$Mã0HJÔ<[‡íqVÓ Ö]ìT³PûÚï¢Nïƒ,|3ø!ý4|"Z†D³›á?àþÓ:lŸ®MáÑãZ¦Ÿû\RHGðçpÌ!u“É!B¦$ó8üŒBJÆÆ„&éCÀ1CíPÃ8\ÜNÓ,9 ]6®€)xå¸OœB Tí|¤Ö}Íïóz0$ a T2ÉÚMÒlf/5 Ë¢ "Än·ºOo+„k‹vŒ¶Åáí*ßÄá!B˜¬eõ´]ÕË`6Û·ôGϪå«ÈÃOG/üõÊÔ=åBïî•;Ç5Âø„5©“&i’W™ïwÁ"Š7ú~‚d5ï£`¬ò§?‡ñC˜GÓ`—Ï¿ƒ£‘RùN$ÜÿP;Ð}.­¢=@T#„–˜Û¡í›Ùþ„v@ZÄΓEXýJŸ‡jˆRiDë„Àõ³ÕkbÿšN×Åî8å[[ˆlm!\a…GR› Î…C{¨‘è‰h¤±HAŠM·!´-ò"̃—ˆdMs—·“GØÈêJíÉêjÁv-¼ö©±Í}ú 0Ãëì¸WÔóÇ9wQ7€ØF¹Sû¾|×Ây•~eÇ¢¢£ÎÐ§ÈøEw‡ix5Mg¡×®õi¢)@ÉázÁq•ÅÑòö>Í¢ÿêÄ®<”F+Ó¬Ö˜ ‡­ùê\UVœÀ¶‚L;»„¦Õ„”„‡‚¬@(‘4# âd„ hÜL2uÒÈf’‰Ìv¼y—q  ö#ø"âQ¢ßÕí! V š‰|Í‚æm„+¦«iºô"Â}Ðn¨bI¼‚è:dQm‰­qTk:!4á¹ V(€d M¬B›F„´½B Xºø/šÆ.šØÄ2bmäÙ®ý Nƒ bx{ÓèMãù¦1æ+oû°Œš€(àyçºÏh>µµú¥Q(…ö«tëÔ}¼þz=Üz¹iBSˆ¹_JK­-ÎSÀŠd Ü.÷°o\‰¤Yì«P/‰v`~nåŒÇ‹àc8›x;ëÚÎb Ìü®þW1oh»˜]ùE³ð,ÈfÚ„|Ðâ»Â†k÷ÝäÆ1>RÚ§ÒéÄŠîœ1 Já±d CfRU0$-™dš&Ém˜ÌеjgýD‰.J[O”è¾3]ÞOÕâß³ŒL2» ²,}¬wÀ0¶¬ú6“ùiß›ÙB¼èÝ7D0o_w2="VGÖäé÷z mY8O‹DÖÁóÿïà¨/TümL÷ÌÜQ7Ã\v0Ì!¥äv5”AB‚$¨#¦u’æZâ¶Á®s†yu;k#p¦ âokˆ“ýQ*ÏáÌñÿ=šÿÌÆùS4^Ys BØÎv5ç‰HB™< ­þ8BåbYŽZFæÓ,¿¿}y×5²N“6.hãI›[O³h_L¾­™çàë<Õ^`^á©uäzJꀒ„‚çpßÿ1î•“õ¶$H!m,m3BÒ(ĸŸŠH¼¥£•)ÂÒQUóNc”ðTÔ¸ Ð%g¡œõùÌ"ì ­Bc"0ZÓ­%¬÷–À@Á„ ]Pé2íÁá-Ác‚C²pZpÛEx¯!ù¡‹ç×$¸ÏQ½÷ boç(åó|þƒÏ¨ž–Yl–Yj¸Ì&WzŸÎ­Ãlse¶ß›«°Èø³Ÿ´q>i£ýwQ¬nØ ÎùYŸá4=âå˜7²ÞqAàÂ'D.E5Û¶3†Qb¬Õ ’¢˜ ¥­W 5ŽxW7ò„æÒåÚ®Èñï×êq‹ˆ·ö‡„¼_ÎB¤?ŒA„GZç»uÂ(+P03.¤Å*:É»HvMk˜ü¤ööÝãNý#泜g;i!ýG!¤úíozx§±—Ð}Hh6â@RŸöÔSÚ²^Pn^ßÆÕœŠCebPŪ‰öÕMRø¢®¥auëz°6i^¾-Yx(íÎKvBÄI˜~gxÿjÌ^E„ÞzU"f Hàs™¿ÅÀŒÍ(E*#„ødÂC>¢Ä „~Âqg| òö_{(n©Þ^ì ÞÃ*—ÅâeæÖex‹3&È"BáØeµm\³íe”ÜÓƒäöwó>ì9+vVaMï¯Þð.l.,Wd„€~ñNo^¬è‹&é–h¾ÇnÝX e±a×€…#[dõs[gûžåÈV5óDGnoƒ¼7{1Þ,=Ë›uE[çÌÊœÙbÏ^vìÐÊmæ)1.m‰…ð­— M:¤wj_SÛ@„X¯9QsÞ™ÒÂíÚB£N!&f 1W˜€”±"î†VŽUHm;ëQå $^ˆ¼1!b“û~°þXô”m¡ý> ëÎHžšNì¾-Vªn¢ÔÓ .¦öS$¢Ø\Ìñžl%Œ9å\’±†“²@e’É×]z?¼ÿúëÑàïÁCà#L®#LÕ=ÒÏà¾æÜ:zb$ 5‹M%§NÓÈ>a®ðøé’ØZªõIQž–œg–ÔôDOL¸^óRK”Üä%*°ÛÔ¾EÂJà±ÙU‘52Ç(]N9wÒÈfÛ¡IÎv§œe/+'ü”³Ÿrnkq‰>KÍ1›Aº “«UºÎ¦a‘å¹òƸ‡YhÈ5 ǨÂ~w°®g¡ëô¼ý¡.(íÝ™Uý.ãŸO(Ȭ€†€CQ\ª‹XýyËÁÁcš}¼ÓbÆŠsB©ê—^Ú_¢´—öÙ¤”"ÌFØíÙ…µ…1i¤J9¢nO.´oY³üQŒëIÌûüQ/æíMî*2Ÿ@Ú[)cïÉ£ÖË©¨~sTö;ª ÒFј"5,¬ÌѺÖ–$§·¶}2¸mŠùãR|Þ×HÉ:+çT~É”,»HÉbRZ ¼†éX(‘0áÚW.ÖQë*”ñ¦Å|–ç"g9X²»¬¾¶„$È^W‘rËæTS‘r Æ´¢B¬@$ýKÂOÓp™Þ{͵ƒVÕ}$ô³¯HKr4Mh³Ïœ.Æaf‹r®iIaNÈ€^-ýs“ß§‰'$ׄTÑ =]"{¡$LD:•I††Ž™ëK £¯'›Ñà§tte²ÔWÓ,ZæžšÜk¥Ãé™é‹2Sy›0{wU^è¿y,Þ]ý-6ÁeÉcodequery-0.21.0/doc/workflow.png000066400000000000000000001270071310136352400167240ustar00rootroot00000000000000‰PNG  IHDRk}ÔI¸¨sBITÛáOà pHYsÐй‹çŸ IDATxœìÝy\ÙÿðϽnûm¹nÝÒªÒF(…¤ÍHc0D#²$ …,_K"2– Z0ö[¶IFƾň˜AI¶$í»JEt~ßçÛ¯MR=•Ïû5<÷ÜsÏó¹wò|žó<Ï9*++€ËåB>|øbbb„wïÞ€„„!¤´´¤¥¥ !%%% ++Kyóæ ÈËËBòóó cÇŽ„ÜÜ\PRR"„dee€²²2!$==TUU !©©© ¡¡AyõêhiiB’’’@GG‡òüùsÐÓÓ#„} 66–bff÷îÝ#„˜˜˜Àýû÷ !=zô€¸¸8BH·nÝ !!bhh‰‰‰„===xöì!DWW’’’!;w€äädBˆ††¼~ý𢦦ééé„ÈÌÌ$„())@NN!D(@~~>!DAA !²²²P\\L‘‘‘€ÒÒRBˆ¤¤$”——BÄÄÄ ¢¢‚Ò¡C¨¬¬$„‡Ãa8<òþý{æ€SVVRRṘÏçBŠŠŠ˜NAA怣¨¨HÉÎÎf8ЩS'怣®®NIIIa8/_¾mmmæ€Ó¥KBÈÓ§O™ÎãÇÀÈȈÆÆÆÌ§gÏž„ÿý—9àܽ{ÌÍÍ™Nß¾} !·nÝb87nÜ+++æ€ckkK¹rå sÀ¹xñ"ØÛÛ3œï¿ÿžò×_1œÓ§OÀ°aØΈ#!ÌçøñãðÓO?1œ1cÆB>Ìp8&L`8“&M"„„……1œ]»v€‡‡sÀ™>}:!ä·ß~c8›7o€Y³f1œ9sæB6mÚÄp~ýõWX°`sÀñññ!„¬Y³†9à¬Zµ –.]Êp–/_ÎpV®\IYºt)sÀñõõ€5kÖ0œÀÀ@BÈ‚ ˜μyó`Ó¦MÌ'$$„2kÖ,æ€ãåå¿ýösÀÙ±c!ÄÃÃ9àLž<ÂÂÂ!\.—Kÿ €nTݦïÖ,o=u8ÿUÏg±NóÕ©YXW9ÖiÚ:5·¹\n[©Óú, ©SõV]ŸÅ:M[§þÊ,Ô¡§„!„ú"\B&Q„B¨!*++?~üHó&—ËåÒ[!„ªŸ‡‡Ç£w‹y:t`.ï"„B¨:tàñxŸ!ÂK¸!„P#p?|ø@Ÿ)G!„Pý>~üXQQñi ¨˜˜˜¸¸8Û!!„BmÀÔ©SÅÅÅÿýwà‰‰‰1ãœB!T'!!AŸÀÅû Í‚™cå[&!!Áv!ÔŒxÌì}lGÒ®]Q•'##ƒ÷AB¡†””äóùty]!„BŸµuëÖ­[·ÒmnII &Q„B¨!ÊËË‹‹‹+**€++++''ÇvH!„P0cÆ 99¹ƒOVVçÅE!„BJJJ^^ž®ÈÂ+**b;„B¨mزeË–-[è6÷Í›7oÞ¼a7 6äåË—l‡€Bˆ5¥¥¥………tí®‚‚‚@ `;¤6#??À€W¯^e;„B,˜5k–@ 8tèÐ ª  ÀvHm†™™™œœÜ€ììì0"„зFFFF Ð͸ùùùl‡Ô–,[¶ŒÃá\»v­ùò¨‰ÉŒððkMÞ,B¡¯šŸŸïââ4ƒ°R[bfföãŸÖiÖ<Ú@„>²µw„ú¦”””äååÑ¥µ¹;v …l‡ÔÆÐn(óòkòè¦Mhi¹òùŽªªãÖ­; ÞÞ[R¼½·tîìêî¾ 6nüÃÀÀ]Vv¤¶ö¤µkÐz,]ºÏÊj¾¡¡GLLb­M–xy…jjN”“if6ëùótÈÈÈ=ú‘hŒºúø9s~++{Ï4èëfc³ÀÔt¦•Õü„„Z^TTê媡1A$3nÜÚ¼<|x!ôíš={¶¢¢âáÇ€' [r^Ü¢¢"úS›¦¥¥õý÷ߟ={¶j!Í£¶¶¶þþþ*** içñãÿ±±¡úújyyE/_f@hèŒèèøÅ‹ÇŒkK«©«+ž;·ZKKtïÞ³Áƒ—iŽÑ"#o]½(ÊÕÕ”‹ËZ¯ÃíÛÁÊÊ‚øød>_ œœtu;%%í-..st\±páÎÍ›gÒ:uëÆ÷îsÆ-KLÜ%.Î?~„„Øýû[¥¥%½½·xxED,ûìW#„äææ6ü'ýÈÈÈHII±Bè«ðù|EEEIIIàµðaÎÍÍ-""¢%÷ØÂh555mHe¯Ã‡ãã“UU; …r4ÖäìlC7ÌÍõ]]í/]ºO3¨§çPæ#5›JJÊ8{önVV¸H¤=zhÀ“'©·n=>}z%Ÿ/ÅçK¸Ž¹24t=‹š6mˆ@À€)S–,Ù¯££u'++œî(0ÐCQÑùíÛrÉú¿Zyy¹’’RC~„oǺuë-ZÄv¡¯B·?ePEEÅ–Œ€™Ð¡ízÿþ}]ãh%$$ þý÷ßÏ6¢§§6?$ääĉææú«VM²¶6®YíäÉ¿7l8ñêU6‡Ã)**<ØŒ–«ª ëiª¢âƒœœ4MŸŒÔÔ\yy™ŽeéKN¥¥ï Jh‰ŠÊ§qMGEE––Ëår8èÝÛ›iA^^&--O__­þ¯ÆápZøª5{ûömii)ÛQ „š@qqqyy¹¬¬¬¤¤$OII‰ÃáTVV¶dûöí1bDKî±ÉYZZÞºu«Z¡„„Ä”)S|}}ß¾}ÞvœmœmÊÊÞÿúëñQ£Væä.÷×Õ32òWŸ?¿ÚÖ¶;‡ÃY¸p×ë×9ô­jWß«5\TTš“óFIIž©£®®øæÍÛ‚‚Ú×LNÎ’–– ÛðâEݨ¨ø’’­¦¦¨©)âp8qqÛee¿ìò£¤¤dvvö}¤[¼xñºuëØŽ!ÔæÌ™æææÆURR‰Dl‡ÔÆœ;w®Zú”ðòòzöìÙÖ­[544ØNbâëË—ï¿{W!%%.)ˆ‰ñh¹ŠJÇ'O^Óíââ2.—clÜ™Ãᤥ兇_m`Sºº̦N ÊÌ,¨¬$¾ÌÌ,Ð×W³°0œ7o{IIYFF¾Ÿß>7·AÌðíÛÏ$$¤TT|ð÷? //cmm\µÈÎ.|øðÑ£G´NXX˜‹‹K]SÀÄÅÅ¥¥¥?¾®]899IJJ&%%ÅÆÆÆÄÄ,\¸–óx¼Æ|1„BíBAAAZZáÍUSSSSûÌèøæ¤¢¢Âçóýýý£¢¢>;O¯——W÷îÝ%$$V®\ùæÍ›èèhNNN{ö쀒’’cÇŽ¹»»×ÕG‚ùâ¿þú+½khhOž<¹uëVpp0ŸÏïÔ©S@@@XX!¤©¾/B¡6jþüùêêêG…V’A§Nzÿþýk×®ìÛ·ï³õµµµéÇÓÐÐHKKcÚ9pà@EEűcÇtttÌÍÍëjN—Ã|pÁ‚„ß~û¾LMM•——ïØ±#}©££SZZŠ+Ø „êêê222ÀMMM}ýú5»ÉÈȨ¨¨˜™™|HMMeÎlmmNŸ>½gÏžz: `ll¬¦¦F¯I]]ýÍ›7LÊLNN–––_ñBµ6lxýúõèÑ£fÐÔÔT¶CúD__ßÕÕÕÏÏÌÍÍÏœ9eeeÌ4¾Ô¶mÛ?|ø°jÕ*YYYkkkæ-+Vܽ{w„ ´ÄßßßÄĤڎ:tèºlÙ²çÏŸ¿{÷îÕ«W111tv}}} ‹yóæ•””dddøùù¹¹¹Ñ·jm !„Ð7"??ÿõë×oß¾®†††¦¦&Û!ýŸŸ_ttôõë×ïܹӽ{w{{ûT­ãáááêê* ÏŸ?ÿçŸV¤~Ò¤I #FŒ`®Á¦¤¤ØØØÔÜÑÈ‘#/\¸pïÞ½>}úðù|KKË:Ðuc8ÎñãÇ‹‹‹µµµÍÍÍÍÍÍׯ__k!„¾ ,ÐÔÔð˜{Šíî]»½½=S mMÛB¡¶eýúõÌUÉOTKK‹Õš†@ ‘‘9t軽j„BíUnnnII‰¢¢"ŸÏçuîܹå×m&­mÀÉû÷^¾Ìd;Š–öþý¶C@¡æ²hÑ"f}ÐO”íÚ§çÏÓutÜØŽ!„P“QRRÒÖÖ–••ÞË—/ÙŽ§ÓÑÑa; 6IJJ²B5½uëÖ­[·Žnó’’’83Ëjººº/^¼`; „BM,;;»¸¸X$ÉÊÊruuuuuuYŒÆÎÎnéÒ¥,À077¯¿Ž‰‰Égë „j¯/^Ü¥K:Ü‘§««‹÷A !?~\´h‘©©)Û± „j½D"Q—.]äää€ûüùógÏž±Ò'7n400••ÕÖÖ^»v-- êׯSçæÍ›òòò¥¥¥µV€M›6Ñ᮪ªªÌÕêÂÂB///MMM99933³çÏŸ€¡¡áÒ¥K­¬¬ cbbïÝ»GË}}}mllLMM­¬¬˜1 ÞÞÞ ÞÞÞ;w®Þ]„BíÒÚµkŸ={6jÔ(àÑ\Ò¥K¶£PWW?w–Ö½{÷ldd4bĈñãÇ/Z´èéÓ§tÝÐ}ûö=ZZZºÖÊ?ö÷÷Õ××ÏËËcž“rqqáñx·oßVVVާÓI@ddäÕ«Wk®§vêÔ©7n‚Ý»w6,11Q\\<444::zñâÅcÇŽmÉŸ!„P+‘••UTT¤¬¬,''ÇÕÓÓûìŠÖ-ÆÙÙ™Ž®177wuu½té()) 2„®zV^^~ôèÑI“&ÕU™Çã}øð!>>¾¤¤D(ÒÎ’’’Ξ=»{÷îN:q¹Ü=z¨¨¨Ð=zzzÖºé´iÓèb,S¦L)--¥K"„úÆùúúêëëÿñÇÀÕ××o=ôäÉ“ÖÖÖšššZZZaaa999´ÜÍÍmÿþý•••‘‘‘ŠŠŠt1–Z+ëéé…………„„(++ÛÚÚÒÌ—œœ,'''‰jîQUUµÖH˜ËápTTT˜•DB}ËTTT äåå€ûäÉ:W;ë222œ^½zõêÕ+B}kèСååå—/_Þ·oŸ««ký•¯^½š››kooO/Ukii1ù¸ªºž¢bÆ¢TTT¤¤¤0Kr¹Ü&ýÒ!„Ú’Õ«W'&&Ž9h}òä Û!s¹\ccc‡“––VuЈ˜˜Ø¸qã/^¼H3h]•/_¾üîÝ;)))‘H$&&ºººS§NÍÌ̬¬¬|øðafæg&ÛÛ¾}{BBBEE…¿¿¿¼¼<³©ŠŠJ+ù¹Bµ¼ŒŒŒÄÄÄ7oÞ×ÐÐÐÈȈ݀˜u­ýüü,--­¬¬fΜéààPµŽ››Û… ú÷ïß¹sçz*—••ùúúŠD"¡P¸wï^º„„‡‡+))™™™)((L™2¥¤¤¤þ<==ÝÜÜ„Bá•+Wª.AêããsðàA|˜!„¾AK–,122¢‹Ió ÙZXX¨¨¨ÈD¶dÉ’Z«™˜˜0×ië©ljjzûöíš;wî¬VXíòõÝ»w™m###fEÒªlmmŸ>}Zû7A!ÔÞ©ªª)((ïñãÇ,†rùòåøøx c@!„hÕªU«V­¢ÛÜ„„“èĉW¬XÑ·o_¶@!„.--íÑ£G………ÀëÖ­‹ëƒ¶ÎQ"­äád„B­ŸŸßÿÖ¥”íB¡6@MMÍØØ˜N¹Ã‹g;„B¨m ÛÜøøxL¢!„PC¤¦¦>|ø°  ¸Ý»wïÑ£Û!!„BmÀ²eËzöì ¼=zà}P„B¨!444zöìÙ±cGà=xð€íxB¡¶aÅŠ+V¬ ÛÜ`E!„"%%åþýûùùùÀ511155e;$„B¨ ð÷÷755=uêðLLLð>(Bµu÷ïßgknœÖIVVVOO¯É›ÕÒÒêÕ«—P(Þ¿ÿþÛä;@!ÔÂú÷ï_ZZÊv­ˆÝ•+Wš¼ÙåË—/_¾œnóþù燃rB¨055år¹lGÁ²âââæ[D+999//¯sçÎB¡gffÆâ¼¸!„šÐÍ›7¥¤¤ØŽ‚e×®]³³³k¦ÆW®\ù¿yqim¦=!„BíIçÎÍÍÍé²Ö¼ªËJ#„B¨Ë–-[¶lÝþ”AÍÍÍY ©}úçŸ>|ÈvìÐÖÖ¶µµe; „jb/_¾ÌÉÉÑÑÑQTTäõîÝïƒ6“'N¬^½ší(Ø1fÌÌ ¡ö' à÷Aûôéƒ÷A›•™™^ÚlGÑr^¾Ì¼zõíy#„Ú=¾}û*))ïöíÛlÇÓÎ99YùúŽa;Š–sôèuÌ ¡öjéÒ¥K—.¥ÛÜÛ·ocE!„âÅ‹111999Àµ°°èׯÛ!!„BmÀ/¿üÒ¯_¿¨¨(àYXXà}P„B¨!ºtébii)‰€wëÖ-¶ãA!„Ú†Ÿþù矦ÛÜ¿ÿþ“(B!ÔÏŸ?¿yófvv6pû÷ïß¿¶CB!„Ú€Õ«W[YY9sxýû÷Çû !„PCèééYYY)++ïÆlǃBµ ¾¾¾¾¾¾t›{ãÆ L¢!„PC<}úôúõëYYYÀµ¶¶¶±±a;¤6fÿþýlGB¨¥­]»ÖÖÖö¯¿þ® fÐ/UQQ¡££³uëÖwïÞ± B¡–c```kk«¢¢Ük×®]½z•íÚ˜‰'Š‹‹Ïœ9³K—.˜GBèÛáããsõêÕÁƒÍ ×®]c;¤6FLLlÉ’%ššŠy!„¾‰‰‰W¯^ÍÌ̮݀ةí™8q¢ŽŽÝÆ<ŠB߈ÀÀÀœ={hµ³³c9¢6ˆé†2G =|}Ãll˜šÎ´²šŸ!!‘}ûÎaêDGÇ+(8••½€ÂÂ/¯PM͉rr#ÍÌf=ž›6ý¡¥åÊç;ªªŽ[·îh]Õ22òGþE$£®>~ΜßhƒuÅEE¥^^¡D¢1ãÆ­ÍË+úš !Ôvݽ{WAAí(ØgddôÝwßuêÔ xW®\a;žÏˆ‰‰a;ŠZ|üøQ(æååU-¤ytÍš5¾¾¾?~l`S§Nݺqc£@Àß½ûܰaËwMœ8ÐÇg÷£G¯ºuÓ€°°ó..vRRâàâ²–Çëpûv°²² >>™Ï—zü8Åßÿ@ll¨¾¾Z^^ÑË—™µV'§]ÝNII{‹‹ËW,\¸sóæ™uÅ .Î?~„„Øýû[¥¥%½½·xxED,kÈ7zöìYhhhƒKhhh8::²B¨>„?òx<¶ùŸ… .\¸ðÓ‹K—.]¾|™´”‘#GÀÉ“'þ‘•+W²ùk}iiiX½z2!gëùÏÀ@=(È“nWVþ¥¬,¸xq-!gÇÿî?ÿEÈÙââ>_*66„³/^„@VVxÕž>Ý---qâ„_qq-©µZbâ.ÈË;F_ž;÷‹´´Deå_uÅ”´—Ãádg¡åyyÇ8NIÉÉú¿Î‘#?³û³7ÐÀ›ïï¼X·n]‹í}ƒè§´´´þjžžž²²²½zõzöì!$==ý§Ÿ~RRRRSS›={6ÓHJJŠƒƒƒ¬¬l·nÝBCCåååiù›7o<==ÕÕÕ•””\\\rssë¯/ £££éö­[·>ÛŽÁ’%Kú÷ﯯ¯?zôè>}ú0ñ_¿~]^^¾þ¯Iµ³³kð÷.^¼˜žžNá 8ÃáTVV²{8û¬¾}ûöíÛ—í(ª;|ø0]gµ))©éÓ§B‚ƒƒÒŽŠŠ€np8AZZ.Lúƒ³ó/k×N9v,ZGGÅÜ\’“³ää¤E¢ÿw-EOO-,l~HÈɉÍÍõW­šTQñ¡fµÔÔ\yy™ŽeéKN¥¥ï JhI͸\‡½{{3-ÈËˤ¥åéë«}öéééýðà ùî-ïõë×lG;\\\x<ÞíÛ·•••ãããù|>899éêê&%%;::.\¸póæÍ0zôè®]»ffffffþøãL#ãÇ—¸ÿ¾´´´···‡‡ý75zôèîÝ»GDDdee >ü³ÁÔÕDFF^½zU(¨ªª>zô¨[·næââ"YIðà IDAT%%Õ?NC¬_¿>,,,,,ÌÍÍíSe+”†ŸÏçóFŽúôéÓ;wîüõ×_ÒÒÒ::: ,˜7o¼|ù2***++K(@`` ¢¢âÛ·oSSScccÏŸ?/--­­­½hÑ"ooïz‚©«ðôô¤åÀÉÉiÏž=6l())9vì»7»víjoo¯ªª Ü‹/^¸pÅhÚ(Rãò²””Ôܹs“’’6mÚDÛ6ÜöígR**>øû——±¶6¦å?¬XqàîÝg&|GKtu;98˜M”™YPYI>|™™Y˜øúòåûïÞUHI‰‹D bb¼Z«éë«YXΛ·½¤¤,##ßÏoŸ›Û æü©f U€ììÂ'pH„Ú°ääd999š>©©©òòò;v¤/uttJKK RSS…B¡@ðéꔞžÓ‡ÃéÝ»wçÎ;wîÜ«W/yyù´´´ÔÔÔŽ;ÊÉÉÑjÚÚÚŸ ¦Övè»4EQS§N=pà@EEűcÇtttÌÍÍ¿ú—h¼ \¸pÁÁÁh½xñ"‹Ñ´Q‘‘‘ÿþû/ÝþšÜIyzusûU(}åʃ?ÿ\!.þé¶ù¤Iö )#Fôc.½@x¸¯’’¼™Ù,…QS¦l,))++{ïë& GïÝ{þر%µVãp8Çû—jkO27÷67×_¿~jý1>¼XYYÁÂbެìHKËyÿÐè_ !Ä:--­¢¢¢j÷žÔÕÕß¼ySPP@_&''KKK 55µÂÂBfd ššš'...ù¿ ôõõÕÔÔòóó‹‹‹™v˜]ðùüòòrº››[;ôݪGmmmNŸ>½gÏww÷&ýI¾Ø£GΟ?Ÿžž¼Aƒµ‰û ­ Ó­zÍök42Òðõ­~A„B9€ïîþ}ÕB€¿sçÜj5oß®~É´ÖjjjÂ'üƒ¼¼Lp°Wp°×g¿B¨õÓÕÕupp˜:uê¶mÛD"Q||¼H$Ò××·°°˜7oÞæÍ›‹‹‹ýüüÜÜÜ8Ž¡¡¡©©é¦M›/^\^^ÎÜ´b RQQÉÎÎŽŽŽvrr244433óññÙ´iSNNÎúõë™ýš››Ÿ9sÆÞÞ¾¬¬ì³íÔ¹‡‡ÇŠ+ž ———®ù´`ÕúwïÞeÊuttª.£É¬¯YW;‰‰‰ÕJèYÖ/áÀþóŸÿüç?t›{îܹ6—D9ÇëØ±ãüùó‹‹‹ŸñÄ>ÞÑѱþ'³B5@°cÇŽÖpAnÓ¦M?üðíjsLWiiCèmgYYÙ-[¶8p@II‰0tÀP]}ooïž={JIIyyyÅÆÆÂÇBóùüN:„……BhýéÓ§ÓKÄǧõB}–¹¹yaaa“4E‡Ö´’¥¬{ôè1dÈuuuàÑ…¶Û–©S§úøøÈÊÊÒ·L¡³³óÚµkë0DoÿŸÏ/))ºÇBÑEEEZ.%%Eë#„úfÍ;wîÜOøgΜisITFFFEE¥jú„: q¹Ü϶V×X¨&!„P[÷ðá訨ÔÔTà:tèСl‡Ô4耡»wïN˜0–¨¨¨e^VcÔ¥Kæq¡ºÆBÕU!„Ú™ˆˆ—yóæ­_¿^SS3;;ûôéÓl»ëK6“9sæÌ™3‡nsOŸ>Ýæ’h]ZÏ€!„jC*++½½½½½½×¬Ycdd$##£­­íííÝèôéíí]m8~]Ãîë*oµîß¿êԩׯ_÷ÇlÈ*n­_«0„BmH\\\ZZÚøñ㛪ÁÐÐÐjÃñëv_ÏpüÖ)$$dĈ—.]ÞðáÃÛGÊa¦mm®^}Àv-*.î%Û! „¾ ]/…ì÷믿ÒLf``Ps‚½F¨g ÒZË[sV255ÍÏÏ×ÔÔëóÜ·{çÏÿsþü?lGBu¢ßÓÒÒ”””`Á‚ ,ضm[PP­ &&VQQÁÔÿþ=-l`ûõ,AZÏpüÖ‰^î¦ÛŸ2èˆ#X ©}¢ËȰ;ºwo‰é|BMÂØØXMMíСC&&&µVèܹó‹/˜—ÏŸ?‡Ï­¡]u8>3ìžµg†Ý×UÞ$_ª™üóÏ?)))½zõÒÔÔä9::âú ÍdРAƒ b; „úŒ:„††Ž7NRRÒÕÕUCC#333&&†éLœ8qÑ¢Eƒ êׯ_FFÆÂ… ,‰êi³êpüº– ­«¼Ù¿ðWؼyóÿÖutttttd;$„Bl9rä… îÝ»×§O>ŸoiiÙ¡C‡ˆˆúîäÉ“W¬X1gÎEEÅèêê8p þ«ǯkØ}[Žoff6jÔ(---à1?B¡o™••UTTT­oq8œ™3gΜ9³æ[uѯ6¿®a÷u•W]^´U©ú;pÿøãL¢!„PCÜ»wïĉ¯^½®“““““Û!!„BmÀ–-[~úé§+W®ÏÉÉ©•ß¶E!„Z ssóâââÎ;ïøñãlǃBµ 3f̘1cÝæ?~“(B!Ô±±±GMNNîèÑ£Ù ¡æGïXÔ¯¸¸xûöíM²ÇˆˆˆŒŒŒÏV{õêÕÙ³g›d¡óÛo¿3†>ÌuvvÆ ŠÚ±®]»zyyÙÙÙÕ•GóóóýüüÔÕÕ›j"1cccww÷¤¤¤Z+<~üxܸqÆÆÆuÍÿ‚jµúôé3fÌ:÷È‘#­sS„šD‡üüü®]»öÝwßUË£4wjkk¯ZµJSS³©J×ÓÓsvvÞ³g¡¡aµ<ÊäÎÇ{xx¨¨¨4ÉB-ÆÓÓ3<<ÜÖÖh=räÛ!!ԌƎk``4ÒÑÐ/^¼ÐÒÒZµjUQQ,[¶¬ê4ž_iéÒ¥<¯¢¢bÏž=ýõ>|˜æÎÊÊJ)))Ÿ¦ÚB¨Åܾ};<<üåË—À;v¬‹‹ Û!!ÔŒh7”yIWkJNN.))¡%ÆÆÆM;*ZOOoܸqtûÇ>€û÷ï3POŸ>; µEÛ·owqq¹víÐ :vìX¶CB¨y1ÝÐZ5m”¢ÝÐZßÂ(Bm—……Ÿqãttt€{øðáC‡±BÍ«Z7´ª&ï€RU»¡Õ`¡¶kÚ´i´±±î¡C‡>ÌvH5»ºº¡ÍÑ¥jí†b¡6-&&æàÁƒô AîøñãÇÏvH5»Z»¡ÍÔ¥jí†b¡6mÇŽ&L¸~ý:`Eß”šÝÐæë€RÕº¡ØE¨­ëׯ߄ tuu€{àÀýû÷³B-¡Z7´Y; Tµn(v@jë¦Nºÿ~kkk ô³K#ÔnTí†6w”bº¡ØE¨øûï¿ÿý÷/^wâĉ®®®l‡„P aº¡-Ð¥˜n(v@jvíÚ5iÒ¤èèh๺º6z}Ðyóæåææ~ÑGîÞ½ AAA _&.."""hÎoV;v nî½ &QZZzñâÅF|PFFFMMmÈ!§OŸnò¨jÕ¯_¿cÇŽ™˜˜œ:uªïÝ»w§Nš<*„P#ôïß¿²²²K—.À!„4º!mmmºÂK»¡®®þúõk¶£@ òêÕ+ºÈm»wüøñ–é.£6MFF¦´´´´´TJJŠíXXvíÚ5;;»zÖ“h*¼}ûöÀ¤I“ÝDpp°P(lºØQPPàííÍvè‹IKK4ˆí(šKlllzz:ÛQ ¶dÿþýâââlGÁ²'Ož4_ã7nÜxþü¹••톇Ã!B{¯^½jÜÇ[•ÔÔTPWWg;ÔPôú‡¶¶6Û4£Ÿ~ú Ž?Îv ¨ ––n¾´ÑÙÙÙ5Çï_UUuݺuõÔ¬ëdÎÐÐÐ×××ÆÆÆÔÔÔÊÊ*!!–7äD­Ö6k=;ôööNHHðööîܹs \B¨i…††V-yñâÅï¿ÿÎV<ÍçÚµk;vìxúô)p§NÊt›—ËŽŽîׯ_`` ®®®Á±cÇàÉ“'·nÝ æóù:u  ƒlêoÍÓÓ“Îá””töìÙÝ»wwêÔ‰ËåöèÑCEEååË—QQQ¿ýö›P(”’’ ŒŒŒ|ûömsGĺš§S?ö÷÷¿páBIII\\ÜÀëª õžÌ:u*22òßÿ>^UUU(V=ñªV“žÌ>}šÏçóùü€€€‘#G†††ÒÓ¦M0eÊ”%K–DGGëèèDEEeeeÑ6ß¾}+##ÄTW›,ü:5§Í›7ççç×,ONN ›>}zˇÔ|ìììÄÅÅé`SîöíÛ·mÛÖ’»çóù .äñxqqqêêêoÞ¼)(( o%''KKKÓCŸÏ///§åÕæ¯gR¾––VQQQNNNÕw5559N\\\ò`úl÷j=ÒÓÓ QVV¶µµ¥Ë)ÔZ355µÖ“9ú’YS…Ãᨨ¨¤¥¥1'j;wîܹs¯^½è‰ZÃÛD¨}())Ù´iS]ïþòË/ïÞ½kÉx𛫫ë¶mÛúõë4ƒnß¾½¹w™™™¹páÂû÷ï¿}û6//oÕªU„sss}}} ‹yóæ•””dddøùù1s$™››Ÿ9sÊÊʪݠfèêê:88L:533³²²òáÇ™™™U  ;;ûĉÍýëj=ggç«W¯æææÚÛÛ5ª®šõœÌ³.PEEEJJŠššZCNÔêj³®³ÃX¬¡&·uëVæÏ˜½«Î¥ðúõëxÔ¦%]¹reÛ¶mtê]®§§§——WsïRZZúÍ›7ÎÎÎJJJzzzçÏŸ?uê”®®.‡Ã9~üxqq±¶¶¶¹¹¹¹¹ùúõëéGïܹӽ{w{{ûÔÕrxx¸’’’™™™‚‚”)SJJJàðáÃÊÊʲ²²–––ô‚5jßj=JLL¼|ùò»w襤¤D"‘˜˜X]5ë9™€íÛ·'$$TTTøûûËËË[[[×s¢vøðá½{÷@]mÖuv¨¢¢Ò¬3b#ÔäJKK7lØgøðá111 ..;|øpú/hÍš5Ì)c;°ÿ~//¯[·nÍ žžžÍ½K999úðRiii~~~ttô÷ßOßRSS;qâDNNNZZZhh(39²ŽŽÎ7ââânÞ¼éëëË<啘˜èèèÈ´,vîÜ™––VTTt÷î]:Y¾¼¼|ppprrrqqñóçÏéÿ`ÔîÕ<*++óõõ‰DB¡pïÞ½ôùµZkÖs2žžžnnnB¡ðÊ•+þù']û¢®µ¨¨¨“'O@]mÖuvèããsðàA…±cÛödU¨ÌÍÍ›jð—6õ•ƒ™ÝmÛ¶-;;{È!wî܉ŒŒ411€ÊÊJssóÈÈÈþùgÔ¨Qééé-p¥³Å|÷Ýw3fÌ044^k˜J±ÝØ¿II‰»»;®.ô5nß¾ýã?~éééTÍÖX“žÌÕÚ²‘‘‘¯¯oµBz¢VsIöÔß&=;d^2-ÛÚÚÒGäÑ7bÑ¢E¦¦¦­­©†+++{ðàÁ­[·,,,h ½QYYI_š˜˜œ8q"..n×®]ååå’’’-as˜0a„ è6wëÖ­˜D›Êˆ#–.]ª§§·cÇŽö÷ w‹133›;wnïÞ½£¢¢ØŽ¡¯DŸ:¡nÞ¼)//O×c ¼wïÔ1¶øÈ‘#={ö¤Ÿš1c†¸¸8•F‡óWÅ4†††Ë—/0`€±±qïÞ½=zT­rÍÁÇu †®«œ’Ø·o“>á¿÷A«HìÞ½{pppûHŸpùòå-[¶$&&wæÌ™3gÎd;¤vBNNnÞ¼y)))Ó§O700صkW»œ’£¹ñx¼%K–ܽ{wذa}ûöý믿؎¡Æ?~ü½{÷˜« ûöí=ztµµ44´oß¾À eÖ£AMböìÙÌ<øÔ‹/ÜÜܺvíºÿþ?6¼)—µ©©¹·oþ6ŸÏ—zü8ÅßÿÀ… kJJNÆÅm8Ф®šàä ))–”´7664&&qáÂÿ=;sêÔ­ÈHÿÿÝ2y²Ã°aËÞ¿ÿãǯËÉysÿþÖW¯öKKKxxÔ2MW‹™4iRµ|nݺõý÷ß[YY]¼x‘¥ jŒ¡C‡–——_¾|yß¾}®®®ÕÞ­glñÀ/]ºD/Ûš˜˜¤¦¦9rÄÊÊJBâk¬z¶®Ëõ’®¿åvœA/^¼òøñcàÍž=›ÃáÌš5‹í¨¾ÀÝ»wííí«ÍbÜ$222ÔÕÕ9_þ{ù‚ªõžù³gÏ\]]ùåf$Oý’’2Ξ½›•.)@ÚP\\úáÃÇøødUÕŽB¡œP(WWÍ'ORoÝz|úôJ>_ŠÏ— p9rehèŒÿNS7D àÀ”)K–쎎×ÑQ‰Šº“•NÛ ôPTt~û¶\Fæ3÷ÿýüüèíÞj?Å×ohjj&''WÛÝÍ›7 deeÕã˜[‰°°0zìÛ1mÚ´®]»²E“7n\``àÕ«W·nÝZí]flqPPŠŠJvvvtt´““ØØØ$''ggg¯]»–ËåÚÚÚnÚ´©êå™F«:ø˜¸¼yóæââbfàr]åõ·L+TVV¶×B:D×522ú”AÙ©µøøñcµ‰ÙšÜ“'O˜%ôê—œœ%''M“"COO-,l~HÈɉÍÍõW­šdmm\kÍÔÔ\yy™ŽeéKN¥¥ï Jh‰ŠÊ§I‡£¢"HKËår9ôîý¿‡äåeÒÒòôõÕêóúõëÍý£ÕtãÆ :¢¹™}úÝ»wööö¡¡¡t¦ïÆéÔ©ÓÝ»wÉç@=ïVVVŽ3¦Ö}æææË–-+++3fÌgƒÑÒR.**ÍÉy£¤$_µÜÙÙÆÙÙ¦¬ìý¯¿5jeNÎÑZkª«+¾yó¶  „ö5““³¤¥%è6¼x‘A7**>¤¤d«©)jjŠ8N\ÜvYY©/úÑäåå«ý2M²qêÔ©Ó§O×Ü£˜˜˜««ë¤I“lll¾(Ô†Û½{·¹¹ùÇàÅ‹MrÖßhîîį̂†voûöí5G_´&&&5“ÊÝ»wéF]c‹àæÍ›Ì¶——W]—^˜¦€žíQ]ºt©5™U|\×`èºÊ«î®¦ZW…¶ÎÅÅÅÅÅ…nÊ sæÌa%wûömeeåøøxf…)]]ݤ¤¤ââbGGÇ… ÒÛ´£GîÚµkffffffÕ±öãÇ—¸ÿ¾´´´···‡‡GDDD£CêС³ðK£8q¢fúìӧϲeˆ Âáp˜™q4Òú IDATê§«ÛÉÁÁlêÔ mÛf‹D ññÉ"‘BaaIzz^ÿþݤ¤ÄE"11^]5õõÕ,, çÍÛ¾yóŒââ2?¿}nnƒªLSwÆÑÑROOÕßÿ€¼¼Œµµ±¸86ä©¢"ÈÎ.ŒŽŽwr²úlœ666ººº_ø#}^AAA͵ÀÄÅÅ'Mšäëë«­­ýêÕ«&ß)åîî~ôèQ.—{ùòe(--íØ±cÍÛWM{öV~øöH¾çÎk—ôÛÑî´œ?>!!ÁÁÁáÓeæÑ©/E/G¼zõªŸ¥SugeeU-¤§Nyyyôå¹s礥¥+++9N~~>-ß³gíô$%%q8œììlZž——ÇápJJJOjj*¨««7â³U}üø±{÷îUn ‹3gÎT­sôèQpv¶!älýÿåç÷ð¬ª*”••23Ó{ölÏ?ÿléÓÇ@NNºcGY Ã76ÔU“³©©Gꯨ(§ª*œ5køÛ·‘´²úêÕ“{÷Ö—••ê×Ï(.n-/,<1{ö--Ÿ/¥«Ûé?ÿUx]º¨ÀóçÏ¿òG«•ŸŸ_ÕŸQ\\|úôéÉÉÉLz‹T[[»9öîîî>þ|ºa``@·ÍÌÌ>L·‡ æää”››[ZZêîîîèèØäaüôÓOpüøñ&o¹Õ:t(Tû'ƒÚÚzûö-Û4—É“'ØÃ›7o^3'ìÚ}Ñ S©©©B¡yLOOi„ÓÊ–=~üx\\ݶ´´\¾|¹ƒƒC£[ø;wέVxûv-—zj­©¦&-//oÇŽ³fÍzþüù–-[Zaú\È¡:´û>è¹sç6lØ@ïÖsçÏŸ?þ|Vâø¢¦Ž;véÒ¥^½zÙÛÛWMN­j)P«W¯6ɳæÍ*1q—£cõ™©[¤¤¤§OŸ†††ª««³KZÛÙB­D»ïƒ9rdÁ‚t®DÞüùóÙúE+Liii]¸py¹lÙ2ºQÏSà-¯OŸ>l‡ÐT½4ÚšÕ5†¡oY»ïƒ}† Âfˆ­P(¤³Ê¡FÿšŸ8q",,LEE¥{÷î<__ߦ ‹E„¸¸¸óçϧ§§geeeee¥§§ eeeeeeuuu33³Љ‰±)úVBÓÒÒ²³³srròóó•”””””ÔÔÔ Zù]¢Ó»wï¡C‡2k æää“>`ùòåìD†Pm†Ú©S§=zoõêÕlÇÓxû÷ï¿pá™3g>»l5dz´´>|¸‡‡‡¼¼|ý•j„ÂÂÂèÿºwï^=7Z$$$úôécmmmmmÝ¿ÿV2±3[˜nhMØE­““3w oõêÕ§ÍõDýàÁƒü‘vCÙY´q*++CBBª>³gkk»nݺ§OŸ~ö³eee‘‘‘óæÍc²¦´´ôâÅ‹é:vMµ>hCÐõAÛfZô³šu}кwïž———œœý)8Ž•••ŸŸßùóçë_§¶¨¨(**jñâÅÌ/)æÎÏTûvÖ½sçNÍ?­>}ú°W«³aÃ`¯mª.£Ûp={ölȧbccéúЄƒˆˆˆ/Ý‘––¤¤¤|é©ÿ·>è’%KÚÄýBÈéÓ§—/_þï¿ÿ€@ puu>}º‘‘Q[””>|øðáÃW®\yðàÁíÛ·ÿûï¿k׮ݺuëܹs™YšZ€ƒƒÃƒZlwÍ­u®Ò¬!çÎ ¼rå -133suuuqq©ºZ_=dee‡ B¯OfddhEEÅ¡C‡LLL蟸¸øœ9sÒÒÒš¤ñ{÷îÍš5‹¹«££Cÿ•~ }PR£ŠÐZ5¼j``°~ýzKKKIII++«ôôôU«VÑ{ !!!„àààª?òõë×åååKKKég/^lmmmbbÒ¿ÿG1m.Y²¤ÿþúúúÑÑÑééé?ýô}8nöìÙô³¤JôÍ›7žžžêêêJJJ...¹¹¹´BAA§§§†††¬¬l¯^½ž={Fÿòµ´´¦L™Rí»¤¤¤888ÈÊÊvëÖ-44´jtõêÕ½{÷æóù–––LœõûÊ>hU°råÊ€€€Æ}˜fÐqãÆåää|}(µº|ù²••ýÅãñBBBÊËË›v7oþ{wãö?ü}zZZZ]]¾¾þÔ©SÝÝÝcbbXXX ª««YYYi³666[¶l¡]«  P]]M¥R/_¾,%%ÕÚÚ Ï+**Ò:Âùóç¯[·®¾¾¾¸¸xîܹ۶mƒçi=¨‘‘‘©©ieeeSS“­­íŠ+`##£ââ⎎Ž?–””PÞÅ7ožMcccvv¶‚‚}*..þéÓ§––WWWZœŒ ²ŒŒôòòúðáîý;àyPx˜m÷îÝeee«§G/^¼X¸p!üÿ'''`úôéCXqqqZZZ}ïAŸ?n``ÀËËËÁÁ¡¤¤tâÄ Úï¯!¼d0ttt80|õ3]qq1üç‡aزeËž?>L UWW{{{ø¯Q^^þòåË}ù?ê`466ž={vØ¿NJ†¢hoúÕƒþùçŸðøêÕ«´[wòòò< R©–––»wï¦R©õõõœœœÉÉÉ´kÏœ9;;;………£££áù³gÏÂó™™™€ªª*øòñãÇìììÔÿzМœ Ãh?p«ªª0 khhÈÎÎtï/zëA3331 ƒÝ9•J½rå }zôèQxüýûw~~~'cC8Šsww§åÚì/OOÏÔÔTssóÖÖÖÓ§O‹‰‰íÞ½>Î5`T*õŸþY¿~½¦¦æ³gÏøùù9þÛò˜èèè<þ¼™ª"""ôôôTTT’’’ÊÊÊÈdrFFƧOŸyÉׯ_—,Y ’Ÿø¥Lž<™B¡ìܹ“=**J[[[QQ1""‚:tI!(ÊÞ½{‰DâÁƒËËËUUUïÞ½›––fkk;Ü«¸ÙÙÙ·mÛöåË—7n‰Äamkô€³¡Í€QQQxÀÁÁ!""÷|‡/ëëëöööׯ_ÿþý{XX˜´´4‰D¢]KÛ3Ã0‘¢¢¢.uòðððóó×ÒÒÒMMM555´( †asæÌ‘”””””TQQááá)**¢P(ÜÜÜ´Ÿ¤?UXX( ÀÇÇ_ÊÊÊÒ¿K»-„Çã§L™B‹sø{xxÀ©¼——×`êRPP¸yóæ§OŸ<<<"##}}}Ïœ9£§§·yóæåË—÷ki~YYÙ•+W.]º”›› àááÙµk×ï¿ÿÎÃÓ‘‘1˜ ûnåÊ•?-ÓÙÙ¹}ûöíÛ·>|žQRR dðÅÝÇKZZZ²²²4ýÓ½9}úôÅ‹‹‹‹7oÞìââ8sæÌÍ›7`™—/_.]º´¤¤„½Çò£¸¸ø™3gÜÜÜþüóÏ€€€´´4aaa +++ÚleÕ××ß¾};((Žk1 ƒK{,X0¤áÿÜ„ ,,,F¬¹'N466ŽXs=%‰¯_¿îquîHZ¸pá¸_Ì¥££ÃËËûàÁƒ+W®ØÚÚÒ¿GŠ€ïß¿çççÓ~ÆÑF2bbbß¾}«©©}…Bagg§õsqqq ÃRRRº<î|ø`kkËÊÊ k¶²² *--íí’ŽŽŽ7oÞ?~|áÂ…´ÿ0D"ñøñã´1;•JMOO((( Iœƒ—Ѿÿ~È/III‘LzôwqoÞ¼™››ÛÙÙ™œœ, jååå'NÌÊÊ‚eìíímmm”åZ[[ÿøãÚ/b@ðôôŒÿþý{_j P(ÁÁÁÛ¶m£ýò›8qâæÍ› †;øQ¢ïÂ_ÁP}1­~ÝÅ¥=é6cÆ Ú[ôO›øøøÌž=›•••v?–úßübZZZ[[Ûþýû%%%ió ´:;;;ÕÔÔ6lØçAÕÔÔ¶nÝÚ¥~CCÃÕ«WÃiβ²2Ú|„¾¾¾±±qII ý<¨¡¡!ýßüï¿ÿ†wJ©Têœ9sàÝÚææf---ú»¸RRRß¿÷ðð ÅÉØ ïↇ‡»»»Ãïs¼§§'†aCrÏdöìÙ—/_>uêTppðÅ‹SSS¯]»víÚ5ÀÌ™3…ÿÃÇÇWRR÷:ÈÈȨ®®†—ãñøåË—oÞ¼YOO¯·#£¼Mݯ_:Œ/qpp tttÔÕÕ Âó—.]211éKŸ¢=«C"‘¬¬¬bbbŒ…„„–.]tøðá–––[·nÝ¿ŸAù¾^¦`aaqsssss{ûöíµk×BBBÊËËáD¸•ŽŽÎäÉ“áZDø+¸¢¢¢¨¨(===**ª¶¶V…Ãá.\heeµjÕ*8ÿKqvvfgggvÌG{NiÜÛ°aÃV®\Iÿë°eËkkëÌÌLEEÅû÷ïwŸ¶À0ìöíÛ;vì’’baaY¹re÷L_!!!îîîjjjUUUÂÂÂÆÆÆp7ŸÐÐÐ}ûö©ªªÖ××ËÉÉ…††œííí}}} BCC£¢¢¬­­aaavvv·nÝbgg×××§Ÿÿ²³³³²²ÊÊÊš1cFq¹{÷î‘Éd)))%%%àååååå5°®˜±´´4??¿åË—Óž7ŒÌ¦M›nÞ¼I[ßÕݨƒ~øðôs Êø’êêê‚‚‚‚‚‚èèh11±‚ÿÐÖý´@èÇ ááášššS¦Lçåå]³f íü”)S:::BCCeddh×öV~ éèèÞ¾}ûìÙ³û8ƒÎÉÉillìïï___Ïìð™ŽA‡oiýXSÄŒõ1hµ··„'OžÐŸØN4JJJwîÜthÃeðkqÿøã¸?àeD?¥     °cÇ*•š‘‘QTT÷|¯©©…ãQ))©1·JbæÌ™D"ñúõë]¦Ù¨TjoßÔŒ/áãビµµµ&LërùO 0VRRbnnþäÉ Üœœ à[Ë–-Û´iSlllPP••ÕOË!8nݺuëÖ­´´´ÄÄļ{÷®¤¤Ž;KKK¹¹¹…þ3yòä%K–(((Œ‰ÝEd]¾|™OOOo¨*¬­­ÍËË“‘‘ª G¸3<Æ»»»c6ÈõDŒa{Óákb$áp¸€€€µk×rppX[[‰ÄÏŸ?ØÚÚÎ;×ÓÓ3"":ûxÉ ãé±Ezõõõ8NQQ𢢢ÐÐP øÖĉ-,,|||âââÎ;÷Óòc++ë²eËèŸ5DÀÇÇÇÁÁñ÷ßÕoÇ„„CCÃuëÖýزg< ÷îÝÊ•+•••ñ‡îtü111yúôéáÇýüü¾ÿ.##³nݺ™3gòóóµµµûuÉ õÖ"øoÕœœœœ›››ºº:@Ô××§_oimm­¬¬¼`Á¸?ÆOË#2nÐ?|B>ë9óçϧ­'¯îß¿O&“eddþ׃2;¤±GKKëÑ£GÝÏ'&&ö¶¡·Khá>;ý*Ð[‹µµµ´5G8pà@u*))Q»=‡Ã <‚ ȯlåÊ•S§NUQQà<ÈìxƸ艹-¶µµ½xñ"55•>ï‚ 2xFFFFFFðøGnoooæÆ„ ¡ 6<þÜËËkÞ¼yÌŽAd\¹sçÎÛ·oW­Z¥¢¢‚;räÈ‘#G˜2”BBBŠŠŠÐmXAhnݺEÿTw||¼¡¡!''§²²òÉ“'›››ûXÕ›7oxyyZ,::zÁ‚œœœššš>`è£LTTÔÑ£Gá3©¨Eç:::œi;ç `gïþºs玑‘‘¡¡áçÏŸsrrÌÍÍMMMƒƒƒY-•Jmoo’lÕªUGUUUýÐè7ªvT@ñ í¨¿îÞ½;kÖ,xÜÑÑA$aJz0­Jo)?{ËÐÙcÐööv"‘èääD_¿§§§   LO) Ï'$$0®úÿó’š™™õ–Ö´†0?(ÎÕÕÕÕÕ•yÝ9‚ ‚‚‚z{¶dð"##iYSSS‹ŠŠÖ¯_ߥ |(ÃÔÔ”••5'''99911ÑÉÉ ¾kffF$KKKïÝ»wþüyÚU–––>|ÈËËcgg·³³£5÷3¡Y·n]eeåÛ·oÄÙcm´™••uñâÅOŸ>¥¥¥Áód2yíÚµlllûË @XX˜³³óÿ>È€óƒŽ4E€Æ SÆ 111ììì{öìaŠƒ:Ð1è¬Y³._¾ £££=æ¥ï-ågo:{Ë ›èò©©© pïÞ=j/cÐÞj£þÿ¼¤ÔÞÓšöÑPæ=~üø±cÇF¬÷Fé#yyùˆˆˆ\H¿ÔeÀ•Œ°E‹©ªªž:uJZZzïÞ½eeeCXyMM <†‰÷˜G³·”Ÿ½eèì-(l¢¸¸˜¾rø’–v´»ÞjƒïÒò’†iMG€™™™l¿oß¾‘lAé‘§§§®®nSSÓ©S§ÎŸ?¿uëV''§!I9ÇÃÃSj†Ût÷–ò³· ½e…S­×¯_÷ññ¡¼~ýº¨¨¨²²2€““³¥¥ž¯¬¬d\D¿óƒ´¦#ÀÐÐÐÐÐãöíÛçìì< 2vÕÖÖ:88ˆ‹‹sss«ªª~ýúPPP°dÉnnnEEųgÏÒOž<©¡¡ÁÆÆ¦¥¥URRrøða@ huž>}zÚ´i\\\RRRÝïŠUWWkiiÙØØ´··×ÕÕ988L™2…@ XXXTUUÁ2ô$&&Ò_ž‘‘1wî\... ‘ßó¤ï-Z¤¥¥›ššNž<)--íääT^^>ÈšgÍš•••á6ÝgÏžõððÈÍÍmkkKMMݼysrr²œœœššÚ®]»JJJÜÜܬ­­1 “——WVVöõõ´´´øûûêdddôõõíííaŸZ^^~çÎÀ„ üüüüýý}||JJJÊËËýýý;æçç‡Çã$ >ÜÒÜÜüÓÚzdggçååõæÍ›.³­#àÖ­[NNNoÞ¼ùñ̓"Bíó<¨‘‘Qqq1}zäyóæÙÙÙ566æää(**Òç@ž>}zZZZ]]¾¾þÔ©SÝÝÝcbbXXXhÙË{LêslåææÊËË»¹¹Á’FFF¦¦¦•••MMM¶¶¶+V¬€ççÍ›gccÓØØ˜­  @€¸¸ø§OŸZZZ\]]¥¤¤~š„™‰kqá bNNNeeeÔ΃޸qcÞ¼yôgž?¾dÉvvö™3g?~.g-,,\¹r¥   ¨¨èöíÛay …¢§§§¬¬¬¡¡áååEûóÖÖÖîØ±CBB‚““SFF†~‰ïÓ§Oµµµa®YVVÖèèhÚ[ÙÙÙŠŠŠêêêGŽùimݳ­•••Mœ8qõêÕýú;@C8Š8qð={öŒHç=@0» mý‚ CNXX¸¼¼¼¢¢‚¶£rw999222eeeôw³²²jjj`2ààà`GGG¸Ã¸¼¼üŽ;¶nÝ  Ú³gOyy9‡LŸ>ýäÉ“ÝsæìÞ½»½½Ýßß_^^ÞÜÜœL&»»»ÛÛÛrssaëBBB€êêjAAÁúúúÂÂÂéÓ§WUUÁÛd2y×®]´¬­­]\\ííí·nÝ¢-Lí‘———§§§ººúüùói'»ì>„/»œ î1Ÿ ÇÖ­[999=<<öìÙsòäI¡‹ÖÖVIIɸ¸¸iÓ¦õýª¡RXX¨¡¡affÖ¯˜ëèè½~ýúâÅ‹û{­¤¤d^^^~~þ”)SÐôãÇÓÒÒ–,Y2cÆ üÞ½{P‚ ¿& …ÂÍÍÝer®°°ŸŸvŸ)))úwik@888DDD`÷ _Ò&ç"""N:•——‡aX]]<ÿ×_IJJÒ’×Ò›Ð*‡‹Mz[êÒ%<?eÊ”Ñt÷êÕ«W¯^õ¥äÈhll|øÚµkCØO‰‰‰EGG߸q£  ``VwCžÖ´ï–,Y²dÉxŒß³g†aCøÓAqLBB¢®®®¢¢Ž!"‘X]]]__×€0N1Ôƒ¤î~~~ÁÁÁË—/ˆˆ`ccëm±IgggK] ¼¼$†<­i¿„††¾~ýzíÚµ?~É¡yPA¨}žÕ××766.))¡Ÿ3gŽƒƒCKKKAAÁ¬Y³è§!i3Xaaa3fÌ Õ£ªªB¥R³²²&MšÛ-,,ƒó[ðÚ¶¶¶•+WêèèÔ××S©TCCÃÕ«WÃFËÊÊnß¾ k›3gÎÑ£G©Tjss³––}RRRß¿÷ðð””Íó QQQÝ¿²yxxÜÝÝá㘛Eè åó §OŸ>}úôˆõÞ‚Œu¡¡¡BBBªªª¼¼¼7nlhh„……}ùò…@ Òo%Ó´¤îšššÛ¶mÓ××§wâĉ7oÞ$‰úúúß¾} VSSãââRWW§Ýh ‹‰‰QQQÑÓÓërsÏÎÎÎÊÊJ@@àÉ“'÷ïßgaaÜ`yyyÑ¿„}gnn®——í5Â\k×®õõõ;w.h_\Aþ3T{%''Ó†€c³Æ ôP^^^ššš.eÐtð†p_\ü®]»ðAA„Yà”——wçοÿþ{_2ˆ!#ïï¿ÿNJJ²´´œ;w.îÌ™3~~~Ì Aä—õùógOOÏÜÜ\OOÏ¡ê>û’ËSII)44ô§UÌþˆ?~œ5kߊ+"""äååáy‰ôÓ —,YrÿþýáŽ0::ÚßßÞÅ£îåž1ƒ IDATA¡E"‘೘HßÁíg988˜“’H$˜¬4;;{ÿþý}¿ÖÝÝÝÖÖÖÈÈhX×èZXX(++Ï›7€Û±cÇŽ;†¯1Aä§Ö­[7TÝgoö¸u¢££czzº£££¤¤$Üc–Á‹=îØ[y___¸»¨¨èñãǽíÈHckkK&“ïܹ7—Ÿ?þ‘#GºÀÞêÑÐÐèìì|ôèÑ ÿ€Œééé9::NŸ>ÀtçÎÃÚ‚ 2bzËå)&&öøñ㺺º°°°“'OFFF(J```oÅ  .VVVêèèµµµõV>##ÃÓÓóéÓ§ )))p(é?¡ÀÀÀÕ«WÛÛÛS( …ò×_õøÔ³xñbú€‡Ã7“’’¸€€úýA±+++ëõë×§Nbgg‡‰Òho™››KJJbF"‘¬¬¬bbbz¬A1‡™3gNš4é?þøöí[|||oåñx|{{{jjjCCƒ€€‰DÊÍÍŠŠ:þ¼€€›Odddccc? ãzfΜÉ8‰÷àÅÄÄœ={6##€`ʶ‚ Èc°Áao['vÁ Xû#öX^VV–L&ûûû¯_¿žD"y{{···÷¸#£œœ\¿>`o;;ÂzxxxºßZëÖ­#‘HjjjüöíÛ‡µ1AdÄô–Ë“ÁÖ‰´Š=íÈ ¼¹¹¹¹¹yssóÉ“'W®\™˜˜È ýgß1N#Z__OË%>L-Z´hÑ"xŒÛ¶mêDAƇÞryÖ××ãp8EEE ÃŠŠŠèŸ ¡eeP páÂ…ÌÌÌöövooo...--­ÞÊgffÆÆÆ¶¶¶²±±„‰'ö+ý'ŒëÉÈȘ={öªí»ààà­[·Â%Z¸sçÎ;wnXÛCAFL2Ø:ÑÙÙùƼ¼¼kÖ¬a¼Ãb÷ý{+ßÜÜìêêJ ®^½èmGÆþbPOlll÷|yCëÙ³gçÏŸÏÌÌ€sçÎ?~ð› +´«‚Œ€¡ÚÕo¬câÎò?…võcàÇD"±­­q±AîêGëA©T*ÞÁÁaX»kAÞÞÞGŽ™8qâ°¶²`Á‚ Àã=(ý3C‚ 2æøùùMžTVV2;Š~ P(ðYï_m ¡aè/…J¥¦§§ÇÇÇGGGçææVTTuvvv/) $$D$ÕÔÔ´´´´´´ØÙÙG2TØ(<ÆÛÚÚbvùò呌AF ‰DÂãñÌŽâ'Þ¿ßÚÚÊì(˜Œ6…Ð0ôWðêÕ«W¯^½xñ"..îÛ·o]Þåâââææ.))©¨¨(//¯ªªªªªÊÌÌ„iÔ&L˜ ¤¤¤¥¥¥««khh8a„áŽùÊ•+/^¼°µµÕÐÐÀ_¹rõ È8öøñc~~~fGñRRR …ÙQ0S—(„†¡ãU~~þõë׃ƒƒì. @DDDWWWKKköìÙD"‘H$öøŸ¾²²²¢¢"///...>>>99ùíÛ·oß¾=sæ ;;»‰‰‰•••®®îðu¥/^¼ “ÉÚÚÚÿëA‡©%A¾è2…Ð0tœihh¸sçεk×âââàZVVÖÕ«W/^¼XSS³S‚‚‚‚‚‚Ó§O‡‰HÛÚÚ^½zŸ˜˜øÏ?ÿܸqãÆD"ÑÒÒÒÊÊjÆŒCþ)lmmµµµ555ø±õ"‚ ãOP CLJÂÂBww÷àà`¸¸}ÅŠVVVzzzƒ,²°°Ð6ªÍËË»~ýúµk×>þìããããã³lÙ2333KKË!œÊÑÐЀˈ8Ô‰"ÂD=@!8 É`¡õâÅ‹åË—‹‹‹“É䎎ÀÀÀ’’’7n,Y²dhïµJHH8p +++!!ÁÁÁŸŸ?**ÊÚÚZZZÚ××·¡¡aHZ ܰaË/¸«W¯ I½‚ ýE?ÅãñbbbúýÁ:ÔãšLd4£R©÷îÝÓÔÔÔÒÒºÿ>++ëŽ;²³³ãââ6nÜÈÍÍ=¬­«©©;w®²²2,,LVV¶  `÷îÝnnnåå僬üåË—×®]ûúõ+tõêÕ!A¤ÿàtâĉ7nÌÊÊš5kàòåË·o߆Çh:¶´µµ]½zU^^ÞØØøåË—‚‚‚žžžùùù~~~RRR# †a«V­ÊÊÊŠŠŠÒÖÖ®®®öööžþ,!!áïïO¡P<<<™†aK—.ý÷ßV¬Xä“cêêêëׯ—‘‘°ݰaÃÐDŠ Ò™™™999ô}'=gjjúáÃ//¯>Œ|x£Ðüùó ìíí%%%}||º?F9òÊËË<(!!±gÏ8ƒ÷l988˜Ýjjjáááiii7ndaap=—.]Z¿~=œzÀ]‚ }µmÛ68ñÉ¢L)ÐüùóËÊÊBCCUTTJJJœ%$$\\\JJJ˜OvvöÖ­[%%%>\SS£££óÐÒÒÍ @^^>00°¦¦F@@``5$$$\¿~=;; Adl™0aÂêÕ«ß¾}ûäÉ]]Ýoß¾?~|Ê”)/_¾™:;;Ÿà½7mÚtãÆ mmm~4ä3BAúkñâÅ‹/~óæÏÝ»w/\¸páÂ…©S§®_¿~ýúõôl'--íÚµk7nÜ(**Lš4iݺu{÷î•——‡¨Têp´;z¨©©©©©Ácœ¥¥%êDAÆ(‰tëÖ­¬¬,WWWðõëWøäemmí´R^^îïïO"‘}||ŠŠŠ¦L™âíí““sùòeZ÷ù+¸xñ¢……ÅóçÏø¿ÿþðëׯ3;*Ad€dddŽ9âííýìÙ³k׮ݽ{÷ùóçÏŸ?ß¼yó¬Y³`:MMM‘¾×™——÷âÅ‹øøøøøøŒŒ 8¸äçç_½zµ••mÖ£Q~w0’’’BBBôõõµµµô Ì A†’’’‹‹Ëš5k†©þ?®_¿¾  @GGÇÚÚÚÅÅîšM"‘öîÝ;|í" ‡ÓÕÕÕÕÕ=þüíÛ·ƒ‚‚ž={öþýû÷ïßûûûdee555…………èðóóÃíÚaòø¿wîÜ¡ßÄ‡ÃØÚÚþöÛoŒ²Žû»¸[¶lÑ×ן7o¿víZfÇ3ž=zôhñâÅ£sMÚ•ŸŸßÒÒ"''Çì@º $‘HŸ>}dggïß¿ŸÙ!¿.vvvø¬KKËëׯá82!!áË—/_¾|éc%püª¢¢2qâÄay¬˜;wîܹsáñ4$$„©!gÒÒÒû÷ï·±±ÌHÍ”)SæÍ›ÇËËëááAÛßù§ÓÓÓ]\\tuuOŸ>}ñâÅââbAAÁÍ›7»¸¸À’yyyöööIII’’’[¶lquu…3I¾¾¾gΜ©ªªâææÞ¹s§³³3}ý¶¶¶·nÝÂáp±±±€¦¦&~~þ.{•ÔÕÕ9;;?xð µµUOO/ `Àëé¤XYYµµµáÂQ*•úþýûOŸ>•––Ò8kjjéG¥"""ªªªÃ‘Ød¸pá³g϶nݪ££ƒ Å0 õ ÃÄÀÀ@TTtË–-GŽAýèÀ0ÌÓÓsÙ²eOŸ>ÕÓÓóðð€ÏŸ1OWLLìñãÇoß¾500˜>}º±±1`ÕªU***‘‘‘åååp@FF†§§grr²œœ\UUUnnn—ú1 ãåå=yò$ ""‚Ö%ÓXZZNš4éÇìì쎎Žvvváááƒük Hßa¦¢¢22OÖŽãÉÁׯ_ߺuËÐÐPGGwóæÍÐÐPf‡4žyxxòóó·lÙ"++{ñâÅ!ß‹KIikhè¿C[çh¶téR8  sÓÃuqýbnn.))‰a‰D²²²‚ùî333ß½{wòäI666 ‰½{÷ÂÂx<¾½½=55µ¡¡A@@€D"õ·¹ÜÜܨ¨¨óçÏ °±±ùøøDFF666ö·åÆý<¨ƒƒÃ­[·`>5œ¹¹¹¹¹9³CÏ h‹Ö†µý¥xzzÒŽcccutt-Zôï¿ýø¡¥¥%...!!A&“+**EEEüüü\\\° -寬¬,™Lö÷÷ÖÑÑé-™% ð9sæHJJJJJª¨¨ðððÀ'êCæÌ™cff&)) `ŠRÀ78 ¥L?Z[Ûàà .¾ž›ÛDUuûׯŎŽçÒÓóÿ””´²µõœ>}wÚ4[..)© ǎݤ]›—W®¯¿Ÿ‡gåìÙçÏ?àå5…ç}}ïJHXqr®µ8~üÖ ?îH ÿ]={ö &Ú}öìY—Ðgi.))177?tèP^^^^^žüáL$«««ëëëa±üü|Ú%æææqqq•••zzz+W®ìoÀââ↥¤¤PþSSS3 ×C!ÈÇwqÏ;gffÀ‡……avóæÍŸ]Å|uuuc"ÎÉÊÊvYûQ8?Ú÷źk×Ãã'$%ù ó¥¦R89Ù¶ÆÇ§º¸¬^³F–|üøˆ„áíÛ/§O76žXµÊ[Eejd¤gyyíŠ?rgdä{z^ON“#VUÕåæö)ïÏ?ÿü“ššJ¥RaÇCûß‘|9kÖ¬ÄÄÄ.ýûï¿‹-ÒÖÖîò« ""’••ëëëq8œ¢¢"†aEEE¡¡¡pQÒ´iÓ”””œ}}}+++á¤& 33³¸¸XCCƒ@ `Q¢ŒŒŒ¾¾¾½½ý™3gDDDÊËËãããMMMû[‚Œrãþ.î›7onß¾½lÙ2@ëA™RŸŽ¿‡ê`?ÊÉÉÙ—Â99%½)+ %x³fõ¼k—¹¹6< ‘䬬ôbb>ÏÏÌ,x÷îKlìq66 ÂÞ½¦Û¶ý Àã'´·w¤¦RDEù¸ú”ùvß¾}}úxLòüùs]]]<OÒÙÙÙÞÞÞ×××ÀÀ 44ÔÍÍM]]@  êëëÃ)I ÃîܹcggG ÄÅÅmllŽ?hnnvuuÍÌÌÄãñrrrKWâî¦VUU%,,lllLëAᨗ6öEdÔÚ¶m›‘‘‘ªª*¿jÕ*fÇósÜÜÜc½ïLJJê¾€200 ‘HÞÞÞ?­„B)ãæf‡Ý'¯Nº“—WŽaX]]“* ¨¨ŠŸŸ‹‹‹ –‘†²²D2y¿Äúõ>$’œ·÷--ÅŸFbhhÈÇÇÀ0 þ£ý,))ùûï¿{ OIIÉÃÃÃÞÞ¾²²’vRGGçóçÏ´—8pà@÷k%%%£££áqpp°¸¸8@YY9))‰ñßäòåË´ã+VÐÖñ¾yóðððøùùùùùu¿&¨255=© ˜¦¼@ƺ±20UUUØ}𦦦†Ý¾}›¹11F$Çôó6_¿~>}z÷ójjjW¯^íK=ÂuuMß„„xèÏãpÿûÇZRRmn~äÉ“#::31 srº\PP ª«ëëë›a'šŸ_N»ÄÜ\ÛÜ\»¹¹íäÉÛ+WþQQñó©PEÅŸw´ÃÊÀÀ ûÉÙ³g»»»›˜˜`foo?€j“““¥¤¤²³³=jkk;èHûоƒGdt:{ölll¬££ãÂ… ñwïÞÇ?F‰Ã‡···ÓŸ¡õýªGFf²¾¾ª½ý™ v¼©©WD„OD„?+«–©¯oÆá0EEI ÃŠŠªBCã44f¦MSR’qvôõÝ\YYwòäßL™™ÅÅU3ØØXÞ‰ñ½6?š$&&>~ü˜þÌÌ™3=<>ÎK—~/*ºQWþæMÀÔ©¢™Ÿ?ÖÖÞ u8°öóçÀ/NEDxî‚'’’ÂÑÑǾ}»›’rAHˆG\œPV–IJòûöínUUXBÂ8`å’’’=z˜1cÆÍ›7?~ühff6$Ý'‚0Å~õõ·*ÆßunnÌ”••W¬XWHàFòw[[[PPÐìÙ³é×\Œ9zzz***IIIeeed29##î'Þ€Iß9xÉÉŸáÃ*ÙÙ%GÞ¤=ý2æüñÇ !!!Ÿ>}277G}'2ÖíÛ·¶8eôT50ãþ.n@@€±±1Ü92 GFFâp¸ .DFFÂ-`ú¨®®ÎÁÁaÊ”)Á¢ªª PXX(((x÷î]•J]¶lÙ† µµµâââÜÜܪªª_¿~í­€¼¼¼«««¶¶¶²²²¦¦fzz: Û…\RR²ËB’ÎÎÎíÛ·oß¾ýðáÃrrrJJJ´­ú»xùòåëׯ™ÞwB……•::N¼¼¦‹9Ï߱ØÙ DMMͺuëRRRÖ¬YƒúNd 9sæÌüùói/_¾|ÉÃÃÓÔÔðññyûö-èå›êæÍ›³gφWmݺ•……>|E&“ÕÕÕ»´B« //ïáá±páBEEÅ9s椥¥u)Üý»®¤¤ÄÌÌŒ@ ˆ‰‰íܹ“vw­·ó¿ ÷ïßß»wn·‚‹ŒŒŒˆˆ™†ÿúë¯Õ«W«©©IIIõýBKKËŠŠŠ>äåå±³³ÛÙÙÄÄÄ®^½jooŸ——wâĉìììsçÎÖ®][XX˜””T[[K&“ᣖ=ÖÝ»w/22òýû÷666FFFmmm  %00>’ÔÔÔ¢¢¢õë×w‰°·[6lPVVîû'V&&êùùÁµµwòò®=j3V uÁÇÇ·víZÔw"cŽ¥¥åÛ·oi+®ƒ‚‚ÌÌÌØÙÙ»”éþMµhÑ¢ÔÔTøhVLLŒ„„ÜW2&&FWW—q£> OMM]±b…££c—w»×™šš²²²æää$'''&&:99Á’½ïÍ8¾‹»cÇŽ{÷îÁ¿<.(999111‡XZZ^¾|™¶m7cpKî²²2˜ ÊÇÇGPP°±±‘ƒƒÃÈÈÈÚÚzéÒ¥ñññ999=*++#€Y³f1®°iÓ&øhãÆ8Ïà%:‰ÄÁÿAù¥ -]º4((èðáÃ---·nݺÿ>}Þ¾©„„„cccÕÕÕwîÜc``ÛÛ#Ñ4›7oæåå,_¾üرcŒ gee%$$¼ËA¡P¸¹¹a÷ÙÇDDDà†a"""Œ7û  ÁkkëàààÎÎÎÈÈHAAA---úw|SéêêÆÆÆFGGëêêêêêFGGgddÔÖÖÒßîüʰ±±5440.\XXÈÃÃÃÏÏ_JKK755ÕÔÔôv~qÀÏÏï·ß~ƒÙœð÷ïßáv{{;™L®ªª¢ýçÄ0ìÒ¥K0ï+c´-¹i3h:::6lذfÍš‡FEE-[¶LBB¢®®®¢¢BHH¨/5º=P¾ÿžŸŸÇ—½Ý$œ9s&‘H¼~ý:í7D¥RÇñ] A†Ä²eË6mÚÔ%;`øM¥««ûûï¿766.^¼XII©°°ðæÍ›ššš“&MdHôßubbbß¾}«©©·å( ;;;_oçÙôõñãÇÀ-9q÷ïßïr'a8}𔔤¬¬ÌÇÇgaa!##3sæÌ!ûc!2~Y[[?}úTCC&˜ì¢·o*..®¹s犈ˆÀ›dºººuuu‹-|<ôßup‡×úúz)))‰D"‘Nœ8èí|Æý<è¬Y³–.]*&&À–.]Ša؃˜sÈËË;vl$÷”èÑÕ«Wmllllô¯\ÙÍÜH~jÖ¬-))”””¦ï‹ûSBBB•••UUU´ù›QKJJ & E{!cÝòåËá­M###fÇ2,|}}Ÿ>}º{÷n===üÇÇñpA>---¬¬¬ÝÏwïVÚÚÚྱ.%%åŸþ177 A†XSS…B),,ÌÎÎæææ†ÓâââÈË £Ü±cÇðxüŽ;¸¹¤î~÷ãÇÞÞÞ£ÿÆU_ìÞ½ÛÜÜÎÜá ™3eff2;dœ P(ááá/_¾ìèèèò.''§¡¡áŠ+–-[ÆÃÃÓc 2æØÛÛO:Õ××w÷îÝŽŽŽ´~úøñãünjj:>ºO€¢¢"í³à —.]ÊÜ€dLû÷ß.\(%%µk×®çÏŸãñøéÓ§/^¼xóæÍk×®ÕÒÒmhh ³´´Þ´iS^^³£F!@$ííí«««<(%%EK¤‘››»råJeee˜þËÝÝÙ‘™Ó§O/Y²äéÓ§ü£GÐ]\˜ØØØýû÷'%%¸¸¸–-[fbb²téR¸—$½âââ»w‡ÿûï¿—.]"“ÉëÖ­;x𠌌 3G!ãìì|éÒ¥––ØÂLéw455OO+¤¦¦>yòdíÚµÜãÇa¢(Aú.//oùò庺ºIIIÞÞÞ!!!æææÝ»O€¨¨èöíÛcbb233mll0 »zõª‚‚ÂþýûáÞâ2F‰DúÆ;;;éßÅápãi سgÏ“'Oôõõ8}}}x„ H_|ÿþýøñã3fÌ€O»ºº8p ³›S§N½råJQQ‘Ý÷ïß=×ìxì IDATJ$Ù ÒñÁÅÅ¥·Ý‘ÆÓ (4cƌŋ‹ŠŠ؃.Y²„Ù!!Èp©®®ÂÚ²³³UTT\\\-,,òòòŽ9Òãj~Æ„„„.]º”””¤¢¢R[[ûíÛ·! AFX—a(Íø€Nž<¹xñâ'OžpOŸ>…3¢2ÎÀ‡ÏæÌ™sþüù.w– ªªÊÖÖVVV655UNN.::úÆ´´3gΜׯ_ûùùuYÁˆ cNÃÐU«V³( ===::º¸¸ Ç^½zõÛo¿ÕÖÖnݺUEEåãÇ®êï¿ÿ–••½rå ‹——×§OŸ†dKRÀ„ vìØ‘‘‘aff6$"SÀ½ZéÏŒË(ÀÉÉ)&&Þ»Åééé Õw‚Œ*÷îÝ ÿøñ£²²²©©éû÷ïû^CGGGHHˆ¢¢¢¥¥eMMÍâÅ‹SRRÜÝÝŸ£ QQÑ[·n‰‹‹mµ2’\]]éÿ¯aff6cÆ &Æ3L¦OŸ¾hѢɓ'𺺺†EGG3;*dfœ?Åì(~¢ªªžÙ!ôÏŠ+ ]\\Ξ={÷îÝ»wï­]»vÍš5½å°´´´Éd//¯²²2''§§§çž={†5Tô\2¦Áaè¹sç8ÎÍÍÙ ŸG9;;ÿXB„aa*2™Ììý“’’Âì¿Y¿•––:99Ñ5acc³°°¸|ùrLLLVVVuuõ‡tuu500ÀÇÅÅ¡õ ‚ ã’……ÅæÍ›™ÅHX¼xq[[Û4”••õüùs8Šÿ÷ßG IAdäM™2E[[›ÙQŒ„ º¸¸ØØØÈÉÉð¿ÈAAONNvŸœ¶¶¶ŽŽsBA1áèÑ£ZZZÿüóæAA¤/¾|ùòâÅ ¸× þŋ̎AAƆýû÷ÛÙÙM:€×ÐÐ`v<‚ 26L:vŸœ†††¦¦&sBA1áðáÃêêê>à_½z…æAA¤/²³³ÊËËìA™‚ ‚Œ Ü´i“ŒŒ ?þ|fǃ ‚ cƒ´´´´´4<Æ©©©©««37 A¼½½çÍ›À'%%¡yPA鋜œœ×¯_WTTpIII‰‰‰Ì AA~——ˆˆ`v=sss{ýúµ‘‘?wî\fǃ ‚ür¨TjGGgv ý#%%%%%qsçÎ7osBA˜¥¶¶ÖÁÁA\\œ››[UUõëׯ€‚‚‚%K–pss+**ž={–——öõõ•àää=~ü8}zÚ´i\\\RRRÇŽƒ'ååå<¨©©)//Ÿ˜˜Øc뀜œvvö9s椥¥è_„¡?þøcΜ9<à“““Ñ<(‚ È/kíÚµx<>))IXX855•““`ff6sæÌððð²²²åË—Ã’žžžÉÉÉrrrUUU¹¹¹ð¼¥¥å¤I“>|øÀÎÎîèèhgg{üø±„„ÄÛ·o ¦OŸnll ˆŒŒŒ‹‹voð×_ݼySNNî÷ßwttŒù¿L(Ê›7o*++àÍ›7oÞ¼¡"‚ ã :;;3.– (++£?™™™‰Ãá¾}û_^»v‡‡‡J¥~þü™ýÎ;õõõ´Â999†•——×UUU†544tih×®]ŽŽŽT*uÚ´igÏžeÐz—2ïß¿çääüéç4i µµõ§%‰B¡¼}û¶²²’J¥âTUUUUU™Ù¡#‚ LB¡P¸¹¹ ýÉÂÂB~~~nnnø’6í'++K&“ýýý………uttâããa †Í™3GRRRRRREE…‡‡§¨¨¡¥¥%...!!A&“áúU€¨¨(ƒÖ!"‘899†þ“”„„„ŠŠ @ãTUUI$³CBA˜@BB¢®®ŽÖ·AD"±ººº¾¾¾¤P(´·ÌÍÍãââ*++õôôV®\ Ç0,%%…òŸšš99¹’’ssóC‡ååååååÙÙÙQ©TX mê°ÇÖG9OOO•û÷ïpïÞ½{÷î³CBA˜@FFF__ßÞÞ¾´´´³³óÓ§O¥¥¥òòòªªªÎÎέ­­………'Nœ€…333ccc[[[ÙØØÂĉ»Ô(//¿sç ¾¾‡Ã)**bVTTÚÇÖGðÓD~~þû÷ïáj)Ü»wïÞ¾}ËìAæ RUUåååݸq#¼eöåË`hhhggK677»ºº«W¯†……Áó!!!ÂÂÂjjj\\\êêêp»u999777uuuMMÍmÛ¶éëë÷½õÑÌËËëýû÷puFV#‚ ㆳ³³³³3í1’{óæžž^mmí6LXYY[[[[[[YXXF¬Qœ’’’ŠŠÊˆµ‡ ‚ c—‡‡ÇìÙ³ïÝ»Àüø=Š ‚ }QPPðéÓ§êêj{Pfǃ ‚Œ^$i”ßÂIüñÇ®]»ÄÄÄøY³f1;žQáèÑ£.\`vãÜÁƒíí홂 ÈÀ‰‰‰ÁîÀÃ04­­­ÍÏÏgvã\]]³C@77·ˆˆoooccc|JJ š¥9p`ÍæÍ˘Å8tøpÈÅ‹™‚ È`¥¦¦ÖÔÔð©©©ÌŽgáááœ2EˆÙQŒC\\lÌA>‰?räHbbâ÷ïßeee---·mÛÆÆÆ¶`ÁMMMoooúÂ=ž())¹¸¸¬Y³f`1H¤½{÷øòaåíí½wï^¸1!nÆŒ3fÌ`vH‚ óEDDèé驨¨$%%•••‘É䌌ŒOŸ>1;®QDTTTAA¦{Ã͘1CQQ‘Ù!!‚ LÖÙÙ¹}ûöíÛ·>|XNNŽƒƒCII)00pîܹýªÇÑÑ1==ÝÑÑQRRÒÖÖPRRbffF ÄÄÄvîÜÙÜÜ Köv~4;pà€‚‚BDD—žžžžžÎìA&KMM-**Z¿~}—óý]+   @¡P¦¦¦¬¬¬999ÉÉɉ‰‰NNN°doçG³’’’ŒŒ øx.==}T¥ÿFA˜æH¡¥*YYY ~~~œœœ“'O>tè™L¦R©½Úևܑ#G233MLLøéÓ§3;A„ùEEEBBC¹ ²°°‡‡‡ŸŸ¾”––njjª©©éí<íÌè$"""""qòòò Ì Aaº™3g‰Äëׯw9?€q!‡£‹‰‰}ûö >þ P(ììì|||½hø#dÿþýÓ¦M ಲ²233™‚ Âd8. àìÙ³¹¹¹mmm©©©›7oNNN†:::Zè0¨JDD$++ ËÉÉ©©©íÚµ«¡¡¡¤¤ÄÍÍÍÚÚðÞÎûçœÒÒÒÏŸ?ûö  A¡111yúôiRR’²²2Ÿ………ŒŒÌÌ™3á»ÇŽc£Ã —§³³ó7xyy׬YƒaØíÛ·ëë륤¤H$‰D‚)»{;?Ê=zôóçÏ+W®àåä䘂 2Zhii=zô¨ûù¸¸¸>žèèè|þü™ö’H$Þ¹s§{±Þοyó¦oÁ2°°°°°0<ÆÉÉÉM›6¹!‚ Șàââ2uêÔ»wïð_¾|ý÷Ad4(//ÏÎΆy2p_¿~ýòå ³C3 ’’Ú0i’‘€€Ùòåž_¿ÿô’7o>óòšG0JJ[CCÿŽšA?~<;;ÛÔÔ€“‘‘‘‘‘avHcÆo¿Í‹=^Y–œìO¥R7n<Ý¥•JmoïÖF  A¤GBBBÒÒÒ\\\ö S§NevHcƼyòRR"\\lS¦‰Š ðñqÂóòòvijî‘—·KLÌ,(¨X²ä7·‰¢âæÄÄž—:ËËÛ¹º’µµ÷*+oÓÔÜ“žþ#;ééÓw§M³åâ2‘’ÚpìØMúòôM8:žKOÏwtüSRÒÊÖÖ×ß?rÞ¼´Âññ©¼¼¦ÍÍmô-–”T›™&V‹‰YîÜyžöno‘ÔÕ598L™²Ž@Xmaq¬ªªŽVÞÃ#xáÂ}ŠŠ›çÌÙ‘––7YA±`ß¾}ÒÒÒp>''̓ö ™üÄÕ•\[Û0wî´¨¨C´ó‘‘ qq>Ü5µßÄKKCKK«ûÍ£·ªîÝKxñâ4g`àc##÷ÌÌË,,x11ÁÇHHÞ¾ýb`ppútqcãùÝ›ÐÔœŸêâ²zÍ@MMƒ³s`ZZÞŒ0ȵk°±±Ð7gjzHFfrNÎÕúúæ+¼œœ.=»A$––Ç'MšøáÃ9vvVGÇ?íì΄‡»Ãò&?}z„——óðáGÇs±±Ç‡ð/Œ 2jUVVæææÖ××p999ÙÙÙÌi,Y½Zçýû?Ÿ<9RW×´oßeÚù-[–Á¾-+«ðõë¬S§6±³O’–ž¼wïªÞªÚ´i)ÅnܨßÔÔŸ 07×–”Æ0ŒD’³²Ò‹‰ùн‰îøø8MM5¯\y hhh ‹·µ]B_ +«0!!ÃÏÏ““mòdþC‡¬Èä'´­FºG’›[õúüyGn66»ÈÈ„ÆÆÏPoÞ¼”——°|ùüääÏAä×pâÄ …²jÕ*^JJŠÙñŒ1ìì“ØÙ'MžÌïë»YOÏÅ×w3++ @TT(,¬à¢Ýà••íu›f‘ûWa&"ÂWTT ˆˆxuêÔ¼¼r Ãêêš TiåiMôÈÞÞÐÜüð±cÃÂ⥥EH¤ÿ÷¤oaa%??|)-=¹©©µ¦¦žé ‡a˜3Ç‘VGQQ•œ (ø£#gccih ‰A†„€€€€À¯b¼¤¤$‡ËÉÉanLc?a„Û?Òî…‰µµ­­ß'Mš(-­îíòììxðý{{~~9‘(XRRmn~äÉ“#::31 srº\PPA+ßåv;÷ÿ^ëèÌäååxðàõ•+mm º´%&&øí[cMMìÚ)”2vöI´n¾{$ââ ÃRR.rq±õçO‚ 2ž999ݺuëÔ©S«V­ÂåååQ(f‡46|ÿÞ~ìØÍ¬¬Âoß_¿ÎÚ»÷’‰‰ÆÄ‰ø.Åäå§(+ËøúÞ´´´ùûGöVáÅ‹ÓÓó¿o÷ô¼ÎÃᥥX_ߌÃaŠŠ’†U…†Æ1ˆGD„?+«€þŒ¡—×õ7o¾¬[·¨Ka99¢ššü®]šKJªÝÜ‚¬­Ó¦À»G"#3Y__ÕÞþLii  ¼¼öÎ}ýK!‚ŒSUUUùùùpGCÔƒö†a ::NÂê5kŽ.\8ûÒ¥ß{,v0&惊Ê6==W==åÞ*ܲe™µõI³gÏ>Þ¿ïÅ‚—“#º¹Y¨«ïÒÔܳmÛY}}ÕÞ®8;›ß¸ñŒ—×tÍš£ð̆ zééùÆÆóiwk郿}Û­¾¾IJj‰äH"É8aÏ @Hˆ‹°0¯šÚN..uõ]¯^¡Lì‚üêNž<™ŸŸoffÀ‹‹‹3;ž1ŸéÙã[™™—é_JHž>=J{éînÙãUÓ§OquõïròÀµ¬ýi™Ÿ?ÒŸàæãã첆ˆ†H¸sÇ­ï‘ððpøù9øù90ˆdêTQ*µ‡-4AÆ%~~~ZSœ¸¸¸„„sB†ÊåËøø8ŒzAÁسg˜˜XXX_PP€žøøVqpLúûoôAèܹsÝ3fKmmm?/4jjjŠŠŠøÂ‘ié¢û]ÙAª©¹=J"Ad”¨¯¯‡Ïþ#CåôéÓÞÞÞ¼¼¼<‘ØëÓŠ‚ ȵuëÖõë×3;Š‘6qâÄán‚——vŸö †¡‘(‚ ÈxÂÉÉÉÉÉÉì(Æ¡]»vݼyóÌ™3æææøââb4m† ‚ }ñíÛ·’’’¦¦&®¸¸¸¨¨ˆÙ!!CiyCI$G”vA¤G¾¾¾¥¥¥«W¯à'OžÌìxP©ÔŽŽN<~³AAþ‡‡‡‡‡‡ãDDDDEE™Ðøàë{WBŠ“s…¨¨Åñã·àÉSr š¿x‘ $&fòòšÒ*¡OúèчqñõÜÜ&ªªÛ¿~-†ezKÛ uÉÚ[ ÎÿôC!‚ü²~ÿýwaaá›7opeee¥¥¥ÌiÌËÈÈ÷ô¼þôéц†ˆ”” ººJð¼©é!VÖ‰99W““3œ.ý´ªÈÈ„ÈH¬¬À?ÿ¼_XX™”äW[{—LÞÃÉùc‡wKËãß>|8——ÌÎ>ÉÎî ýå[ĶQ(×w1ˆá§±õö¡A~YuuuåååÍÍÍõ CŸÐÞÞ‘šJihhà†™Å§äì Lš“SòèÑ›ÀÀ]“'óãpجYR0ã´ÝõC_bëñC!‚üÊüüüÊËË׬YÀÀìÆÕ4[³u³ï;ˆ²ï[µ'q&G“€q·5&㌣IÆLŒHeÄ…VA•U ‹Œ‚àŽ 1A (*ˆÈç÷ÇÍWO?­`žŒ_Hô¾z9u ªÞ[]·«NPÐ*Ò+{¬–œã§"M@›šî«« tu…2Ï65Ý'm;ÍÍçš›Ïuu]FÚvŽ•m¬~NmÏ\) …By•QSSÓÑÑQRR2‚êééMtI/³gž8±©½=7$ÄeÖ¬/Aª%'y×’SUU©¿ÿ§IÇööÇ2yȵEffz]]½mm²Ïrm;›šö‘ŸG’®×Ò}CǪa¬ÇŸ»R …ò*³bÅ mmíììl൵µµµµ=÷=”ñ¹q£¹²òâÀÀ²²‚®®4 «%§»»mII-ôõÙ=Tº=çè(^¾|‹ôéü9m;¥û†ŽUÃøíBÇY) …By•éééyøða?ðÚÛÛéú¿Ó×7øÉ']Ý·µ´Âöìù:7÷3»%gLÌ‚³g—„„¬‹ÆÊ™ý‰ŽŽ†›Ûr¡pÖüùq==}äñç¶í”î:V ã· g¥( åU&11ñáÇï¾û.0ÏýbË+ÂêÕ«cbbbb®Zõ׉®å%dÕª±±y±±±ÿüç?q’ªªª¨¨¨êêê¡¡!›ˆˆˆeË–)++ÿœ÷ÖÕÕ…„„tvvŽÿ²òòòÈÈȺº:DtqqùôÓOg̘ñ‹ žìì좣£gΜ)óø… æÎÛÒÒ‚ˆCCC&&&7nܘ )”—ž–––¶¶öD—A¡<‡#GŽ„„„¸ººÖÔÔÜ¿_"‘\¿~ýòåË/pyyyúÓŸÞxãï¾û®±±qöìÙ¡¡¡éééÿcZD~!þ/ ’H$=êììÜ¿ÿ¯P…òR²|ùrMMͬ¬,àutttttLtIÊxŒŽŽ._¾|ùòå6l°µµUQQqvvÞ½{·§§'´¶¶†……éêêôÑGä:-hnnþÃþ ®®îààP]]ÍeëêêúàƒLLLtuuÃÃÃ>|###}ôÑŠ+V¯^mhh¨§§·bÅŠ5kÖ¬\¹r``´µµOúiʹººškÎðÌl`gg÷ŸÿüÇßßßÎÎ.<<ÜËË‹+ ªªJ(rurrrœœ~:¥¿téRÒ€P"‘øúú޳šÒ ’^ÍŽŽŽ€€€¿ÿýïÃÃà ,H$yyyæææiiiÒË}:ís+¡P^ez{{=zD´Àëèèàöy å·I}}ý;wžnÕD¾úª¤¤ÔØØX[[[]]½jÕ*òlXX˜‘‘ѽ{÷ RRR¸wEDD´µµ]¼xñöíÛ`áÂ…Ü"æÌ™#Μ9íííçΧ¶gf#äççççç744¤¦¦^¾|ùêÕŸnD%‘HÞ}÷]™óÏÓ¦M«¯¯ooo€ŠŠ 33³ªª*³šÒ ò÷÷'455ùùù‰Åb‰DÂçówïÞýöÛo/Z´¨©©iþüùÒË}:ís+¡P^e’’’:;;ÃÃÀ'‰D"ÑD—D¡Œù²Û3{Ù644œ9s&>>^UUÕÀÀ`ýúõ‰Ξ=»yóf@`iiù¯ý‹¼þÖ­[ÅÅÅ)))ZZZÊÊÊ111ùùùOž¸»»—””@__ßs³=“… ®[·®®®Nf¶•#00°©©©   88˜ÇãmÙ²…œ8k5Ÿ™GQQñðáꪪo¼ñFOÏxw‘+í8•P(¯8ÉÉÉ]]]ÀSWWWWWŸè’(”çð—¿ü¥¬¬¬¦¦ÆÅÅE$…‡‡[YY9::2 sðàÁîîn wwwww÷M›6‘·äææVTT¸ºº†„„„„„p©²²²ôôô¼½½ÕÔÔ|}}OŸ>M -***..¶¶¶ÖÓÓ[½zuQQÑ_ÿúÓõÁ111gÏžutt ‹ÅÏÍö4ûÛß®]»öç?ÿy¬y555OOO}}}2ãÜÕÕ5mÚ4øéÏ^Íg"//Ÿ““cdd4}úôÇeï É1VÚq*¡P^q”””ÔÔÔäåå€QSScfœ}ìÞQáÿ+/äŽ ¿&---~~~aaa±±±/*çÈȈ¡¡aFFÆk¯½ö¢rR(”_™>ø ===555""‚×ÝÝÝÝÝ=Ñ%Q(¿-ŒËËËUUU›››_TÎ]»v‰D"éOà åwÇÀÀÀ“'O†††€?þ4 …òÊbccóÅ_¼¨l"‘HEE%33s¬ÉK …ò»`ûöíIIIäj¾ŠŠÊD×C¡¼üpßw¥P(¿kÈð de†~%ŒŒŒþ·0}Õè( åðþûï§§§ïرcΜ9üÞÞ^zZ‰ã“OÒ>ù$íù¯£P(Ê+ÉÐÐP__éâÀïííèz~ðù|%%¥‰®â%‡\XI¡P(¿_RSSSRRˆÍhP …B¡P~ <%%%@0ÑeP( …ò;`ñâÅŠŠŠ¤s0``€ÎƒR( …òs†Üz›ûn.…B¡P(”±•““ãñxt”B¡P(”_OAAv,¢P( åç°páB>Ÿ¿oß>à ÑyP …BSÌô nIDAT¡P~£££äD.0ä²P99¹‰®ŠB¡P(”ß:ˆˆˆ Ã0 #·nݺÈÈH†aÌÌÌNœ8±oß>gffvüøñôôt999SSÓŠŠŠŒŒ yyy“òòòŒŒ “²²²ýû÷+**—––fff*++;v,33S =z4++KEEÅÐа¸¸8;;[UUÕÐа¨¨(;;[]]ÝÀÀ °°0''GCCC__???ÿÀB¡P__ÿÈ‘#ÐÔÔÔÓÓ;|øpnn®–––®®n^^ÞÁƒµµµuuuŸ]YYéãã#''÷ÕW_?~ÜÏÏÇãEEE?~ÜßߟÇãEFFž8q" €a˜õëןwîœOOOOttôùóç}||ººº6nÜxáÂooïÇÇÄÄ\ºtÉËË«³³3&&æòåË^^^›6mºr劧§çÇccc¯^½êááÑÞÞ{íÚ5¶¶¶Í›7_¿~ÝÝÝýþýûqqq nnn÷îÝ‹‹‹ûî»ïÜÜÜZ[[·lÙróæMWW×;wîlݺõ‡~pqqiiiÙºukcc£‹‹Ksss||ü­[·œoß¾pûöm''§¦¦¦„„„üÑÉÉéÖ­[‰‰‰ÍÍÍS§Nýᇒ’’îܹãèèøý÷ß'%%ݽ{×ÑÑñæÍ›Û¶mkmmupphhhHNN¾wƒÃ7’““áÔÕÕùúúJ §»»[F8B¡ÐÀÀ€ÇãÀºuëqíÚµ°~ýzDüôÓO ** ׬Y7nDÄU«VÀ¦M›qåÊ•‡ˆü1ÄÇÇ#â‡~‰‰‰ˆ¸téRHNNFÄ%K–@jj*".Z´vî܉ˆóçÏ€´´4Dœ7oýí½÷Þ€ôôtD €ÌÌLD|çw ''à77gÍš‡BÄ™3g@~~>"¾ùæ›PXXˆˆ3fÌ€’’D|ýõ× ´´IËÆ²²2D$„+++‘eY8yò$"@UU"úúúÀéÓ§ÑÛÛjjjÑÃÃêêêÑÕÕΟ?ˆNNNpéÒ%Dttt€úúzD´··€k×®!â¤I“ ¡¡mllàûï¿GDKKKhllDD333¸}û6"š˜˜@KK "ÀÝ»wQOOîß¿ˆ:::ÐÞÞŽˆ¤±sGG"jhhÀãÇQMM zzz‘\ÜÛÛ‹ˆd‚|``I;ÙááaD$ÛÌèè(9Áãñ‘œÌ——GDòoEEED$7½ˆHn¿¬¦¦†ˆ¤%­††"vtt€¦¦&"¶··€ŽŽ"Þ¿ôôôñîÝ»`hhˆˆ---`bb‚ˆ·oß333DlllKKKD¼yó&ØØØ bCCØÙÙ!âµk×ÀÞÞ¯\¹ŽŽŽˆxéÒ%pvvFÄóçÏ€««+"ÖÖÖ€‡‡"ÖÔÔ€··7"’NÚ¾¾¾ˆXUUˆxòäI`Y+++`Ú´iˆXVV¯½ö"–––Àë¯¿Žˆ%%%0cÆ D,,,€7ß|óóó`æÌ™ˆxèÐ!˜5k"æææ@XX"æääÀ;#ˆ™™™ŽˆäJµ÷Þ{Ép5oÞ#¦€µk×""iwóÅ_ âçŸÎ ç³Ï>€ 6pÂ‰ŽŽFÄÿûßœpHsÙÍ›7sÂÙºu+"®X±‚βeË`Û¶mœp¶oߎˆ‹/愳`Áؽ{7'œ={ö âܹs9áDDDÀþýû9ádgg#âìÙ³9ᄆ†@^^'œ#GŽ â[o½Å çü#sÂ9vì"NŸ>Npp0TTTpÂ9qâ"rÂñóó€o¿ý–Nuu5"zzz@mm-"º¹¹qÂqvv€‹/r¹rå "N™2…ŽܸqƒÎÍ›7ÑÊÊŠ޹¹9455qÂinnFDÒzG__îÝ»Ç §­­ µ´´8á…Bèììä„ÓÝ݈¤µ ¹+\?'œ¡¡!D$§HGGG†á„ÃçóqppN__(++sÂQUUEÄ®®.N8¤ÍƒH$â„£­­ˆ<à„ÓÚÚ œpŒñÇn›‘ûüóÏY–eY–ü¥ÌÍÍY–533cÆÂ‚ÄÄJ,Ëšššr±‰‰ Ã0VVV$kkk–e¹ØÈȈa€­­-˲D÷$&#ù¤I“¸ØÎÎŽeYò_!1&OžÌÅööö,Ëêêêr1ùÏM™2…‹X–ÕÖÖæbòuttäâ©S§²,K†‹D"prrâbggg–eÉ@b2ü¸¸¸ˆÅbuuub[–e¥c²•¸¹¹‰ÅbUUUpwwgYV:&[‡‡‡X,&C—§§'˲ұ²²2xyy‰Åb²…y{{³,+“¡ÎÇÇG,“ “|}}Y–•ŽÉéçç'‹Éý¨üýýY–•ŽÉ– ‹É0Ȳ¬tLf̓‚‚Äb1‰ÉöC¶l–eÉgS“ÃFGb““cY–‹Øßߟa>ŸOb——gY–(ƒÄ¾¾¾ Ã(((˜ì-,Ëúøøp±··7Ã0JJJ$&{˲^^^\ìééÉ0Œ@ 1¨¨¨°,KŽ{HìîîNö:.VSScY–è‰ÄäØH]]‹544X–uqqáb¢0¡PÈÅ"‘ˆeYr,Eâ©S§€¦¦&kii±,K”Gb²‡s±ŽŽ˲D…$&Çaºººb±xòäÉÄ,ËJÇD—úúúb±˜«°,+ÛÚÚ€¡¡¡X,&J522bYV:¶¶¶&6‹ÅDµ&&&,ËZYY1 CbrÌgjjʲ¬……˜™™‘˜œîzZ8À ‡“Œp€'á'N>/p¸ØÕÕUF>œp¸ØÝÝ]F>œp¸ØÓÓSF>œp¸ØÛÛ[F>œp¸Ø××WF>œp¸Øßß_F>œp¸800PF>œp¸˜‡‹e„œp8ùÈ8ápò‘pÂáä#-²Íü¨85GJ¥Ò6IEND®B`‚codequery-0.21.0/gui/000077500000000000000000000000001310136352400143545ustar00rootroot00000000000000codequery-0.21.0/gui/CMakeLists.txt000066400000000000000000000147471310136352400171310ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.2.2) project(CodeQueryGUI) #ADD_DEFINITIONS( -Wall ) # with SET() command you can change variables or define new ones # here we define CODEQUERY_SRCS variable that contains a list of all .cpp files # note that we don't need \ at the end of line SET( CODEQUERY_SRCS sqlqueryadv.cpp std2qt.cpp langtable.cpp fileviewer.cpp listhandler.cpp searchhandler.cpp mainwindow.cpp graphdialog.cpp aboutdialog.cpp fileviewsettingsdialog.cpp themes.cpp main_gui.cpp winmain.cpp ) # another list, this time it includes all header files that should be treated with moc SET( CODEQUERY_MOC_HDRS fileviewer.h listhandler.h searchhandler.h mainwindow.h graphdialog.h aboutdialog.h fileviewsettingsdialog.h ) # some .ui files SET( CODEQUERY_UIS ui/mainWindow.ui ui/graphDialog.ui ui/aboutDialog.ui ui/fileViewSettingsDialog.ui ) # and finally an resource file SET( CODEQUERY_RCS codequery.qrc ) # translation files SET( CODEQUERY_TRANS translations/codequery_de.ts translations/codequery_en.ts translations/codequery_es.ts translations/codequery_fr.ts translations/codequery_id.ts translations/codequery_it.ts translations/codequery_ja.ts translations/codequery_ko.ts translations/codequery_zh-CHS.ts translations/codequery_zh-CHT.ts ) add_definitions( -DNO_QDESIGNER_WIDGET_EXPORT ) INCLUDE_DIRECTORIES( "../scintilla/qt/ScintillaEdit" ) INCLUDE_DIRECTORIES( "../scintilla/qt/ScintillaEditBase" ) INCLUDE_DIRECTORIES( "../scintilla/include" ) INCLUDE_DIRECTORIES( "../scintilla/src" ) INCLUDE_DIRECTORIES( "../scintilla/lexlib" ) INCLUDE_DIRECTORIES( "${SQLITE_INCLUDE_DIR}" ) INCLUDE_DIRECTORIES( "${CMAKE_CURRENT_BINARY_DIR}" ) INCLUDE_DIRECTORIES( "." ) INCLUDE_DIRECTORIES( "./translations" ) INCLUDE_DIRECTORIES( "../querylib" ) INCLUDE_DIRECTORIES( "../makedb" ) INCLUDE_DIRECTORIES( "../showgraph" ) INCLUDE_DIRECTORIES( "/usr/local/include" ) FIND_PACKAGE( Sqlite REQUIRED ) if (BUILD_QT5) # this command finds Qt4 libraries and sets all required variables # note that it's Qt4, not QT4 or qt4 FIND_PACKAGE( Qt5Widgets 5.2.1 REQUIRED ) FIND_PACKAGE( Qt5Core REQUIRED ) FIND_PACKAGE( Qt5Concurrent REQUIRED ) FIND_PACKAGE( Qt5Xml REQUIRED ) FIND_PACKAGE( Qt5LinguistTools REQUIRED ) add_definitions( -DUSE_QT5 ) set_target_properties(Qt5::Core PROPERTIES MAP_IMPORTED_CONFIG_COVERAGE "RELEASE") SET(CMAKE_AUTOMOC ON) SET(CMAKE_INCLUDE_CURRENT_DIR ON) get_target_property(QT_RCC_EXECUTABLE Qt5::rcc LOCATION) QT5_ADD_TRANSLATION( QM ${CODEQUERY_TRANS} ) # this command will generate rules that will run rcc on all files from CODEQUERY_RCS # in result CODEQUERY_RC_SRCS variable will contain paths to files produced by rcc # QT4_ADD_RESOURCES( CODEQUERY_RC_SRCS ${CODEQUERY_RCS} ) SET( CODEQUERY_RC_NAME codequery ) SET( CODEQUERY_RC_QRC "${CMAKE_CURRENT_SOURCE_DIR}/${CODEQUERY_RC_NAME}.qrc") SET( CODEQUERY_RC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/qrc_${CODEQUERY_RC_NAME}.cxx") # Run the resource compiler (rcc_options should already be set). We can't # use QT4_ADD_RESOURCES because the qrc file may not exist yet. ADD_CUSTOM_COMMAND( OUTPUT ${CODEQUERY_RC_SRCS} COMMAND ${QT_RCC_EXECUTABLE} ARGS ${rcc_options} -name ${CODEQUERY_RC_NAME} -o ${CODEQUERY_RC_SRCS} ${CODEQUERY_RC_QRC} DEPENDS ${QM} ) # this will run uic on .ui files: QT5_WRAP_UI( CODEQUERY_UI_HDRS ${CODEQUERY_UIS} ) # we need this to be able to include headers produced by uic in our code # (CMAKE_BINARY_DIR holds a path to the build directory, while INCLUDE_DIRECTORIES() works just like INCLUDEPATH from qmake) INCLUDE_DIRECTORIES( "${Qt5Widgets_INCLUDE_DIRS}" ) if(WIN32) SET(CQ_WIN_RCS cqwin32.rc) add_executable( codequery WIN32 ${CODEQUERY_SRCS} ${CODEQUERY_MOC_SRCS} ${CODEQUERY_RC_SRCS} ${CODEQUERY_UI_HDRS} ${QM} ${CQ_WIN_RCS} ) target_link_libraries( codequery Qt5::Widgets Qt5::Concurrent Qt5::WinMain ${SQLITE_LIBRARIES} sqlquery_lib small_lib cqshowgraph-qt5 scintillaedit) else() add_executable( codequery ${CODEQUERY_SRCS} ${CODEQUERY_MOC_SRCS} ${CODEQUERY_RC_SRCS} ${CODEQUERY_UI_HDRS} ${QM} ) target_link_libraries( codequery Qt5::Widgets Qt5::Concurrent ${SQLITE_LIBRARIES} sqlquery_lib small_lib cqshowgraph-qt5 scintillaedit) endif() install(TARGETS codequery RUNTIME DESTINATION bin) else (BUILD_QT5) # by default only QtCore and QtGui modules are enabled # other modules must be enabled like this: #SET( QT_USE_QTXML TRUE ) #SET( QT_USE_QTSQL TRUE ) SET( QT_DONT_USE_QTGUI FALSE ) # this command finds Qt4 libraries and sets all required variables # note that it's Qt4, not QT4 or qt4 FIND_PACKAGE( Qt4 REQUIRED ) # add some useful macros and variables # (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains a path to CMake script) INCLUDE( "${QT_USE_FILE}" ) QT4_ADD_TRANSLATION( QM ${CODEQUERY_TRANS} ) # this command will generate rules that will run rcc on all files from CODEQUERY_RCS # in result CODEQUERY_RC_SRCS variable will contain paths to files produced by rcc # QT4_ADD_RESOURCES( CODEQUERY_RC_SRCS ${CODEQUERY_RCS} ) SET( CODEQUERY_RC_NAME codequery ) SET( CODEQUERY_RC_QRC "${CMAKE_CURRENT_SOURCE_DIR}/${CODEQUERY_RC_NAME}.qrc") SET( CODEQUERY_RC_SRCS "${CMAKE_CURRENT_BINARY_DIR}/qrc_${CODEQUERY_RC_NAME}.cxx") # Run the resource compiler (rcc_options should already be set). We can't # use QT4_ADD_RESOURCES because the qrc file may not exist yet. ADD_CUSTOM_COMMAND( OUTPUT ${CODEQUERY_RC_SRCS} COMMAND ${QT_RCC_EXECUTABLE} ARGS ${rcc_options} -name ${CODEQUERY_RC_NAME} -o ${CODEQUERY_RC_SRCS} ${CODEQUERY_RC_QRC} DEPENDS ${QM} ) # this will run uic on .ui files: QT4_WRAP_UI( CODEQUERY_UI_HDRS ${CODEQUERY_UIS} ) # and finally this will run moc: QT4_WRAP_CPP( CODEQUERY_MOC_SRCS ${CODEQUERY_MOC_HDRS} ) if(WIN32) SET(CQ_WIN_RCS cqwin32.rc) add_executable( codequery WIN32 ${CODEQUERY_SRCS} ${CODEQUERY_MOC_SRCS} ${CODEQUERY_RC_SRCS} ${CODEQUERY_UI_HDRS} ${QM} ${CQ_WIN_RCS} ) else() add_executable( codequery ${CODEQUERY_SRCS} ${CODEQUERY_MOC_SRCS} ${CODEQUERY_RC_SRCS} ${CODEQUERY_UI_HDRS} ${QM} ) endif() target_link_libraries( codequery ${QT_LIBRARIES} ${SQLITE_LIBRARIES} sqlquery_lib small_lib cqshowgraph scintillaedit) install(TARGETS codequery RUNTIME DESTINATION bin) endif (BUILD_QT5) codequery-0.21.0/gui/aboutdialog.cpp000066400000000000000000000015771310136352400173640ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "ui_aboutDialog.h" #include "aboutdialog.h" #include "swver.h" cqDialogAbout::cqDialogAbout(QWidget *parent) :QDialog(parent) ,dialog_ui(new Ui::aboutDialog) { dialog_ui->setupUi(this); dialog_ui->labelTitle->setText(CODEQUERY_SW_VERSION_WEBSITE); dialog_ui->labelLicense->setText(CODEQUERY_SW_LICENSE_PARA_LINK); connect(dialog_ui->pushButtonCloseAbout, SIGNAL(clicked()), this, SLOT(accept())); resize(sizeHint()); layout()->setSizeConstraint(QLayout::SetFixedSize) ; setSizeGripEnabled(false) ; } cqDialogAbout::~cqDialogAbout() { disconnect(); delete dialog_ui; } codequery-0.21.0/gui/aboutdialog.h000066400000000000000000000012021310136352400170120ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef ABOUTDIALOG_H_CQ #define ABOUTDIALOG_H_CQ #ifdef USE_QT5 #include #else #include #endif namespace Ui { class aboutDialog; } class cqDialogAbout : public QDialog { Q_OBJECT public: Ui::aboutDialog *dialog_ui; cqDialogAbout(QWidget *parent); virtual ~cqDialogAbout(); }; #endif //ABOUTDIALOG_H_CQ codequery-0.21.0/gui/codequery.qrc000066400000000000000000000022251310136352400170640ustar00rootroot00000000000000 images/Folder2.png images/Search.png images/Arrow2_Left.png images/Arrow2_Right.png images/Arrow2_Up.png images/Arrow2_Down.png images/Clipboard_Copy.png images/Clipboard_Paste.png images/Database.png images/Document2.png images/Flag.png images/Graph.png images/Zoom_Out.png images/Zoom_In.png images/Text_Minus.png images/Text_Plus.png images/logo.png ../build/gui/codequery_de.qm ../build/gui/codequery_en.qm ../build/gui/codequery_es.qm ../build/gui/codequery_fr.qm ../build/gui/codequery_id.qm ../build/gui/codequery_it.qm ../build/gui/codequery_ja.qm ../build/gui/codequery_ko.qm ../build/gui/codequery_zh-CHS.qm ../build/gui/codequery_zh-CHT.qm codequery-0.21.0/gui/cqwin32.rc000066400000000000000000000003121310136352400161640ustar00rootroot00000000000000IDI_ICON1 ICON DISCARDABLE "images/logo6464.ico" IDI_ICON2 ICON DISCARDABLE "images/logo4848.ico" IDI_ICON3 ICON DISCARDABLE "images/logo3232.ico" IDI_ICON4 ICON DISCARDABLE "images/logo1616.ico" codequery-0.21.0/gui/fileviewer.cpp000066400000000000000000000513031310136352400172230ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include #include #include #include #include "ScintillaEdit.h" #include "SciLexer.h" #include "fileviewer.h" #include "mainwindow.h" #include "fileviewsettingsdialog.h" #include "themes.h" #include "std2qt.h" #ifdef USE_QT5 #define QT45_TOASCII(x) toLatin1(x) #else #define QT45_TOASCII(x) toAscii(x) #endif #ifdef _WIN32 #define EXT_EDITOR_DEFAULT_PATH "notepad %f" #else #define EXT_EDITOR_DEFAULT_PATH "gedit %f +%n" #endif filedata::filedata() { linenum = "1"; fileid = -99; } filedata::filedata(const QString& fn, const QString& ln, const int& fi) { linenum = ln; filename = fn; fileid = fi; } bool filedata::compare(const filedata& fd) { bool cmp; if ((fileid < 0)||(fd.fileid < 0)) { cmp = ((linenum.compare(fd.linenum) == 0)&& (filename.compare(fd.filename) == 0)); } else { cmp = ((linenum.compare(fd.linenum) == 0)&& (fileid == fd.fileid)); } return cmp; } bool filedata::compareFilePathOnly(const filedata& fd) { bool cmp; if ((fileid < 0)||(fd.fileid < 0)) { cmp = (filename.compare(fd.filename) == 0); } else { cmp = (fileid == fd.fileid); } return cmp; } bool filedata::compareFileNameOnly(const filedata& fd) { bool cmp; if ((fileid < 0)||(fd.fileid < 0)) { cmp =(strcmp( extract_filename(filename.QT45_TOASCII().data()), extract_filename(fd.filename.QT45_TOASCII().data())) == 0); } else { cmp = (fileid == fd.fileid); } return cmp; } filedata::filedata(const filedata& fd) { linenum = fd.linenum; filename = fd.filename; fileid = fd.fileid; } filedata& filedata::operator=(const filedata& fd) { if (&fd != this) { linenum = fd.linenum; filename = fd.filename; fileid = fd.fileid; } return *this; } fileviewer::fileviewer(mainwindow* pmw) :mw(pmw) ,m_pushButtonPrev(NULL) ,m_pushButtonNext(NULL) ,m_pushButtonOpenInEditor(NULL) ,m_pushButtonPaste(NULL) ,m_pushButtonGoToLine(NULL) ,m_labelFilePath(NULL) ,m_textEditSource(NULL) ,m_textEditSourceFont("Courier New", 12) ,m_externalEditorPath(EXT_EDITOR_DEFAULT_PATH) ,m_timestampMismatchWarned(false) ,m_lexer(SCLEX_NULL) ,m_fontsize(0) ,m_currentlang(enHighlightCPP) ,m_currentline(1) ,m_annotline(1) ,m_pushButtonTextShrink(NULL) ,m_pushButtonTextEnlarge(NULL) ,m_checkBoxSymbolOnly(NULL) ,m_listWidgetFunc(NULL) ,m_comboBoxFuncListSort(NULL) ,m_fontwidthtemp(1) ,m_markerhandle(1) ,m_markerhandle2(2) { m_iter = m_fileDataList.begin(); m_textEditSourceFont.setStyleHint(QFont::TypeWriter); } fileviewer::~fileviewer() { disconnect(); } void fileviewer::createFontList(void) { QFontDatabase fontdb; QStringList fontlst = fontdb.families(QFontDatabase::Latin); QStringList fixedpitch; QStringList::iterator it; for(it = fontlst.begin(); it != fontlst.end(); it++) { if (fontdb.isFixedPitch(*it)) { fixedpitch << (*it); } } fixedpitch.sort(); m_fontlist = fixedpitch; } void fileviewer::init(void) { Scintilla_LinkLexers(); m_pushButtonPaste->setEnabled(false); m_pushButtonPrev->setEnabled(false); m_pushButtonNext->setEnabled(false); m_pushButtonTextShrink->setEnabled(false); m_pushButtonTextEnlarge->setEnabled(false); m_pushButtonGoToLine->setEnabled(false); m_pushButtonOpenInEditor->setEnabled(false); m_labelFilePath->clear(); m_textEditSource->setWrapMode(SC_WRAP_NONE); m_textEditSource->setReadOnly(true); m_markerhandle = 0; m_markerhandle2 = 1; m_textEditSource->markerDefine(m_markerhandle, SC_MARK_BACKGROUND); m_textEditSource->markerDefine(m_markerhandle2, SC_MARK_ARROW); m_textEditSource->setMarginTypeN(0, SC_MARGIN_NUMBER); m_textEditSource->setMarginTypeN(1, SC_MARGIN_SYMBOL); m_textEditSource->annotationSetVisible(ANNOTATION_BOXED); m_textEditSource->setCodePage(SC_CP_UTF8); m_textEditSource->setCaretPeriod(0); createFontList(); ScintillaEditBase *textEditSourceBase = m_textEditSource; connect(textEditSourceBase, SIGNAL(selectionChanged(bool)), this, SLOT(AbleToCopy(bool))); connect(m_pushButtonGoToLine, SIGNAL(clicked(bool)), this, SLOT(GoToLine_ButtonClick(bool))); connect(m_pushButtonPaste, SIGNAL(clicked(bool)), this, SLOT(Paste_ButtonClick(bool))); connect(m_pushButtonPrev, SIGNAL(clicked(bool)), this, SLOT(Prev_ButtonClick(bool))); connect(m_pushButtonNext, SIGNAL(clicked(bool)), this, SLOT(Next_ButtonClick(bool))); connect(m_pushButtonOpenInEditor, SIGNAL(clicked(bool)), this, SLOT(OpenInEditor_ButtonClick(bool))); connect(m_pushButtonTextShrink, SIGNAL(clicked(bool)), this, SLOT(TextShrink_ButtonClick(bool))); connect(m_pushButtonTextEnlarge, SIGNAL(clicked(bool)), this, SLOT(TextEnlarge_ButtonClick(bool))); connect(m_listWidgetFunc, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(funcItemSelected(QListWidgetItem *, QListWidgetItem *))); connect(m_comboBoxFuncListSort, SIGNAL(currentIndexChanged(int)), this, SLOT(FuncListSort_indexChanged(int))); m_fileDataList.clear(); clearTextEdit(); setLexer(); } void fileviewer::clearList() { //printf("Fileview clearlist\n"); m_pushButtonPaste->setEnabled(false); m_pushButtonPrev->setEnabled(false); m_pushButtonNext->setEnabled(false); m_pushButtonTextShrink->setEnabled(false); m_pushButtonTextEnlarge->setEnabled(false); m_pushButtonGoToLine->setEnabled(false); m_pushButtonOpenInEditor->setEnabled(false); m_labelFilePath->clear(); clearTextEdit(); m_fileDataList.clear(); m_iter = m_fileDataList.begin(); m_timestampMismatchWarned = false; m_listWidgetFunc->clear(); } void fileviewer::recvDBtimestamp(QDateTime dt) { m_DBtimestamp = dt; } void fileviewer::fileToBeOpened(QString filename, QString linenum, int fileid) { filename.replace(QString("$HOME"), QDir::homePath()); #ifdef _WIN32 filename.replace("/", "\\"); #endif if (!(QFile::exists(filename))) { m_labelFilePath->setText(tr("File not found")); handleFileCannotBeOpenedCase(); return; } QFile file(filename); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { m_labelFilePath->setText(tr("File could not be opened")); handleFileCannotBeOpenedCase(); return; } file.close(); QFileInfo fi(filename); if ((m_DBtimestamp < fi.lastModified())&&(m_timestampMismatchWarned == false)) { m_timestampMismatchWarned = true; QMessageBox msgBox((QWidget*)mw); msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText(tr("The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file.")); msgBox.exec(); } filedata fd(filename, linenum, fileid); if (m_fileDataList.isEmpty()) { //printf("Fileviewer: empty list\n"); m_fileDataList.push_back(fd); m_iter = m_fileDataList.end() - 1; m_pushButtonPrev->setEnabled(false); m_pushButtonNext->setEnabled(false); updateTextEdit(); return; } else if (m_iter == m_fileDataList.end()) { // previous file not found //printf("Fileviewer: previous file not found %d, %d\n", m_fileDataList.end(), m_fileDataList.end() - 1); m_fileDataList.push_back(fd); m_iter = m_fileDataList.end() - 1; m_pushButtonPrev->setEnabled(m_iter != m_fileDataList.begin()); m_pushButtonNext->setEnabled(false); updateTextEdit(); } else if (m_iter->compare(fd)) { // the same filename and line number //printf("Fileviewer: same filename and line number\n"); updateFilePathLabel(); return; } else if (m_iter->compareFilePathOnly(fd)) { // same file, different line number //printf("Fileviewer: same file, different line number\n"); m_fileDataList.push_back(fd); m_iter = m_fileDataList.end() - 1; m_pushButtonPrev->setEnabled(true); m_pushButtonNext->setEnabled(false); highlightLine(fd.linenum.toInt()); updateFilePathLabel(); } else { // different file //printf("Fileviewer: different file\n"); m_fileDataList.push_back(fd); m_iter = m_fileDataList.end() - 1; m_pushButtonPrev->setEnabled(true); m_pushButtonNext->setEnabled(false); updateTextEdit(); } if ((m_fileDataList.isEmpty())||(m_iter == m_fileDataList.end())) return; QVector::iterator it = m_fileDataList.begin(); while ((it != m_fileDataList.end() - 1)&&(it != m_fileDataList.end())) { if (it->compare(fd)) it = m_fileDataList.erase(it); else it++; } if (m_fileDataList.size() > 20) m_fileDataList.erase(m_fileDataList.begin()); m_iter = m_fileDataList.end() - 1; } void fileviewer::clearTextEdit(void) { m_textEditSource->setReadOnly(false); m_textEditSource->clearAll(); m_textEditSource->setReadOnly(true); } void fileviewer::updateTextEdit(void) { if (m_iter == m_fileDataList.end()) return; QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); clearTextEdit(); QFile file(m_iter->filename); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { QApplication::restoreOverrideCursor(); return; } QTextStream in(&file); int lang = enHighlightCPP; // default QRegExp rx1("\\.py$", Qt::CaseInsensitive); int pos = rx1.indexIn(m_iter->filename); if (pos != -1) lang = enHighlightPython; QRegExp rx2("\\.java$", Qt::CaseInsensitive); pos = rx2.indexIn(m_iter->filename); if (pos != -1) lang = enHighlightJava; QRegExp rx3("\\.rb$", Qt::CaseInsensitive); pos = rx3.indexIn(m_iter->filename); if (pos != -1) lang = enHighlightRuby; QRegExp rx4("\\.js$", Qt::CaseInsensitive); pos = rx4.indexIn(m_iter->filename); if (pos != -1) lang = enHighlightJavascript; QRegExp rx5("\\.go$", Qt::CaseInsensitive); pos = rx5.indexIn(m_iter->filename); if (pos != -1) lang = enHighlightGo; m_currentlang = lang; QString alltext; while (!in.atEnd()) { alltext = in.readAll(); } m_textEditSource->setReadOnly(false); m_textEditSource->setText(alltext.toUtf8().data()); m_textEditSource->setReadOnly(true); m_textEditSource->setMarginWidthN(0, m_textEditSource->textWidth(STYLE_LINENUMBER, QString::number(m_textEditSource->lineCount() * 10).QT45_TOASCII().data())); highlightLine(m_iter->linenum.toInt()); updateFilePathLabel(); m_pushButtonGoToLine->setEnabled(true); m_pushButtonOpenInEditor->setEnabled(true); m_pushButtonTextShrink->setEnabled(true); m_pushButtonTextEnlarge->setEnabled(true); m_listWidgetFunc->clear(); if (m_iter->fileid < 0) {emit requestFuncList_filename(m_iter->filename);} else {emit requestFuncList_fileid(m_iter->fileid);} setLexer(lang); QApplication::restoreOverrideCursor(); } void fileviewer::updateFilePathLabel(void) { QString labeltext = m_iter->filename; labeltext += ":"; labeltext += m_iter->linenum; m_labelFilePath->setText(labeltext); m_pushButtonGoToLine->setEnabled(true); } void fileviewer::braceMatchCheck(void) { long cpos, matchpos; cpos = m_textEditSource->currentPos(); matchpos = m_textEditSource->braceMatch(cpos, 0); if (matchpos == -1) { cpos--; matchpos = m_textEditSource->braceMatch(cpos, 0); } if (matchpos != -1) m_textEditSource->braceHighlight(cpos, matchpos); } void fileviewer::AbleToCopy(bool copy) { m_pushButtonPaste->setEnabled(copy); m_textEditSource->annotationClearAll(); braceMatchCheck(); if (copy) { m_textEditSource->copy(); m_annotline = m_textEditSource->lineFromPosition(m_textEditSource->selectionEnd()); QString str = (QApplication::clipboard())->text(); if (str.length() > 0) emit requestAnnotation(str); } } void fileviewer::GoToLine_ButtonClick(bool checked) { if (!checked) highlightLine(m_iter->linenum.toInt()); } void fileviewer::Prev_ButtonClick(bool checked) { if (m_fileDataList.isEmpty()) { m_pushButtonPrev->setEnabled(false); m_pushButtonNext->setEnabled(false); return; } if(m_iter == m_fileDataList.begin()) { m_pushButtonPrev->setEnabled(false); return; } if (!checked) { QVector::iterator it = m_iter; m_iter--; if ((it != m_fileDataList.end())&&(m_iter->compareFilePathOnly(*it))) { highlightLine(m_iter->linenum.toInt()); updateFilePathLabel(); } else { updateTextEdit(); } m_pushButtonPrev->setEnabled(m_iter != m_fileDataList.begin()); m_pushButtonNext->setEnabled(m_iter != m_fileDataList.end() - 1); } } void fileviewer::Next_ButtonClick(bool checked) { if (m_fileDataList.isEmpty()) { m_pushButtonPrev->setEnabled(false); m_pushButtonNext->setEnabled(false); return; } if((m_iter == m_fileDataList.end() - 1)|| (m_iter == m_fileDataList.end())) { m_pushButtonNext->setEnabled(false); return; } if (!checked) { QVector::iterator it = m_iter; m_iter++; if (m_iter->compareFilePathOnly(*it)) { highlightLine(m_iter->linenum.toInt()); updateFilePathLabel(); } else { updateTextEdit(); } m_pushButtonPrev->setEnabled(m_iter != m_fileDataList.begin()); m_pushButtonNext->setEnabled(m_iter != m_fileDataList.end() - 1); } } void fileviewer::handleFileCannotBeOpenedCase(void) { //printf("handleFileCannotBeOpenedCase\n"); clearTextEdit(); m_pushButtonTextShrink->setEnabled(false); m_pushButtonTextEnlarge->setEnabled(false); m_pushButtonGoToLine->setEnabled(false); m_pushButtonNext->setEnabled(false); m_pushButtonPrev->setEnabled(m_fileDataList.isEmpty() == false); m_iter = m_fileDataList.end(); } void fileviewer::Paste_ButtonClick(bool checked) { if (!checked) { m_textEditSource->copy(); if (m_checkBoxSymbolOnly->isChecked()) emit searchCopiedTextSymbolOnly(); else emit searchCopiedText(); } } void fileviewer::fileViewSettings_Triggered(bool checked) { cqDialogFileViewSettings cqdg((QWidget*)mw, this, m_fontlist, themes::getThemesList()); m_fonttemp = m_textEditSourceFont.family(); m_fontwidthtemp = (m_textEditSource->tabWidth()); m_themetemp = m_theme; cqdg.setCurrentFontType(m_fonttemp); cqdg.setTabWidth(m_fontwidthtemp); cqdg.setCurrentTheme(m_themetemp); cqdg.setModal(true); cqdg.exec(); if (cqdg.result() == QDialog::Accepted) { m_textEditSourceFont.setFamily(m_fonttemp); //m_lexer->setFont(m_textEditSourceFont); m_textEditSource->setTabWidth(m_fontwidthtemp); m_textEditSource->setZoom(m_fontsize); m_theme = m_themetemp; m_themelast = "1234"; setLexer(); } } void fileviewer::OptionsExtEditor_Triggered(bool checked) { bool ok; QString inptext; QInputDialog qinp(mw); qinp.setCancelButtonText(tr("Cancel")); qinp.setOkButtonText(tr("OK")); qinp.setInputMode(QInputDialog::TextInput); qinp.setWindowTitle(tr("External Editor Configuration")); QString exted = tr("Please enter the path and arguments for the external editor. Replace as follows:"); exted += "\n%f - "; exted += tr("for file path"); exted += "\n%n - "; exted += tr("for line number"); exted += "\n"; exted += tr("For example:"); #ifdef _WIN32 exted += "\n\"C:\\Program Files\\Notepad++\\notepad++.exe\" -n%n %f"; #else exted += "\ngedit %f +%n"; #endif qinp.setLabelText(exted); qinp.setTextEchoMode(QLineEdit::Normal); qinp.setTextValue(m_externalEditorPath); qinp.exec(); ok = (qinp.result() == QDialog::Accepted); inptext = qinp.textValue(); if (ok && (inptext.isEmpty() == false)) m_externalEditorPath = inptext.trimmed(); } void fileviewer::OpenInEditor_ButtonClick(bool checked) { QMessageBox msgBox(mw); msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); if (!checked) { QFile file(m_iter->filename); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { msgBox.setText(tr("File could not be opened!")); msgBox.exec(); return; } file.close(); QStringList arguments; QString program; QRegExp rx("^\"([^\"]+)\" (.*)"); int pos = rx.indexIn(m_externalEditorPath); if (pos != -1) { program = rx.cap(1); arguments = (rx.cap(2)).split(QRegExp("[ ]+")); } else { arguments = m_externalEditorPath.split(QRegExp("[ ]+")); program = arguments.takeFirst(); } arguments.replaceInStrings(QRegExp("%f"), m_iter->filename); arguments.replaceInStrings(QRegExp("%n"), m_iter->linenum); if (QProcess::startDetached(program, arguments) == false) { msgBox.setText(tr("External editor could not be started. Please check Options!")); msgBox.exec(); return; } } } void fileviewer::TextShrink_ButtonClick(bool checked) { if (!checked) { textSizeChange(0-1); //m_textEditSource->zoomOut(); } } void fileviewer::TextEnlarge_ButtonClick(bool checked) { if (!checked) { textSizeChange(1); //m_textEditSource->zoomIn(); } } void fileviewer::textSizeChange(int n) { //m_fontwidthtemp = (m_textEditSource->tabWidth()); //m_lexer->setFont(m_textEditSourceFont); m_fontsize += n; m_textEditSource->setZoom(m_fontsize); m_textEditSource->setMarginWidthN(0, m_textEditSource->textWidth(STYLE_LINENUMBER, QString::number(m_textEditSource->lineCount() * 10).QT45_TOASCII().data())); //m_textEditSource->setTabWidth(m_fontwidthtemp); } void fileviewer::fontSelectionTemporary(const QString &fonttxt) { m_fonttemp = fonttxt; } void fileviewer::themeSelectionTemporary(const QString &themetxt) { m_themetemp = themetxt; } void fileviewer::tabWidthSelectionTemporary(const QString &width) { m_fontwidthtemp = width.toInt(); } void fileviewer::highlightLine(unsigned int num) { m_textEditSource->markerDeleteAll(-1); if (num <= 0) { num = 1; } else { num = num - 1; // not sure why it's one off m_textEditSource->markerAdd(num, m_markerhandle); m_textEditSource->markerAdd(num, m_markerhandle2); } m_textEditSource->setFirstVisibleLine(num); m_currentline = num; } void fileviewer::setLexer(int lang) { if (lang == -1) lang = m_currentlang; switch(lang) { case enHighlightCPP: replaceLexer(SCLEX_CPP, lang); break; case enHighlightPython: replaceLexer(SCLEX_PYTHON, lang); break; case enHighlightJava: replaceLexer(SCLEX_CPP, lang); break; case enHighlightRuby: replaceLexer(SCLEX_RUBY, lang); break; case enHighlightJavascript: replaceLexer(SCLEX_CPP, lang); break; default: replaceLexer(SCLEX_CPP, lang); break; } } void fileviewer::replaceLexer(int sclang, int lang) { QColor markerlinebgcolor; QColor linenumfgcolor; //if (m_lexer != sclang) { switch (lang) { case enHighlightCPP: m_lexer = SCLEX_CPP; break; case enHighlightPython: m_lexer = SCLEX_PYTHON; break; case enHighlightJava: m_lexer = SCLEX_CPP; break; case enHighlightRuby: m_lexer = SCLEX_RUBY; break; case enHighlightJavascript: m_lexer = SCLEX_CPP; break; default: m_lexer = SCLEX_CPP; break; } m_textEditSource->setLexer(m_lexer); m_textEditSource->clearDocumentStyle(); m_textEditSource->setZoom(m_fontsize); m_themelast = "1234"; } //if (m_themelast.compare(m_theme) != 0) { m_themelast = m_theme; themes::setTheme(m_theme, lang, m_textEditSource, m_textEditSourceFont, markerlinebgcolor, linenumfgcolor); m_textEditSource->markerSetBack(m_markerhandle, themes::QC2SC(markerlinebgcolor)); m_textEditSource->markerSetBack(m_markerhandle2, themes::QC2SC(linenumfgcolor)); m_textEditSource->markerSetAlpha(m_markerhandle, SC_ALPHA_NOALPHA); m_textEditSource->markerSetAlpha(m_markerhandle2, SC_ALPHA_NOALPHA); m_textEditSource->styleSetFont(STYLE_LINENUMBER, m_textEditSourceFont.family().QT45_TOASCII().data()); m_textEditSource->setZoom(m_fontsize); m_textEditSource->setMarginWidthN(0, m_textEditSource->textWidth(STYLE_LINENUMBER, QString::number(m_textEditSource->lineCount() * 10).QT45_TOASCII().data())); themes::setKeywords(lang, m_textEditSource); m_textEditSource->colourise(0, -1); } } void fileviewer::annotate(QString annotstr) { m_textEditSource->annotationClearAll(); m_textEditSource->annotationSetText(m_annotline, annotstr.toUtf8().data()); m_textEditSource->annotationSetStyle(m_annotline, 29); } void fileviewer::recvFuncList(sqlqueryresultlist* reslist) { m_listWidgetFunc->clear(); if ((m_fileDataList.isEmpty())||(m_iter == m_fileDataList.end())) return; m_funclist = *reslist; filedata fd(str2qt(m_funclist.resultlist[0].filename), "1", -99); if (m_iter->compareFileNameOnly(fd) == false) { if (m_iter->fileid < 0) {emit requestFuncList_filename(m_iter->filename);} else {emit requestFuncList_fileid(m_iter->fileid);} return; } if (m_comboBoxFuncListSort->currentIndex() == 0) {m_funclist.sort_by_linenum();} else {m_funclist.sort_by_name();} for (int i=0; i < m_funclist.resultlist.size(); i++) { m_listWidgetFunc->addItem(new QListWidgetItem( str2qt(m_funclist.resultlist[i].symname), 0, atoi(m_funclist.resultlist[i].linenum.c_str()))); } } void fileviewer::funcItemSelected(QListWidgetItem * curitem, QListWidgetItem * previtem) { if (curitem == NULL) return; int num = curitem->type(); if (num <= 0) { num = 1; } else { num = num - 1; // not sure why it's one off } m_textEditSource->setFirstVisibleLine(num); } void fileviewer::FuncListSort_indexChanged(const int& idx) { recvFuncList(&m_funclist); } codequery-0.21.0/gui/fileviewer.h000066400000000000000000000066571310136352400167040ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef FILEVIEWER_H_CQ #define FILEVIEWER_H_CQ #ifdef USE_QT5 #include #else #include #endif #include "sqlquery.h" Q_DECLARE_METATYPE(sqlqueryresultlist*) class mainwindow; class ScintillaEdit; class filedata { public: QString filename; QString linenum; int fileid; filedata(); filedata(const QString& fn, const QString& ln, const int& fi); filedata(const filedata& fd); bool compare(const filedata& fd); bool compareFilePathOnly(const filedata& fd); bool compareFileNameOnly(const filedata& fd); filedata& operator=(const filedata& fd); }; enum langtypes { enHighlightNone = 0, enHighlightCPP, enHighlightPython, enHighlightJava, enHighlightRuby, enHighlightGo, enHighlightJavascript }; class fileviewer : public QObject { Q_OBJECT public: QPushButton *m_pushButtonPrev; QPushButton *m_pushButtonNext; QPushButton *m_pushButtonOpenInEditor; QPushButton *m_pushButtonPaste; QPushButton *m_pushButtonGoToLine; QPushButton *m_pushButtonTextShrink; QPushButton *m_pushButtonTextEnlarge; QCheckBox *m_checkBoxSymbolOnly; QLabel *m_labelFilePath; ScintillaEdit *m_textEditSource; QListWidget *m_listWidgetFunc; QComboBox *m_comboBoxFuncListSort; QString m_externalEditorPath; QFont m_textEditSourceFont; int m_lexer; int m_fontsize; QString m_theme; fileviewer(mainwindow* pmw); ~fileviewer(); void init(void); void updateTextEdit(void); void updateFilePathLabel(void); void handleFileCannotBeOpenedCase(void); public slots: void fileToBeOpened(QString filename, QString linenum, int fileid); void AbleToCopy(bool copy); void GoToLine_ButtonClick(bool checked); void Paste_ButtonClick(bool checked); void Prev_ButtonClick(bool checked); void Next_ButtonClick(bool checked); void OpenInEditor_ButtonClick(bool checked); void TextShrink_ButtonClick(bool checked); void TextEnlarge_ButtonClick(bool checked); void OptionsExtEditor_Triggered(bool checked); void fileViewSettings_Triggered(bool checked); void clearList(); void recvDBtimestamp(QDateTime dt); void fontSelectionTemporary(const QString &fonttxt); void themeSelectionTemporary(const QString &themetxt); void tabWidthSelectionTemporary(const QString &width); void annotate(QString annotstr); void recvFuncList(sqlqueryresultlist* reslist); void funcItemSelected(QListWidgetItem * curitem, QListWidgetItem * previtem); void FuncListSort_indexChanged(const int& idx); signals: void searchCopiedText(); void searchCopiedTextSymbolOnly(); void requestAnnotation(QString searchstr); void requestFuncList_filename(QString filename); void requestFuncList_fileid(int fileid); private: mainwindow *mw; QVector m_fileDataList; QVector::iterator m_iter; QDateTime m_DBtimestamp; bool m_timestampMismatchWarned; QStringList m_fontlist; QString m_fonttemp; QString m_themetemp; QString m_themelast; int m_currentlang; int m_fontwidthtemp; int m_markerhandle; int m_markerhandle2; long m_currentline; long m_annotline; sqlqueryresultlist m_funclist; void createFontList(void); void textSizeChange(int n); void highlightLine(unsigned int num = 0); void setLexer(int lang = -1); void replaceLexer(int sclang, int lang); void clearTextEdit(void); void braceMatchCheck(void); }; #endif codequery-0.21.0/gui/fileviewsettingsdialog.cpp000066400000000000000000000041651310136352400216410ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "ui_fileViewSettingsDialog.h" #include "fileviewsettingsdialog.h" #include "fileviewer.h" #include cqDialogFileViewSettings::cqDialogFileViewSettings(QWidget *parent, fileviewer* fv, const QStringList& fontlst, const QStringList& themeslst) :QDialog(parent) ,m_fv(fv) ,dialog_ui(new Ui::fileViewSettingsDialog) ,m_tabwidthvalidator(1,64) { dialog_ui->setupUi(this); dialog_ui->lineEditTabWidth->setValidator(&m_tabwidthvalidator); dialog_ui->comboBoxFont->addItems(fontlst); dialog_ui->comboBoxTheme->addItems(themeslst); connect(dialog_ui->pushButtonOK, SIGNAL(clicked()), this, SLOT(accept())); connect(dialog_ui->pushButtonCancel, SIGNAL(clicked()), this, SLOT(reject())); connect(dialog_ui->comboBoxFont, SIGNAL(currentIndexChanged(const QString &)), fv, SLOT(fontSelectionTemporary(const QString &))); connect(dialog_ui->comboBoxTheme, SIGNAL(currentIndexChanged(const QString &)), fv, SLOT(themeSelectionTemporary(const QString &))); connect(dialog_ui->lineEditTabWidth, SIGNAL(textEdited(const QString &)), fv, SLOT(tabWidthSelectionTemporary(const QString &))); resize(sizeHint()); layout()->setSizeConstraint(QLayout::SetFixedSize) ; setSizeGripEnabled(false) ; } cqDialogFileViewSettings::~cqDialogFileViewSettings() { disconnect(); delete dialog_ui; } void cqDialogFileViewSettings::setCurrentFontType(const QString& fonttype) { int idx = dialog_ui->comboBoxFont->findText(fonttype, Qt::MatchContains); dialog_ui->comboBoxFont->setCurrentIndex(idx); } void cqDialogFileViewSettings::setCurrentTheme(const QString& theme) { int idx = dialog_ui->comboBoxTheme->findText(theme, Qt::MatchContains); dialog_ui->comboBoxTheme->setCurrentIndex(idx); } void cqDialogFileViewSettings::setTabWidth(const int& width) { dialog_ui->lineEditTabWidth->setText(QString::number(width)); } codequery-0.21.0/gui/fileviewsettingsdialog.h000066400000000000000000000020071310136352400212770ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef FILEVIEWSETTINGSDIALOG_H_CQ #define FILEVIEWSETTINGSDIALOG_H_CQ #ifdef USE_QT5 #include #else #include #endif namespace Ui { class fileViewSettingsDialog; } class fileviewer; class cqDialogFileViewSettings : public QDialog { Q_OBJECT public: Ui::fileViewSettingsDialog *dialog_ui; cqDialogFileViewSettings(QWidget *parent, fileviewer* fv, const QStringList& fontlst, const QStringList& themeslst); virtual ~cqDialogFileViewSettings(); void setCurrentFontType(const QString& fonttype); void setCurrentTheme(const QString& theme); void setTabWidth(const int& width); public slots: private: QIntValidator m_tabwidthvalidator; fileviewer* m_fv; }; #endif //FILEVIEWSETTINGSDIALOG_H_CQ codequery-0.21.0/gui/graphdialog.cpp000066400000000000000000000101651310136352400173440ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "ui_graphDialog.h" #include "graphdialog.h" #include "showgraph.h" cqDialogGraph::cqDialogGraph(QWidget *parent) :QDialog(parent) ,dialog_ui(new Ui::DialogGraph) ,m_scaleFactor(5.0) { dialog_ui->setupUi(this); connect(dialog_ui->pushButtonClose, SIGNAL(clicked()), this, SLOT(accept())); connect(dialog_ui->pushButtonZoomOut, SIGNAL(clicked()), this, SLOT(zoomout())); connect(dialog_ui->pushButtonZoomIn, SIGNAL(clicked()), this, SLOT(zoomin())); connect(dialog_ui->pushButtonSave, SIGNAL(clicked()), this, SLOT(savetoimagefile())); connect(dialog_ui->pushButtonSaveDot, SIGNAL(clicked()), this, SLOT(savetodotfile())); connect(dialog_ui->comboBoxNbrOfLevels, SIGNAL(currentIndexChanged(int)), this, SLOT(numberOfLevelsChanged(int))); } cqDialogGraph::~cqDialogGraph() { disconnect(); delete dialog_ui; } void cqDialogGraph::setupGraphFromXML(QStringList& grpxml, QStringList& grpdot, QString& desc) { m_grpxml = grpxml; m_grpdot = grpdot; m_img = showgraph::convertToImage(grpxml[0]); dialog_ui->labelGraph->setPixmap(QPixmap::fromImage(m_img)); dialog_ui->labelGraph->setMask(dialog_ui->labelGraph->pixmap()->mask()); if (desc.length() > 0) dialog_ui->labelDesc->setText(desc); for (unsigned int i=0; i < grpxml.size(); i++) dialog_ui->comboBoxNbrOfLevels->addItem(QString::number(i+1)); dialog_ui->comboBoxNbrOfLevels->setCurrentIndex(0); show(); adjustScrollBar(dialog_ui->scrollArea->horizontalScrollBar(), m_scaleFactor/5); adjustScrollBar(dialog_ui->scrollArea->verticalScrollBar(), m_scaleFactor/5); } void cqDialogGraph::numberOfLevelsChanged(int num) { m_img = showgraph::convertToImage(m_grpxml[dialog_ui->comboBoxNbrOfLevels->currentIndex()]); dialog_ui->labelGraph->setPixmap(QPixmap::fromImage(m_img)); dialog_ui->labelGraph->setMask(dialog_ui->labelGraph->pixmap()->mask()); adjustScrollBar(dialog_ui->scrollArea->horizontalScrollBar(), m_scaleFactor/5); adjustScrollBar(dialog_ui->scrollArea->verticalScrollBar(), m_scaleFactor/5); } void cqDialogGraph::zoomout() { scaleImage(-1); } void cqDialogGraph::zoomin() { scaleImage(1); } void cqDialogGraph::savetoimagefile() { QString filetype = tr("Images"); filetype += " (*.png *.jpg *.bmp *.tiff)"; QString fileName = QFileDialog::getSaveFileName( this, tr("Export Image"), QDir::currentPath(), filetype); if (fileName.isEmpty()) return; QMessageBox msgBox(this); msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); QImageWriter writer( fileName); if ((writer.canWrite() && writer.write(m_img)) == false) { msgBox.setText(tr("File could not be saved!")); msgBox.exec(); } } void cqDialogGraph::savetodotfile() { QString fileName = QFileDialog::getSaveFileName( this, tr("Export DOT file"), QDir::currentPath(), "Graphviz DOT (*.dot)"); if (fileName.isEmpty()) return; QFile outfile(fileName); QMessageBox msgBox(this); msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); if (outfile.open(QIODevice::WriteOnly | QIODevice::Text) == false) { msgBox.setText(tr("File could not be saved!")); msgBox.exec(); return; } QTextStream out(&outfile); out << m_grpdot[dialog_ui->comboBoxNbrOfLevels->currentIndex()]; outfile.close(); } void cqDialogGraph::scaleImage(double factor) { QPixmap p = QPixmap::fromImage(m_img); m_scaleFactor += factor; m_scaleFactor = (m_scaleFactor < 1.0) ? 1.0 : m_scaleFactor; dialog_ui->labelGraph->setPixmap(p.scaled((m_scaleFactor/5) * p.size(), Qt::KeepAspectRatio)); adjustScrollBar(dialog_ui->scrollArea->horizontalScrollBar(), m_scaleFactor/5); adjustScrollBar(dialog_ui->scrollArea->verticalScrollBar(), m_scaleFactor/5); } void cqDialogGraph::adjustScrollBar(QScrollBar *scrollBar, double factor) { int minim = scrollBar->minimum(); scrollBar->setValue((scrollBar->maximum() - minim)/2 + minim); } codequery-0.21.0/gui/graphdialog.h000066400000000000000000000020301310136352400170010ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef GRAPHDIALOG_H_CQ #define GRAPHDIALOG_H_CQ #ifdef USE_QT5 #include #else #include #endif namespace Ui { class DialogGraph; } class cqDialogGraph : public QDialog { Q_OBJECT public: Ui::DialogGraph *dialog_ui; cqDialogGraph(QWidget *parent); virtual ~cqDialogGraph(); void setupGraphFromXML(QStringList& grpxml, QStringList& grpdot, QString& desc); void scaleImage(double factor); void adjustScrollBar(QScrollBar *scrollBar, double factor); public slots: void zoomout(); void zoomin(); void savetoimagefile(); void savetodotfile(); void numberOfLevelsChanged(int num); private: double m_scaleFactor; QImage m_img; QString m_dot; QStringList m_grpxml; QStringList m_grpdot; }; #endif //GRAPHDIALOG_H_CQ codequery-0.21.0/gui/images/000077500000000000000000000000001310136352400156215ustar00rootroot00000000000000codequery-0.21.0/gui/images/Arrow2_Down.png000066400000000000000000000014731310136352400204770ustar00rootroot00000000000000‰PNG  IHDR szzôIDATX…­—½kaÆŸÝ{“\.A‚þ vbgcÀVÒjek'¤±Ð"¦PAŒ6)‚ÍIŒˆæÔ‹^Ì%&hB<“@! ‚`c¡Ñ»›±¸ýx¿w/:°¹Ý}o÷y~3s³›àÕØÑ1Çà Nþ´?8Þg÷±ºÏÊ1¥ëu‰ŸôXÅ¢E»x$ªÇß™äû"ŽÙ$̈́ӀNÕ95;©ÉgàSÛLPr«þ•š˜MC> – ø¨£sƒçfvõÚÓ`~|Æž‡Z2Ë€ˆ‰\têî¾CÝ%½rI0™‚)5+Y²¸‹Z_óE"î¡– µaDÊ”/ˆ5jÀ’‹¹Ãs ôZ™š4ŠK P[º\®]þ ¸©•ADQ×ï:ÓeS§÷ã¨2¨åµ¬`fƒ’ô}é~"µ|Q®Z‚ƒT‚´V&µl"—› vÿtZ¨‰gïâÀá#†@AŸ‚Zœ¹X1œþþõå«C 2GuHÌ æ¨yRg[ÕÛ =¥e ‚Àk X@±/ݺ‹ýX»"NÊëPÛ@J-/~ÿ²¥òy4ÿüÌ‘x{0^NŽàãû \:¡>:åÅoŸÞa±<Œfc¯sqf,<¼Œµ9#»Z ÌñI”ùºûµÉ hµ‰×_Ãöê#+˜QYå/ƒˆñy§†¥—@ÔÊe`en õŲ“Ú˜„úI‚ôsŒn²»YAØÕ‹ÁÓW¡Süͳq¬¿˜ß|¶­š©áˆÜLׇµi¬L_;&ÒÆÂ=¬>ϤV2R[¦Ÿel-߇èéÃñSÊøæë)ÔžÜPž„yrž£^Ñ瀣QXë“õù;بN$â;k³¨Nª#ع©ÃHÄŽýãÓ|8-ÏÜ„èéG©ÿ ž—GÐ"ó5ˆ€Bn#íZÃèçªS£@P@«ÙÊH;;߸…«ÖµÅdûùÑÌM- Ç!Ô×§ jÍà~©åSgÊ¦Ö ÔÕ”v ¨P§¦•fóˆ¨ÿŽ‰Ø„¿8"IEND®B`‚codequery-0.21.0/gui/images/Arrow2_Left.png000066400000000000000000000015121310136352400204540ustar00rootroot00000000000000‰PNG  IHDR szzôIDATX…­WKhA}3Û1ˆ  Š(B$ø!!q…  T ¯zàÅxñsS!ˆ`"È!xð$Q4 "(@D HðàA$ÆÕ­ò°Ó3ý©žì&Û°»ý™é÷^UuUo4:Ð> 9Ó¯êë>‡ÇvŸ­1eë%•€ïÉ#`Á’E<uÆú5¯ò)ÖcöÉ!$પ_5USF«–HPúÛ«š˜}By$ˆ9fŒ\°äEb`ùš6ì:õŒÄ\g€){F˜òæÄ€ÒŠBf—T¯XWÄöÞ;PÍËìc%šÙUÍ–U” î™Þ! ¬Ü°Å£(4-`(Ìõµá"g]…T{DXµq7¶õÜBA5§q“šYÌN„ )Ë f`õ¦ýè<ܸÐdbÛäìaª¶\MÀUíúÀÚ­‡Ð~ð⸷頫Gµ9VÕýõÇÐvà ¢(öÀ çò;qÞmÃW‹B&ä$Ä@K× lÞ{Q7.¨%5ʼn’T3€Öîshí>“ ^OóÝTMZ© ´¯`˾‹hé:Þ`Ÿ[±`X@×ì‚mÑ(Sma¬Óhš*‰1þì&&^6”'©×MɱæâÇ—w1þü6Xûe‘-„›çØ]œx3Œ±‘ë`¢†j† §ÏêüäØC”çf±³÷₺ÔJ¥"Fx(;šý8UíZ"‰"ÆTé Fô¡ò¯ì+³J-§eÖ´¤«Ú BÐÝ,#ôåÓ+¼>¿åߢi‰Ø“Îÿ0bñ¢@,¾<=ùO‡Î¢<÷Ë!PŸjË̺ °§:µˆ±ñ·Ïï12xf&8_µhN’&cÇ=3_?àѽ“ø13e]ÁjSm¨"‚P¥B—‹ìÎ÷é Üï?"VPkŒ Æœ.€Ê<"r]×›°0WÙj鯭<Ðjd½ªM`ÝRÔ¤Ú] j³2áTÀó©v ”² ìZ]Ÿ¯3ÒV°å€(ýLp‹y,¤ÀÓIEND®B`‚codequery-0.21.0/gui/images/Arrow2_Right.png000066400000000000000000000014551310136352400206450ustar00rootroot00000000000000‰PNG  IHDR szzôôIDATX…­–?hAÆ¿ÛKˆ)„€  ˆ…`P‚pg ÑBÑô"b ¹BPlÅ&1‚hÔBJ  ±‰J0Ia,Dµ±Ñ“÷,ngçÿnîröngæv¾ï7óæíEãƒÝƒ¶ #8ý¨±¼çpÛ¼g£Mj¼'â;² èF¼bÉ _<µÚò7q.ySIJ͎ Y&‚lªÆ©9HMYZMí3AéslX.51»†²L0 8fÙbɃòâH ÷ج\³¹.Γù’}N?ƒ°÷(àÔGÆ¡³k=J}CèZד)Èœôׯ¤_è{¾j’1ƒ’}ŠÛ;Q껆UÊ® ‡Z7)BÔŽÒÇ85"#.v |ä VoìuÍZÔú%Ø'"gVUT¢Ê(ÄíØ~xk7íV« QiWÒÛÉçËòúdìä‚/D¡ˆò¡ËˆDjïGœà" ˆî©LúØ{kš”^@TìÀì›û•‡¨E¡-0ýÒ"ŠJûÏ¢P\éW·=EHÖÀ^·"¢(¶½§°ug¿ÿ82 Hs–f8åOÞˆ‰ž]'PÚW1Y&eì«áÔš0ˆ8”„lì}V†7“cCxûüª·ª¦§ÀlE03&F0õòV°´ÇLª¡.[œãÏcfâA൭­€>(MÜ;×í!k! 8z©êˆÓâÆîžÁÇwÏÂ/4ÀթúØyØ0à9- ó® 6ý"H6 )¦ÖWÌŽóñôæI|ž}I­î1‘5C­·!”øüÜo<¾Ñ¯µ©\j3 SjöŠøÊ§‹’‚1÷ç]?ŽoŸf2Nõן3êÀR©åÒ€Ÿßk½s?¾|ð“:Xý·d¨-ð :Ôæ+y‘1|ñ@ÃÔ©èIϲ{¨s)ó¨µvNA&µÇd£Ôº° ãäRÛ¢MR먄MPkÂyÔ¶ªšÀ: íµ2m$[†8€êË‚—€ïªIEND®B`‚codequery-0.21.0/gui/images/Arrow2_Up.png000066400000000000000000000015361310136352400201540ustar00rootroot00000000000000‰PNG  IHDR szzô%IDATX…­–MkQ†ß¹™¤iÚhjÚTQcQ µÒ*VRD¤H‹Òº(M?âp§® j¥*T»Wpå^þ¡t¯‚+QÜh›Â=.2wæ~ÎM«’™;_ïûœsÏ Þ/[0Š” ø¯µ!±OOʘ'ç×ÂHülšÙˆU,:iDµ±¸&ô’ïˆXŒÉäš §jûÔ䤿iþ7µÍï#ÕÀ¿Rs"ÓPš EÂdãºXt£ø Ï vò:8QKœâê5\3Ž8¡ r¥ÝEÝx#î"2ØjþƧ¯iÖ©IÉ “ÅÛ¡æ”Ô1vqŒ…‚#Ów°ïè¬JMnj9+̘¥òCd#¼µ-UGqbn ,ÌÅs'ŽÏÞÃÀÐ9Ã,ççÔúY`˜+]6òbeã—ž"ÌumËXãs‹Ø;x:&S5£f† a9u:5' «|§®¬ ›/â"2™,&.?B¥6n¥V xëùL5ÓD(”ª¨7ž££Ðãfó8su½ûÇœÔò³­s€¤ :ºûQo¬"_¬xÅEdsL^{†=ÕaƒZ7Â\ÔD„\W/&VQ(UÛ‘Ë1us¥þ#öîˆÊÃŒÚs ÛÙƒ‰…Ut—n[\DG¡„ó·^`w_Í€Iº :!Æc3÷±«opÇâ":»Ë˜¾±¬P+/£x ÕZqýíC¬¿{l´çÔí—³y§à›' l57,/)åCD6€Ì“¿¾VÛ2zˆ§ÿøú[›Ô¥êä–uBâÉÀæ01‘|V¥…,¬è‰3`”Ó–”É¢ÖiÔ¦í L­ßì5`¹Çš«á*µ|߀Ÿ:Ù'„œëNMŀDŽ­Œ©H¨µo9}¿íX^jÐ Pl6^Ò¨å±/ôrš(ùÊ"$%° B7àw¿jS¨c'!,i×& 'àÕƒy‚8:ess#Z*¥Ñ.jYäç·/ÞÅÅE- ‹PºÀEíëeo­â€s%T©ÛYReaµn`-y€Ö>A…Z]®ãÉ–"`í/!Ó~Ðtˆ‡IEND®B`‚codequery-0.21.0/gui/images/Clipboard_Copy.png000066400000000000000000000015011310136352400212150ustar00rootroot00000000000000‰PNG  IHDR szzôIDATX…­W¿kAþfvŽ !……ÑBQÁÊ‹…H•CË€"xØhc› …Xø/!)´°WB°H!B$……r‚D"b D ‰wûžÅîìÎϽۋ6Ù¹™›÷}ßûÞL"Þ.´œAEpñ#ûÅúãcû­1•ó]•'oW0“å“áäyRg¬×¨ÌGb¬Çì%$D€Ëª>k޲¦*ÿ›ußc€É BBª±êÄDè÷vÙT‚Å&#Ù¹Û/1qðd¬Bù:ÆÖÆ;|^›ÇŸ_߆dm€e@­Qþ JB:q—î,còøNDбfKqöäŸ ¸µvcmñ<úw¡JJM ¥ÔsxŒµ9¯¢w"Mû b@DÒ³A$Hã˜4EÚÛ3q°4K…J ,\¾û ãŽT–†Ò>®>Æ—÷KkK!dc©Y“³ÀÛ”R L2iàìÌ#´®Ìù>Ðe^QÄ(¢LÃqº= bƇ7O"'!C†: ¬@Ü UÑjÏâÔôÍ‚µÛÒ’¥xüLÌ4!¦g†Û‘”åˆ"\›!"i4ýŽ`}u·ÝêÃV€(Åë§üÞ\:|òè®Í=7ÖçÉa—ZY‡âà€Ìl¹ÛöGךyÊ8“n„ÑR&¸zo¥Z{óû.PèP90'C ð¨&@@! ˜’ÄÚ!¬Ï‰R¬,ÞÀöæ×À5Ë8|l û/ŒõþYà H·?õ&[ß?y ¸æô{›óÇ';o”ož¬%WŸÝòTi4'Š ¥LÐyPÓž åIp«©Ì¨áº¿4aÁÚ¿«­w쀭 dQ·À9íŸ{»;Øþ¹^;ù®¥°}Pè– ý50¥Xš¿î·­+¯9°fúVf½=Ùà •0€£ÿg¨P­Ýž67Ýk3±« ²Ž8¹.k3"'á¬ÄƒX»ºåö]]¯Ö%hËlÉtÿ)þâ^O0hIEND®B`‚codequery-0.21.0/gui/images/Clipboard_Paste.png000066400000000000000000000012631310136352400213640ustar00rootroot00000000000000‰PNG  IHDR szzôzIDATX…½V¿OAþî2µ5"(ÆÂJã ­ì, 4Øú'XXÈ_ ‰=„(ÿÐ@B¨´1wö£Pù+1±»›g±;³oÞ¼Ù½ãöxÉÜîììÎû¾÷½÷æGë­uPbä² ¹{JÏÃ{ æ¶Xï˜Üùã2ˆê,_ÔçNÅܽc*™Ÿ‹±›SäÐ I’Õð¬)ÉÚ–”õÝ'¯q³µ øùõ>î¼PYk ¬ß“ÐTY'†C~éú}ÌÜ{ê¿»z{×î<ÊXçï¹Añ3¬Í†!@°œ_y‡‰™6ààÍl¿‡…•M\ž‹$[xö¿O;8Þz4 –^}üúÞÅáÆ*cíÈd‘j–1vΠßïø÷ç›–2€¿?N` è÷zþÙ•Ù¶`MÙÈ£á# iÍÍmòyo ÝݵJ­µok.i3¥µ›LL·ØZBë\ïÉ­€`͇ñ%Å(x¸ú>ú*³Œ˜,GÃëšQí×aÜqÔˆ¬pšŠÀHlªR&@æÀHd˜/£¶Ñ<ÃÇ ²ÃÈIP”QqtÖÀr‚ä‚‘¬ùb]&Y‹$$¨2Ô*AÈ:È/²X¥ á$`úÈÅÚØ8º@|J1HÇ‘„ƒpQ@–±uY:ëC‚u|V×eqÈ3©u£ÑhŒäÜwVvàþ‰y ´~ý¥»©[m½-SpIÚÙIדq¬=ð$DÜ0¶_ÈµŠ©œKÖ(ò+ª½'„!„²æŽUoN‘4Z&Ëš[¢žƒ5s\ÅZ舊Jëtl%Îtþ÷øT>0B IEND®B`‚codequery-0.21.0/gui/images/Database.png000066400000000000000000000030371310136352400200360ustar00rootroot00000000000000‰PNG  IHDR szzôæIDATX…¥–YlU†¿±Ç[;ûâ—‚B¥@›hÕ°Ä¢ ÔJ€@}AðÄ"@€¨R¨‚²½ðÂ*–‚Ø´¶@Eiš6m¥Mš4K›Õ‰í8qßËC<öÌx’¸’í¹3ãûÿÿ9ç?÷*ûw®Ú \ÍC¦¾~¤v-Ÿ¯¥a.ÒÏ[Õ$øÆ¥è‰X‚%Zƒ'AMsíuYåÿI±6—€ÂDbQfU–ªQ,C¬Ý[LµXŠ€Y5(øuä–×ã+®Æ“Äå-Buû±ÙˆÄ,s3aâѦB}Lb´·™±þ6„”$DЬ4ЫF±S~Í}W?ˆÛWºT¦°«.ìÙE¸³‹È)­¡ìÊMÄÂè:ô!g‚‰LT©[HêšÛvPzåK/7²ü¥¬ºõrJkøs÷ó†i‘QSŠMü¥uÿ \?ò/©Ó©–WØôà©Ú~xŽØDßÿŒ÷qðËgIÕB#"@P«ðÉ üñþfŠ+n¤¤òfòƒkpe^ètt”‘žε說ãW„‘é !“ QHΫžâÌï0xj{œÞ|²ò.Å•]„Ó“‹ÍîB‰¹8ñرðá±^¦#c)1ŠÝÁÕ7?Æ‘Ÿv{“z­&.©½‹²Ú»lÿÁS{8ÁtdŒXdlK¥ç SRIyuõ÷àpy9üãNcÖ\ t †Ž†ÄéÉeeýý¬¬¿ŸÄ\œðH‘Ñn¦&Î…˜Ÿ›lª§'¯˜ì‚ä•TáôøR)‰Ç&ªÊd XèoûŽË×=˜ZÄîp‘WVK^Yí¿.Ä3-ߦ€ÍS-û8’“M¯ õSµþQ\Yyÿ`f*ÄѦ÷h?ø‰AyÊŽèR®ÐŸú‹+ènþ”³Ç¾"PuÊ /]ƒg'Ä"£\8ÛBoû>zN617'¯´‚Ñó]†õEf¤áµ[ߢëðGtù‚Þœ=Þ¸à„¬<¼¹å¸}…ؤ„¹Ùé¤ú™Ž†R¹V;•õ›Y}Ë£|øòm)Õ¦"”X¥AuzYuË3TßðçNþÄ@ç†{Ž2 ‹ŒgäSSdW]ëV¯çŠkîÄ›SL|:²°;Zá¤R`z ŸÇéñãôø©X»•е[‘R ë#b6@uxpgà/â/XÍnÜd#¡AcêpT)2UH௯·³áwñøÒ9W¾ü ¾üàEâTx„=¿á Ó¦õf=C! <ÚKãÛ÷Òyøsó³ ¨ùùYÚ~ÎǯÞÃøPB¤qôû–%Û¤d¥ž•pÝæôu죷½‰Îæ/ˆ†‘\Y9¨·%èÌÔý]Ñzà#š>}‘Îc?#„ aËvºNì³:¾õ(Ÿ½T·OJ6Ú+°åùß™Ÿqlï.º7’˜O¤þèöàñãpe#øôщ!¦"£:…Ëj7²þî'ñæñæÓ×[ûU¡«ͧ Ûeon€¶¼ÂêMOÐÝÚHOû~†Î #2©m8éêVlvŠƒ5¬¬Ù@õš;È-ZrEÒ}@˜N°Í»YÕð0Yþbê6l£nÃ6ó³LŒô\°§Û‡/7@^Ée¨WFjŽüÒÔ‚%h´>`¶Ç‘=»Àî nýC(Š-µ˜]uR¨¤ P¹l!J)hþå~ûv—>ìé³§Õz—Z8½úþuζýʺÛ'pùšeõ£¯«…ß¼A_×Ñ Õ)$‘þ€`Ü0`ðïc|ýö6ò•T\µ‰òÊë(,«Êõü\œáÓôž:DGËÏ ÷Ÿ¶V$¡K 3‰…ôŸf¸ÿ4âû7A±‘å+Äéñƒ„™X˜Èä(BS±UëµapùÈdèßúûB #CÖÝm9Õú¡.¥Ú*5FËZYkyÕf­éä"‘¸ˆ¹ÎƆb[hý𬠳ÅþIEND®B`‚codequery-0.21.0/gui/images/Document2.png000066400000000000000000000015641310136352400201750ustar00rootroot00000000000000‰PNG  IHDR szzô;IDATX…­VMHTQþfxæ8æ8á*h!SDB­ ÊUd‹Ün-ZÔ¾UáVbÔ"èvdD¸qQ1šÑÊ@TȈd2­LÏi1ïÞwîߺpgÞ}÷½{¾ïœïœó2ãƒÅA‡‘2XÿTþX]sxm^³±¦d¿ÅÆO¦@¼ÆâM¿ñبµVÏDU™o‰±Z³c,A6«Í³æ kJð¿Yû@~MÛeMÌ. 4 D,xŒvôÜCSë¡P¤Œ±¶º‚‰×1óáy k–,ìYs£Æ Ú‘Ç‘®8Ö¢ŠQl‰"®Ìø¾ö€7ÖÂ=o\Àâüdj¬[vâè¹h?uDŒO¯ïzYK¯d}¬5jÁnqnRì±ÁŽ`f?ŽáգˠõU;¯¢­xÆËZά/>ˆ¤Ä,È=Œø2ýïFÉdÐqöš –ÄÔ`±–“$vãj¦æôû'ZŽ& "Fjj©¡ÖÇ{Fм·Ýß÷ù)Œß¿(j}ò"Q¸13" øf ×P@m¾ÙP×XÐÏ+AJàÒ¨îÈ[Ñ„Âmc·ºÕ6®þZ2îjÇW„*EK‡ ©Vfë4\ €‰°¶\‡&¬½ÈfÍV%ô°ýÚñÀ‰ÞìÚgj@¹úÛÜ^Þé÷¾'YKoDFq°6%µ®kt5 F¾©E4°CLˆCàÙôÅrt¸5¹^QýYYr;gJ;Dú„ÓH±XÇÚrÙQ· Æí] ÀíRæCöA§ûnb·Gðuv Ïn÷é"f°nJ…Ûòäêý¨ojÑéèx`C”' AeïñÐyÔä¼Eå÷Ê`ýð`DDÖ³7 ÷ì/bafL„¿?ËÆ!¶‘B[ò á‹»)BÍÚíÕ’I×¥‡^·WA$$¸l¥]²Ó&Õ\˜™Ø’a˜ÿ\rÂk#‚PJ=î5+™W¬á4ó±fªF2ÞNײ³!ƒ^ü⎣°A˜¥z;¬¥a5Œ,¨Ê: äͲ–#P ·ÀZ®ÆÚPJ°ºÖ¦bm~ÄÈ:2 ô¬ÈtSZ©;IEND®B`‚codequery-0.21.0/gui/images/Flag.png000066400000000000000000000016241310136352400172030ustar00rootroot00000000000000‰PNG  IHDR szzô[IDATX…µ—ËKTQÇ¿÷ÎUóýuHŒ¢(eŠ"ÚD´ˆ’Vm¬m‹hÓ*è/hãªh%-Ú´00H(làeA8fŽ£éŒ£iç×bîã¼î‡v`fî9÷žóû|/¯ÆøPtÀ1 r¿ ?ä\“ÿ\¼&aμû1Ë6~&€Ñ³oêÛF¥¹óŒUTyEŠ9)™á «*_5ùªfA;­ZÁÜ}$ðª:¢·ôäÒ ¬$ãEU3"(‚‹x{nîÁñ«`¦½Îðfx¿Ò3¨k?ˆHße4uEa˜!dSS˜‰=E&9Q¢j–ËQÄT×¶¹ÆÀ0LTínG-Lœºö†rï5vôbïÑ+H~~øØ=ü^[ÒôT“iòÆùQrƒ€êÚVÁ¸h räÎÝÁþëÕÔÙç™èØ'.ÞE¸±ŒÌac€å›áÝ:?ªvÕ#zþ6úÎÞB.;špªÃ €™É—Ȧ“ŠG,’B@(à 3T…ú–namkóSËÑâU¡åZ*@7äìwûsŒB¤“Jwn?y¾YY¤`~!ØQ!éäê°ü:ÚË\¼æA %ç¹J#©¨ ¢ØÜX/\3†å¹ dR_ADhé:ŒÖH/ ÃöS[µå´D> º`,Ï}Âøã›XYø†µô!ž­‘>ô_ºƒ=ÝQ½ ¼ˆ¸6M>.n’øxà/³S¯±jw÷0`qv#÷ñöù¶6óÂÞüz+?g;…>ÀDåUÀHP-×4#†¯†ñåý(@]s'¿ObêÃ(6ò9éÏ6×äÔy@èãÜ!*°šIáÝØCµùÀ@ó€6‰´ªù½¤êTû„@ÈÇœº.E5l1&“R vBµà—˜ȩ̈)¥¨æçðö9¢Ü>Ào^_[^Ér«Kð¼U†j€¼wK‚þÀÌBÏ ¢±m@fqé…|ÿÃ)Sµ > %ˆT"Žùéxe±Rm¯s!b¨ÄTlÕÛQÍv†Pêá¤Ô½`´BÕüð鄨æ S-ļ¤Š(+Ö´lÆÄþ©›@sÏOIEND®B`‚codequery-0.21.0/gui/images/Folder2.png000066400000000000000000000012561310136352400176300ustar00rootroot00000000000000‰PNG  IHDR szzôuIDATX…µ—¿kAÇ¿{NÀ@ˆ˜4ZP0…± 6I%ØDP¬Ì¿ò?XhgkÊÑV AÁ抔 Cðr—°x/Åþ˜7ofö²›Ý½ÝÙÙïç;óæÍ^òyóÎ&€»()\ü¤'ί9^w¯Ù©“mïšL|© @‚Ųưx&ªêù3f¤óZŽó:{‚¤ ¢ÚUu×uMeM»APñ»çuMÌ>P†%@™kRßµ€eÀäŽbµ]@)‹ i¤¸t=1s +¯0~麓ìyÆÞ÷-ì~ܨìZ¶w¼(Í½ŽŠ@’$˜[|†™¹û©Dé»ÎA§‡ncÀì†x|rG½ŸøºµŠÿ'Cg®“οÀÕ›K¸÷ä%÷ŠNdLÃ|{ÿLJn@ ‡ŸÝNrR™N“ì.Œ]ÄåÙùèHMaË“WðáÍS'ú‹<@BTÒÀÄô ”ôýtŽ< _ÖQë¶3B±3² "w©˜ëÈ?œŠ® ÈU  üÎr »Ì½eXê:YÕµ΋¡P&Œ¹Ö¢5]ËÉ„5\ áQ®5@×v VD¥¹¶ÐN°•ˆèž¢®ÃD§Ö©1IEND®B`‚codequery-0.21.0/gui/images/Gear.png000066400000000000000000000024041310136352400172050ustar00rootroot00000000000000‰PNG  IHDR szzôËIDATX…­–mlSUǽ»v-{…1†#,ãMq†,¼^L jB$*ñ!&&¿øA?hÂB4DýbŒ$FIÔ„P³"3AP ¤/u³cëZÚÛóø¡íí}k7ˆ'¹½=çÜóüÿÿç<ÏsŽïøÞ޽ÀBÊ41r/)ü—Ò}û±õUq>¬çÁW•#`%â –Ÿôσ:ú…oôq•?âB_\€ÊA¢$§ªûW-%U«rþoÕ^$”¹NìîGuUcíË_CDè=ù1£ƒ×Q"nBåHèb%PNµƒÈÌ%›˜6ïišÔHÏ—¯NPu¡Ÿó”†s<Vø«©Þa¯ŸÞaohé@Ðr >©m˘Tׂʯ/¨U ”’Ü“7=PJuCë_÷þ`=7/ãÂ;Ñ+k¨ž<Ë$P¡WR×¼€D&OŸË¢5›Mû"bÆÅÅÕôʲÁ¥¬*,Ê5 :ç5ì1§)”ˆ-H®…’‰yjžý$">DÙ× é´ÌYá¹f4~‹Kg™ª­¨«|Zn)Äþ>Gמ§ÔL¥vêVnüÄ4VßÔ΢µoræÈn”(DÀ§é,]·•ÚÉÛ€»÷o¥ÿ$Ž ´Äœ.ªØqN&†ï \ŠY¾‰æöeDzOR¡˜1w…  5v—±B8\opŸRÅÿ>M§sý6O·64µÓÐÔî9WhO½¼ƒ;‘—ˆ¸I`Æ€½PX3¢eÞj›ç—)×UuÌï\_ö´Õl•ÉV±„Xä"F&e3šNJÄ]`™tЬ‘¶)¥èÿó XÄÐÜ%2^+¸;4@ÏwQ* ÀÀ•ߨÿÞ3|÷éf£ûÞ`ß¶µ ô‡sàYƒî¯·½z¾¬Ì: œw¹ü»ïl±h/uSÚè¿ØMÖ002Y뽿bd2|óÑ+ÌZ°š¡Û׈Eû\7)É×0ƒP<3ÀŒƒ}6c©äÉÑ!‚Õ¹;Ajl#“AŒŒÁås?zF|î-Å»¥€®”õðqx§GŠõ¿ë³×yté|šÆ¥Ó‡]ëË©6 PHCq“p^ õ»0½&r%ìOu~ܲTíA²<¨[µ¸ÐÌ-˜ˆêRÅä~U[[‰Jøª-Àã©v 82b<@›ê"i[°•Âÿ°,…Å,"agIEND®B`‚codequery-0.21.0/gui/images/Graph.png000066400000000000000000000022651310136352400173750ustar00rootroot00000000000000‰PNG  IHDR szzô|IDATX…­–[leÇ3;Û¥ô&µviÀv±’R¬"’(Rë­*˜hI°áUã›1ÆÄ‰© ¼ <™Ôh Fð$¨ÅKJ›I mZbhZéívç;>ÌîÌ7³³[ŠLÒî|s¾9ÿÿÿ;ÿsv3[÷ç÷Ÿó!™{ɽöß‹o­¼xŸ•oËG@' –†ƒ§AëÌkIå7¥8³–,@ ‘“@PÕòUKNÕ*[­:Œ„rß?ÿ«Z‰dÊGBÀ@>Õ"7¯Z#+`eå"u*¦EÑŠÕZÜOÌMb'¡€žjñ‘´tðQ½å¹©^û@Ð:ÌNŽòý¡Î%Uëq+—ê,"éç%å1¦¯3Úÿ5JÙÔÝý8•±J+×øîÝûUgðµ˜à—£ÝØv ¸øûÇlÞñ6k7=‹RþwuÕ* F ˜ÞÆì!!J J9D£Å«ˆ•# ”‚H´„â•5€—G)qþ¹½¸“ßR’¿µÂ¦Yie=/}Õ¡ŸQ¶Mm|…%åÞQ/¡ÚË'i„Ð«ÇÆþ:M݆ꛟBD˜ûwœÅ…9&FûÕ¡î7¦qò½–^Úò©Îv³óùÂ[ý|úfË2TkâàŒ[µ“Ȉú=Ä”™«xUmÎ=ÌÏL’LϯL™9¢Z <øüaV¯ ï÷àµëÕSyã×&Fø¤§3£ÚGÐò -¸¢¼€ùé;…„$.­pöÌL¶A€²Ê:ʪbˆˆþCD'.A ˆaðãGÝÌNgS »g€/Þ}"g­_>0€a˜¾6Ôq,QúÐ 3Z8L«Œ*=tƒH´Ø%)(qÞO&P¢ÒL¬h¡{VA‰ã¥|Œ/÷mìh˰~dïªëïõåìÔÇtbÛ6í/bMÓöÐZO^â³ý»º^ûŠªÚ¸/>1>Ä‘ž:§ t”ÝÖˆˆ0üç1®OÓ´u7¥u˜ÑS3”×4:uŸg¸ï;”m³nc•·7PYwÛ±ª6ŽR6~ý;µHëöÝTßÏò›¬ÀÈàœ;±X\˜§µãw|"01ö7'>ØÃb2øãÔa:öì§qÓc¾<ƒçŽóÓ±wÜö»ÿѽ¦RÚ|N¿hF,2Ï 3ê8Z‹G¬(†õLiDÜzûóD]B¦Uàæñµ¡ëX¼±kjãá®÷Y˜¿F|óάÄ5 t½þ-—.œÆV)îlngeE­ÓjÊëÈ [žÃÀN-Ò¼u‡ÖŠâ’qç@æhƇλk±õ9À©$WGH\ŸC)¹x–xë“D¬BÖß÷´k°dbޱËç]—#ÖÐJ¼¥€T2Áè¥óî0"g}£¹W -t^X‹ÿË)hààö?÷T»л€o­€an0”€è ®I³º ¯ê’ËU­g.K&a^ÕAЛT­_Ö-S­/¥:H ÏKàïˆåÕÚ#í3[p ï?æ4çÖ6aòåIEND®B`‚codequery-0.21.0/gui/images/Search.png000066400000000000000000000023511310136352400175350ustar00rootroot00000000000000‰PNG  IHDR szzô°IDATX…­V[O\UþöÌa˜2Àt(#·Z+ÒBð6CRZïÖšñÁÄŸLšª`ü>4ÆÄ4šø iÑöÁćFCS« 6A4œb©öÂ}*a¸ Ì9gööᜳgŸÛ¦'Ùpö¬µ×÷}{­½ö!}g[ÎhEž‡ñ?Ú?f¼3÷¹ù™æ4gOH:x{>"G0Ýè ®ƒZ憴­òÿ¥Ø˜3 µp%`Uµ{ÕÌU5ÍGàA«v"Aù:f&°j_0 _IhVEziJ&m"@³ÊG‚ 8€„šÖ8j#ªËùÒ,§1ö[R»P-e€d(v"P£õ¥OQi²ÕñxQYÿ *êb˜þ#?~ʨ+`N53‘”Dpqë½<ñÊVì×í K3CX…§ á†çÕ€‚†'_cÀWÏìHµh—Ü*ü`Û).o,cø»N,Nq xö <Ö~Z'ÇýÛ¿`ö^¿-ÏVÕ¢ÝãÄTò•"Úò²NŒbèÛ,L é ô`YŠ¿ûÏãί]ZJAÓ‘·@)´!¨¦:·évrlŒE¡Ú¼’°01€…éa-°2€QàÖõÏ¡l­Ê£Í(.«ÖÁ˜6,±E2Œkg¢ ðï©áŶ˜LpÕ¦úP2[Xúç&ß…²ª¦mUçÓkÀV±âá$¶öiMˆ‡{øKý]ÖzœT­/Nñ€uO;³×Uy (æþ™Íµ¼ª_«íO¸-©Éߡʛ€ÊÚ§9Ðf &ú·¼ð6 ‹ùQŸu$*ÆgFЍx „ —·Òüšç5vü#T?zÌŒx ñø‹ïâ`,ÎÕ§Wç°¾š²ÕŠUµ˜Ò}¦¹—1´›úˆäÑ׿Byõ!°2w‹÷Gá•|ˆìÁ¬°uÈäí~\»øäÌ–íƒDø1pú¼ñc‘“`¨·i6‹ä­„¢‡ EEÁ ”ïkDYä¾íÖ§´²ûŽal¤Š,kàp(Hí·Ioühä$êªJ‰ËX[J¢¨$Œâ’0!l+½‚åÔ¥{M$‚eU¨mlÃØHä̦Uµ‰¹ôAs/ƒžK~̈·ÀÉ^0È™ ¤ÿ!žícÔ:jÛå¹ \úìM¬­¤ì$´÷>µRÍÝJïfºMÎlby~ Ë©I¬¯¤@³ Š¢àÚÅNLÜìµEpâôöDl×3ïîG†™ å9ÛŠ¢àê…Œÿù³DYe Nœ:o¡ß±zìͪÝI.=”1¨Š‚+_vàÞÈO6å‘„£Î;À˜v)P=ÐNUó ÁTUÅ•®NܽÑc" *2fÇmÍHOËÝt»TÍI ~ªªâòù÷ð×à÷4ßëÝŸ`c}5ׄb”(«=ß×Lî4ð^a?VÚPUtw½ÎAÎlbi~†_p†¯qJâÙ·ÝZ¦àÌÐe>—¼Ã׊ :}vªÚ¤+ þ»Yµl<<;RmÍKÀ]µøHLµ¼j+D.€åÖÚa®Åµ" é ñï¸=BeS›IEND®B`‚codequery-0.21.0/gui/images/Text_Minus.png000066400000000000000000000023121310136352400204240ustar00rootroot00000000000000‰PNG  IHDR szzô‘IDATX…­WßOU=3;Ëî²tù±eʯ–¬ÐB˶V[•¨1}ÐTmK±jü|òŇ&¾Ó싾Mµ6AS0ÆHkcš®B*Ð&,µ@ P„n¶,ìÜχݹsïÌìPÑ› ³wî½ß9çÞó}3(—{÷öè€K#þ'w#ã7îË¿Iê3s|X˃w¹‰8‚åÁó –¾1GÛTù–}²2 ‰‚¬ªþ½j*¨š¹ø¿U;‘`|Éþ«jFd'äF‚Dnª…gŠÇ e³[P-%@3" ª”Õ¢íè”×ìˆpÿÎ5ŒôŸA:5Ï«šâpãÉÝÓ©E°Œ¼›ªV½è<þ)‚ ¹ i<‚Øñ^\ù¢‡+z郯Q‰Z­%µåù ô}ŒÕæÒüvY·¬ºõ5\håÕm¨jyÄÆ×ï ÍÇ14¾ÍªEõÝ6èÁÔèÏ ~:wÁ²®™’\šX·ßÁåµ1„"-pei þ’íЊŠáºý(­zK÷ư–~ˆG«a”_«!­…Hµ>`¶‹Ð;%)žŒƒé?x_Q4:̓3"s=.‡ØŽ a‚?T'›º8˜ž]Ç_#? ¿ ‘ªk}þm0Fˆ$ʈZHµ±… '¡¨4{{V–±83Š¥Ù1þ\õxÑüL÷¦ª‰çˆª6–D|¡ªPßþ–¤4ÿŽÏŸ¸!ïBSìTo@µɉ3ÆTÓ¦jc°fÏë( „Ló-Ï`.1ăM÷c#³ÊÇ}Å¥hÜÌæ%«jÑwjÎ0$±4Üßx@N½Dü"tF`Œ@ŒY[ÅäH¿4§õð; R\UKŽ@¬Üù,B•<0Ó³HüÞ';œ€[CßJJ·×£vwWAÕV˜™÷¢úèÁ)pr!P$Šm•Q[ÍXMÎ#XúŸ»ç…ÓHÜüEÎy8¿4û[ (©¨CUÓ‰@yU ^yÿ§UïŠ!¼c7¦Çm¬T«S‰€èÁn(ŠúX`NMQt¼ø®ÍpN—fûFó±kß1)`:µˆµæ{Cìq’ >ÔÔq¿öõ"õ`ÁùË<1y`gÇðúJL b¸ôÙ{H.NÙëy># RÛŠ·?<Ï×y4/ÚŸ?…«ßŸu!`¼Ž™ù9Õ|HN½Ù‰!<¸?åP-M‡swG1w÷¦´vïáP…W¯S¥•ê@¸¦¡pdìÚy!¥Ì¢ÅÓQH©?®|%­ ËPÿÔs–s—¿U)'…­€äâîŒZÊ´©Z*·ŒÇüûžÃë ÚT‹ÇÀ³€˜¾ýn ]c:Ö×R¸zñèY&¨–­ŽÖ³Y |ù1Ò+Ë`Œaôú%ŒßøQVm¹+ŸÔ6H„.n.ª§ºž…®3™5,À€ME…êѰ±žÉYî.KY`×õuÉáN nˆt=Sðÿ ±9V­¨ÓrÕ6Ãf’vbS@éLMÒ"7pÃÿ†Â¬‘ Ú7 IEND®B`‚codequery-0.21.0/gui/images/Text_Plus.png000066400000000000000000000024651310136352400202650ustar00rootroot00000000000000‰PNG  IHDR szzôüIDATX…­—]lUÇ;;K·í¶…–V[h ´¡|(ˆ‚ÒDbxÀ †(â׋ï¾è‹$>i"·'ú‰¢e)ñºG\––Oíª7 ¥Ýí?ºóo\4½Ðм+”oºÙ§Z߉ä˜e0JærjpþŠ×˜•_œ¾¡;ÜënsõtœdzrÔÏ+(¡nÍvß~‹KDŒwÉ CµvX n™zÝíÇp” ” J˜œ¥çÒIcNãÆw äT­“3·@,_øÅåu®aåÄéþó¸ቫ«íˆA dn-ÕK[²ªöâØ¢Ò¨«¯_¿Ç0}ÐMqE=Eåõ¾š1½OaÉ3îÜ/ï¥ûò3ø01Õ·½%W DJk¨lØd˜S¹„-ïäIZÕ¢fÊæ-åÁík>a^–7RE ~ý.ë‰À2µ@ @Óæw}—é²}g´¼B­Þn‹ 0=1¤¿zG€pA1ù‘Rw¨¡i+çŽï'öøAæm ‘y¶RæÀÂ¦× åEÒ¢8ñõ{Dú|§™”%PQÝÈÛv×í«^ÚÍùŸä ¬¢ÒÇ©ÅÌÔë¿ÑÆã‡}êx:ÂEà^o'÷z/kWnÜ¥}z½ié«eóWQ\Vc¹zá°–Ré¢å¦£–RývÈX›_8›Úç^ôì»yn´ŒœÔ\èãfg«§L§UåVàZû)¢î6By…>Õú6¸Y ·¯ÿNWÛQ”r˜šˆqþØç8q¥©6½íÄãœúþ3ÆF†PJÑùÇ ®]ÿpi˜ÁkóPø3'ýƒ›A]ckñHæÿ‹±5–ž€Â"€›Õg-Y‹|7k?ÂÞ'ÅÚˆÌ [šÎè@;cýBJ/ | $RÀzvù&­}“Ø‚Uhšn®‘ ÷Ü!ÕtŒ{É“99EÖ X †ÅØ€¦¬|i?ó«^ñxDÓ4fÌ© zÛ'̯ÚÁåŸ>`l¤?0`޵t€ÔÕà¶AÌqåÖŽàÃ=-¤šŽÑrù(}÷“Hñ¬…OS³ç0Z(‚PÒ+öX˜¬íy‘7‚>wé ”VîÈΉInÔ$Õt<ǘ[þ<Ïìù‘‰Šgß \8Óf.]¬…P.94Ö¦p´„âyU¤Ç†¸séhö WJ¥€Íèº{ #\Hé²Z3˜Ì^®³U0R€!¤³ô¤„™ehš@Ç 2é1^ÝwÍcD€÷'èJ5/¯ ¤´!ö‘Á¯JÓîÂáv!}cƒy èö8-ö´[á¾Wb~m¸¯)š¦›W…nD9ñi"Uü©õ6€‰Ñ¡lzY+åèm¤düá}­É¬®‘"–oØëÐ_]_Vù"sž\cè¾ÝYz.ÓYF¶æt"«\$ܼpÄv÷²õu¬Ü¸4ÃáðE‰—yn×g¶_¤”tÝûÃEHé Š)­lh§>¯>+%µn¤„UÛ÷Q±vÍîá`]©&3f/L0sÎ'†úÚøõÈ;ôw·z^H”+ƹÐî-ñ:$‹}&io¾€)bVYMÓGŠˆÅ—ñDé ‹J|M‰SžØJë­ßìµµöø'û[*´{s¼NÂb„’Íéh¹DA4FQ¬=”{€N¦Çé¼w…é±ù¶ áÈ4*Vo§íN#ƒÿtzˆ©´ªÏJL ë6›BM7ˆÇÑC¤'Æì&“I³ªömÖmß`b|„S_¿Gksƒ¦¯×Æë¤ÌfÀZ öp5+BÆ1:ÜÏøèbR $´·\!“§liDÈ(`éšm<¸{•ž6?)=¸d¤³ä|ú¸z5ÕÃÅ_Ù•cËQPÈkï~ÅìË}öItßG¦ðö}oIåä±À6žþ–ó§¾ð€(ˆLcIÕ&§¤« ÷»œûÞÏÉ>o8ýBH6îüÐ!GgëMÇ>Ì}†õj䮀À~ŽË>o¨ÿžL&Íæ]£ë!n]=Ãíë¿9@ce@ˆ<ýÚÃ:à?gà¯ä¢E1:þþ¡°¶`>Ž%tx~Ö~ãÞvú{Û¬ÍuŠSdí2„ÒÈpý†ò ŠSbíš@0kõc<6ÖJàG±vHæpUĵV÷ª­˜AÁä¿7íBÀ 3&IEND®B`‚codequery-0.21.0/gui/images/axialisReadMe.txt000066400000000000000000000020041310136352400210660ustar00rootroot00000000000000Free Icons by Axialis Software http://www.axialis.com Here is a library of icons that you can freely use in your projects. All the icons are licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.5/). It means that you can use them in any project or website, commercially or not. The icons have been created by Axialis IconWorkshop, the professional icon authoring tool for Windows. For more info visit this page: http://www.axialis.com/iconworkshop TERMS OF USE The only restrictions are: (a) you must keep the credits of the authors: "Axialis Team", even if you modify them; (b) link to us if you use them on your website (see below). LINK TO US If you use the icons in your website, you must add the following link on EACH PAGE containing the icons (at the bottom of the page for example). The HTML code for this link is: Icons by Axialis Team codequery-0.21.0/gui/images/logo.png000066400000000000000000000166461310136352400173040ustar00rootroot00000000000000‰PNG  IHDR€€Ã>aËbKGDÿÿÿ ½§“ pHYs  šœtIMEÝ¿ç93IDATxÚí}y|SUÚÿ÷fOš¤mÒ-¥ ¥{aÚ2¬BÙQPTeTDe}TTÔá7¢À¨¨,"ðŽÊ(0: ¼ƒJÙÊ"[in)-IÓì˽ç÷GMLš¥I›BÁûý|î§KnÎÉ=Ï÷<çyžó<'!„€ÅovX°` À‚% –,X°` À‚% –,X°` À‚% –,X°` À‚% –,X°` Àâv/œB@Q”ó/˜Íõ i‰$%t{ÅmC§ÐiÚ ½þ:N:ˆ’’8{ö"jk¡Ñ4!/¯Ö¯ÿ €ˆñvM&ï¿» ,–üøãwذa+NŸ.—+DJJ¢¢¢’’ ©TƒêêzX,:ˆÅ,‚ÃXðÉ'+«DZZw$'çA à!""Ž8l„ Ú“NØqáÂ1<ÿük¨¯×¡°°‘‘‘ i„×e6›QUu_ý%ÄâxV²A¢±±±±= ½^Š”ÈÌLÁ¨QwàÁÿ¹<\®øÆ„д6¬ÄÌBjj† )‚L&MÓ`Æëb:ìvTÈÎÎÄï_ˆÂÂÄÅ%¢®®Ë–ý={ÀSO=†«WºäÒép Ù²ÅX»v+ÆŽ ¡Pèz­õÅ0Ì/¿³ Y5S(ŠãšT4Mƒ¦iðù|¨T ÈÎÎFiéYÜqÇxlÜøhÚÒ.„D†±`ãÆ÷±mÛÿ¡¨h°«ÃbÐ.3 ‡Ã†a`2™° h¯!è¾; œã””,X°óçÿ4m ™!gΔ`ùò¸ûî»=Ô»»à !hhhÀÅ‹—`·[ÑܬÀù #Y‰†l2.·þÝyB’’Œ/¿Ü ‡ã üýï«Á劂6ƒ2 !0™Ô˜0a*ÒÒ²! ½T=Ã0¨©©Áå˸ë®"<ðÀÈÊꇂD"‚HßáÙð[Š#44T ..}ûö…X,—ËõI÷«¦¦¯¼òæÌY´q” ( ûö} ­Ö„¬,¾ÇŒš¦qäÈQŒÕë׿ƒØØLÜ Íù^Bì0`µ:põêTV^V«ƒN§—ËX,Bbb}õõPQQQ‹E (¦eMÔéšÑÔ¤ƒD"@jj7 ð;<ôÐD¤¥e@&Kº%µ‡çg¦¡×«QUU‰%KÞÁþýG¡R%¸&Ÿûr`³Ù—×_}õoðx’Ž€­¶ ƒÁèÑ£=:sþ~ñâÏØ¾ý+H¥ª ´ÃaBEEV®\}ûJ!K‘–ÖR©„Øív/ƒÓÝ@j!« Z­W¯V!5U…iÓîÁÌ™³!—'ÝˈÃaÆþó¿˜;w ”J¥‡pj„«W«pôè÷ÈÍ-ê¸@QŠ‹w!22‡ÃkÒh4(,̆L–Ø®ÁmiË‚ÊÊRÌž=<0 jµ ƒáw¿ë…ˆˆ—WáÞoká»ß#—Ë‘››‘H†•+¿@~þ`¬Xñ2 †º[~iàrE¸ï¾G0oÞ h4Z/œa(• ¬YóIøÜÀ³gË£ðx†a`6›!—KÛý@&S=Þ{o ÆŽ}f3ƒöˆ(Ò4í"žór Ûùš»‹äN†a•J…wßý #GÞÇ¿‡Ãa­z.FK|@€Gy ãð ¾BÀçóñãGa0Ô„‡Zp8/«“‘HF×®‡¹zõ(zèa|óM1† ©Têåó:ûò%`w2¸ßך4Í &F »Â˜1S°|ù iË-$âñ8P©b½&¤sâTTTÁn§ÃCwõÒZ@B¡µµ °XBzˆãÇ÷àþû…B¡BFFºGýýÖD°Ûíp8ZÁßýî?FkRR7,[¶3gNNW~ ‰ZÂÅ­ï?N³Ù7P(zmò8;âr¹¨«k€Ýnƒ(È;ƒ¿Å¬Y/`РA¯Ölv0‡Ã­V ­¶ :V« Ã@(B.—C&“º>§/ÁÝHR*Ø¿ÿ(&Mš…M›VA©Ì½å@Ó4®C"‘º…Ü=/£Q(‘p8h—¥ÝÚ»~½v;”•}âÄ^Ìš5wÜ1ÈÇžÁ¯FžÃáTWWC­V#'' C‡öF~~.T‰qˆ‹EQ¨©©ÆÅòË8qüg?~/^EBB„BÏv‹DBœ>]ŽéÓŸÆ—_n‚XwKyzýu\¿Þ‘HâSø„ˆÅQá!€J ³Ùìs@[T.ƒÊÊ“P(R¶S]} <2Þá1ó[/1„0¸t©|>Á”)÷bÊ”{ à@A·è>ò‹™ž†áÃÒŒƒ^oDMM>øð lÛ¶ryx<ž_ïA àãС2,\øV¬-„z³qäÈ!…BŸ³ß©™‚¶c2AÙYYéhl¼îÓÀjq;¢qüøé€®žÅrÏ<³¹¹=ýƹív;ŒF#Nž,ßÿ<»¿_…gŸ‡8% ‰ÈÐ`œ{KTËEÐò?ÆY…œ¬h¼÷÷§qèà—4¨uuu®€‘¯M«ˆ Ö®ý6o^uKi€“'ÏA"ûÝ…‹Eàñ¸'!iiù Ä·ð†L&Ù3´bǺu@£1A$y¨}w7®¦¦„˜ñÝwëðè£Ã -BGh‚árh$w`ͪç±~ý2èt:—±õ²£T*ðôÓoàÊ•#·ˆhŹsàóù>µhK(9\.¯ã ( ÑÑ2õß}@…B!**jüzUU§°jÕfdd¤{-N˾²²}údã‹Ï—"%IÐÚQàrÆï…öü/ÚËpÿÏ`þü×`·»<L& *+«Ù+ñοp.Û|>/Ÿï¾;½¾¦Ë ¶¶|~KbŽÑh„Z­†V«…Ùlö„PÈ J£½DDÄ ==f³ÙçF ŸÏ‡Áà{Þ¾}/’’’<6lœd¨«ScâıGrn¨ÿMh``ÿtôîçaE»k„sç.A­®î²hɈÒáÚµk^cYAgEq‚Ÿ=|dfv‡^¯÷«œá[0jqêT9$±—ç@Ó4êëÕ˜:e,@ߨºŠ¤ràþûï‚ÅbõØðrÚB¡;vìì’Âw8ô°Zí°Ùl~ï0 wÐí…”ž••ƒÁàs“…¦=×»Ýކ­Ï͆a••ЍHaÈAžðì¤0˜øÇÑ0 6€sÃÉb1ãØ±Ó]Ò i ÌfkûÎ!@RR‚Ëj½žÛlVW‘H‹šªÿÅ3pxE zöÌF„ìf 0…Ø)ºwOrÍþ¦¦&hµZ—«¨¨‚ÉTߣ€$`µŸÏƒB‘Ð9èÖ-6›Ýg¢†ÉdFBBœ›¥z2™ÔËòw8hjÒ!777³dH à#9YƒÁ€ÆÆF/•ªV7tɲ6‡0ÆŸÔ€¼P˜Çã‰ÁáP> Bx<’“{º|Q¦Éµ[Õ:„¬×ë‘”œpS5¬XÄEBB¬Ërn–XA×#€@°Ê::Z.·@Q 5hÚw,=.N€ë²è­V+( >·{- ä2éÍI®ÀÄÀjë¢yƒ”Jÿûü"Qhq„Tvñb9Äb‘WbMÓÈÌL…Túkì™Ëå¦}W°p8ØlŽ›½šú ]ÿªj»îé9YYi'jHKJ(7ÿôÓQÈå2¯0°F£Å˜1CÀáüš€)…Åbñ¹$‹q­¡ñ¦8®nB¯×ˆ{Hº, îï÷5ƒÁ’ít(¸¹¹ß_ @à#gÆÔ©z¨ÌîÝSÑܬw~ÜI  qñÂeÜLØíV\¹â?ØÒZz#½€ŒŒB¿Ë@EÅUWz^Ø@ÓV|øá»hhhòòL&3¦N½r¹Òc ))<ÇgʲH$©SgA;87mívΜ¹è÷žîÝ“ t½#mZÂÙ Ü{ï(Ÿ¯›ÍôRÀq”Ö`34šKX¼x>V­úd2©Wz8‡Ã`áÂyêß™Dý h¯àÑ™3a0ÚnŠ'Hq)üß³UeVVwðùQèŠàrŘ7ïi¿¯¿ýöÇ0ÕAiÞ¯³ÜŒÍ›WÃfkP}}#ΫÀáç@Ó@TT¤‡ëGÓ4®]kÀgŸ-CLL®5T=’påJƒ‡×à$õk”¹ŒÑ#Óo¸;H;8Øü¯ÿ¼gذèÊÈËëiÓîÃ?ÿùµ×k”bñâW±xñ눈PÌÖ¦H  Ñ\ALL222ðx|=g÷Ëáp@£ÑâÅgcîÜ—ýfÓ®^ý&Þ}w“‡áè^î•——†Ïÿ¹<îdAÚŽÔÔ¡~ý|>Ÿ‡úúJDEuëÒ‰¢55'PP0ׯký‹}ñ—¿ÌÀˆãÁãqÀáp@Q€D¢pÛÈqªl½¾ÑÑJÈå2Èår`Cë£_´Ú&<õÔC…ãÇ߇æfG8ؽŒkß¾C8{þ@Ý8Ð Ë–m ä5j°‡MÓUÑ­[!>ÿü}¿¯ÁÄ‰Ï 66¹¹}Яßôé3Ó§Or=Ç}Ýn­ª[BÀ0 ¬V+ž}v:^}õí6óè•Ê$ôéÓÓe´Î^‰ŽŽÆ /¼‹Etc‚.P~Iƒ•+7¼mÆŒ a9çàF³#G>ˆO>YÚÆ}@]Ý5œ?_ *pêÔß^€¯¼ùÖiGb±=z¤5;„BfÍšˆšš:Ÿ¥å„””œÄ†ìC8j¶”Jq0ó‘®@–/$%© —GbãÆwðé§ËñóÏ ×Wû5”o¶GÀáˆ0}ú3øàƒÅíjƒç¾6ú+2pZË„X­6<ýôbðxL˜ð8ÿ¡Ç†Þƒ´´5Ðë->‰)ÇË/½^=ó0dˆ  ;Gø4MáåWVáСãïÕju7nf+ -šƒ)Sæ€Çw9p¹"<öØhµ¼òʲöEù| ŒF£+[×iìµÞΉD‚I“žÁîÝ_ÔEA&KÄ‚C­®÷YËNT*Åĉ£´´  $aÖ hšÂÿ[ºï½×ö¡ F£wFð… ˜>ýðÀ÷ ªêX—ÓÅàðáÿâ­·> ý½Î#b,–<ÿüü† ›ÍÔýùùY(+;ïI€Ö°Ù´°ZM¸r¥/¾øW””œŸÏCmm­Ç}ýû`ïÞHjƒòò݉Dâ·b—a47ëñä“S±èå§¡PÚAí©  i.Ný\‹3àäɳaô™3ÄÒ¥‹×릞=T^~}ûŽN§ú=ýû磤¤Ì5CÛ„ÉtLŸþG‚_êr[_}ôz­ÐäóÏß#‘‘‘$))‰$''“ÄÄD’˜˜HT*‰'qqq$&&†ÈårÒ#-•¬Y³”4iÆq‚ú0aì‡ qø»Ja‡õ©¸´<>{ªßÏ®«[·x²{÷gÄá0†aÈÃ0Ä`¨%ýúåûý|R©„<þød²cÇzR]}Š\»VA+‰ÑXëjÁv¨VŸ"Je”ÏŽRRº®:à 0 Cìvyíµ¹$22Ê%ø„„—ðcccILL Q(D¡P>_@RS“ÈSs&{ö|N®7“fÝab2%fãqb2#ýÒ¤9D®^9@Ö~¼”Œ;²Óßúš7ï¢××ÜP8&òúëÏúýLEEýHuõ bµê¶ƒàg#sæ<ì·ÃmÛVÅZ»ÝDæÎAd2™KðîÂW*•D¡Pèèh¢P(ˆP(tõÁãñHNN:9r¹ûîádôè"Ò¯_‰i—àø|ÉÌìä䤓cÇöÜ0mP]}œðù<ŸŸ%99‘¨Õ'ƒj¡tºeË*¿0mÚ}„¦ÍA“ॗæ±XBbbb\—R©$ÑÑÑ.á‹ÅâN›µ"‘ˆlÛ¶ŠÜyçа¶»dÉóÄ`¨ít,\ø„ßÏðþû¯ÝNH8wn¿ßN³²z­$xÿý׈X,&J¥Â¥öJ¥&|•*žœ8±‡BÈ›o>ööìMΟ/& címÐÜ\ErrÒýö¯Vÿ~0 CÔêò€~ýú匇ÃDØB²²zˆ)‰ŠŠ"QQQD.—wšð'O¾ÇC=ÖÖ–@ö~>Y½ú¯Än7…‡ýöÛ£G Ñéª;GTWŸøÐ/ Ù’%„­¶œ¼ðÂl"‘HˆL&ëÁ§¥%“­[?ò!;Y»vI§nܸäÊ•#ÏÛQ¬_¿Ôoýúƒ¡®spìØö€»gÏg²j+*JɬY^ËþpX®ÌÌîdåÊWIssµO!8—£+^î4Èå2²yóûaÓÏ=÷˜ß¾ ($Fc'à›o>ø [·®‹{£VŸ!o¿½€ Ü·]£ S¦ÜKvî\ïWð¾Hðßÿn!))Ý:Ó§Op-?ÑS§Ž÷ÛGïÞ=C2BCJ ¿téj››.áHwŠÏÃüùoaΜZzìß¿ %%e¨¬¬BU•z½F£B¡b±ññ1HJŠG¯^Ù1¢JàrÅ^õÿ6T† ™€£GsðÒKoâã¿{ÔîÿØŠ={бqã2Œù`»¶œív-Ìfÿ…¡:>´Š¦P˜÷Ä“2ü›oÖvªëCÓfb4Ö½¾†47W“ææjb0Ô“©Î§mÑ^Øí&²mÛ*¿¯ð%MM—Bþlfs=7ndÀèŸFs%üK€ÑXK†ð¡víú”Üp¨¦æ8yðÁ»:YYiäèÑÝÄn>xd±\#÷Ü3*`»UUeA?kÐyÙ6›'Nüðžèh9n8—‹ÄÄB|ñÅVlØðv§|ëé… •èÓçXºtL&uK¤"‘ à=¥¥?…žÐjk/£©©¹µ ÜnàrE˜9óyœ:µÆ ì”>-ZQ£ÆáüùŸ@HàšD/²ÍóÿJJއŸ{öì ܇‚PqÛ Epž>;vlÃòå/uJÉXIÉqäçÇš5Ka³5¼W& <Îeeçƒ>¾?Èï °¢´ôdÀ{BªK¿!ÇãÙg¡¬l/òósÂÞ¾ÍfÇSO½Š Dmí ¿÷©TqÛ9~ü ¬VKø`2]GYYऊôôTðù·7ZÜE1zõ†ââ½xñÅ';¥Ÿ;ö¡oß1¸|¹ÔçëiiÉß__ßˆÆÆºðÀf³ãìÙKm b± ¿DD$à7VàÀ-HMM {ûuu×ð§?ÍÉä]âÕ»wA›ïß·ooø ÑÔyœæ ={fá·gð¨¨hŽÝ'ž˜ö>Š‹`×®¯=‚X-…·Ùm.·¥¥eá#@YYÛVeAA.~kp F©ÌÁ¬Ã×_¯RÖ>6mú cñè“Ïç!=½{À÷•—_…Ù\TW·ÝPaá[ö«ØÂå.Ž?'OîÃĉw‡­Ýsç*`6{z"‘8à)!PYY‡ƒ 4møÿ-ÀoéËý °iÓlÜø$’ާ·œ^æ9±øüh¤§6kjÔÀ ‰¾Š%Ü‘‘Ñ,~Õ3f<‡S§öcĈ;:ÔVrr¢Ïoþ((ÈkÓpoËn )©©‰‹ãYÉ· õèÑß~û5V¬XÔîàѨQw@$Šõú¿~½ƒÐæð ­ÈSB‚7õħ. ‘(s羄²²}mÎÚÖP*£1{öã^ÿ'„@¥ÊlÓ0›uá!@VV€¯clü–µAKðh(Š‹÷àå—çýÞ߆B‘é³MƒnÝ +qc0[†W® ¸ý8fÌPb4ÖÝðê˜[q›Ùn7’ƒw¬¬4¿ã)“IÉ¿ÿ½:`Ass ÉËË (—ÆÆÊðäèõÕä÷¿ï°³¶„5ññv‡^_CV¯~“Œ3”¤¥%“ääDRTÔ¼öÚ\¢VŸ 8– í¶ŠÄÅ)ýÊ£{÷$W:\XBV¬x) ”Ê(òÛ\‰,‚K:±Z¯ÿ’áTãQ³×¶oœŸ9uêø  uì‡ÕéªIbb|›Y.“&#?ý´•45U£±Î•®Å"|¤©¨(!IIª€rعs}ø³‚¿úêàÓbIQQ?2vì²dÉs„+ÁWU“O?]Fbc•Ç>??—èõ5AMº*ƒìv™3gZȹoÇ$&“š•`°Z›É… ‡Hqñ—䫯>$óæ=J²²z5ÞÛ·¯ëœº†aˆÉtŒ;"$ Æ ThµWÛ•húøã“CJ2å„êӊűشi-&O¾‡uò;î_h, r±téëàñÄ¡Ÿ "#3ðé§ÿš5…H$b¥ÕЫW6vîüÑÑ¡åe´{/€ËaöìQ^~Ï<311öÁ +¡NÄ´i÷cÿþ­P© Bs¸*vtºjòß’¹sg?üaéÖ-ÞÍ@¬Övauuƒ(|M#[¶|Ô¡¢S¿§„µƒH®uÇl®‡Ýn‡ÝNÃj5€Ë">>ƒª!@­¾•*ÃçÑСýñðÃ÷aôèû “%v蔲° Xr°&S¦L™ŽÈH)TªXôꕃAƒŠ£‚Tã*|íè¸Þ°h/„)e#üF ‹ÎmЋß8ÅX°`Á€K,X°`Á€K,X°`Á€K,X°`Á€K,X°`qãðÿ¨óÚts¦ß¾IEND®B`‚codequery-0.21.0/gui/images/logo1616.ico000066400000000000000000000021761310136352400176010ustar00rootroot00000000000000 h(    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿûûûÿÚÛÛÿïððÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿëììÿº»»ÿðññÿÿÿÿÿÿÿÿÿŸŸÿLOOÿÒÔÔÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøùùÿÑÓÓÿZ]]ÿvyyÿûûûÿôõõÿILLÿ©««ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÛÜÜÿ`bbÿACCÿ¢¥¥ÿACCÿìííÿùúúÿRTTÿœžžÿÿÿÿÿÿÿÿÿûûûÿüýýÿÿÿÿÿùúúÿ«­­ÿ+,,ÿÿ\^^ÿ•˜˜ÿMOOÿö÷÷ÿÿÿÿÿqttÿ“••ÿõööÿ—˜˜ÿVXXÿ_bbÿ¬®®ÿvxxÿ ÿÿŽÿöööÿ¦¨¨ÿdffÿþþþÿ¾ÁÁÿ\__ÿÄÆÆÿ†ˆˆÿN\]ÿ‰ª¬ÿz˜™ÿ,45ÿ ÿGIIÿÆÈÈÿþþþÿÿÿÿÿàááÿLOOÿ‹ÿ¢¥¥ÿceeÿ¹»»ÿZbbÿ´ÞßÿÎÿÿÿÏÿÿÿ‡¨©ÿ?BBÿçééÿÿÿÿÿÿÿÿÿÿÿÿÿÖ××ÿPSSÿ¤¦¦ÿÿÿÿÿÿ{~~ÿmxxÿÃòôÿËýÿÿÍÿÿÿ£ÊÊÿGKKÿðññÿÿÿÿÿÿÿÿÿÿÿÿÿ¢¤¤ÿceeÿþÿÿÿüüüÿ…‡‡ÿ›ÿ{€€ÿŸ¿ÁÿÈùüÿÃóõÿj€‚ÿvxxÿýþþÿÿÿÿÿÿÿÿÿÿÿÿÿ°²²ÿRTTÿôôôÿõööÿ€‚‚ÿÅÇÇÿÍÎÎÿx}}ÿu„…ÿeqrÿhkkÿÞßßÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÂÄÄÿUWWÿíîîÿýþþÿ«­­ÿŽÿãååÿèééÿÃÄÄÿÇÈÈÿïððÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿãääÿsvvÿŸŸÿýýýÿÿÿÿÿöööÿÌÎÎÿéëëÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿóôôÿÜÝÝÿùúúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿcodequery-0.21.0/gui/images/logo3232.ico000066400000000000000000000102761310136352400175750ustar00rootroot00000000000000  ¨( @   ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿþþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿãææÿº½½ÿØÛÛÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÊÌÌÿgkkÿšžžÿèêêÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýýýÿ¤¨¨ÿ*--ÿÿ‡ŒŒÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿµ¸¸ÿÿÿIMMÿâääÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÁÄÄÿÿÿmqqÿÉÍÍÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷øøÿåççÿëííÿÈËËÿVZZÿÿ}ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿswwÿÿ€„„ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÙÜÜÿdggÿ#&&ÿimmÿõööÿ±µµÿÿEHHÿ÷øøÿÿÿÿÿÿÿÿÿþþþÿ`ddÿÿ„ˆˆÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùúúÿª­­ÿ,//ÿÿÿ ÿÅÈÈÿ¡¡ÿÿEHHÿ÷øøÿÿÿÿÿÿÿÿÿÿÿÿÿw{{ÿÿ_ccÿýþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿâååÿnrrÿ ÿÿÿÿ+..ÿÜßßÿw{{ÿÿbffÿþþþÿÿÿÿÿÿÿÿÿÿÿÿÿ¡¥¥ÿÿCFFÿö÷÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüüüÿ·ººÿ7::ÿÿÿÿÿEIIÿÇÊÊÿüþþÿ[__ÿÿ““ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÇÊÊÿ ÿ8;;ÿñóóÿÿÿÿÿÿÿÿÿúûûÿÒÕÕÿœ  ÿ‚††ÿŽ’’ÿ»¿¿ÿïññÿÿÿÿÿëííÿ|ÿÿÿÿÿÿƒƒÿêììÿÿÿÿÿûüüÿVYYÿÿ²¶¶ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÖÚÚÿÿBEEÿõ÷÷ÿÿÿÿÿçééÿz~~ÿ ÿÿÿÿ ÿEHHÿ·¼¼ÿcggÿÿÿÿÿ9<<ÿ¹¼¼ÿüüüÿÿÿÿÿÿÿÿÿÿÿÿÿpttÿÿ³¶¶ÿÿÿÿÿÿÿÿÿþÿÿÿýþþÿ¬°°ÿ ÿy}}ÿÿÿÿÿêëëÿ`ccÿÿ#''ÿTefÿp‰Šÿdyzÿ.88ÿÿÿ ÿÿÿÿpttÿãææÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ»¿¿ÿÿZ^^ÿÐÔÔÿíïïÿÈËËÿkooÿ688ÿADDÿÜßßÿÿÿÿÿŠŽŽÿÿBJKÿ¦ËÍÿÊûýÿÍÿÿÿÍÿÿÿ¼éëÿavwÿÿÿÿ588ÿ«¯¯ÿùúúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüýýÿ~ƒƒÿÿÿ…‡‡ÿ¯³³ÿ577ÿ'''ÿv{{ÿùúúÿâääÿGIIÿ477ÿ£ÆÇÿÍÿÿÿÊüÿÿÊüÿÿÊüÿÿÌþÿÿÃñòÿBPQÿÿtyyÿêííÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿðññÿY]]ÿÿ?BBÿ¡££ÿïððÿÏÒÒÿ‚‚ÿ133ÿ±µµÿÁÄÄÿ9::ÿ_lmÿÆ÷øÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÎÿÿÿˆ¦§ÿÿ]aaÿýþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŸ££ÿÿ„ˆˆÿöøøÿüýýÿÿÿÿÿÿÿÿÿÔØØÿ:<<ÿnqqÿ«°°ÿ???ÿu‡ˆÿËüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿžÂÃÿ ÿGJJÿøùùÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿcffÿÿ¸¼¼ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÖÙÙÿCEEÿ^aaÿ¯µµÿLKKÿn}}ÿÈøúÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ‘±²ÿ ÿZ]]ÿûüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿûüüÿUYYÿÿª®®ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÀÃÃÿEEEÿehhÿÑÖÖÿacbÿY]]ÿ¯Ö×ÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿÇ÷øÿYijÿÿ“——ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿhllÿÿƒ‡‡ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¢¦¦ÿJJJÿx||ÿõ÷÷ÿ”˜˜ÿVVVÿp|}ÿ¶ßâÿËþÿÿÌÿÿÿÍÿÿÿÄôöÿ~—˜ÿ !!ÿ799ÿÛÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‰ÿÿaddÿûüüÿÿÿÿÿÿÿÿÿýþþÿ’’ÿRRRÿ”˜˜ÿÿÿÿÿãææÿz||ÿYYYÿdklÿ†œÿ™¶¸ÿ¨©ÿ_mnÿ,--ÿ-//ÿ©­­ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¬°°ÿÿQSSÿö÷÷ÿÿÿÿÿÿÿÿÿýýýÿ““ÿ[[[ÿ¨¬¬ÿÿÿÿÿÿÿÿÿßââÿ‰ÿ^__ÿRQQÿJJJÿA@@ÿ9:9ÿQSSÿ±´´ÿûüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ®²²ÿ$$$ÿ_bbÿùúúÿÿÿÿÿÿÿÿÿÿÿÿÿ³··ÿcddÿ„„ÿÐÓÓÿñóóÿÿÿÿÿõööÿÉÍÍÿŸ££ÿ‹ÿŽ’’ÿ¯²²ÿäççÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿáããÿ˜œœÿPSSÿ///ÿ§««ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïññÿŽ’’ÿeffÿaccÿ©®®ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿº½½ÿ?@@ÿIKKÿ“——ÿõööÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿîððÿµ¹¹ÿ‘‘ÿº¿¿ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿãååÿ¹½½ÿÚÜÜÿûüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüüüÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿcodequery-0.21.0/gui/images/logo4848.ico000066400000000000000000000226761310136352400176220ustar00rootroot0000000000000000 ¨%(0` $  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïññÿáääÿóööÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿíððÿÀÅÅÿ˜žžÿ´ººÿýþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿž¢¢ÿ$((ÿCGGÿ‚ˆˆÿÝááÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýýýÿ·¼¼ÿAFFÿÿÿTZZÿùüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ””ÿÿÿÿ599ÿÄÊÊÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ²··ÿÿÿÿÿ`ggÿúüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÀÅÅÿ\ccÿ)--ÿÿÿ;@@ÿãççÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿäèèÿ6::ÿÿ ÿ^ddÿ®µµÿ×ÜÜÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøúúÿâææÿêííÿþþþÿüýýÿÛààÿLQQÿÿÿ”››ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿª°°ÿÿÿKPPÿðóóÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ×ÛÛÿgmmÿ&**ÿ5::ÿ¢¨¨ÿüýýÿÿÿÿÿ˜ÿÿÿ_ccÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‡ŒŒÿÿÿdiiÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøùùÿ§­­ÿ-11ÿÿÿÿÿÌÑÑÿÿÿÿÿ‹‘‘ÿÿÿV[[ÿûýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿˆŽŽÿÿÿIMMÿöùùÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿàääÿnssÿÿÿÿÿÿÿ¢¨¨ÿÿÿÿÿfllÿÿÿ_ddÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ¦¦ÿÿÿ,11ÿåééÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿúûûÿ´ººÿ7<<ÿÿÿÿÿÿÿÿÄÉÉÿøúúÿEIIÿÿÿ~„„ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÀÅÅÿÿÿÿÏÔÔÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿçëëÿ|‚‚ÿÿÿÿÿÿÿÿÿ‹’’ÿûüüÿæééÿ,00ÿÿÿª°°ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿâææÿ'++ÿÿ ÿ¾ÄÄÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýþþÿÁÆÆÿCHHÿÿÿÿÿÿÿÿ:>>ÿ·½½ÿûüüÿÿÿÿÿÚÞÞÿ ##ÿÿÿÏÔÔÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿõ÷÷ÿHMMÿÿ ÿ°¸¸ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿöøøÿÛààÿÀÅÅÿµººÿ¾ÃÃÿÚÞÞÿõ÷÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿîññÿŠÿÿÿÿÿÿÿÿÿpvvÿâååÿÿÿÿÿÿÿÿÿÿÿÿÿÕÚÚÿÿÿ-00ÿèììÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿellÿÿ ÿ³¹¹ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿòõõÿ¬²²ÿSYYÿ!$$ÿÿ ÿ ÿ""ÿMRRÿ¡§§ÿîððÿÿÿÿÿÚÝÝÿRWWÿÿÿÿÿÿÿÿ/33ÿª°°ÿøúúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÞááÿ$''ÿÿ:>>ÿïòòÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿouuÿÿÿÆËËÿÿÿÿÿÿÿÿÿÿÿÿÿÚÞÞÿaggÿÿÿÿÿÿÿÿÿÿMRRÿÅÌÌÿ^ddÿÿÿÿÿÿÿ ÿbggÿÚÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿñôôÿAFFÿÿ144ÿéííÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿóööÿKPPÿÿ266ÿæêêÿÿÿÿÿÿÿÿÿÖÚÚÿJNNÿÿÿÿ %%ÿ?KKÿN\\ÿAMNÿ"''ÿÿÿÿ $$ÿÿÿÿÿÿÿ&))ÿ¢¢ÿôööÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‹‘‘ÿÿ ÿ¦¬¬ÿûýýÿÿÿÿÿÿÿÿÿüýýÿåççÿÕÚÚÿ••ÿÿÿŒ’’ÿÿÿÿÿÿÿÿÿëîîÿZ__ÿÿÿ'++ÿu‹Œÿ²ÚÜÿÇöøÿÊùüÿÇöùÿµßáÿy’“ÿ##ÿÿÿÿÿÿÿÿTYYÿÏÔÔÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿçêêÿHMMÿÿÿZ__ÿ|ÿÙÜÜÿçëëÿY^^ÿ8::ÿ&&&ÿÿdjjÿîððÿÿÿÿÿÿÿÿÿ—ÿ%&&ÿ ÿ266ÿšº»ÿÌüýÿÌþÿÿÊüÿÿÊüÿÿÊüÿÿËþÿÿÍþÿÿ¡ÅÆÿ'..ÿÿÿÿÿ(++ÿ••ÿïòòÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÏÔÔÿ&**ÿÿÿ ÿ·¸¸ÿâççÿBDDÿ(((ÿ(((ÿ022ÿ¶½½ÿÿÿÿÿÿÿÿÿçëëÿOSSÿ)))ÿ***ÿ‰¤¤ÿÌþÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ‘°±ÿÿÿÿ¥­­ÿàääÿýýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýþþÿ˜žžÿÿÿ ÿ ##ÿ¾ÀÀÿïññÿƒŠŠÿejjÿ>@@ÿ(((ÿJNNÿÖÛÛÿÿÿÿÿ¾ÃÃÿ9;;ÿ0//ÿOYYÿÀíïÿËýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊýÿÿÆõ÷ÿGTTÿÿÿ¤ªªÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÁÆÆÿÿÿTYYÿºÀÀÿÐÕÕÿòôôÿÿÿÿÿûüüÿøùùÿÂÇÇÿADDÿ'''ÿu{{ÿüþþÿž¤¤ÿ999ÿ655ÿxÿÌýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ|•–ÿÿÿtzzÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿûýýÿbggÿÿ ##ÿÕÚÚÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿúüüÿqwwÿ,,,ÿACCÿÜááÿ——ÿ@@@ÿ;::ÿ¨¨ÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ‘±²ÿÿÿaeeÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿçëëÿ/33ÿÿ9==ÿîòòÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‚‡‡ÿ222ÿ466ÿÂÈÈÿ•œœÿFFFÿBAAÿ‹¥¥ÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ®¯ÿ ÿÿdiiÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿØÜÜÿ!!ÿÿ599ÿíññÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿúüüÿv||ÿ999ÿ799ÿ¸ÀÀÿ«°°ÿLMMÿJJIÿu‡ˆÿÊûýÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÌÿÿÿu‹Œÿÿ ÿ‚‡‡ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÖÛÛÿ ÿÿ$''ÿàääÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿðòòÿdhhÿBBBÿ<>>ÿ¼ÃÃÿÏÔÔÿWYYÿRRRÿY__ÿ·àáÿÌþÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿ¾êëÿ@IIÿÿÿ¶»»ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿßââÿ-11ÿÿÿ¾ÃÃÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÙÞÞÿTWWÿJIIÿEGGÿÊÏÏÿô÷÷ÿvzzÿXWWÿRRRÿ}‘ÿÇ÷øÿËýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿÊûüÿz‘’ÿÿÿCGGÿéììÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿíððÿDHHÿÿÿ—ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¿ÄÄÿQRRÿQPPÿSVVÿÙÝÝÿÿÿÿÿºÀÀÿ[]]ÿ]\\ÿUWWÿ…œÿÁïñÿÌÿÿÿÌþÿÿËýÿÿËþÿÿÍÿÿÿÅóõÿƒœÿ*,,ÿÿÿŸ¤¤ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùûûÿaeeÿÿÿtyyÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¨®®ÿTTTÿUUUÿdhhÿìððÿÿÿÿÿ÷ùùÿ“˜˜ÿ\\\ÿ^^^ÿVVVÿjvvÿ—³´ÿ±ØÚÿ¼åçÿ³ÛÜÿ˜¶·ÿ_lmÿ.//ÿ%$$ÿÿkppÿòôôÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‡‡ÿÿÿbffÿüþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿœ¡¡ÿZ[[ÿZZZÿzÿøúúÿÿÿÿÿÿÿÿÿîððÿ’’ÿ]^^ÿ^^^ÿXWWÿQQQÿSVVÿQVVÿKNNÿ===ÿ444ÿ0//ÿ)**ÿhmmÿäèèÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŸ¥¥ÿ!!!ÿÿ`ddÿûýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¤ªªÿ^__ÿ___ÿ‡ŒŒÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿòôôÿ§­­ÿhkkÿZZZÿYYYÿTSSÿNMMÿGGGÿAAAÿ999ÿEHHÿ‘––ÿíïïÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿŽ““ÿ&&&ÿ ÿ|ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÇÌÌÿceeÿgggÿmqqÿÒ××ÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿýþþÿÞââÿ¦¬¬ÿ}ÿgllÿ`ddÿ`ddÿossÿ˜žžÿÖÚÚÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿëííÿÉÎÎÿ•››ÿ@CCÿ,,,ÿ133ÿÀÅÅÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿóõõÿ…‹‹ÿgggÿhhhÿillÿ†ŒŒÿ±··ÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøúúÿìððÿåééÿêîîÿ÷ùùÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¤©©ÿACCÿ;<<ÿ666ÿ122ÿˆÿøúúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÝááÿ{€€ÿfggÿihhÿ_^^ÿx~~ÿ÷úúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¡¡ÿ;;;ÿABBÿLOOÿ–››ÿòôôÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿæééÿ¡§§ÿw{{ÿehhÿˆˆÿùûûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÇÌÌÿ’™™ÿ±¶¶ÿÜààÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿðóóÿÛßßÿáååÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿcodequery-0.21.0/gui/images/logo6464.ico000066400000000000000000000410761310136352400176110ustar00rootroot00000000000000@@ (B(@€ @  ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÇÌÌÿ¢¨¨ÿÂÉÉÿâççÿúûûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿô÷÷ÿÌÓÓÿš¢¢ÿx~~ÿ‰‘‘ÿïóóÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿtyyÿÿÿ,00ÿnvvÿÏÕÕÿþþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿÊÐÐÿ[bbÿÿÿÿ-22ÿáççÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿqvvÿÿÿÿÿ(,,ÿ¨±±ÿüþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ³»»ÿ(,,ÿÿÿÿÿ.22ÿáççÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ}ƒƒÿ ÿÿÿÿÿ!!ÿ¹ÁÁÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÏÕÕÿ,11ÿÿÿÿ ÿ$((ÿZbbÿêïïÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿâèèÿ½ÆÆÿ’™™ÿ9>>ÿÿÿÿEKKÿéîîÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøúúÿgnnÿÿÿÿ=CCÿ¬³³ÿÜããÿëïïÿþþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿøúúÿâççÿàååÿöøøÿÿÿÿÿÿÿÿÿÿÿÿÿÙßßÿ>ÿÿÿÿÿÿÿÿÿ†ÿÿÿÿÿêîîÿ;AAÿÿÿÿ|‚‚ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÄÌÌÿÿÿÿÿ¸ÀÀÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿåêêÿ{ƒƒÿÿÿÿÿÿÿÿÿÿ ÿ«³³ÿÿÿÿÿÚààÿ ##ÿÿÿÿ˜ŸŸÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÛááÿ"%%ÿÿÿÿ–ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüýýÿ¾ÅÅÿDJJÿÿÿÿÿÿÿÿÿÿÿW^^ÿìððÿÿÿÿÿÀÈÈÿÿÿÿÿÁÈÈÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïòòÿEKKÿÿÿÿz€€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿëïïÿ‰‘‘ÿ ÿÿÿÿÿÿÿÿÿÿÿqxxÿãèèÿÿÿÿÿÿÿÿÿ§­­ÿ ÿÿÿ)--ÿßååÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿpwwÿÿÿÿhppÿüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿÊÑÑÿQWWÿ ÿÿÿÿÿÿÿÿÿÿ155ÿ©°°ÿöùùÿÿÿÿÿÿÿÿÿÿÿÿÿš  ÿÿÿÿNVVÿóööÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ—žžÿÿÿÿZccÿøûûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿúûûÿìïïÿßååÿÜââÿáççÿðòòÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿñôôÿ–ŸŸÿ%))ÿÿÿÿÿÿÿÿÿÿ ÿbjjÿ×ÜÜÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ’››ÿÿÿÿqxxÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¶¾¾ÿ ÿÿÿW``ÿ÷úúÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýþþÿÞããÿ¥¥ÿcjjÿCCÿ³ÛÜÿÌþÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ¾¿ÿÿÿÿ*..ÿáååÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿáææÿBHHÿÿÿ!!ÿbhhÿ~……ÿœ££ÿôõõÿÿÿÿÿØÞÞÿ·¿¿ÿ©°°ÿmssÿ011ÿ*))ÿ*,,ÿ ¨¨ÿþÿÿÿÿÿÿÿ™  ÿ788ÿ777ÿ...ÿn€ÿÊúýÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿÄñóÿCNNÿÿÿ ÿ²ººÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ‚‰‰ÿÿÿ""ÿ´¼¼ÿúüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿðóóÿrxxÿ,--ÿ***ÿGLLÿâççÿþÿÿÿ……ÿ888ÿ<<<ÿ777ÿ­®ÿÍÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍþÿÿm‚ÿÿÿÿ••ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿâççÿ055ÿÿÿellÿúüüÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¶¾¾ÿ366ÿ000ÿ-..ÿ«±±ÿøûûÿpxxÿ???ÿ@@@ÿ;<<ÿ¥ÆÇÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÎÿÿÿƒžÿÿÿÿ|‚‚ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¼ÄÄÿÿÿÿ†ŽŽÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÑØØÿ:;;ÿ444ÿ+++ÿ„ŠŠÿôøøÿpxxÿEDDÿFEEÿ>@?ÿ¨ÊËÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿ…¡¢ÿÿÿÿz€€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ¦¦ÿÿÿÿ‡ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÍÕÕÿ;==ÿ999ÿ/..ÿnvvÿóùùÿ|„„ÿGGGÿKKKÿDEEÿ™·¸ÿÌÿÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÍÿÿÿxŽÿ ÿÿÿ‡ŽŽÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ“››ÿÿÿÿz€€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¸ÀÀÿ>AAÿ>>>ÿ544ÿjssÿöûûÿ“™™ÿLLLÿPPPÿFFFÿ~’“ÿÌýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊýÿÿÇ÷ùÿWeeÿÿÿÿ©¯¯ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ•ÿÿÿÿ]eeÿùûûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¤¤ÿBCCÿCCCÿ888ÿmvvÿúýýÿ¹ÀÀÿPRRÿUUUÿNMMÿ[ddÿ½èéÿËýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÌþÿÿ®ÒÓÿ+//ÿÿÿ*--ÿÔÚÚÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ£©©ÿÿÿÿ6;;ÿèììÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿûýýÿ††ÿDCCÿHHHÿ<;;ÿ|ƒƒÿþÿÿÿäééÿcggÿXWWÿWWWÿLLLÿ‹££ÿËüþÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿÉ÷ùÿgxxÿÿÿÿ]ccÿõ÷÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¶¾¾ÿ ÿÿÿ!!ÿÍÕÕÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿìïïÿekkÿMLLÿLLLÿBBBÿ““ÿÿÿÿÿýÿÿÿ—ŸŸÿTUUÿ\\\ÿVVVÿTXXÿ¢ÃÅÿÌþÿÿÊýÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿÊüÿÿËýÿÿËüýÿŠ¥¦ÿ$&&ÿÿÿÿ¯µµÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓÚÚÿ*,,ÿÿÿÿ§¯¯ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÛááÿUXXÿTTTÿQQQÿHIIÿ£««ÿÿÿÿÿÿÿÿÿßååÿgllÿ\\\ÿ^^^ÿVUUÿX^^ÿœº»ÿÈøùÿÌÿÿÿËýÿÿÊüÿÿÊüÿÿÊýÿÿËýÿÿÌÿÿÿÄòôÿ†žŸÿ.11ÿÿÿÿ^ddÿñôôÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿåééÿAEEÿÿÿÿˆÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÄÍÍÿQTTÿYYYÿVVVÿJLLÿÂÊÊÿÿÿÿÿÿÿÿÿÿÿÿÿ¸ÀÀÿ[^^ÿ```ÿ___ÿWWWÿRUUÿv‡‡ÿ¨ÊËÿ¿ëíÿÈ÷úÿÌûþÿÇöøÿ¾èêÿž½¿ÿ_lmÿ,--ÿ&%%ÿ$##ÿÿ:>>ÿÍÓÓÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿôööÿZbbÿÿÿÿx~~ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ´ººÿUWWÿ^^^ÿZZZÿUXXÿÛááÿÿÿÿÿÿÿÿÿÿÿÿÿúüüÿ¦¬¬ÿ[]]ÿ```ÿ```ÿZZZÿQQQÿNPPÿ]eeÿmzzÿr€€ÿhttÿPXXÿ8::ÿ000ÿ///ÿ,,,ÿ$$$ÿ6::ÿ³»»ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿy€€ÿÿ ÿÿpvvÿýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¯µµÿXZZÿbbbÿ]]]ÿejjÿèììÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùúúÿ«³³ÿ_ccÿ]]]ÿa``ÿ]]]ÿXXXÿRQQÿIHHÿBBBÿ@@@ÿ@@@ÿ===ÿ:99ÿ433ÿ+++ÿHLLÿºÁÁÿüþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿŠ‘‘ÿ"##ÿ###ÿÿx~~ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ½ÅÅÿZ\\ÿfffÿ`__ÿkppÿîððÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿüýýÿÈÐÐÿy€€ÿY[[ÿYYYÿ\\\ÿZYYÿVUUÿQQQÿLLLÿGGGÿ@@@ÿ788ÿ=??ÿw~~ÿØÝÝÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿóööÿlrrÿ&&&ÿ'''ÿ"##ÿ›¢¢ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÞääÿcggÿhhhÿgggÿ]``ÿÂÉÉÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿñôôÿ½ÄÄÿ„‹‹ÿdhhÿSUUÿORRÿMPPÿIKKÿIKKÿ[``ÿ„‹‹ÿÆÍÍÿ÷ùùÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷ùùÿìïïÿÔÚÚÿ‚‰‰ÿ466ÿ.--ÿ(((ÿ=@@ÿØÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùûûÿ••ÿbbbÿlllÿdddÿdhhÿœ¤¤ÿÎÕÕÿáææÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùûûÿåêêÿÑØØÿ½ÆÆÿ·¾¾ÿ¾ÆÆÿÔÛÛÿéííÿüýýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿž¤¤ÿW\\ÿFIIÿ666ÿ555ÿ111ÿ,--ÿ”››ÿýþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÛááÿmrrÿhhhÿnnnÿhggÿ]^^ÿVXXÿbhhÿçëëÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿ€„„ÿ;::ÿCCCÿ???ÿ888ÿ233ÿ~„„ÿñóóÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿËÑÑÿmrrÿdddÿlllÿlllÿgggÿ`eeÿàææÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿ……ÿ:99ÿAAAÿ>??ÿNRRÿ›££ÿñóóÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿÜââÿ——ÿfkkÿ^``ÿ^__ÿ\aaÿáççÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ£««ÿnvvÿ‹‘‘ÿ®µµÿáååÿüþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿúûûÿáææÿÀÇÇÿ¡¨¨ÿ¤¬¬ÿóööÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùûûÿøûûÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿcodequery-0.21.0/gui/langtable.cpp000066400000000000000000000021251310136352400170110ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include #include "small_lib.h" #include "langtable.h" #define BASE_LANG_PATH ":/mainwindow/build/gui/" typedef struct { const char* langName; const char* langFile; }langTableType; static const langTableType langTable[]= { #include "tslist.txt" }; QStringList langtable::getLangNameList(void) { QStringList lst; for(int i=0; iclear(); m_sqlist.resultlist.clear(); } void listhandler::init(void) { connect(m_treeWidgetSearchResults, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)), this, SLOT(listItemClicked(QTreeWidgetItem *, QTreeWidgetItem *))); connect(m_pushButtonUp, SIGNAL(clicked(bool)), this, SLOT(Up_ButtonClick(bool))); connect(m_pushButtonDown, SIGNAL(clicked(bool)), this, SLOT(Down_ButtonClick(bool))); m_pushButtonUp->setEnabled(false); m_pushButtonDown->setEnabled(false); m_treeWidgetSearchResults->setSelectionMode(QAbstractItemView::SingleSelection); m_sqlist.resultlist.clear(); m_sqlist.result_type = sqlqueryresultlist::sqlresultFULL; m_noclick = true; updateListHeaders(); m_noclick = false; m_sqlist.result_type = sqlqueryresultlist::sqlresultERROR; } void listhandler::populateList(sqlqueryresultlist resultlist, int selectitem) { bool headersChanged = (m_sqlist.result_type != resultlist.result_type); m_sqlist = resultlist; m_noclick = true; QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); clearList(); if (headersChanged) updateListHeaders(); updateList(); resizeColumns(); QApplication::restoreOverrideCursor(); m_noclick = false; m_treeWidgetSearchResults->setCurrentItem(m_treeWidgetSearchResults->topLevelItem(selectitem)); emit listRowNumUpdated(selectitem); } void listhandler::listItemClicked(QTreeWidgetItem * current, QTreeWidgetItem * previous) { if (current == NULL) return; if (m_noclick) return; checkUpDown(); emit listRowNumUpdated(m_treeWidgetSearchResults->indexOfTopLevelItem(current)); emit openFile(str2qt(m_sqlist.resultlist[current->data(0,Qt::UserRole).toLongLong()].filepath), str2qt(m_sqlist.resultlist[current->data(0,Qt::UserRole).toLongLong()].linenum), m_sqlist.resultlist[current->data(0,Qt::UserRole).toLongLong()].fileid); } void listhandler::requestToProvideResultCurrentListItemSymbolName() { QString symName(""); if (m_treeWidgetSearchResults->topLevelItemCount() > 0) { QTreeWidgetItem* current = m_treeWidgetSearchResults->currentItem(); symName = str2qt(m_sqlist.resultlist[current->data(0,Qt::UserRole).toLongLong()].symname); } emit sendResultCurrentListItemSymbolName(symName); } void listhandler::updateList(void) { if (m_sqlist.resultlist.empty()) return; qlonglong i = 0; int col; QList treeitemlist; treeitemlist.reserve(m_sqlist.resultlist.size()); for(std::vector::iterator it = m_sqlist.resultlist.begin(); it != m_sqlist.resultlist.end(); it++) { col = 0; treeitemlist += new QTreeWidgetItem(m_treeWidgetSearchResults); if (m_sqlist.result_type == sqlqueryresultlist::sqlresultFULL) treeitemlist.last()->setText(col++, str2qt(it->symname)); treeitemlist.last()->setText(col++, str2qt(it->filename)); if ((m_sqlist.result_type == sqlqueryresultlist::sqlresultFULL)|| (m_sqlist.result_type == sqlqueryresultlist::sqlresultFILE_LINE)) { treeitemlist.last()->setText(col++, str2qt(it->linenum)); treeitemlist.last()->setText(col++, str2qt(it->linetext)); } treeitemlist.last()->setData(0, Qt::UserRole, QVariant(i++)); } m_treeWidgetSearchResults->addTopLevelItems(treeitemlist); } void listhandler::updateListHeaders(void) { QStringList headers; if (m_sqlist.result_type == sqlqueryresultlist::sqlresultFULL) headers += tr("Symbol"); headers += tr("File"); if ((m_sqlist.result_type == sqlqueryresultlist::sqlresultFULL)|| (m_sqlist.result_type == sqlqueryresultlist::sqlresultFILE_LINE)) headers << tr("Line") << tr("Preview"); m_treeWidgetSearchResults->setHeaderLabels(headers); if (m_sqlist.result_type == sqlqueryresultlist::sqlresultFULL) { m_treeWidgetSearchResults->setColumnCount(4); } else if (m_sqlist.result_type == sqlqueryresultlist::sqlresultFILE_LINE) { m_treeWidgetSearchResults->setColumnCount(3); } else if (m_sqlist.result_type == sqlqueryresultlist::sqlresultFILE_ONLY) { m_treeWidgetSearchResults->setColumnCount(1); } } void listhandler::resizeColumns(void) { int n = m_treeWidgetSearchResults->columnCount(); if (n > 1) n--; for(int i=0; i < n; i++) {m_treeWidgetSearchResults->resizeColumnToContents(i);} } void listhandler::clearList() { bool noclick = m_noclick; m_pushButtonUp->setEnabled(false); m_pushButtonDown->setEnabled(false); m_noclick = true; m_treeWidgetSearchResults->clear(); m_noclick = noclick; } void listhandler::retranslateUi(void) { m_noclick = true; if (m_treeWidgetSearchResults->topLevelItemCount() <= 0) { m_sqlist.result_type = sqlqueryresultlist::sqlresultFULL; updateListHeaders(); m_noclick = false; } else { int curItemIdx = m_treeWidgetSearchResults->indexOfTopLevelItem(m_treeWidgetSearchResults->currentItem()); clearList(); updateListHeaders(); updateList(); resizeColumns(); m_treeWidgetSearchResults->setCurrentItem(m_treeWidgetSearchResults->topLevelItem(curItemIdx)); m_noclick = false; listItemClicked(m_treeWidgetSearchResults->topLevelItem(curItemIdx), NULL); } } void listhandler::Up_ButtonClick(bool checked) { QTreeWidgetItem *item = NULL; tStr curFilepath; tStr itemFilepath; if ((!checked)&&(m_treeWidgetSearchResults->topLevelItemCount() > 0)) { item = m_treeWidgetSearchResults->currentItem(); if (item != NULL) curFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; while (item != NULL) { item = m_treeWidgetSearchResults->itemAbove(item); if (item == NULL) break; itemFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; if (strrevcmp(curFilepath, itemFilepath)) { m_treeWidgetSearchResults->setCurrentItem(item); break; } } } } void listhandler::Down_ButtonClick(bool checked) { QTreeWidgetItem *item = NULL; tStr curFilepath; tStr itemFilepath; if ((!checked)&&(m_treeWidgetSearchResults->topLevelItemCount() > 0)) { item = m_treeWidgetSearchResults->currentItem(); if (item != NULL) curFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; while (item != NULL) { item = m_treeWidgetSearchResults->itemBelow(item); if (item == NULL) break; itemFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; if (strrevcmp(curFilepath, itemFilepath)) { m_treeWidgetSearchResults->setCurrentItem(item); break; } } } } void listhandler::checkUpDown(void) { QTreeWidgetItem *item = NULL; QTreeWidgetItem *curItem = NULL; tStr curFilepath, itemFilepath; bool upArrow=false, downArrow=false; if (m_treeWidgetSearchResults->topLevelItemCount() <= 0) return; item = m_treeWidgetSearchResults->currentItem(); curItem = item; if (item != NULL) curFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; while (item != NULL) { item = m_treeWidgetSearchResults->itemAbove(item); if (item == NULL) break; itemFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; if (strrevcmp(curFilepath, itemFilepath)) { upArrow = true; break; } // for now, assume items with same file path are grouped together // This is to speed up the search else break; } item = curItem; while (item != NULL) { item = m_treeWidgetSearchResults->itemBelow(item); if (item == NULL) break; itemFilepath = m_sqlist.resultlist[item->data(0,Qt::UserRole).toLongLong()].filepath; if (strrevcmp(curFilepath, itemFilepath)) { downArrow = true; break; } // for now, assume items with same file path are grouped together // This is to speed up the search else break; } m_pushButtonUp->setEnabled(upArrow); m_pushButtonDown->setEnabled(downArrow); } codequery-0.21.0/gui/listhandler.h000066400000000000000000000025561310136352400170460ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef LISTHANDLER_H_CQ #define LISTHANDLER_H_CQ #ifdef USE_QT5 #include #else #include #endif #include "sqlquery.h" class mainwindow; class listhandler : public QObject { Q_OBJECT public: QTreeWidget *m_treeWidgetSearchResults; QPushButton *m_pushButtonUp; QPushButton *m_pushButtonDown; listhandler(mainwindow* pmw); ~listhandler(); void init(void); void updateList(void); void prepareToExit(void); void updateListHeaders(void); void resizeColumns(void); void retranslateUi(void); void checkUpDown(void); public slots: void populateList(sqlqueryresultlist resultlist, int selectitem); void listItemClicked(QTreeWidgetItem * current, QTreeWidgetItem * previous); void clearList(); void requestToProvideResultCurrentListItemSymbolName(); void Up_ButtonClick(bool checked); void Down_ButtonClick(bool checked); signals: void openFile(QString file, QString linenum, int fileid); void listRowNumUpdated(int row); void sendResultCurrentListItemSymbolName(const QString symName); private: mainwindow *mw; sqlqueryresultlist m_sqlist; bool m_noclick; }; #endif codequery-0.21.0/gui/main_gui.cpp000066400000000000000000000013771310136352400166600ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifdef _WIN32 #include #endif #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow *wndw = new QMainWindow; mainwindow mw(wndw, &app); mw.show(); #ifdef _WIN32 ShowWindow( (HWND) mw.winId(), SW_HIDE); SetWindowLongPtr( (HWND) mw.winId(), GWL_EXSTYLE, GetWindowLongPtr( (HWND) mw.winId(), GWL_EXSTYLE) | WS_EX_APPWINDOW); ShowWindow( (HWND) mw.winId(), SW_SHOW); #endif return app.exec(); } codequery-0.21.0/gui/mainwindow.cpp000066400000000000000000000277641310136352400172540ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "mainwindow.h" #include "ui_mainWindow.h" #include "fileviewer.h" #include "listhandler.h" #include "searchhandler.h" #include "langtable.h" #include "aboutdialog.h" #include "swver.h" #include #include mainwindow::mainwindow(QMainWindow *parent, QApplication *app) :QMainWindow(parent) ,m_app(app) ,ui(new Ui::MainWindow) ,m_translator(this) ,m_fileviewer(NULL) ,m_listhandler(NULL) ,m_searchhandler(NULL) ,m_currentLanguage("English") { ui->setupUi(this); init(); } mainwindow::~mainwindow() { disconnect(); delete m_fileviewer; delete m_listhandler; delete m_searchhandler; delete ui; } void mainwindow::init(void) { m_fileviewer = new fileviewer(this); m_listhandler = new listhandler(this); m_searchhandler = new searchhandler(this); setup_fileviewer(); setup_listhandler(); setup_searchhandler(); connect(m_searchhandler, SIGNAL(searchresults(sqlqueryresultlist, int)), m_listhandler, SLOT(populateList(sqlqueryresultlist, int))); connect(m_searchhandler, SIGNAL(DBreset()), m_fileviewer, SLOT(clearList())); connect(m_searchhandler, SIGNAL(sendDBtimestamp(QDateTime)), m_fileviewer, SLOT(recvDBtimestamp(QDateTime))); connect(m_searchhandler, SIGNAL(DBreset()), m_listhandler, SLOT(clearList())); connect(m_listhandler, SIGNAL(openFile(QString, QString, int)), m_fileviewer, SLOT(fileToBeOpened(QString, QString, int))); connect(m_listhandler, SIGNAL(listRowNumUpdated(int)), m_searchhandler, SLOT(updateListItemRowNum(int))); connect(m_fileviewer, SIGNAL(searchCopiedText()), m_searchhandler, SLOT(newSearchText())); connect(m_fileviewer, SIGNAL(searchCopiedTextSymbolOnly()), m_searchhandler, SLOT(newSearchTextSymbolOnly())); connect(m_searchhandler, SIGNAL(updateStatus(const QString&, int)), ui->statusbar, SLOT(showMessage(const QString&, int))); connect(m_searchhandler, SIGNAL(getResultCurrentListItemSymbolName()), m_listhandler, SLOT(requestToProvideResultCurrentListItemSymbolName())); connect(m_listhandler, SIGNAL(sendResultCurrentListItemSymbolName(QString)), m_searchhandler, SLOT(resultCurrentListItemSymbolName(QString))); connect(m_searchhandler, SIGNAL(searchDeclarationResultsReady(QString)), m_fileviewer, SLOT(annotate(QString))); connect(m_fileviewer, SIGNAL(requestAnnotation(QString)), m_searchhandler, SLOT(searchDeclaration(QString))); connect(m_searchhandler, SIGNAL(searchListFuncResultsReady(sqlqueryresultlist*)), m_fileviewer, SLOT(recvFuncList(sqlqueryresultlist*))); connect(m_fileviewer, SIGNAL(requestFuncList_filename(QString)), m_searchhandler, SLOT(searchFuncList_filename(QString))); connect(m_fileviewer, SIGNAL(requestFuncList_fileid(int)), m_searchhandler, SLOT(searchFuncList_fileid(int))); connect(ui->actionExit, SIGNAL(triggered(bool)), this, SLOT(ExitTriggered(bool))); connect(ui->actionAbout, SIGNAL(triggered(bool)), this, SLOT(AboutTriggered(bool))); connect(ui->actionAbout_Qt, SIGNAL(triggered(bool)), this, SLOT(AboutQtTriggered(bool))); connect(ui->actionLanguage, SIGNAL(triggered(bool)), this, SLOT(LanguageTriggered(bool))); connect(ui->actionOpenDB, SIGNAL(triggered(bool)), m_searchhandler, SLOT(OpenDB_ButtonClick(bool))); connect(ui->actionOptionsExtEditor, SIGNAL(triggered(bool)), m_fileviewer, SLOT(OptionsExtEditor_Triggered(bool))); connect(ui->actionFileViewSettings, SIGNAL(triggered(bool)), m_fileviewer, SLOT(fileViewSettings_Triggered(bool))); m_app->setQuitOnLastWindowClosed(false); connect(m_app, SIGNAL(lastWindowClosed()), this, SLOT(prepareToExit())); readSettings(); } void mainwindow::setup_fileviewer(void) { m_fileviewer->m_pushButtonPrev = ui->pushButtonPrev; m_fileviewer->m_pushButtonNext = ui->pushButtonNext; m_fileviewer->m_pushButtonTextShrink = ui->pushButtonTextShrink; m_fileviewer->m_pushButtonTextEnlarge = ui->pushButtonTextEnlarge; m_fileviewer->m_pushButtonOpenInEditor = ui->pushButtonOpenInEditor; m_fileviewer->m_pushButtonPaste = ui->pushButtonPaste; m_fileviewer->m_pushButtonGoToLine = ui->pushButtonGoToLine; m_fileviewer->m_labelFilePath = ui->labelFilePath; m_fileviewer->m_textEditSource = ui->textEditSource; m_fileviewer->m_listWidgetFunc = ui->listWidgetFunc; m_fileviewer->m_comboBoxFuncListSort = ui->comboBoxFuncListSort; m_fileviewer->m_checkBoxSymbolOnly = ui->checkBoxSymbolOnly; m_fileviewer->init(); } void mainwindow::setup_listhandler(void) { m_listhandler->m_treeWidgetSearchResults = ui->treeWidgetSearchResults; m_listhandler->m_pushButtonUp = ui->pushButtonUp; m_listhandler->m_pushButtonDown = ui->pushButtonDown; m_listhandler->init(); } void mainwindow::setup_searchhandler(void) { m_searchhandler->m_pushButtonOpenDB = ui->pushButtonOpenDB; m_searchhandler->m_comboBoxDB = ui->comboBoxDB; m_searchhandler->m_checkBoxAutoComplete = ui->checkBoxAutoComplete; m_searchhandler->m_checkBoxExactMatch = ui->checkBoxExactMatch; m_searchhandler->m_pushButtonSearch = ui->pushButtonSearch; m_searchhandler->m_pushButtonClipSearch = ui->pushButtonClipSearch; m_searchhandler->m_comboBoxSearch = ui->comboBoxSearch; m_searchhandler->m_comboBoxQueryType = ui->comboBoxQueryType; m_searchhandler->m_pushButtonSearchPrev = ui->pushButtonSearchPrev; m_searchhandler->m_pushButtonSearchNext = ui->pushButtonSearchNext; m_searchhandler->m_pushButtonGraph = ui->pushButtonGraph; m_searchhandler->m_pushButtonFilesList = ui->pushButtonFilesList; m_searchhandler->m_checkBoxFilter = ui->checkBoxFilter; m_searchhandler->m_comboBoxFilter = ui->comboBoxFilter; m_searchhandler->init(); } void mainwindow::LanguageTriggered(bool checked) { QStringList items(langtable::getLangNameList()); bool ok; int curLangIdx = items.indexOf(m_currentLanguage); curLangIdx = curLangIdx != -1 ? curLangIdx : 0; QInputDialog qinp(this); qinp.setCancelButtonText(tr("Cancel")); qinp.setOkButtonText(tr("OK")); qinp.setInputMode(QInputDialog::TextInput); qinp.setWindowTitle(tr("Language")); qinp.setLabelText(tr("Select language:")); qinp.setComboBoxEditable(false); qinp.setComboBoxItems(items); qinp.setTextValue(m_currentLanguage); qinp.exec(); ok = (qinp.result() == QDialog::Accepted); QString item = qinp.textValue(); if (ok && (item.isEmpty() == false)) { m_currentLanguage = item; retranslateUi(); } } void mainwindow::retranslateUi(void) { QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); m_translator.load(langtable::getLangFilePath(m_currentLanguage)); m_app->installTranslator(&m_translator); ui->retranslateUi(this); QString langtxt = ui->actionLanguage->text(); if (m_currentLanguage.compare("English") != 0) langtxt += " (Language)"; ui->actionLanguage->setText(langtxt); m_searchhandler->retranslateUi(); m_listhandler->retranslateUi(); QApplication::restoreOverrideCursor(); } void mainwindow::ExitTriggered(bool checked) { prepareToExit(); } void mainwindow::AboutQtTriggered(bool checked) { QMessageBox::aboutQt(this); } void mainwindow::AboutTriggered(bool checked) { cqDialogAbout cqdg(this); cqdg.setModal(true); cqdg.exec(); } void mainwindow::prepareToExit() { writeSettings(); m_listhandler->prepareToExit(); m_app->quit(); } void mainwindow::writeSettings() { QSettings settings("ruben2020_foss", "CodeQuery"); settings.beginGroup("MainWindow"); settings.setValue("Size", size()); settings.setValue("Pos", pos()); settings.setValue("Maximized", isMaximized()); settings.setValue("AutoComplete", ui->checkBoxAutoComplete->isChecked()); settings.setValue("ExactMatch", ui->checkBoxExactMatch->isChecked()); settings.setValue("SymbolOnly", ui->checkBoxSymbolOnly->isChecked()); settings.setValue("FilterCheckBox", ui->checkBoxFilter->isChecked()); settings.setValue("QueryType", ui->comboBoxQueryType->currentIndex()); settings.setValue("LastOpenDB", ui->comboBoxDB->currentIndex()); settings.setValue("Language", m_currentLanguage); settings.setValue("ExtEditorPath", m_fileviewer->m_externalEditorPath); //settings.setValue("FileViewerFontSize", m_fileviewer->m_textEditSourceFont.pixelSize()); settings.setValue("FileViewerFontSize", m_fileviewer->m_fontsize); settings.setValue("FileViewerFontType", m_fileviewer->m_textEditSourceFont.family()); settings.setValue("FileViewerTabWidth", (int) m_fileviewer->m_textEditSource->tabWidth()); settings.setValue("FileViewerTheme", m_fileviewer->m_theme); settings.setValue("FuncListSortType", ui->comboBoxFuncListSort->currentIndex()); settings.endGroup(); settings.beginWriteArray("SearchHistory"); for (int i=0; i < ui->comboBoxSearch->count(); i++) { settings.setArrayIndex(i); settings.setValue("hist", ui->comboBoxSearch->itemText(i)); } settings.endArray(); settings.beginWriteArray("OpenDBHistory"); for (int i=0; i < ui->comboBoxDB->count(); i++) { settings.setArrayIndex(i); settings.setValue("db", ui->comboBoxDB->itemText(i)); } settings.endArray(); settings.beginWriteArray("FilterHistory"); for (int i=0; i < ui->comboBoxFilter->count(); i++) { settings.setArrayIndex(i); settings.setValue("filter", ui->comboBoxFilter->itemText(i)); } settings.endArray(); } void mainwindow::readSettings() { QSettings settings("ruben2020_foss", "CodeQuery"); int sizee = settings.beginReadArray("OpenDBHistory"); QStringList dbhist; for (int i=0; i < sizee; i++) { settings.setArrayIndex(i); dbhist << settings.value("db").toString(); } settings.endArray(); if (dbhist.isEmpty() == false) ui->comboBoxDB->addItems(dbhist); int sizef = settings.beginReadArray("FilterHistory"); QStringList filterhist; for (int i=0; i < sizef; i++) { settings.setArrayIndex(i); filterhist << settings.value("filter").toString(); } settings.endArray(); if (filterhist.isEmpty()) filterhist << "*.h" << "*.c" << "src"; ui->comboBoxFilter->addItems(filterhist); ui->comboBoxFilter->setCurrentIndex(0); settings.beginGroup("MainWindow"); resize(settings.value("Size", size()).toSize()); move(settings.value("Pos", pos()).toPoint()); if (settings.value("Maximized", false).toBool()) showMaximized(); else showNormal(); ui->checkBoxAutoComplete->setChecked(settings.value("AutoComplete", true).toBool()); ui->checkBoxExactMatch->setChecked(settings.value("ExactMatch", false).toBool()); ui->checkBoxSymbolOnly->setChecked(settings.value("SymbolOnly", false).toBool()); ui->checkBoxFilter->setChecked(settings.value("FilterCheckBox", false).toBool()); ui->comboBoxQueryType->setCurrentIndex(settings.value("QueryType", 0).toInt()); ui->comboBoxDB->setCurrentIndex(settings.value("LastOpenDB", ui->comboBoxDB->currentIndex()).toInt()); m_currentLanguage = settings.value("Language", QString("English")).toString(); retranslateUi(); m_fileviewer->m_externalEditorPath = settings.value("ExtEditorPath", m_fileviewer->m_externalEditorPath).toString(); //m_fileviewer->m_textEditSourceFont.setPixelSize(settings.value("FileViewerFontSize", 12).toInt()); m_fileviewer->m_fontsize = settings.value("FileViewerFontSize", 0).toInt(); m_fileviewer->m_textEditSource->setZoom(m_fileviewer->m_fontsize); m_fileviewer->m_textEditSourceFont.setFamily(settings.value("FileViewerFontType", "Courier New").toString()); m_fileviewer->m_textEditSource->setFont(m_fileviewer->m_textEditSourceFont); m_fileviewer->m_textEditSource->setTabWidth(settings.value("FileViewerTabWidth", 4).toInt()); m_fileviewer->m_theme = (settings.value("FileViewerTheme", "Eclipse Default").toString()); ui->comboBoxFuncListSort->setCurrentIndex(settings.value("FuncListSortType", ui->comboBoxFuncListSort->currentIndex()).toInt()); settings.endGroup(); int sizeh = settings.beginReadArray("SearchHistory"); QStringList searchhist; for (int i=0; i < sizeh; i++) { settings.setArrayIndex(i); searchhist << settings.value("hist").toString(); } settings.endArray(); if (searchhist.isEmpty() == false) { ui->comboBoxSearch->addItems(searchhist); ui->comboBoxSearch->setCurrentIndex(-1); } } codequery-0.21.0/gui/mainwindow.h000066400000000000000000000023221310136352400167000ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef MAINWINDOW_H_CQ #define MAINWINDOW_H_CQ #ifdef USE_QT5 #include #else #include #endif namespace Ui { class MainWindow; } class fileviewer; class listhandler; class searchhandler; class mainwindow : public QMainWindow { Q_OBJECT public: Ui::MainWindow *ui; mainwindow(QMainWindow *parent = NULL, QApplication *app = NULL); virtual ~mainwindow(); void setup_fileviewer(void); void setup_listhandler(void); void setup_searchhandler(void); void retranslateUi(void); void writeSettings(); void readSettings(); public slots: void AboutQtTriggered(bool checked); void AboutTriggered(bool checked); void ExitTriggered(bool checked); void LanguageTriggered(bool checked); void prepareToExit(); private: QApplication *m_app; fileviewer* m_fileviewer; listhandler* m_listhandler; searchhandler* m_searchhandler; QString m_currentLanguage; QTranslator m_translator; void init(void); }; #endif codequery-0.21.0/gui/searchhandler.cpp000066400000000000000000000554721310136352400177000ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include "std2qt.h" #include "graphdialog.h" #include "searchhandler.h" #ifdef USE_QT5 #include #define QT45_TOASCII(x) toLatin1(x) #else #define QT45_TOASCII(x) toAscii(x) #endif sqlqueryadv* searchhandler::sq = NULL; bool searchhandler::m_grepExactMatch = false; QRegExp* searchhandler::m_grepRegExp = NULL; searchitem::searchitem() :exactmatch(false) ,qtype(sqlquery::sqlquerySYMBOL) ,rownum(1) { } searchitem::searchitem(const searchitem& otheritem) { searchterm = otheritem.searchterm; filterterm = otheritem.filterterm; exactmatch = otheritem.exactmatch; qtype = otheritem.qtype; rownum = otheritem.rownum; } searchitem& searchitem::operator=(const searchitem& otheritem) { if (&otheritem != this) { searchterm = otheritem.searchterm; filterterm = otheritem.filterterm; exactmatch = otheritem.exactmatch; qtype = otheritem.qtype; rownum = otheritem.rownum; } return *this; } // return value: 0=same, 1=completely different, 2=only linenum changed int searchitem::compare(const searchitem& otheritem) { if ((searchterm.compare(otheritem.searchterm, Qt::CaseSensitive) != 0) || (exactmatch != otheritem.exactmatch) || (qtype != otheritem.qtype) || (filterterm.compare(otheritem.filterterm, Qt::CaseSensitive) != 0)) return 1; if (rownum != otheritem.rownum) return 2; return 0; } searchhandler::searchhandler(mainwindow* pmw) :mw(pmw) ,m_pushButtonOpenDB(NULL) ,m_comboBoxDB(NULL) ,m_checkBoxAutoComplete(NULL) ,m_checkBoxExactMatch(NULL) ,m_pushButtonSearch(NULL) ,m_comboBoxSearch(NULL) ,m_comboBoxQueryType(NULL) ,m_checkBoxFilter(NULL) ,m_comboBoxFilter(NULL) ,m_srchStrLstModel(QStringList()) ,m_typeOfGraph(1) ,m_autocompBusy(false) ,m_declarBusy(false) ,m_funcListBusy(false) ,m_pushButtonClipSearch(NULL) ,m_pushButtonSearchPrev(NULL) ,m_pushButtonSearchNext(NULL) ,m_pushButtonGraph(NULL) ,m_pushButtonFilesList(NULL) { sq = new sqlqueryadv; m_completer = new QCompleter(&m_srchStrLstModel, (QWidget*)mw); m_grepRegExp = new QRegExp(); m_iter = m_searchMemoryList.begin(); } searchhandler::~searchhandler() { disconnect(); delete sq; delete m_completer; delete m_grepRegExp; } void searchhandler::OpenDB_ButtonClick(bool checked) { if (!checked) perform_open_db(); } void searchhandler::Search_ButtonClick(bool checked) { if (!checked) perform_search(m_comboBoxSearch->lineEdit()->text().trimmed().QT45_TOASCII().data(), m_checkBoxExactMatch->isChecked()); } void searchhandler::ClipSearch_ButtonClick(bool checked) { if (!checked) newSearchText(); } void searchhandler::Graph_ButtonClick(bool checked) { if (!checked) { emit getResultCurrentListItemSymbolName(); } } void searchhandler::FilesList_ButtonClick(bool checked) { if (!checked) { perform_search("*", false, sqlquery::sqlresultFILESLIST, "*", 0, false); } } void searchhandler::PrevSearch_ButtonClick(bool checked) { if (!checked) goBackInSearchMemory(); } void searchhandler::NextSearch_ButtonClick(bool checked) { if (!checked) goForwardInSearchMemory(); } void searchhandler::Search_EnterKeyPressed() { perform_search(m_comboBoxSearch->lineEdit()->text().trimmed().QT45_TOASCII().data(), m_checkBoxExactMatch->isChecked()); } void searchhandler::searchTextEdited(const QString& searchtxt) { if (m_checkBoxAutoComplete->isChecked()) { if ((m_autocompBusy)||(m_declarBusy)||(m_funcListBusy)) { m_autocompSrchTerm = searchtxt; } else { m_autocompBusy = true; m_autocompSrchTerm.clear(); m_autocompFutureWatcher.setFuture( QtConcurrent::run(search_autocomplete_qt, searchtxt)); } } m_autocompBusy = (!m_autocompFutureWatcher.isFinished()); } void searchhandler::autoCompleteFinished() { if (!m_autocompBusy) return; m_srchStrLstModel.setStringList(m_autocompFutureWatcher.result()); if (m_autocompSrchTerm.isEmpty()) { m_autocompBusy = false; } else { m_autocompBusy = true; m_autocompFutureWatcher.setFuture( QtConcurrent::run(search_autocomplete_qt, m_autocompSrchTerm)); m_autocompSrchTerm.clear(); } } void searchhandler::declarSearchFinished() { QString str = m_declarFutureWatcher.result(); if (str.length() > 0) emit searchDeclarationResultsReady(str); m_declarBusy = false; } void searchhandler::searchDeclaration(QString searchstr) { if ((!m_declarBusy)&&(!m_autocompBusy)&&(!m_funcListBusy)) { m_declarBusy = true; m_declarFutureWatcher.setFuture( QtConcurrent::run(search_declaration_qt, searchstr)); } } void searchhandler::funcListSearchFinished() { sqlqueryresultlist res = m_listFuncFutureWatcher.result(); if ((res.result_type == sqlqueryresultlist::sqlresultFUNC_IN_ONE_FILE) && (res.resultlist.empty() == false)) { emit searchListFuncResultsReady(&res); } m_funcListBusy = false; } void searchhandler::searchFuncList_filename(QString filename) { if ((filename.isEmpty() == false)&&(!m_declarBusy)&&(!m_autocompBusy)&&(!m_funcListBusy)) { m_funcListBusy = true; m_listFuncFutureWatcher.setFuture( QtConcurrent::run(search_funclist_qt_filename, filename)); } } void searchhandler::searchFuncList_fileid(int fileid) { if ((fileid >= 0)&&(!m_declarBusy)&&(!m_autocompBusy)&&(!m_funcListBusy)) { m_funcListBusy = true; m_listFuncFutureWatcher.setFuture( QtConcurrent::run(search_funclist_qt_fileid, fileid)); } } sqlqueryresultlist searchhandler::search_funclist_qt_filename(QString filename) { return sq->search_funclist_filename(extract_filename(filename.QT45_TOASCII().data())); } sqlqueryresultlist searchhandler::search_funclist_qt_fileid(int fileid) { return sq->search_funclist_fileid(fileid); } QString searchhandler::search_declaration_qt(QString searchtxt) { QString str; sqlqueryresultlist reslst = sq->search_declaration(searchtxt.QT45_TOASCII().data()); if (reslst.resultlist.size() > 0) str.append(reslst.resultlist[0].filename.c_str()) .append(":") .append(reslst.resultlist[0].linenum.c_str()) .append(" ==> ") .append(reslst.resultlist[0].linetext.c_str()); return str; } QStringList searchhandler::search_autocomplete_qt(QString searchtxt) { return strLst2qt(sq->search_autocomplete(searchtxt.QT45_TOASCII().data())); } void searchhandler::autoCompleteStateChanged(int state) { if (state == Qt::Checked) { m_srchStrLstModel.setStringList(QStringList(m_comboBoxSearch->lineEdit()->text().trimmed())); } else if (state == Qt::Unchecked) { m_srchStrLstModel.setStringList(QStringList()); } } void searchhandler::newSearchText() { QString txt = (QApplication::clipboard())->text(); //m_comboBoxSearch->lineEdit()->setText(txt); perform_search(txt,m_checkBoxExactMatch->isChecked()); } void searchhandler::newSearchTextSymbolOnly() { QString txt = (QApplication::clipboard())->text(); //m_comboBoxSearch->lineEdit()->setText(txt); perform_search(txt, m_checkBoxExactMatch->isChecked(), sqlquery::sqlquerySYMBOL); } void searchhandler::init(void) { m_completer->setModelSorting(QCompleter::CaseSensitivelySortedModel); m_completer->setCaseSensitivity(Qt::CaseInsensitive); m_comboBoxSearch->lineEdit()->setCompleter(m_completer); m_comboBoxSearch->setInsertPolicy(QComboBox::NoInsert); retranslateUi(); m_pushButtonSearchPrev->setEnabled(false); m_pushButtonSearchNext->setEnabled(false); connect(m_pushButtonOpenDB, SIGNAL(clicked(bool)), this, SLOT(OpenDB_ButtonClick(bool))); connect(m_pushButtonSearch, SIGNAL(clicked(bool)), this, SLOT(Search_ButtonClick(bool))); connect(m_pushButtonClipSearch, SIGNAL(clicked(bool)), this, SLOT(ClipSearch_ButtonClick(bool))); connect(m_pushButtonGraph, SIGNAL(clicked(bool)), this, SLOT(Graph_ButtonClick(bool))); connect(m_pushButtonFilesList, SIGNAL(clicked(bool)), this, SLOT(FilesList_ButtonClick(bool))); connect(m_comboBoxSearch->lineEdit(), SIGNAL(returnPressed()), this, SLOT(Search_EnterKeyPressed())); connect(m_comboBoxSearch->lineEdit(), SIGNAL(textEdited(QString)), this, SLOT(searchTextEdited(QString))); connect(m_comboBoxDB, SIGNAL(currentIndexChanged(int)), this, SLOT(OpenDB_indexChanged(int))); connect(m_comboBoxQueryType, SIGNAL(currentIndexChanged(int)), this, SLOT(QueryType_indexChanged(int))); connect(m_checkBoxAutoComplete, SIGNAL(stateChanged(int)), this, SLOT(autoCompleteStateChanged(int))); connect(m_pushButtonSearchPrev, SIGNAL(clicked(bool)), this, SLOT(PrevSearch_ButtonClick(bool))); connect(m_pushButtonSearchNext, SIGNAL(clicked(bool)), this, SLOT(NextSearch_ButtonClick(bool))); connect(&m_autocompFutureWatcher, SIGNAL(finished()), this, SLOT(autoCompleteFinished())); connect(&m_declarFutureWatcher, SIGNAL(finished()), this, SLOT(declarSearchFinished())); connect(&m_listFuncFutureWatcher, SIGNAL(finished()), this, SLOT(funcListSearchFinished())); } void searchhandler::retranslateUi(void) { int curidx = 0; if (m_comboBoxQueryType->count() > 0) curidx = m_comboBoxQueryType->currentIndex(); m_comboBoxQueryType->clear(); m_comboBoxQueryType->addItem(QIcon(), tr("Symbol"), QVariant(sqlquery::sqlquerySYMBOL)); m_comboBoxQueryType->addItem(QIcon(), tr("Function or macro definition (Graph available)"), QVariant(sqlquery::sqlresultFUNC_MACRO)); m_comboBoxQueryType->addItem(QIcon(), tr("Calls of this function or macro"), QVariant(sqlquery::sqlresultCALLSOFFUNC)); m_comboBoxQueryType->addItem(QIcon(), tr("Functions calling this function"), QVariant(sqlquery::sqlresultCALLINGFUNC)); m_comboBoxQueryType->addItem(QIcon(), tr("Functions called by this function"), QVariant(sqlquery::sqlresultCALLEDFUNC)); m_comboBoxQueryType->addItem(QIcon(), tr("Class or struct (Graph available)"), QVariant(sqlquery::sqlresultCLASS_STRUCT)); m_comboBoxQueryType->addItem(QIcon(), tr("Class which owns this member or method"), QVariant(sqlquery::sqlresultOWNERCLASS)); m_comboBoxQueryType->addItem(QIcon(), tr("Members or methods of this class"), QVariant(sqlquery::sqlresultMEMBERS)); m_comboBoxQueryType->addItem(QIcon(), tr("Parent of this class"), QVariant(sqlquery::sqlresultPARENTCLASS)); m_comboBoxQueryType->addItem(QIcon(), tr("Children of this class"), QVariant(sqlquery::sqlresultCHILDCLASS)); m_comboBoxQueryType->addItem(QIcon(), tr("Files including this file"), QVariant(sqlquery::sqlresultINCLUDE)); m_comboBoxQueryType->addItem(QIcon(), tr("Full path for file"), QVariant(sqlquery::sqlresultFILESLIST)); m_comboBoxQueryType->addItem(QIcon(), tr("Functions or macros inside this file"), QVariant(sqlquery::sqlresultFUNCSINFILE)); m_comboBoxQueryType->addItem(QIcon(), "Grep", QVariant(sqlquery::sqlresultGREP)); m_comboBoxQueryType->setCurrentIndex(curidx); } void searchhandler::perform_open_db(void) { QString fileext = tr("CodeQuery DB Files"); fileext += " (*.db)"; QString fileName = QFileDialog::getOpenFileName( (QWidget*)mw, tr("Open CQ database file"), "", fileext); if (fileName.isEmpty() == false) { m_comboBoxDB->insertItem(0, fileName); m_comboBoxDB->setCurrentIndex(0); for (int i=1; i < (m_comboBoxDB->count()); i++) { if (fileName.compare(m_comboBoxDB->itemText(i), Qt::CaseSensitive) == 0) { m_comboBoxDB->removeItem(i); break; } } if (m_comboBoxDB->count() > 7) m_comboBoxDB->removeItem(m_comboBoxDB->count() - 1); } } void searchhandler::OpenDB_indexChanged(const int& idx) { if (idx < 0) return; sqlquery::en_filereadstatus sqstatus; if (m_autocompBusy) { m_autocompBusy = false; m_autocompFutureWatcher.waitForFinished(); } if (m_declarBusy) { m_declarBusy = false; m_declarFutureWatcher.waitForFinished(); } if (m_funcListBusy) { m_funcListBusy = false; m_listFuncFutureWatcher.waitForFinished(); } sq->close_dbfile(); QFileInfo dbfile(m_comboBoxDB->itemText(idx)); sqstatus = sq->open_dbfile(qt2str(m_comboBoxDB->itemText(idx))); if (sqstatus != sqlquery::sqlfileOK) { QMessageBox msgBox((QWidget*)mw); msgBox.setText(sqlerrormsg(sqstatus)); msgBox.exec(); m_comboBoxDB->removeItem(idx); } else { QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); m_comboBoxSearch->clear(); m_comboBoxSearch->lineEdit()->clear(); m_searchMemoryList.clear(); m_iter = m_searchMemoryList.begin(); m_pushButtonSearchPrev->setEnabled(false); m_pushButtonSearchNext->setEnabled(false); emit sendDBtimestamp(dbfile.lastModified()); emit DBreset(); QApplication::restoreOverrideCursor(); } } void searchhandler::QueryType_indexChanged(const int& idx) { int qrytype; m_pushButtonGraph->setEnabled(false); qrytype = m_comboBoxQueryType->itemData(idx).toInt(); switch(qrytype) { case sqlquery::sqlresultFUNC_MACRO: // function or macro m_graphdesc = tr("Function Call Graph"); m_typeOfGraph = 1; break; case sqlquery::sqlresultCLASS_STRUCT: // class or struct m_graphdesc = tr("Class Inheritance Graph"); m_typeOfGraph = 2; break; } if (qrytype == sqlquery::sqlresultGREP) { #ifndef QT_NO_TOOLTIP m_comboBoxSearch->setToolTip("Grep: QRegExp regular expressions"); #endif // QT_NO_TOOLTIP #ifndef QT_NO_STATUSTIP m_comboBoxSearch->setStatusTip("Grep: QRegExp regular expressions"); #endif // QT_NO_STATUSTIP } else { #ifndef QT_NO_TOOLTIP m_comboBoxSearch->setToolTip(tr("If Exact Match is switched off, wildcard searches (* and ?) are supported")); #endif // QT_NO_TOOLTIP #ifndef QT_NO_STATUSTIP m_comboBoxSearch->setStatusTip(tr("If Exact Match is switched off, wildcard searches (* and ?) are supported")); #endif // QT_NO_STATUSTIP } } void searchhandler::perform_search(QString searchtxt, bool exactmatch, sqlquery::en_queryType qrytyp, QString filtertxt, int selectitem, bool updSearchMemory) { if (sq->isDBOpen() == false) return; if (searchtxt.isEmpty()) return; sqlqueryresultlist sqlresultlist; QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); if (m_autocompBusy) { m_autocompBusy = false; m_autocompFutureWatcher.waitForFinished(); } if (m_declarBusy) { m_declarBusy = false; m_declarFutureWatcher.waitForFinished(); } if (m_funcListBusy) { m_funcListBusy = false; m_listFuncFutureWatcher.waitForFinished(); } sqlquery::en_queryType querytype = qrytyp; if (querytype == sqlquery::sqlresultDEFAULT) querytype = (sqlquery::en_queryType)m_comboBoxQueryType->itemData(m_comboBoxQueryType->currentIndex()).toInt(); if ((filtertxt.isEmpty()) && (m_checkBoxFilter->isChecked())) { filtertxt = m_comboBoxFilter->lineEdit()->text().trimmed(); if (updSearchMemory) updateFilterHistory(filtertxt); } if (querytype == sqlquery::sqlresultGREP) { if (filtertxt.isEmpty()) filtertxt = "*"; sqlresultlist = sq->search(filtertxt.QT45_TOASCII().data(), sqlquery::sqlresultFILEPATH, false); } else { sqlresultlist = sq->search(searchtxt.QT45_TOASCII().data(), querytype, exactmatch, filtertxt.QT45_TOASCII().data()); } QApplication::restoreOverrideCursor(); if (sqlresultlist.result_type == sqlqueryresultlist::sqlresultERROR) { QMessageBox msgBox((QWidget*)mw); msgBox.setText(str2qt(sqlresultlist.sqlerrmsg)); msgBox.exec(); } else { m_pushButtonGraph->setEnabled((querytype == sqlquery::sqlresultFUNC_MACRO)|| (querytype == sqlquery::sqlresultCLASS_STRUCT)); updateSearchHistory(searchtxt); if (updSearchMemory) addToSearchMemory(searchtxt, filtertxt); if (querytype == sqlquery::sqlresultGREP) { sqlresultlist = perform_grep(searchtxt, sqlresultlist, exactmatch); } emit searchresults(sqlresultlist, selectitem); QString str; str = QString("%1").arg(sqlresultlist.resultlist.size()); str += " "; str += tr("results found"); emit updateStatus(str, 5000); } } sqlqueryresultlist searchhandler::perform_grep(QString searchtxt, sqlqueryresultlist searchlist, bool exactmatch) { QVector strvec; sqlqueryresultlist resultlist; QFutureWatcher futureWatcher; QProgressDialog dialog; long n = searchlist.resultlist.size(); if (n == 0) return resultlist; strvec.resize(n); for (long i=0; i < n; i++) { strvec.replace(i, str2qt(searchlist.resultlist[i].filepath)); } dialog.setAutoReset(false); dialog.setLabelText(QString("Grep ").append(QString(tr("in progress"))).append(QString(" ..."))); dialog.setCancelButtonText(tr("Cancel")); QObject::connect(&futureWatcher, SIGNAL(finished()), &dialog, SLOT(reset())); QObject::connect(&dialog, SIGNAL(canceled()), &futureWatcher, SLOT(cancel())); QObject::connect(&futureWatcher, SIGNAL(progressRangeChanged(int,int)), &dialog, SLOT(setRange(int,int))); QObject::connect(&futureWatcher, SIGNAL(progressValueChanged(int)), &dialog, SLOT(setValue(int))); m_grepExactMatch = exactmatch; (*m_grepRegExp) = QRegExp(searchtxt.QT45_TOASCII().data(), Qt::CaseInsensitive); m_grepRegExp->setPatternSyntax(QRegExp::RegExp2); futureWatcher.setFuture(QtConcurrent::mappedReduced(strvec, doGrep, collateGrep, QtConcurrent::SequentialReduce)); dialog.exec(); futureWatcher.waitForFinished(); if (futureWatcher.isCanceled() == false) resultlist = futureWatcher.result(); return resultlist; } sqlqueryresultlist searchhandler::doGrep(const QString &fp) { sqlqueryresultlist reslist; sqlqueryresult res; QString str, fp2; tStr fpstr, fn; long pos, linenumber=0; char numtext[10]; QRegExp rx1(*m_grepRegExp); reslist.result_type = sqlqueryresultlist::sqlresultFILE_LINE; fp2 = fp; fp2.replace(QString("$HOME"), QDir::homePath()); #ifdef _WIN32 fp2.replace("/", "\\"); #endif fpstr = qt2str(fp2); fn = extract_filename(fpstr.c_str()); QFile file(fp2); QTextStream in(&file); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { return reslist; } while (!in.atEnd()) { linenumber++; str = in.readLine(); pos = rx1.indexIn(str); if (pos != -1) { res.filepath = fpstr; res.filename = fn; sprintf(numtext, "%ld", linenumber); res.linenum = numtext; res.linetext = qt2str(str.trimmed().left(800)); reslist.resultlist.push_back(res); } } return reslist; } void searchhandler::collateGrep(sqlqueryresultlist &result, const sqlqueryresultlist &intermediate) { long i, n; n = intermediate.resultlist.size(); result.result_type = sqlqueryresultlist::sqlresultFILE_LINE; result.resultlist.reserve(n); for(i=0; iinsertItem(0, filtertxt); m_comboBoxFilter->setCurrentIndex(0); for(int i=1; i < m_comboBoxFilter->count(); i++) { if (m_comboBoxFilter->itemText(i).compare(filtertxt) == 0) { m_comboBoxFilter->removeItem(i); break; } } if (m_comboBoxFilter->count() > 7) // limit to 7 { m_comboBoxFilter->removeItem(m_comboBoxFilter->count() - 1); } } void searchhandler::resultCurrentListItemSymbolName(const QString symName) { if (symName.isEmpty()) { QMessageBox msgBox((QWidget*)mw); msgBox.setIcon(QMessageBox::Information); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText(tr("You have to first select an item from the list before pushing the Graph button.")); msgBox.exec(); return; } QStringList grpxml, grpdot; bool res; QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); if (m_autocompBusy) { m_autocompBusy = false; m_autocompFutureWatcher.waitForFinished(); } if (m_declarBusy) { m_declarBusy = false; m_declarFutureWatcher.waitForFinished(); } if (m_funcListBusy) { m_funcListBusy = false; m_listFuncFutureWatcher.waitForFinished(); } if (m_typeOfGraph == 1) { res = sq->search_funcgraph(symName, true, grpxml, grpdot); res = sq->search_funcgraph(symName, true, grpxml, grpdot, 2); } else if (m_typeOfGraph == 2) { res = sq->search_classinheritgraph(symName, true, grpxml, grpdot); } else {QApplication::restoreOverrideCursor(); return;} QApplication::restoreOverrideCursor(); QMessageBox msgBox((QWidget*)mw); msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); if (!res) { msgBox.setText("SQL Query error"); msgBox.exec(); return; } QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); cqDialogGraph cqdg((QWidget*)mw); cqdg.setModal(true); cqdg.setupGraphFromXML(grpxml, grpdot, m_graphdesc); QApplication::restoreOverrideCursor(); cqdg.exec(); } void searchhandler::addToSearchMemory(const QString& searchtxt, const QString& filtertxt) { searchitem item; item.searchterm = searchtxt; item.filterterm = filtertxt; item.exactmatch = m_checkBoxExactMatch->isChecked(); item.qtype = (sqlquery::en_queryType) m_comboBoxQueryType->itemData(m_comboBoxQueryType->currentIndex()).toInt(); m_searchMemoryList.push_back(item); if (m_searchMemoryList.size() > 20) m_searchMemoryList.erase(m_searchMemoryList.begin()); m_iter = m_searchMemoryList.end() - 1; m_pushButtonSearchPrev->setEnabled(m_searchMemoryList.isEmpty() == false); m_pushButtonSearchNext->setEnabled(false); } void searchhandler::goForwardInSearchMemory(void) { if (m_searchMemoryList.size() <= 1) return; if (m_iter == m_searchMemoryList.end() - 1) return; m_iter++; m_pushButtonSearchPrev->setEnabled(m_searchMemoryList.isEmpty() == false); m_pushButtonSearchNext->setEnabled(m_iter != m_searchMemoryList.end() - 1); restoreSearchMemoryItem(); } void searchhandler::goBackInSearchMemory(void) { if (m_searchMemoryList.size() <= 1) return; if (m_iter == m_searchMemoryList.begin()) return; m_iter--; m_pushButtonSearchPrev->setEnabled(m_iter != m_searchMemoryList.begin()); m_pushButtonSearchNext->setEnabled(m_searchMemoryList.isEmpty() == false); restoreSearchMemoryItem(); } void searchhandler::restoreSearchMemoryItem(void) { perform_search(m_iter->searchterm, m_iter->exactmatch, m_iter->qtype, m_iter->filterterm, m_iter->rownum, false); } void searchhandler::updateListItemRowNum(const int& row) { if (m_searchMemoryList.isEmpty() == false) m_iter->rownum = row; } void searchhandler::updateSearchHistory(const QString& searchtxt) { m_comboBoxSearch->insertItem(0, searchtxt); // insert to top int n = (m_comboBoxSearch->count()); for(int i=1; i < n; i++) { if (m_comboBoxSearch->itemText(i).compare(searchtxt, Qt::CaseSensitive) == 0) { m_comboBoxSearch->removeItem(i); // remove duplicates break; } } // limit to 15 only if (m_comboBoxSearch->count() > 15) m_comboBoxSearch->removeItem(m_comboBoxSearch->count() - 1); m_comboBoxSearch->setCurrentIndex(0); } QString searchhandler::sqlerrormsg(sqlquery::en_filereadstatus status) { QString str; switch(status) { case sqlquery::sqlfileOPENERROR: str = tr("File open error"); break; case sqlquery::sqlfileNOTCORRECTDB: str = tr("Wrong file format"); break; case sqlquery::sqlfileINCORRECTVER: str = tr("Incorrect CQ database version"); break; case sqlquery::sqlfileOK: str = tr("OK"); break; case sqlquery::sqlfileUNKNOWNERROR: default: str = tr("Unknown Error"); break; } return str; } codequery-0.21.0/gui/searchhandler.h000066400000000000000000000104121310136352400173260ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef SEARCHHANDLER_H_CQ #define SEARCHHANDLER_H_CQ #ifdef USE_QT5 #include #else #include #endif #include "sqlqueryadv.h" class mainwindow; class searchitem { public: searchitem(); ~searchitem(){} searchitem(const searchitem& otheritem); searchitem& operator=(const searchitem& otheritem); // return value: 0=same, 1=completely different, 2=only linenum changed int compare(const searchitem& otheritem); QString searchterm; QString filterterm; bool exactmatch; sqlquery::en_queryType qtype; int rownum; }; class searchhandler : public QObject { Q_OBJECT public: QPushButton *m_pushButtonOpenDB; QComboBox *m_comboBoxDB; QCheckBox *m_checkBoxAutoComplete; QCheckBox *m_checkBoxExactMatch; QPushButton *m_pushButtonSearch; QPushButton *m_pushButtonClipSearch; QPushButton *m_pushButtonSearchPrev; QPushButton *m_pushButtonSearchNext; QComboBox *m_comboBoxSearch; QComboBox *m_comboBoxQueryType; QPushButton *m_pushButtonGraph; QPushButton *m_pushButtonFilesList; QCheckBox *m_checkBoxFilter; QComboBox *m_comboBoxFilter; QCompleter *m_completer; QFutureWatcher m_autocompFutureWatcher; QFutureWatcher m_declarFutureWatcher; QFutureWatcher m_listFuncFutureWatcher; static bool m_grepExactMatch; static QRegExp* m_grepRegExp; searchhandler(mainwindow* pmw); ~searchhandler(); void init(void); void perform_open_db(void); void perform_search(QString searchtxt, bool exactmatch, sqlquery::en_queryType qrytyp = sqlquery::sqlresultDEFAULT, QString filtertxt = "", int selectitem = 0, bool updSearchMemory = true); void updateSearchHistory(const QString& searchtxt); void addToSearchMemory(const QString& searchtxt, const QString& filtertxt); void goForwardInSearchMemory(void); void goBackInSearchMemory(void); void restoreSearchMemoryItem(void); void retranslateUi(void); static QStringList search_autocomplete_qt(QString searchtxt); static QString search_declaration_qt(QString searchtxt); static sqlqueryresultlist search_funclist_qt_filename(QString filename); static sqlqueryresultlist search_funclist_qt_fileid(int fileid); static sqlqueryresultlist doGrep(const QString &fp); static void collateGrep(sqlqueryresultlist &result, const sqlqueryresultlist &intermediate); public slots: void OpenDB_ButtonClick(bool checked); void Search_ButtonClick(bool checked); void PrevSearch_ButtonClick(bool checked); void NextSearch_ButtonClick(bool checked); void ClipSearch_ButtonClick(bool checked); void Graph_ButtonClick(bool checked); void FilesList_ButtonClick(bool checked); void Search_EnterKeyPressed(); void searchTextEdited(const QString& searchtxt); void newSearchText(); void newSearchTextSymbolOnly(); void autoCompleteStateChanged(int state); void OpenDB_indexChanged(const int& idx); void QueryType_indexChanged(const int& idx); void updateListItemRowNum(const int& row); void resultCurrentListItemSymbolName(const QString symName); void searchDeclaration(QString searchstr); void searchFuncList_filename(QString filename); void searchFuncList_fileid(int fileid); void autoCompleteFinished(); void declarSearchFinished(); void funcListSearchFinished(); signals: void searchresults(sqlqueryresultlist resultlist, int selectitem); void updateStatus(const QString & message, int timeout = 0); void DBreset(); void sendDBtimestamp(QDateTime dt); void getResultCurrentListItemSymbolName(); void searchDeclarationResultsReady(QString resdeclar); void searchListFuncResultsReady(sqlqueryresultlist* res); private: mainwindow *mw; static sqlqueryadv* sq; QString m_graphdesc; int m_typeOfGraph; // 1 = Function Call, 2 = Class Inheritance QStringListModel m_srchStrLstModel; QString sqlerrormsg(sqlquery::en_filereadstatus status); QVector m_searchMemoryList; QVector::iterator m_iter; bool m_autocompBusy; bool m_declarBusy; bool m_funcListBusy; QString m_autocompSrchTerm; void updateFilterHistory(QString filtertxt); sqlqueryresultlist perform_grep(QString searchtxt, sqlqueryresultlist searchlist, bool exactmatch); }; #endif codequery-0.21.0/gui/sqlqueryadv.cpp000066400000000000000000000212351310136352400174430ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // Advanced version of sqlquery to be MPL'ed #include "std2qt.h" #include "sqlqueryadv.h" #include #include #include sqlqueryadv::sqlqueryadv() { } sqlqueryadv::~sqlqueryadv() { } // Generate function call graph // returns true if successful, false if failed bool sqlqueryadv::search_funcgraph(QString searchstr, bool exactmatch, QStringList& xmlout, QStringList& dotout, int levels) { unsigned int i, j; sqlqueryresultlist result1, result2, result; QString xmltext = ""; QString dottext = "digraph graphname {\n"; unsigned int nodenum = 1, subrootnum; result1 = search(qt2str(searchstr), sqlresultCALLINGFUNC, exactmatch); result2 = search(qt2str(searchstr), sqlresultCALLEDFUNC, exactmatch); if (result1.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } else if (result2.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } unique_symnames(result1); unique_symnames(result2); xmltext += QString("").arg(nodenum).arg(searchstr); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#e2ffff\" shape=\"box\" ];\n").arg(nodenum).arg(searchstr); nodenum++; for (i=0; i < result1.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result1.resultlist[i].symname.c_str())); xmltext += QString("").arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result1.resultlist[i].symname.c_str())); dottext += QString("node%1 -> node1;\n").arg(nodenum); subrootnum = nodenum; nodenum++; if (levels == 2) { result = search(qt2str(result1.resultlist[i].symname.c_str()), sqlresultCALLINGFUNC, exactmatch); for (j=0; j < result.resultlist.size(); j++) { xmltext += QString(""). arg(nodenum).arg(QString(result.resultlist[j].symname.c_str())); xmltext += QString("").arg(subrootnum).arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result.resultlist[j].symname.c_str())); dottext += QString("node%1 -> node%2;\n").arg(nodenum).arg(subrootnum); nodenum++; } } } for (i=0; i < result2.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result2.resultlist[i].symname.c_str())); xmltext += QString("").arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result2.resultlist[i].symname.c_str())); dottext += QString("node1 -> node%1;\n").arg(nodenum); subrootnum = nodenum; nodenum++; if (levels == 2) { result = search(qt2str(result2.resultlist[i].symname.c_str()), sqlresultCALLEDFUNC, exactmatch); for (j=0; j < result.resultlist.size(); j++) { xmltext += QString(""). arg(nodenum).arg(QString(result.resultlist[j].symname.c_str())); xmltext += QString("").arg(nodenum).arg(subrootnum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result.resultlist[j].symname.c_str())); dottext += QString("node%1 -> node%2;\n").arg(subrootnum).arg(nodenum); nodenum++; } } } xmltext += ""; dottext += "}\n"; xmlout.append(xmltext); dotout.append(dottext); return true; } bool sqlqueryadv::search_classinheritgraph(QString searchstr, bool exactmatch, QStringList& xmlout, QStringList& dotout) { sqlqueryresultlist result_children, result_parent1, result_cousins1, result_parent2; QString xmltext = ""; QString dottext = "digraph graphname {\n"; int nodenum = 1; int parent1 = 0; xmltext += QString("").arg(nodenum).arg(searchstr); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#e2ffff\" shape=\"box\" ];\n").arg(nodenum).arg(searchstr); nodenum++; result_children = search(qt2str(searchstr), sqlresultCHILDCLASS, exactmatch); if (result_children.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } result_parent1 = search(qt2str(searchstr), sqlresultPARENTCLASS, exactmatch); if (result_parent1.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } if (result_parent1.resultlist.size() > 0) { result_parent2 = search(result_parent1.resultlist[0].symname, sqlresultPARENTCLASS, exactmatch); if (result_parent2.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } result_cousins1 = search(result_parent1.resultlist[0].symname, sqlresultCHILDCLASS, exactmatch); if (result_cousins1.result_type == sqlqueryresultlist::sqlresultERROR) { return false; } } unique_symnames(result_children); unique_symnames(result_parent1); unique_symnames(result_parent2); unique_symnames(result_cousins1); remove_symname(result_cousins1, qt2str(searchstr)); // I am not my own cousin for (unsigned int i=0; i < result_children.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result_children.resultlist[i].symname.c_str())); xmltext += QString("").arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result_children.resultlist[i].symname.c_str())); dottext += QString("node%1 -> node1 [arrowhead=\"empty\"];\n").arg(nodenum); nodenum++; } for (unsigned int i=0; i < result_parent1.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result_parent1.resultlist[i].symname.c_str())); xmltext += QString("").arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result_parent1.resultlist[i].symname.c_str())); dottext += QString("node1 -> node%1 [arrowhead=\"empty\"];\n").arg(nodenum); if (i == 0) parent1 = nodenum; nodenum++; } for (unsigned int i=0; i < result_parent2.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result_parent2.resultlist[i].symname.c_str())); xmltext += QString("").arg(nodenum).arg(parent1); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result_parent2.resultlist[i].symname.c_str())); dottext += QString("node%1 -> node%2 [arrowhead=\"empty\"];\n").arg(parent1).arg(nodenum); nodenum++; } for (unsigned int i=0; i < result_cousins1.resultlist.size(); i++) { xmltext += QString(""). arg(nodenum).arg(QString(result_cousins1.resultlist[i].symname.c_str())); xmltext += QString("").arg(parent1).arg(nodenum); dottext += QString("node%1 [label=\"%2\" style=filled fillcolor=\"#ffffff\" shape=\"box\" ];\n"). arg(nodenum).arg(QString(result_cousins1.resultlist[i].symname.c_str())); dottext += QString("node%1 -> node%2 [arrowhead=\"empty\"];\n").arg(nodenum).arg(parent1); nodenum++; } xmltext += ""; dottext += "}\n"; xmlout.append(xmltext); dotout.append(dottext); return true; } // make the list of symnames unique, no elements repeated void sqlqueryadv::unique_symnames(sqlqueryresultlist& res) { QSet setstr; sqlqueryresultlist out; sqlqueryresult item; for(unsigned int i=0; i < res.resultlist.size(); i++) { setstr.insert(str2qt(res.resultlist[i].symname)); } QList lststr = setstr.toList(); for(int i=0; i < lststr.size(); i++) { item.symname = qt2str(lststr[i]); out.resultlist.push_back(item); } res = out; } // remove a symname from the list void sqlqueryadv::remove_symname(sqlqueryresultlist& res, tStr name) { std::vector::iterator it; for (it = res.resultlist.begin(); it != res.resultlist.end(); it++) { if (it->symname.compare(name) == 0) { res.resultlist.erase(it); break; } } } codequery-0.21.0/gui/sqlqueryadv.h000066400000000000000000000015601310136352400171070ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef SQLQUERYADV_H_CQ #define SQLQUERYADV_H_CQ #include "sqlquery.h" class QString; // Advanced version of sqlquery to be MPL'ed class sqlqueryadv : public sqlquery { public: sqlqueryadv(); ~sqlqueryadv(); bool search_funcgraph(QString searchstr, bool exactmatch, QStringList& xmlout, QStringList& dotout, int levels = 1); bool search_classinheritgraph(QString searchstr, bool exactmatch, QStringList& xmlout, QStringList& dotout); void unique_symnames(sqlqueryresultlist& res); void remove_symname(sqlqueryresultlist& res, tStr name); }; #endif //SQLQUERYADV_H_CQ codequery-0.21.0/gui/std2qt.cpp000066400000000000000000000012651310136352400163050ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "std2qt.h" QStringList strLst2qt(const tVecStr& inpLst) { QStringList res; unsigned int n = inpLst.size(); for(unsigned int i=0; i < n; i++) { res << str2qt(inpLst[i]); } return res; } tVecStr qt2strLst(const QStringList& inpLst) { tVecStr res; int n = inpLst.size(); res.reserve(n); for(int i=0; i < n; i++) { res.push_back(qt2str(inpLst[i])); } return res; } codequery-0.21.0/gui/std2qt.h000066400000000000000000000014631310136352400157520ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef STD2QT_H_CQ #define STD2QT_H_CQ #include #include #include "small_lib.h" inline QString str2qt(const tStr& inp) #ifdef CQ_NO_QTSQL {return QString(inp.c_str());} #else {return QString::fromStdString(inp);} #endif QStringList strLst2qt(const tVecStr& inpLst); inline tStr qt2str(const QString& inp) #ifdef CQ_NO_QTSQL {return tStr((const char*) inp.toAscii().data());} #else {return inp.toStdString();} #endif tVecStr qt2strLst(const QStringList& inpLst); #endif //STD2QT_H_CQ codequery-0.21.0/gui/themes.cpp000066400000000000000000000232761310136352400163570ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include #include "ScintillaEdit.h" #include "small_lib.h" #include "fileviewer.h" #include "themes.h" #ifdef USE_QT5 #define QT45_TOASCII(x) toLatin1(x) #else #define QT45_TOASCII(x) toAscii(x) #endif typedef struct { const char *themename; const char *defaultfgcolor; const char *defaultbgcolor; const char *currentlinebgcolor; const char *linenumfgcolor; const lexstyle *lexstyletable; const lexstyle *globallexstyletable; int lexstylesize; int globallexstylesize; }langstyle; #include "themes_gen.cpp" // Keywords lists below taken from langs.model.xml of Notepad++ const char* python_keywords = "and as assert break class continue def " "del elif else except exec False finally " "for from global if import in is lambda " "None not or pass print raise return " "True try while with yield async await"; const char* ruby_keywords = "ARGF ARGV BEGIN END ENV FALSE DATA NIL " "RUBY_PATCHLEVEL RUBY_PLATFORM RUBY_RELEASE_DATE " "RUBY_VERSION PLATFORM RELEASE_DATE STDERR STDIN " "STDOUT TOPLEVEL_BINDING TRUE __ENCODING__ " "__END__ __FILE__ __LINE__ alias and begin break " "case class def defined? do else elsif end ensure " "false for if in module next nil not or redo rescue " "retry return self super then true undef " "unless until when while yield"; const char* js_keywords = "abstract async await boolean break byte case catch " "char class const continue debugger default delete do " "double else enum export extends final finally float " "for from function goto if implements import in instanceof " "int interface let long native new null of package private " "protected public return short static super switch synchronized " "this throw throws transient try typeof var void " "volatile while with true false prototype yield"; const char* js_types = "Array Date eval hasOwnProperty Infinity isFinite isNaN " "isPrototypeOf Math NaN Number Object prototype " "String toString undefined valueOf"; const char* java_keywords = "instanceof assert if else switch case default break goto " "return for while do continue new throw throws try catch " "finally this super extends implements import true false null"; const char* java_types = "package transient strictfp void char short int long double " "float const static volatile byte boolean class interface " "native private protected public final abstract synchronized enum"; const char* cpp_keywords = "alignof and and_eq bitand bitor break case catch compl const_cast " "continue default delete do dynamic_cast else false for goto if " "namespace new not not_eq nullptr operator or or_eq reinterpret_cast " "return sizeof static_assert static_cast switch this " "throw true try typedef typeid using while xor xor_eq NULL"; const char* cpp_types = "alignas asm auto bool char char16_t char32_t class clock_t " "const constexpr decltype double enum explicit export extern " "final float friend inline int int8_t int16_t int32_t int64_t " "int_fast8_t int_fast16_t int_fast32_t int_fast64_t intmax_t " "intptr_t long mutable noexcept override private protected " "ptrdiff_t public register short signed size_t ssize_t static " "struct template thread_local time_t typename uint8_t uint16_t " "uint32_t uint64_t uint_fast8_t uint_fast16_t uint_fast32_t " "uint_fast64_t uintmax_t uintptr_t union " "unsigned virtual void volatile wchar_t"; const char* cpp_docwords = "a addindex addtogroup anchor arg attention author authors b brief " "bug c callergraph callgraph category cite class code cond " "copybrief copydetails copydoc copyright date def defgroup deprecated " "details diafile dir docbookonly dontinclude dot dotfile e else elseif " "em endcode endcond enddocbookonly enddot endhtmlonly endif endinternal " "endlatexonly endlink endmanonly endmsc endparblock endrtfonly " "endsecreflist enduml endverbatim endxmlonly enum example exception " "extends f$ f[ f] file fn f{ f} headerfile hidecallergraph hidecallgraph " "hideinitializer htmlinclude htmlonly idlexcept if ifnot image " "implements include includelineno ingroup interface internal invariant " "latexinclude latexonly li line link mainpage manonly memberof msc mscfile " "n name namespace nosubgrouping note overload p package page par paragraph " "param parblock post pre private privatesection property protected " "protectedsection protocol public publicsection pure ref refitem related " "relatedalso relates relatesalso remark remarks result return returns " "retval rtfonly sa secreflist section see short showinitializer since " "skip skipline snippet startuml struct subpage subsection subsubsection " "tableofcontents test throw throws todo tparam typedef union until var " "verbatim verbinclude version vhdlflow warning weakgroup xmlonly xrefitem"; const char* go_keywords = "break default func interface select " "case defer go map struct chan else goto package switch " "const fallthrough if range type continue for import return var " "append cap close complex copy delete imag len " "make new panic print println real recover"; const char* go_types = "true false iota nil " "bool byte complex64 complex128 error float32 float64 " "int int8 int16 int32 int64 rune string " "uint uint8 uint16 uint32 uint64 uintptr"; QStringList themes::getThemesList(void) { QStringList lst; for(int i=0; isetKeyWords(i, " "); switch(lang) { case enHighlightPython: lexer->setKeyWords(0, python_keywords); break; case enHighlightJava: lexer->setKeyWords(0, java_keywords); lexer->setKeyWords(1, java_types); break; case enHighlightRuby: lexer->setKeyWords(0, ruby_keywords); break; case enHighlightJavascript: lexer->setKeyWords(0, js_keywords); lexer->setKeyWords(1, js_types); break; case enHighlightGo: lexer->setKeyWords(0, go_keywords); lexer->setKeyWords(1, go_types); break; case enHighlightCPP: // fall through default: lexer->setKeyWords(0, cpp_keywords); lexer->setKeyWords(1, cpp_types); lexer->setKeyWords(2, cpp_docwords); break; } } long themes::QC2SC(QColor colour) { long retval; retval = (long) colour.red(); retval |= ((long) colour.green()) << 8; retval |= ((long) colour.blue()) << 16; return retval; } void themes::setTheme(const QString& theme, int lang, ScintillaEdit* lexer, const QFont& fontt, QColor& curlinebgcolor, QColor& linenumbgcolor) { langstyle *lngstyle = NULL; lexstyle *lxstyle = NULL; lexstyle *globallxstyle = NULL; int i=0; int lxstylesize=0; int globallxstylesize=0; long defbgcolor; long deffgcolor; QFont font1 = fontt; //font1.setFixedPitch(true); font1.setBold(false); font1.setItalic(false); for (i=0; i < 4; i++) lexer->setKeyWords(i, ""); switch(lang) { case enHighlightCPP: lngstyle = (langstyle *) cppstyle; break; case enHighlightPython: lngstyle = (langstyle *) pythonstyle; break; case enHighlightJava: lngstyle = (langstyle *) javastyle; break; case enHighlightRuby: lngstyle = (langstyle *) rubystyle; break; case enHighlightJavascript: lngstyle = (langstyle *) cppstyle; //lngstyle = (langstyle *) javascriptstyle; break; default: lngstyle = (langstyle *) cppstyle; break; } i = 0; while (lngstyle[i].lexstylesize > 0) { if (theme.compare(QString(lngstyle[i].themename)) == 0) { lxstyle = (lexstyle *) lngstyle[i].lexstyletable; globallxstyle = (lexstyle *) lngstyle[i].globallexstyletable; lxstylesize = lngstyle[i].lexstylesize; globallxstylesize = lngstyle[i].globallexstylesize; defbgcolor = QC2SC(QColor(QString("#").append(QString(lngstyle[i].defaultbgcolor)))); deffgcolor = QC2SC(QColor(QString("#").append(QString(lngstyle[i].defaultfgcolor)))); lexer->styleSetBack( STYLE_DEFAULT, defbgcolor); lexer->styleSetFore( STYLE_DEFAULT, deffgcolor); lexer->styleSetFont( STYLE_DEFAULT, font1.family().QT45_TOASCII().data()); lexer->styleSetBold( STYLE_DEFAULT, false); lexer->styleSetItalic(STYLE_DEFAULT, false); lexer->styleClearAll(); lexer->setCaretFore(deffgcolor); break; } i++; } setThemeStyle(lexer, globallxstyle, globallxstylesize, font1); setThemeStyle(lexer, lxstyle , lxstylesize , font1); curlinebgcolor = QColor(QString("#").append(QString(lngstyle[i].currentlinebgcolor))); linenumbgcolor = QColor(QString("#").append(QString(lngstyle[i].linenumfgcolor))); } void themes::setThemeStyle(ScintillaEdit* lexer, lexstyle *lxstyle, int lxstylesize, QFont& font1) { int i; if (lxstyle != NULL) for(i=0; istyleSetBack(lxstyle[i].styleid, QC2SC(QColor(QString("#").append(QString(lxstyle[i].bgcolor))))); lexer->styleSetFore(lxstyle[i].styleid, QC2SC(QColor(QString("#").append(QString(lxstyle[i].fgcolor))))); lexer->styleSetFont(lxstyle[i].styleid, font1.family().QT45_TOASCII().data()); switch(lxstyle[i].fontstyle) { case 1: lexer->styleSetBold(lxstyle[i].styleid, true); lexer->styleSetItalic(lxstyle[i].styleid, false); break; case 2: lexer->styleSetBold(lxstyle[i].styleid, false); lexer->styleSetItalic(lxstyle[i].styleid, true); break; case 3: lexer->styleSetBold(lxstyle[i].styleid, true); lexer->styleSetItalic(lxstyle[i].styleid, true); break; default: lexer->styleSetBold(lxstyle[i].styleid, false); lexer->styleSetItalic(lxstyle[i].styleid, false); break; } } } codequery-0.21.0/gui/themes.h000066400000000000000000000017141310136352400160150ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef THEMES_H_CQ #define THEMES_H_CQ #ifdef USE_QT5 #include #else #include #endif class ScintillaEdit; typedef struct { int styleid; const char *fgcolor; const char *bgcolor; int fontstyle; }lexstyle; class themes { public: static QStringList getThemesList(void); static void setTheme(const QString& theme, int lang, ScintillaEdit* lexer, const QFont& fontt, QColor& curlinebgcolor, QColor& linenumbgcolor); static void setKeywords(int lang, ScintillaEdit* lexer); static long QC2SC(QColor colour); private: static void setThemeStyle(ScintillaEdit* lexer, lexstyle *lxstyle, int lxstylesize, QFont& font1); }; #endif // THEMES_H_CQ codequery-0.21.0/gui/themes/000077500000000000000000000000001310136352400156415ustar00rootroot00000000000000codequery-0.21.0/gui/themes/Bespin.xml000066400000000000000000002571611310136352400176170ustar00rootroot00000000000000 the_ID the_post have_posts wp_link_pages the_content $_POST $_GET $_SESSION alert appendChild arguments array blur checked childNodes className confirm dialogArguments event focus getElementById getElementsByTagName innerHTML keyCode length location null number parentNode push RegExp replace selectNodes selectSingleNode setAttribute split src srcElement test undefined value window XmlUtil loadXmlString TopologyXmlTree NotificationArea loadXmlFile debug param @projectDescription projectDescription @param import import endfunction endif ContentScroller onMotionChanged onMotionFinished Tween ImagesStrip ContentScroller mx transitions easing Sprite Point MouseEvent Event BitmapData Timer TimerEvent addEventListener event x y height width True False if else for while bool long int char if else for while bool long int char codequery-0.21.0/gui/themes/Black_board.xml000066400000000000000000002540151310136352400205550ustar00rootroot00000000000000 endfunction endif True False if else for while bool long int char codequery-0.21.0/gui/themes/Choco.xml000066400000000000000000002544661310136352400174370ustar00rootroot00000000000000 ooooo endfunction endif True False if else for while bool long int char if else for while bool long int char codequery-0.21.0/gui/themes/Deep_Black.xml000066400000000000000000002502131310136352400203370ustar00rootroot00000000000000 endfunction endif True False if else for while bool long int char if else for while bool long int char if else for while bool long int char codequery-0.21.0/gui/themes/Eclipse_Default.xml000066400000000000000000002513171310136352400214240ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/Hello_Kitty.xml000066400000000000000000002506711310136352400206250ustar00rootroot00000000000000 endfunction endif True False if else for while bool long int char if else for while bool long int char codequery-0.21.0/gui/themes/HotFudgeSundae.xml000066400000000000000000003064571310136352400212470ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/Mono_Industrial.xml000066400000000000000000002534561310136352400215100ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/Monokai.xml000066400000000000000000002511411310136352400177640ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/MossyLawn.xml000066400000000000000000003065541310136352400203340ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/Navajo.xml000066400000000000000000003063271310136352400176140ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/NotepadPlusPlus.xml000066400000000000000000002727061310136352400215030ustar00rootroot00000000000000 codequery-0.21.0/gui/themes/Obsidian.xml000066400000000000000000002554501310136352400201260ustar00rootroot00000000000000 endfunction endif True False if else for while bool long int char if else for while bool long int char if else for while bool long int char if else for while bool long int char codequery-0.21.0/gui/themes/Plastic_Code_Wrap.xml000066400000000000000000002534571310136352400217250ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/Ruby_Blue.xml000066400000000000000000002070021310136352400202540ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/Solarized.xml000066400000000000000000003075071310136352400203330ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/Solarized_light.xml000066400000000000000000003075231310136352400215200ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/Twilight.xml000066400000000000000000002534501310136352400201670ustar00rootroot00000000000000 raise if else for while bool long int char codequery-0.21.0/gui/themes/Vibrant_Ink.xml000066400000000000000000002472521310136352400206050ustar00rootroot00000000000000 if else for while bool long int char codequery-0.21.0/gui/themes/Zenburn.xml000066400000000000000000002740721310136352400200220ustar00rootroot00000000000000 codequery-0.21.0/gui/themes/khaki.xml000066400000000000000000003064551310136352400174670ustar00rootroot00000000000000 param @projectDescription projectDescription @param codequery-0.21.0/gui/themes/parse_themes.pl000066400000000000000000000167501310136352400206660ustar00rootroot00000000000000#!/usr/bin/perl # Process theme XML files, to generate C++ code # # This license applies only to this file: # # Copyright (c) 2014 ruben2020 # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # use strict; use XML::LibXML; my $debug = 0; my $themelist; my $numOfThemes = 0; my $lexstyle; my $cppstyle; my $javastyle; my $pythonstyle; my $rubystyle; my $javascriptstyle; my $langname; my $langdesc; my $themename; my $themename2; my @themes; my $defaultbgcolor; my $defaultfgcolor; my $defaultfontstyle; my $currentlinebgcolor; my $linenumfgcolor; my $stylename; my $styleid; my $fgcolor; my $bgcolor; my $fontstyle; my %acceptedlang = ( 'C++' => 'cpp', 'Java' => 'java', 'Python' => 'python', 'Ruby' => 'ruby', 'Javascript' => 'javascript' ); my $filename; my $parser; my $xmldoc; $themelist .= "static const char* themelist[] = {\n"; $cppstyle .= "static const langstyle cppstyle[] = {\n"; $javastyle .= "static const langstyle javastyle[] = {\n"; $pythonstyle .= "static const langstyle pythonstyle[] = {\n"; $rubystyle .= "static const langstyle rubystyle[] = {\n"; $javascriptstyle .= "static const langstyle javascriptstyle[] = {\n"; opendir(DIR1, '.'); while($filename = readdir(DIR1)) { $themename = ''; if ((-f $filename )&&($filename =~ /\.xml$/i)) { $themename = $filename; $themename =~ s/\.xml$//i; $themename2 = $themename; $themename2 =~ s/_/ /g; print "\n ==> $themename\n" if ($debug); push @themes, $themename2; processfile(); $numOfThemes++; } } close(DIR1); @themes = sort {lc $a cmp lc $b} @themes; foreach my $them(@themes) { $themelist .= "\t\"$them\",\n"; } $themelist .= "};\n\n"; $cppstyle .= "\t{ NULL, NULL, NULL, 0 }\n};\n\n"; $javastyle .= "\t{ NULL, NULL, NULL, 0 }\n};\n\n"; $pythonstyle .= "\t{ NULL, NULL, NULL, 0 }\n};\n\n"; $rubystyle .= "\t{ NULL, NULL, NULL, 0 }\n};\n\n"; $javascriptstyle .= "\t{ NULL, NULL, NULL, 0 }\n};\n\n"; open(FILO,">themes_gen.cpp"); print FILO "\n /* THIS FILE WAS AUTO_GENERATED USING parse_themes.pl */"; print FILO "\n /* DO NOT CHANGE BY HAND */\n\n"; print FILO "#define NUM_OF_THEMES $numOfThemes\n\n"; print FILO $themelist; print FILO $lexstyle."\n"; print FILO $cppstyle; print FILO $javastyle; print FILO $pythonstyle; print FILO $rubystyle; print FILO $javascriptstyle; close(FILO); ################################################ sub processfile { $parser = XML::LibXML->new(); $xmldoc = $parser->parse_file($filename); my $lstyle; my $numofstyles=0; my $numofglobalstyles=0; $currentlinebgcolor = ''; $linenumfgcolor = ''; foreach my $sample ( $xmldoc->findnodes('/NotepadPlus/GlobalStyles') ) { $lexstyle .= "\nstatic const lexstyle global_".$themename."[] = {\n"; $defaultbgcolor = ''; $defaultfgcolor = ''; $defaultfontstyle = ''; $numofglobalstyles = 0; foreach my $child ( $sample->getChildnodes ) { if (( $child->nodeType() == XML_ELEMENT_NODE )&&($child->nodeName() eq 'WidgetStyle')) { $stylename = ''; $styleid = ''; $fgcolor = ''; $bgcolor = ''; $fontstyle = ''; $stylename = $child->getAttribute('name') if ($child->hasAttribute('name')); $styleid = $child->getAttribute('styleID') if ($child->hasAttribute('styleID')); $fgcolor = $child->getAttribute('fgColor') if ($child->hasAttribute('fgColor')); $bgcolor = $child->getAttribute('bgColor') if ($child->hasAttribute('bgColor')); $fontstyle = $child->getAttribute('fontStyle') if ($child->hasAttribute('fontStyle')); if ($stylename eq 'Current line background colour') {$currentlinebgcolor = $bgcolor;} if ($styleid eq '33') {$linenumfgcolor = $fgcolor;} if ($styleid eq '0') {next;} $defaultbgcolor = $bgcolor if ($stylename eq 'Default Style'); $defaultfgcolor = $fgcolor if ($stylename eq 'Default Style'); $defaultfontstyle = $fontstyle if ($stylename eq 'Default Style'); $defaultfontstyle = "0" if (length($defaultfontstyle) == 0); $bgcolor = $defaultbgcolor if (length($bgcolor) == 0); $fgcolor = $defaultfgcolor if (length($fgcolor) == 0); $fontstyle = $defaultfontstyle if (length($fontstyle) == 0); print "$stylename, $styleid, $fgcolor, $bgcolor, $fontstyle\n" if ($debug); $lexstyle .= "\t{ $styleid, \"$fgcolor\", \"$bgcolor\", $fontstyle }, // $stylename\n"; $numofglobalstyles++; } } $lexstyle .= "};\n\n"; } foreach my $sample ( $xmldoc->findnodes('/NotepadPlus/LexerStyles/LexerType') ) { $langname = ''; $langdesc = ''; $langname = $sample->getAttribute('name') if ($sample->hasAttribute('name')); $langdesc = $sample->getAttribute('desc') if ($sample->hasAttribute('desc')); next if (!(defined($acceptedlang{$langdesc}))); print "\n$langname, $langdesc\n" if ($debug); $lexstyle .= "\nstatic const lexstyle ".$langname."_".$themename."[] = {\n"; $numofstyles = 0; foreach my $child ( $sample->getChildnodes ) { if (( $child->nodeType() == XML_ELEMENT_NODE )&&($child->nodeName() eq 'WordsStyle')) { $stylename = ''; $styleid = ''; $fgcolor = ''; $bgcolor = ''; $fontstyle = ''; $stylename = $child->getAttribute('name') if ($child->hasAttribute('name')); $styleid = $child->getAttribute('styleID') if ($child->hasAttribute('styleID')); $fgcolor = $child->getAttribute('fgColor') if ($child->hasAttribute('fgColor')); $bgcolor = $child->getAttribute('bgColor') if ($child->hasAttribute('bgColor')); $fontstyle = $child->getAttribute('fontStyle') if ($child->hasAttribute('fontStyle')); $defaultbgcolor = $bgcolor if ($stylename eq 'DEFAULT'); $defaultfgcolor = $fgcolor if ($stylename eq 'DEFAULT'); $defaultfontstyle = $fontstyle if ($stylename eq 'DEFAULT'); $defaultfontstyle = "0" if (length($defaultfontstyle) == 0); $bgcolor = $defaultbgcolor if (length($bgcolor) == 0); $fgcolor = $defaultfgcolor if (length($fgcolor) == 0); $fontstyle = $defaultfontstyle if (length($fontstyle) == 0); print "$stylename, $styleid, $fgcolor, $bgcolor, $fontstyle\n" if ($debug); $lexstyle .= "\t{ $styleid, \"$fgcolor\", \"$bgcolor\", $fontstyle }, // $stylename\n"; $numofstyles++; } } $lexstyle .= "};\n"; $lstyle = " { \"$themename2\", \"$defaultfgcolor\", \"$defaultbgcolor\", \"$currentlinebgcolor\", \"$linenumfgcolor\", ".$langname."_".$themename.", global_".$themename.", $numofstyles, $numofglobalstyles },\n"; $cppstyle .= $lstyle if ($langdesc eq 'C++'); $javastyle .= $lstyle if ($langdesc eq 'Java'); $pythonstyle .= $lstyle if ($langdesc eq 'Python'); $rubystyle .= $lstyle if ($langdesc eq 'Ruby'); $javascriptstyle .= $lstyle if ($langdesc eq 'Javascript'); } } codequery-0.21.0/gui/themes/vim_Dark_Blue.xml000066400000000000000000002475561310136352400211110ustar00rootroot00000000000000 endfunction endif True False if else for while bool long int char codequery-0.21.0/gui/themes_gen.cpp000066400000000000000000003427001310136352400172040ustar00rootroot00000000000000 /* THIS FILE WAS AUTO_GENERATED USING parse_themes.pl */ /* DO NOT CHANGE BY HAND */ #define NUM_OF_THEMES 22 static const char* themelist[] = { "Bespin", "Black board", "Choco", "Deep Black", "Eclipse Default", "Hello Kitty", "HotFudgeSundae", "khaki", "Mono Industrial", "Monokai", "MossyLawn", "Navajo", "NotepadPlusPlus", "Obsidian", "Plastic Code Wrap", "Ruby Blue", "Solarized", "Solarized light", "Twilight", "Vibrant Ink", "vim Dark Blue", "Zenburn", }; static const lexstyle global_Monokai[] = { { 32, "F8F8F2", "272822", 0 }, // Default Style { 37, "888A85", "272822", 0 }, // Indent guideline style { 34, "FCE94F", "272822", 1 }, // Brace highlight style { 35, "EF2929", "272822", 0 }, // Bad brace colour { 2069, "F8F8F0", "272822", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "F8F8F2", "00FFFF", 0 }, // Mark Style 1 { 24, "F8F8F2", "FF8000", 0 }, // Mark Style 2 { 23, "F8F8F2", "FFFF00", 0 }, // Mark Style 3 { 22, "F8F8F2", "8000FF", 0 }, // Mark Style 4 { 21, "F8F8F2", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Monokai[] = { { 9, "F92672", "272822", 0 }, // PREPROCESSOR { 11, "F8F8F2", "272822", 0 }, // DEFAULT { 5, "66D9EF", "272822", 0 }, // INSTRUCTION WORD { 16, "F92672", "272822", 0 }, // TYPE WORD { 4, "AE81FF", "272822", 0 }, // NUMBER { 6, "E6DB74", "272822", 0 }, // STRING { 7, "E6DB74", "272822", 0 }, // CHARACTER { 10, "F92672", "272822", 0 }, // OPERATOR { 13, "AE81FF", "272822", 0 }, // VERBATIM { 14, "E6DB74", "272822", 0 }, // REGEX { 1, "75715E", "272822", 0 }, // COMMENT { 2, "75715E", "272822", 0 }, // COMMENT LINE { 3, "75715E", "272822", 0 }, // COMMENT DOC { 15, "75715E", "272822", 0 }, // COMMENT LINE DOC { 17, "75715E", "272822", 0 }, // COMMENT DOC KEYWORD { 18, "75715E", "272822", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Monokai[] = { { 9, "F92672", "272822", 0 }, // PREPROCESSOR { 11, "F8F8F2", "272822", 0 }, // DEFAULT { 5, "66D9EF", "272822", 0 }, // INSTRUCTION WORD { 16, "F92672", "272822", 0 }, // TYPE WORD { 4, "AE81FF", "272822", 0 }, // NUMBER { 6, "E6DB74", "272822", 0 }, // STRING { 7, "E6DB74", "272822", 0 }, // CHARACTER { 10, "F92672", "272822", 0 }, // OPERATOR { 13, "AE81FF", "272822", 0 }, // VERBATIM { 14, "E6DB74", "272822", 0 }, // REGEX { 1, "75715E", "272822", 0 }, // COMMENT { 2, "75715E", "272822", 0 }, // COMMENT LINE { 3, "75715E", "272822", 0 }, // COMMENT DOC { 15, "75715E", "272822", 0 }, // COMMENT LINE DOC { 17, "75715E", "272822", 0 }, // COMMENT DOC KEYWORD { 18, "75715E", "272822", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Monokai[] = { { 41, "F8F8F2", "272822", 0 }, // DEFAULT { 45, "AE81FF", "272822", 0 }, // NUMBER { 46, "F8F8F2", "272822", 0 }, // WORD { 47, "F92672", "272822", 0 }, // KEYWORD { 48, "E6DB74", "272822", 0 }, // DOUBLESTRING { 49, "E6DB74", "272822", 0 }, // SINGLESTRING { 50, "F8F8F2", "272822", 0 }, // SYMBOLS { 51, "E6DB74", "272822", 0 }, // STRINGEOL { 52, "E6DB74", "272822", 0 }, // REGEX { 42, "75715E", "272822", 0 }, // COMMENT { 43, "75715E", "272822", 0 }, // COMMENTLINE { 44, "75715E", "272822", 0 }, // COMMENTDOC }; static const lexstyle python_Monokai[] = { { 0, "F8F8F2", "272822", 0 }, // DEFAULT { 1, "75715E", "272822", 0 }, // COMMENTLINE { 2, "AE81FF", "272822", 0 }, // NUMBER { 3, "E6DB74", "272822", 0 }, // STRING { 4, "E6DB74", "272822", 0 }, // CHARACTER { 5, "F92672", "272822", 0 }, // KEYWORDS { 6, "F8F8F2", "272822", 0 }, // TRIPLE { 7, "F8F8F2", "272822", 0 }, // TRIPLEDOUBLE { 8, "F8F8F2", "272822", 0 }, // CLASSNAME { 9, "F8F8F2", "272822", 0 }, // DEFNAME { 10, "F92672", "272822", 0 }, // OPERATOR { 11, "66D9EF", "272822", 0 }, // IDENTIFIER { 12, "75715E", "272822", 0 }, // COMMENTBLOCK { 12, "E6DB74", "272822", 0 }, // STRINGEOL }; static const lexstyle ruby_Monokai[] = { { 0, "F8F8F2", "272822", 0 }, // DEFAULT { 1, "F8F8F2", "272822", 0 }, // ERROR { 2, "75715E", "272822", 0 }, // COMMENTLINE { 3, "F8F8F2", "272822", 0 }, // POD { 4, "AE81FF", "272822", 0 }, // NUMBER { 5, "F92672", "272822", 0 }, // INSTRUCTION { 6, "E6DB74", "272822", 0 }, // STRING { 7, "E6DB74", "272822", 0 }, // CHARACTER { 8, "F8F8F2", "272822", 0 }, // CLASS NAME { 9, "A6E22E", "272822", 0 }, // DEF NAME { 10, "F92672", "272822", 0 }, // OPERATOR { 11, "66D9EF", "272822", 0 }, // IDENTIFIER { 12, "E6DB74", "272822", 0 }, // REGEX { 13, "F8F8F2", "272822", 0 }, // GLOBAL { 14, "F8F8F2", "272822", 0 }, // SYMBOL { 15, "F8F8F2", "272822", 0 }, // MODULE NAME { 16, "F8F8F2", "272822", 0 }, // INSTANCE VAR { 17, "F8F8F2", "272822", 0 }, // CLASS VAR { 18, "F8F8F2", "272822", 0 }, // BACKTICKS { 19, "F8F8F2", "272822", 0 }, // DATA SECTION { 24, "E6DB74", "272822", 0 }, // STRING Q }; static const lexstyle global_Vibrant_Ink[] = { { 32, "FFFFFF", "000000", 0 }, // Default Style { 37, "C0C0C0", "000000", 0 }, // Indent guideline style { 34, "99CC99", "000000", 1 }, // Brace highlight style { 35, "CCFF33", "000000", 0 }, // Bad brace colour { 2069, "FFFFFF", "112435", 0 }, // Caret colour { 31, "FFFF00", "FF0000", 1 }, // Find Mark Style { 33, "E4E4E4", "333333", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "FFFFFF", "00FFFF", 0 }, // Mark Style 1 { 24, "FFFFFF", "FF8000", 0 }, // Mark Style 2 { 23, "FFFFFF", "FFFF00", 0 }, // Mark Style 3 { 22, "FFFFFF", "8000FF", 0 }, // Mark Style 4 { 21, "FFFFFF", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Vibrant_Ink[] = { { 9, "EDF8F9", "000000", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000000", 0 }, // DEFAULT { 5, "FF6600", "000000", 1 }, // INSTRUCTION WORD { 16, "66FF00", "000000", 0 }, // TYPE WORD { 4, "FF8000", "000000", 0 }, // NUMBER { 6, "66FF00", "000000", 0 }, // STRING { 7, "66FF00", "000000", 0 }, // CHARACTER { 10, "FFCC00", "000000", 1 }, // OPERATOR { 13, "FFFFFF", "000000", 0 }, // VERBATIM { 14, "FFFFFF", "000000", 1 }, // REGEX { 1, "9933CC", "000000", 0 }, // COMMENT { 2, "9933CC", "000000", 0 }, // COMMENT LINE { 3, "9933CC", "000000", 0 }, // COMMENT DOC { 15, "9933CC", "000000", 0 }, // COMMENT LINE DOC { 17, "9933CC", "000000", 1 }, // COMMENT DOC KEYWORD { 18, "9933CC", "000000", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Vibrant_Ink[] = { { 9, "EDF8F9", "000000", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000000", 0 }, // DEFAULT { 5, "FF6600", "000000", 1 }, // INSTRUCTION WORD { 16, "66FF00", "000000", 0 }, // TYPE WORD { 4, "FF8000", "000000", 0 }, // NUMBER { 6, "66FF00", "000000", 0 }, // STRING { 7, "66FF00", "000000", 0 }, // CHARACTER { 10, "FFCC00", "000000", 1 }, // OPERATOR { 13, "FFFFFF", "000000", 0 }, // VERBATIM { 14, "FFFFFF", "000000", 1 }, // REGEX { 1, "9933CC", "000000", 0 }, // COMMENT { 2, "9933CC", "000000", 0 }, // COMMENT LINE { 3, "9933CC", "000000", 0 }, // COMMENT DOC { 15, "9933CC", "000000", 0 }, // COMMENT LINE DOC { 17, "9933CC", "000000", 1 }, // COMMENT DOC KEYWORD { 18, "9933CC", "000000", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Vibrant_Ink[] = { { 41, "FFFFFF", "000000", 0 }, // DEFAULT { 45, "99CC99", "000000", 0 }, // NUMBER { 46, "FF6600", "000000", 0 }, // WORD { 47, "FFCC00", "000000", 3 }, // KEYWORD { 48, "FFFF00", "000000", 0 }, // DOUBLESTRING { 49, "FFFF00", "000000", 0 }, // SINGLESTRING { 50, "999966", "000000", 1 }, // SYMBOLS { 51, "CCCCCC", "000000", 1 }, // STRINGEOL { 52, "339999", "000000", 0 }, // REGEX { 42, "9933CC", "000000", 0 }, // COMMENT { 43, "9933CC", "000000", 0 }, // COMMENTLINE { 44, "772CB7", "070707", 0 }, // COMMENTDOC }; static const lexstyle python_Vibrant_Ink[] = { { 0, "FFFFFF", "000000", 0 }, // DEFAULT { 1, "9933CC", "000000", 0 }, // COMMENTLINE { 2, "99CC99", "000000", 0 }, // NUMBER { 3, "66FF00", "000000", 0 }, // STRING { 4, "66FF00", "000000", 0 }, // CHARACTER { 5, "FF6600", "000000", 1 }, // KEYWORDS { 6, "FF8000", "000000", 0 }, // TRIPLE { 7, "FFFFFF", "000000", 0 }, // TRIPLEDOUBLE { 8, "FFFFFF", "000000", 1 }, // CLASSNAME { 9, "FF00FF", "000000", 0 }, // DEFNAME { 10, "FFCC00", "000000", 1 }, // OPERATOR { 11, "FFFFFF", "000000", 0 }, // IDENTIFIER { 12, "9933CC", "000000", 0 }, // COMMENTBLOCK { 12, "FFFF00", "000000", 0 }, // STRINGEOL }; static const lexstyle ruby_Vibrant_Ink[] = { { 0, "FFFFFF", "000000", 0 }, // DEFAULT { 1, "FFFFFF", "000000", 0 }, // ERROR { 2, "9933CC", "000000", 0 }, // COMMENTLINE { 3, "004000", "C0FFC0", 0 }, // POD { 4, "FF8000", "000000", 0 }, // NUMBER { 5, "FF6600", "000000", 1 }, // INSTRUCTION { 6, "66FF00", "000000", 0 }, // STRING { 7, "808000", "000000", 0 }, // CHARACTER { 8, "0080C0", "000000", 1 }, // CLASS NAME { 9, "8080FF", "FFFFCC", 1 }, // DEF NAME { 10, "FFCC00", "000000", 1 }, // OPERATOR { 11, "FFFFFF", "000000", 0 }, // IDENTIFIER { 12, "339999", "000000", 0 }, // REGEX { 13, "FFCC00", "000000", 1 }, // GLOBAL { 14, "FFFFFF", "000000", 0 }, // SYMBOL { 15, "EDF8F9", "000000", 1 }, // MODULE NAME { 16, "FFFFFF", "000000", 0 }, // INSTANCE VAR { 17, "FFFFFF", "000000", 0 }, // CLASS VAR { 18, "FFFF00", "A08080", 0 }, // BACKTICKS { 19, "600000", "FFF0D8", 0 }, // DATA SECTION { 24, "66FF00", "000000", 0 }, // STRING Q }; static const lexstyle global_Solarized_light[] = { { 32, "657B83", "FDF6E3", 0 }, // Default Style { 37, "93A1A1", "FDF6E3", 0 }, // Indent guideline style { 34, "DC322F", "859900", 1 }, // Brace highlight style { 35, "D33682", "FDF6E3", 0 }, // Bad brace colour { 2069, "073642", "FDF6E3", 0 }, // Caret colour { 33, "93A1A1", "EEE8D5", 0 }, // Line number margin { 29, "657B83", "002B36", 0 }, // Smart HighLighting { 31, "657B83", "6C71C4", 0 }, // Find Mark Style { 25, "657B83", "DC322F", 0 }, // Mark Style 1 { 24, "657B83", "268BD2", 0 }, // Mark Style 2 { 23, "657B83", "2AA198", 0 }, // Mark Style 3 { 22, "657B83", "859900", 0 }, // Mark Style 4 { 21, "657B83", "B58900", 0 }, // Mark Style 5 { 28, "657B83", "FDF6E3", 0 }, // Incremental highlight all { 27, "657B83", "CB4B16", 0 }, // Tags match highlighting { 26, "657B83", "CB4B16", 0 }, // Tags attribute }; static const lexstyle cpp_Solarized_light[] = { { 9, "DC322F", "FDF6E3", 0 }, // PREPROCESSOR { 11, "657B83", "FDF6E3", 0 }, // DEFAULT { 5, "859900", "FDF6E3", 0 }, // INSTRUCTION WORD { 16, "B58900", "FDF6E3", 0 }, // TYPE WORD { 4, "2AA198", "FDF6E3", 0 }, // NUMBER { 6, "2AA198", "FDF6E3", 0 }, // STRING { 7, "2AA198", "FDF6E3", 0 }, // CHARACTER { 10, "586E75", "FDF6E3", 0 }, // OPERATOR { 13, "2AA198", "FDF6E3", 0 }, // VERBATIM { 14, "268BD2", "FDF6E3", 0 }, // REGEX { 1, "93A1A1", "FDF6E3", 2 }, // COMMENT { 2, "93A1A1", "FDF6E3", 2 }, // COMMENT LINE { 3, "93A1A1", "FDF6E3", 2 }, // COMMENT DOC { 15, "93A1A1", "FDF6E3", 2 }, // COMMENT LINE DOC { 17, "93A1A1", "FDF6E3", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "FDF6E3", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Solarized_light[] = { { 9, "DC322F", "FDF6E3", 0 }, // PREPROCESSOR { 11, "657B83", "FDF6E3", 0 }, // DEFAULT { 5, "859900", "FDF6E3", 0 }, // INSTRUCTION WORD { 16, "B58900", "FDF6E3", 0 }, // TYPE WORD { 4, "2AA198", "FDF6E3", 0 }, // NUMBER { 6, "2AA198", "FDF6E3", 0 }, // STRING { 7, "2AA198", "FDF6E3", 0 }, // CHARACTER { 10, "586E75", "FDF6E3", 0 }, // OPERATOR { 13, "2AA198", "FDF6E3", 0 }, // VERBATIM { 14, "268BD2", "FDF6E3", 0 }, // REGEX { 1, "93A1A1", "FDF6E3", 2 }, // COMMENT { 2, "93A1A1", "FDF6E3", 2 }, // COMMENT LINE { 3, "93A1A1", "FDF6E3", 2 }, // COMMENT DOC { 15, "93A1A1", "FDF6E3", 2 }, // COMMENT LINE DOC { 17, "268BD2", "FDF6E3", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "FDF6E3", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Solarized_light[] = { { 41, "657B83", "FDF6E3", 0 }, // DEFAULT { 45, "2AA198", "FDF6E3", 0 }, // NUMBER { 46, "B58900", "FDF6E3", 0 }, // WORD { 47, "859900", "FDF6E3", 0 }, // KEYWORD { 48, "2AA198", "FDF6E3", 0 }, // DOUBLESTRING { 49, "2AA198", "FDF6E3", 0 }, // SINGLESTRING { 50, "657B83", "FDF6E3", 0 }, // SYMBOLS { 51, "DC322F", "FDF6E3", 0 }, // STRINGEOL { 52, "268BD2", "FDF6E3", 0 }, // REGEX { 42, "93A1A1", "FDF6E3", 2 }, // COMMENT { 43, "93A1A1", "FDF6E3", 2 }, // COMMENTLINE { 44, "93A1A1", "FDF6E3", 2 }, // COMMENTDOC { 17, "268BD2", "FDF6E3", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "FDF6E3", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_Solarized_light[] = { { 0, "657B83", "FDF6E3", 0 }, // DEFAULT { 1, "93A1A1", "FDF6E3", 2 }, // COMMENTLINE { 2, "2AA198", "FDF6E3", 0 }, // NUMBER { 3, "2AA198", "FDF6E3", 0 }, // STRING { 4, "2AA198", "FDF6E3", 0 }, // CHARACTER { 5, "859900", "FDF6E3", 0 }, // KEYWORDS { 6, "2AA198", "FDF6E3", 0 }, // TRIPLE { 7, "2AA198", "FDF6E3", 0 }, // TRIPLEDOUBLE { 8, "CB4B16", "FDF6E3", 0 }, // CLASSNAME { 9, "CB4B16", "FDF6E3", 0 }, // DEFNAME { 10, "586E75", "FDF6E3", 0 }, // OPERATOR { 11, "B58900", "FDF6E3", 0 }, // IDENTIFIER { 12, "93A1A1", "FDF6E3", 2 }, // COMMENTBLOCK { 12, "93A1A1", "FDF6E3", 0 }, // STRINGEOL }; static const lexstyle ruby_Solarized_light[] = { { 0, "657B83", "FDF6E3", 0 }, // DEFAULT { 1, "DC322F", "FDF6E3", 0 }, // ERROR { 2, "93A1A1", "FDF6E3", 2 }, // COMMENTLINE { 3, "657B83", "FDF6E3", 2 }, // POD { 4, "2AA198", "FDF6E3", 0 }, // NUMBER { 5, "859900", "FDF6E3", 0 }, // INSTRUCTION { 6, "2AA198", "FDF6E3", 0 }, // STRING { 7, "2AA198", "FDF6E3", 0 }, // CHARACTER { 8, "B58900", "FDF6E3", 0 }, // CLASS NAME { 9, "268BD2", "FDF6E3", 0 }, // DEF NAME { 10, "586E75", "FDF6E3", 0 }, // OPERATOR { 11, "B58900", "FDF6E3", 0 }, // IDENTIFIER { 12, "268BD2", "FDF6E3", 0 }, // REGEX { 13, "B58900", "FDF6E3", 0 }, // GLOBAL { 14, "657B83", "FDF6E3", 0 }, // SYMBOL { 15, "CB4B16", "FDF6E3", 0 }, // MODULE NAME { 16, "B58900", "FDF6E3", 0 }, // INSTANCE VAR { 17, "657B83", "FDF6E3", 0 }, // CLASS VAR { 18, "073642", "6C71C4", 0 }, // BACKTICKS { 19, "2AA198", "FDF6E3", 0 }, // DATA SECTION { 24, "2AA198", "FDF6E3", 0 }, // STRING Q { 25, "268BD2", "FDF6E3", 0 }, // BOOLEAN }; static const lexstyle global_Twilight[] = { { 32, "F8F8F8", "141414", 0 }, // Default Style { 37, "888A85", "141414", 0 }, // Indent guideline style { 34, "FCE94F", "141414", 1 }, // Brace highlight style { 35, "EF2929", "141414", 0 }, // Bad brace colour { 2069, "A7A7A7", "141414", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "F8F8F8", "00FFFF", 0 }, // Mark Style 1 { 24, "F8F8F8", "FF8000", 0 }, // Mark Style 2 { 23, "F8F8F8", "FFFF00", 0 }, // Mark Style 3 { 22, "F8F8F8", "8000FF", 0 }, // Mark Style 4 { 21, "F8F8F8", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Twilight[] = { { 9, "8996A8", "141414", 0 }, // PREPROCESSOR { 11, "F8F8F8", "141414", 0 }, // DEFAULT { 5, "F9EE98", "141414", 0 }, // INSTRUCTION WORD { 16, "CDA869", "141414", 0 }, // TYPE WORD { 4, "CF6A4C", "141414", 0 }, // NUMBER { 6, "8F9D6A", "141414", 0 }, // STRING { 7, "8F9D6A", "141414", 0 }, // CHARACTER { 10, "CDA869", "141414", 0 }, // OPERATOR { 13, "CF6A4C", "141414", 0 }, // VERBATIM { 14, "E9C062", "141414", 0 }, // REGEX { 1, "5F5A60", "141414", 0 }, // COMMENT { 2, "5F5A60", "141414", 0 }, // COMMENT LINE { 3, "5F5A60", "141414", 0 }, // COMMENT DOC { 15, "5F5A60", "141414", 0 }, // COMMENT LINE DOC { 17, "5F5A60", "141414", 0 }, // COMMENT DOC KEYWORD { 18, "5F5A60", "141414", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Twilight[] = { { 9, "8996A8", "141414", 0 }, // PREPROCESSOR { 11, "F8F8F8", "141414", 0 }, // DEFAULT { 5, "F9EE98", "141414", 0 }, // INSTRUCTION WORD { 16, "CDA869", "141414", 0 }, // TYPE WORD { 4, "CF6A4C", "141414", 0 }, // NUMBER { 6, "8F9D6A", "141414", 0 }, // STRING { 7, "8F9D6A", "141414", 0 }, // CHARACTER { 10, "CDA869", "141414", 0 }, // OPERATOR { 13, "CF6A4C", "141414", 0 }, // VERBATIM { 14, "E9C062", "141414", 0 }, // REGEX { 1, "5F5A60", "141414", 0 }, // COMMENT { 2, "5F5A60", "141414", 0 }, // COMMENT LINE { 3, "5F5A60", "141414", 0 }, // COMMENT DOC { 15, "5F5A60", "141414", 0 }, // COMMENT LINE DOC { 17, "5F5A60", "141414", 0 }, // COMMENT DOC KEYWORD { 18, "5F5A60", "141414", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Twilight[] = { { 41, "F8F8F8", "141414", 0 }, // DEFAULT { 45, "CF6A4C", "141414", 0 }, // NUMBER { 46, "F8F8F8", "141414", 0 }, // WORD { 47, "CDA869", "141414", 0 }, // KEYWORD { 48, "8F9D6A", "141414", 0 }, // DOUBLESTRING { 49, "8F9D6A", "141414", 0 }, // SINGLESTRING { 50, "F8F8F8", "141414", 0 }, // SYMBOLS { 51, "8F9D6A", "141414", 0 }, // STRINGEOL { 52, "E9C062", "141414", 0 }, // REGEX { 42, "5F5A60", "141414", 0 }, // COMMENT { 43, "5F5A60", "141414", 0 }, // COMMENTLINE { 44, "5F5A60", "141414", 0 }, // COMMENTDOC }; static const lexstyle python_Twilight[] = { { 0, "F8F8F8", "141414", 0 }, // DEFAULT { 1, "5F5A60", "141414", 0 }, // COMMENTLINE { 2, "CF6A4C", "141414", 0 }, // NUMBER { 3, "8F9D6A", "141414", 0 }, // STRING { 4, "8F9D6A", "141414", 0 }, // CHARACTER { 5, "CDA869", "141414", 0 }, // KEYWORDS { 6, "8F9D6A", "141414", 0 }, // TRIPLE { 7, "8F9D6A", "141414", 0 }, // TRIPLEDOUBLE { 8, "F8F8F8", "141414", 0 }, // CLASSNAME { 9, "F8F8F8", "141414", 0 }, // DEFNAME { 10, "CDA869", "141414", 0 }, // OPERATOR { 11, "CF6A4C", "141414", 0 }, // IDENTIFIER { 12, "5F5A60", "141414", 0 }, // COMMENTBLOCK { 12, "8F9D6A", "141414", 0 }, // STRINGEOL }; static const lexstyle ruby_Twilight[] = { { 0, "F8F8F8", "141414", 0 }, // DEFAULT { 1, "000000", "141414", 0 }, // ERROR { 2, "5F5A60", "141414", 0 }, // COMMENTLINE { 3, "000000", "141414", 0 }, // POD { 4, "CF6A4C", "141414", 0 }, // NUMBER { 5, "CDA869", "141414", 0 }, // INSTRUCTION { 6, "8F9D6A", "141414", 0 }, // STRING { 7, "8F9D6A", "141414", 0 }, // CHARACTER { 8, "9B703F", "141414", 0 }, // CLASS NAME { 9, "9B703F", "141414", 0 }, // DEF NAME { 10, "CDA869", "141414", 0 }, // OPERATOR { 11, "CF6A4C", "141414", 0 }, // IDENTIFIER { 12, "E9C062", "141414", 0 }, // REGEX { 13, "7587A6", "141414", 0 }, // GLOBAL { 14, "F8F8F8", "141414", 0 }, // SYMBOL { 15, "9B703F", "141414", 0 }, // MODULE NAME { 16, "7587A6", "141414", 0 }, // INSTANCE VAR { 17, "000000", "141414", 0 }, // CLASS VAR { 18, "000000", "141414", 0 }, // BACKTICKS { 19, "000000", "141414", 0 }, // DATA SECTION { 24, "8F9D6A", "141414", 0 }, // STRING Q }; static const lexstyle global_vim_Dark_Blue[] = { { 32, "FFFFBF", "000040", 0 }, // Default Style { 37, "808080", "000040", 0 }, // Indent guideline style { 34, "80FF80", "000040", 1 }, // Brace highlight style { 35, "FF8000", "000040", 0 }, // Bad brace colour { 2069, "FFFF00", "000040", 0 }, // Caret colour { 31, "FFFF00", "000040", 1 }, // Find Mark Style { 33, "FFFFFF", "000040", 0 }, // Line number margin { 29, "FFFFBF", "2050D0", 0 }, // Smart HighLighting { 28, "FFFFBF", "008000", 0 }, // Incremental highlight all { 27, "FFFFBF", "000040", 0 }, // Tags match highlighting { 26, "FFFFBF", "000040", 0 }, // Tags attribute }; static const lexstyle cpp_vim_Dark_Blue[] = { { 9, "FFFFFF", "000040", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000040", 0 }, // DEFAULT { 5, "FFFF00", "000040", 1 }, // INSTRUCTION WORD { 16, "00FF00", "000040", 0 }, // TYPE WORD { 4, "FFFFFF", "000040", 0 }, // NUMBER { 6, "FFA0A0", "000040", 0 }, // STRING { 7, "FFA0A0", "000040", 0 }, // CHARACTER { 10, "FFFFFF", "000040", 1 }, // OPERATOR { 13, "00FFFF", "000040", 0 }, // VERBATIM { 14, "80FFFF", "000040", 1 }, // REGEX { 1, "80A0FF", "000040", 0 }, // COMMENT { 2, "80A0FF", "000040", 0 }, // COMMENT LINE { 3, "80A0FF", "000040", 0 }, // COMMENT DOC { 15, "80A0FF", "000040", 0 }, // COMMENT LINE DOC { 17, "80A0FF", "000040", 1 }, // COMMENT DOC KEYWORD { 18, "80A0FF", "000040", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_vim_Dark_Blue[] = { { 9, "804000", "000040", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000040", 0 }, // DEFAULT { 5, "0000FF", "000040", 1 }, // INSTRUCTION WORD { 16, "8000FF", "000040", 0 }, // TYPE WORD { 4, "FFFFFF", "000040", 0 }, // NUMBER { 6, "FFA0A0", "000040", 0 }, // STRING { 7, "FFA0A0", "000040", 0 }, // CHARACTER { 10, "FFFFFF", "000040", 1 }, // OPERATOR { 13, "FFFFFF", "000040", 0 }, // VERBATIM { 14, "FFFFFF", "000040", 1 }, // REGEX { 1, "80A0FF", "000040", 0 }, // COMMENT { 2, "80A0FF", "000040", 0 }, // COMMENT LINE { 3, "80A0FF", "000040", 0 }, // COMMENT DOC { 15, "80A0FF", "000040", 0 }, // COMMENT LINE DOC { 17, "80A0FF", "000040", 1 }, // COMMENT DOC KEYWORD { 18, "80A0FF", "000040", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_vim_Dark_Blue[] = { { 41, "FFFFFF", "000040", 0 }, // DEFAULT { 45, "FFFFFF", "000040", 0 }, // NUMBER { 46, "FFFFFF", "000040", 0 }, // WORD { 47, "000080", "000040", 3 }, // KEYWORD { 48, "FFA0A0", "000040", 0 }, // DOUBLESTRING { 49, "FFA0A0", "000040", 0 }, // SINGLESTRING { 50, "FFFFFF", "000040", 1 }, // SYMBOLS { 51, "FFA0A0", "000040", 1 }, // STRINGEOL { 52, "8000FF", "000040", 0 }, // REGEX { 42, "80A0FF", "000040", 0 }, // COMMENT { 43, "80A0FF", "000040", 0 }, // COMMENTLINE { 44, "80A0FF", "000040", 0 }, // COMMENTDOC }; static const lexstyle python_vim_Dark_Blue[] = { { 0, "FFFFFF", "000040", 0 }, // DEFAULT { 1, "80A0FF", "000040", 0 }, // COMMENTLINE { 2, "FFFFFF", "000040", 0 }, // NUMBER { 3, "FFA0A0", "000040", 0 }, // STRING { 4, "FFA0A0", "000040", 0 }, // CHARACTER { 5, "FFFF00", "000040", 0 }, // KEYWORDS { 6, "FF8000", "000040", 0 }, // TRIPLE { 7, "FFA0A0", "000040", 0 }, // TRIPLEDOUBLE { 8, "40FFFF", "000040", 0 }, // CLASSNAME { 9, "40FFFF", "000040", 0 }, // DEFNAME { 10, "FFFFFF", "000040", 0 }, // OPERATOR { 11, "C0C0C0", "000040", 0 }, // IDENTIFIER { 12, "80A0FF", "000040", 0 }, // COMMENTBLOCK { 12, "008080", "000040", 0 }, // STRINGEOL }; static const lexstyle ruby_vim_Dark_Blue[] = { { 0, "FFFFFF", "000040", 0 }, // DEFAULT { 1, "FFFFFF", "000040", 0 }, // ERROR { 2, "80A0FF", "000040", 0 }, // COMMENTLINE { 3, "004000", "000040", 0 }, // POD { 4, "FFFFFF", "000040", 0 }, // NUMBER { 5, "0000FF", "000040", 1 }, // INSTRUCTION { 6, "FFA0A0", "000040", 0 }, // STRING { 7, "FFA0A0", "000040", 0 }, // CHARACTER { 8, "0080C0", "000040", 1 }, // CLASS NAME { 9, "8080FF", "000040", 1 }, // DEF NAME { 10, "FFFFFF", "000040", 1 }, // OPERATOR { 11, "C0C0C0", "000040", 0 }, // IDENTIFIER { 12, "0080FF", "000040", 0 }, // REGEX { 13, "FFFFFF", "000040", 1 }, // GLOBAL { 14, "FFFFFF", "000040", 0 }, // SYMBOL { 15, "804000", "000040", 1 }, // MODULE NAME { 16, "FFFFFF", "000040", 0 }, // INSTANCE VAR { 17, "FFFFFF", "000040", 0 }, // CLASS VAR { 18, "FFFF00", "000040", 0 }, // BACKTICKS { 19, "600000", "000040", 0 }, // DATA SECTION { 24, "808080", "000040", 0 }, // STRING Q }; static const lexstyle global_Deep_Black[] = { { 32, "FFFFFF", "000000", 0 }, // Default Style { 37, "C0C0C0", "000000", 0 }, // Indent guideline style { 34, "00FF00", "000000", 1 }, // Brace highlight style { 35, "FF0000", "000000", 1 }, // Bad brace colour { 2069, "FFFFFF", "253B76", 0 }, // Caret colour { 33, "C0C0C0", "333333", 0 }, // Line number margin { 29, "555753", "80FF00", 0 }, // Smart HighLighting { 31, "FFFF00", "FF0000", 1 }, // Find Mark Style { 28, "555753", "FF8000", 0 }, // Incremental highlight all { 27, "FCAF3E", "0080FF", 0 }, // Tags match highlighting { 26, "FFFFFF", "808080", 0 }, // Tags attribute }; static const lexstyle cpp_Deep_Black[] = { { 9, "C0C0C0", "000000", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000000", 0 }, // DEFAULT { 5, "FF6600", "000000", 1 }, // INSTRUCTION WORD { 16, "00FFFF", "000000", 1 }, // TYPE WORD { 4, "FF8000", "000000", 0 }, // NUMBER { 6, "FFFF00", "000000", 0 }, // STRING { 7, "FF8080", "000000", 0 }, // CHARACTER { 10, "FFCC00", "000000", 0 }, // OPERATOR { 13, "FFFFFF", "000000", 0 }, // VERBATIM { 14, "FFFFFF", "000000", 1 }, // REGEX { 1, "00FF00", "000000", 2 }, // COMMENT { 2, "00FF00", "000000", 2 }, // COMMENT LINE { 3, "00FF00", "000000", 2 }, // COMMENT DOC { 15, "00FF00", "000000", 2 }, // COMMENT LINE DOC { 17, "00FF00", "000000", 2 }, // COMMENT DOC KEYWORD { 18, "00FF00", "000000", 2 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Deep_Black[] = { { 9, "EDF8F9", "000000", 0 }, // PREPROCESSOR { 11, "FFFFFF", "000000", 0 }, // DEFAULT { 5, "FF6600", "000000", 1 }, // INSTRUCTION WORD { 16, "66FF00", "000000", 0 }, // TYPE WORD { 4, "FF8000", "000000", 0 }, // NUMBER { 6, "66FF00", "000000", 0 }, // STRING { 7, "66FF00", "000000", 0 }, // CHARACTER { 10, "FFCC00", "000000", 1 }, // OPERATOR { 13, "FFFFFF", "000000", 0 }, // VERBATIM { 14, "FFFFFF", "000000", 1 }, // REGEX { 1, "00FF00", "000000", 2 }, // COMMENT { 2, "00FF00", "000000", 2 }, // COMMENT LINE { 3, "00FF00", "000000", 2 }, // COMMENT DOC { 15, "00FF00", "000000", 2 }, // COMMENT LINE DOC { 17, "00FF00", "000000", 2 }, // COMMENT DOC KEYWORD { 18, "00FF00", "000000", 2 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Deep_Black[] = { { 41, "FFFFFF", "000000", 0 }, // DEFAULT { 45, "99CC99", "000000", 0 }, // NUMBER { 46, "FF6600", "000000", 0 }, // WORD { 47, "FFCC00", "000000", 3 }, // KEYWORD { 48, "FFFF00", "000000", 0 }, // DOUBLESTRING { 49, "FFFF00", "000000", 0 }, // SINGLESTRING { 50, "999966", "000000", 1 }, // SYMBOLS { 51, "CCCCCC", "000000", 1 }, // STRINGEOL { 52, "339999", "000000", 0 }, // REGEX { 42, "00FF00", "000000", 2 }, // COMMENT { 43, "00FF00", "000000", 2 }, // COMMENTLINE { 44, "772CB7", "070707", 0 }, // COMMENTDOC }; static const lexstyle python_Deep_Black[] = { { 0, "FFFFFF", "000000", 0 }, // DEFAULT { 1, "00FF00", "000000", 2 }, // COMMENTLINE { 2, "99CC99", "000000", 0 }, // NUMBER { 3, "66FF00", "000000", 0 }, // STRING { 4, "66FF00", "000000", 0 }, // CHARACTER { 5, "FF6600", "000000", 1 }, // KEYWORDS { 6, "FF8000", "000000", 0 }, // TRIPLE { 7, "FFFFFF", "000000", 0 }, // TRIPLEDOUBLE { 8, "FFFFFF", "000000", 1 }, // CLASSNAME { 9, "FF00FF", "000000", 0 }, // DEFNAME { 10, "FFCC00", "000000", 1 }, // OPERATOR { 11, "FFFFFF", "000000", 0 }, // IDENTIFIER { 12, "00FF00", "000000", 2 }, // COMMENTBLOCK { 12, "FFFF00", "000000", 0 }, // STRINGEOL }; static const lexstyle ruby_Deep_Black[] = { { 0, "FFFFFF", "000000", 0 }, // DEFAULT { 1, "FFFFFF", "000000", 0 }, // ERROR { 2, "00FF00", "000000", 2 }, // COMMENTLINE { 3, "004000", "C0FFC0", 0 }, // POD { 4, "FF8000", "000000", 0 }, // NUMBER { 5, "FF6600", "000000", 1 }, // INSTRUCTION { 6, "66FF00", "000000", 0 }, // STRING { 7, "808000", "000000", 0 }, // CHARACTER { 8, "0080C0", "000000", 1 }, // CLASS NAME { 9, "8080FF", "FFFFCC", 1 }, // DEF NAME { 10, "FFCC00", "000000", 1 }, // OPERATOR { 11, "FFFFFF", "000000", 0 }, // IDENTIFIER { 12, "339999", "000000", 0 }, // REGEX { 13, "FFCC00", "000000", 1 }, // GLOBAL { 14, "FFFFFF", "000000", 0 }, // SYMBOL { 15, "EDF8F9", "000000", 1 }, // MODULE NAME { 16, "FFFFFF", "000000", 0 }, // INSTANCE VAR { 17, "FFFFFF", "000000", 0 }, // CLASS VAR { 18, "FFFF00", "A08080", 0 }, // BACKTICKS { 19, "600000", "FFF0D8", 0 }, // DATA SECTION { 24, "66FF00", "000000", 0 }, // STRING Q }; static const lexstyle global_Mono_Industrial[] = { { 32, "FFFFFF", "222C28", 0 }, // Default Style { 37, "888A85", "222C28", 0 }, // Indent guideline style { 34, "FCE94F", "222C28", 1 }, // Brace highlight style { 35, "EF2929", "222C28", 0 }, // Bad brace colour { 2069, "FFFFFF", "222C28", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "FFFFFF", "00FFFF", 0 }, // Mark Style 1 { 24, "FFFFFF", "FF8000", 0 }, // Mark Style 2 { 23, "FFFFFF", "FFFF00", 0 }, // Mark Style 3 { 22, "FFFFFF", "8000FF", 0 }, // Mark Style 4 { 21, "FFFFFF", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Mono_Industrial[] = { { 9, "A39E64", "222C28", 0 }, // PREPROCESSOR { 11, "FFFFFF", "222C28", 0 }, // DEFAULT { 5, "C23B00", "222C28", 0 }, // INSTRUCTION WORD { 16, "A39E64", "222C28", 0 }, // TYPE WORD { 4, "E98800", "222C28", 0 }, // NUMBER { 6, "FFFFFF", "222C28", 0 }, // STRING { 7, "FFFFFF", "222C28", 0 }, // CHARACTER { 10, "A8B3AB", "222C28", 0 }, // OPERATOR { 13, "E98800", "222C28", 0 }, // VERBATIM { 14, "FFFFFF", "222C28", 0 }, // REGEX { 1, "666C68", "222C28", 0 }, // COMMENT { 2, "666C68", "222C28", 0 }, // COMMENT LINE { 3, "666C68", "222C28", 0 }, // COMMENT DOC { 15, "666C68", "222C28", 0 }, // COMMENT LINE DOC { 17, "666C68", "222C28", 0 }, // COMMENT DOC KEYWORD { 18, "666C68", "222C28", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Mono_Industrial[] = { { 9, "A39E64", "222C28", 0 }, // PREPROCESSOR { 11, "FFFFFF", "222C28", 0 }, // DEFAULT { 5, "C23B00", "222C28", 0 }, // INSTRUCTION WORD { 16, "A39E64", "222C28", 0 }, // TYPE WORD { 4, "E98800", "222C28", 0 }, // NUMBER { 6, "FFFFFF", "222C28", 0 }, // STRING { 7, "FFFFFF", "222C28", 0 }, // CHARACTER { 10, "A8B3AB", "222C28", 0 }, // OPERATOR { 13, "E98800", "222C28", 0 }, // VERBATIM { 14, "FFFFFF", "222C28", 0 }, // REGEX { 1, "666C68", "222C28", 0 }, // COMMENT { 2, "666C68", "222C28", 0 }, // COMMENT LINE { 3, "666C68", "222C28", 0 }, // COMMENT DOC { 15, "666C68", "222C28", 0 }, // COMMENT LINE DOC { 17, "666C68", "222C28", 0 }, // COMMENT DOC KEYWORD { 18, "666C68", "222C28", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Mono_Industrial[] = { { 41, "FFFFFF", "222C28", 0 }, // DEFAULT { 45, "E98800", "222C28", 0 }, // NUMBER { 46, "FFFFFF", "222C28", 0 }, // WORD { 47, "A8B3AB", "222C28", 0 }, // KEYWORD { 48, "FFFFFF", "222C28", 0 }, // DOUBLESTRING { 49, "FFFFFF", "222C28", 0 }, // SINGLESTRING { 50, "FFFFFF", "222C28", 0 }, // SYMBOLS { 51, "FFFFFF", "222C28", 0 }, // STRINGEOL { 52, "FFFFFF", "222C28", 0 }, // REGEX { 42, "666C68", "222C28", 0 }, // COMMENT { 43, "666C68", "222C28", 0 }, // COMMENTLINE { 44, "666C68", "222C28", 0 }, // COMMENTDOC }; static const lexstyle python_Mono_Industrial[] = { { 0, "FFFFFF", "222C28", 0 }, // DEFAULT { 1, "666C68", "222C28", 0 }, // COMMENTLINE { 2, "E98800", "222C28", 0 }, // NUMBER { 3, "FFFFFF", "222C28", 0 }, // STRING { 4, "FFFFFF", "222C28", 0 }, // CHARACTER { 5, "A8B3AB", "222C28", 0 }, // KEYWORDS { 6, "000000", "222C28", 0 }, // TRIPLE { 7, "000000", "222C28", 0 }, // TRIPLEDOUBLE { 8, "000000", "222C28", 0 }, // CLASSNAME { 9, "000000", "222C28", 0 }, // DEFNAME { 10, "A8B3AB", "222C28", 0 }, // OPERATOR { 11, "C87500", "222C28", 0 }, // IDENTIFIER { 12, "666C68", "222C28", 0 }, // COMMENTBLOCK { 12, "FFFFFF", "222C28", 0 }, // STRINGEOL }; static const lexstyle ruby_Mono_Industrial[] = { { 0, "FFFFFF", "222C28", 0 }, // DEFAULT { 1, "000000", "222C28", 0 }, // ERROR { 2, "666C68", "222C28", 0 }, // COMMENTLINE { 3, "000000", "222C28", 0 }, // POD { 4, "E98800", "222C28", 0 }, // NUMBER { 5, "A39E64", "222C28", 0 }, // INSTRUCTION { 6, "FFFFFF", "222C28", 0 }, // STRING { 7, "FFFFFF", "222C28", 0 }, // CHARACTER { 8, "FFFFFF", "222C28", 0 }, // CLASS NAME { 9, "A8B3AB", "222C28", 0 }, // DEF NAME { 10, "A8B3AB", "222C28", 0 }, // OPERATOR { 11, "C87500", "222C28", 0 }, // IDENTIFIER { 12, "FFFFFF", "222C28", 0 }, // REGEX { 13, "648BD2", "222C28", 0 }, // GLOBAL { 14, "FFFFFF", "222C28", 0 }, // SYMBOL { 15, "000000", "222C28", 0 }, // MODULE NAME { 16, "648BD2", "222C28", 0 }, // INSTANCE VAR { 17, "000000", "222C28", 0 }, // CLASS VAR { 18, "000000", "222C28", 0 }, // BACKTICKS { 19, "000000", "222C28", 0 }, // DATA SECTION { 24, "FFFFFF", "222C28", 0 }, // STRING Q }; static const lexstyle global_Ruby_Blue[] = { { 32, "FFFFFF", "112435", 0 }, // Default Style { 37, "0080FF", "112435", 1 }, // Indent guideline style { 34, "FFFFFF", "112435", 0 }, // Brace highlight style { 35, "FFFFFF", "112435", 0 }, // Bad brace colour { 2069, "FFFFFF", "6699CC", 0 }, // Caret colour { 31, "FFFFFF", "112435", 0 }, // Find Mark Style { 33, "FFFFFF", "1F4661", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "FFFFFF", "00FFFF", 0 }, // Mark Style 1 { 24, "FFFFFF", "FF8000", 0 }, // Mark Style 2 { 23, "FFFFFF", "FFFF00", 0 }, // Mark Style 3 { 22, "FFFFFF", "8000FF", 0 }, // Mark Style 4 { 21, "FFFFFF", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Ruby_Blue[] = { { 9, "FFFFFF", "112435", 0 }, // PREPROCESSOR { 11, "FFFFFF", "112435", 0 }, // DEFAULT { 5, "FFFFFF", "112435", 0 }, // INSTRUCTION WORD { 16, "FFFFFF", "112435", 0 }, // TYPE WORD { 4, "FFFFFF", "112435", 0 }, // NUMBER { 6, "FFFFFF", "112435", 0 }, // STRING { 7, "FFFFFF", "112435", 0 }, // CHARACTER { 10, "FFFFFF", "112435", 0 }, // OPERATOR { 13, "FFFFFF", "112435", 0 }, // VERBATIM { 14, "FFFFFF", "112435", 0 }, // REGEX { 1, "FFFFFF", "112435", 0 }, // COMMENT { 2, "FFFFFF", "112435", 0 }, // COMMENT LINE { 3, "FFFFFF", "112435", 0 }, // COMMENT DOC { 15, "FFFFFF", "112435", 0 }, // COMMENT LINE DOC { 17, "FFFFFF", "112435", 0 }, // COMMENT DOC KEYWORD { 18, "FFFFFF", "112435", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Ruby_Blue[] = { { 9, "FFFFFF", "112435", 0 }, // PREPROCESSOR { 11, "FFFFFF", "112435", 0 }, // DEFAULT { 5, "FFFFFF", "112435", 0 }, // INSTRUCTION WORD { 16, "FFFFFF", "112435", 0 }, // TYPE WORD { 4, "FFFFFF", "112435", 0 }, // NUMBER { 6, "FFFFFF", "112435", 0 }, // STRING { 7, "FFFFFF", "112435", 0 }, // CHARACTER { 10, "FFFFFF", "112435", 0 }, // OPERATOR { 13, "FFFFFF", "112435", 0 }, // VERBATIM { 14, "FFFFFF", "112435", 0 }, // REGEX { 1, "FFFFFF", "112435", 0 }, // COMMENT { 2, "FFFFFF", "112435", 0 }, // COMMENT LINE { 3, "FFFFFF", "112435", 0 }, // COMMENT DOC { 15, "FFFFFF", "112435", 0 }, // COMMENT LINE DOC { 17, "FFFFFF", "112435", 0 }, // COMMENT DOC KEYWORD { 18, "FFFFFF", "112435", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Ruby_Blue[] = { { 41, "FFFFFF", "112435", 0 }, // DEFAULT { 45, "FF00FF", "112435", 0 }, // NUMBER { 46, "8DB0D3", "112435", 0 }, // WORD { 47, "FFFF80", "112435", 0 }, // KEYWORD { 48, "F08047", "112435", 0 }, // DOUBLESTRING { 49, "F08047", "112435", 0 }, // SINGLESTRING { 50, "7BD827", "112435", 0 }, // SYMBOLS { 51, "730080", "112435", 0 }, // STRINGEOL { 52, "FF00FF", "112435", 0 }, // REGEX { 42, "3A8BDA", "112435", 0 }, // COMMENT { 43, "3A8BDA", "112435", 0 }, // COMMENTLINE { 44, "3A8BDA", "112435", 0 }, // COMMENTDOC }; static const lexstyle python_Ruby_Blue[] = { { 0, "FFFFFF", "112435", 0 }, // DEFAULT { 1, "FFFFFF", "112435", 0 }, // COMMENTLINE { 2, "FFFFFF", "112435", 0 }, // NUMBER { 3, "FFFFFF", "112435", 0 }, // STRING { 4, "FFFFFF", "112435", 0 }, // CHARACTER { 5, "FFFFFF", "112435", 0 }, // KEYWORDS { 6, "FFFFFF", "112435", 0 }, // TRIPLE { 7, "FFFFFF", "112435", 0 }, // TRIPLEDOUBLE { 8, "FFFFFF", "112435", 0 }, // CLASSNAME { 9, "FFFFFF", "112435", 0 }, // DEFNAME { 10, "FFFFFF", "112435", 0 }, // OPERATOR { 11, "FFFFFF", "112435", 0 }, // IDENTIFIER { 12, "FFFFFF", "112435", 0 }, // COMMENTBLOCK { 12, "FFFFFF", "112435", 0 }, // STRINGEOL }; static const lexstyle ruby_Ruby_Blue[] = { { 0, "FFFFFF", "112435", 0 }, // DEFAULT { 1, "FFFFFF", "112435", 0 }, // ERROR { 2, "FFFFFF", "112435", 0 }, // COMMENTLINE { 3, "FFFFFF", "112435", 0 }, // POD { 4, "FFFFFF", "112435", 0 }, // NUMBER { 5, "FFFFFF", "112435", 0 }, // INSTRUCTION { 6, "FFFFFF", "112435", 0 }, // STRING { 7, "FFFFFF", "112435", 0 }, // CHARACTER { 8, "FFFFFF", "112435", 0 }, // CLASS NAME { 9, "FFFFFF", "112435", 0 }, // DEF NAME { 10, "FFFFFF", "112435", 0 }, // OPERATOR { 11, "FFFFFF", "112435", 0 }, // IDENTIFIER { 12, "FFFFFF", "112435", 0 }, // REGEX { 13, "FFFFFF", "112435", 0 }, // GLOBAL { 14, "FFFFFF", "112435", 0 }, // SYMBOL { 15, "FFFFFF", "112435", 0 }, // MODULE NAME { 16, "FFFFFF", "112435", 0 }, // INSTANCE VAR { 17, "FFFFFF", "112435", 0 }, // CLASS VAR { 18, "FFFFFF", "112435", 0 }, // BACKTICKS { 19, "FFFFFF", "112435", 0 }, // DATA SECTION { 24, "FFFFFF", "112435", 0 }, // STRING Q }; static const lexstyle global_Choco[] = { { 32, "C3BE98", "1A0F0B", 0 }, // Default Style { 37, "888A85", "1A0F0B", 0 }, // Indent guideline style { 34, "FCE94F", "1A0F0B", 1 }, // Brace highlight style { 35, "EF2929", "1A0F0B", 0 }, // Bad brace colour { 2069, "A7A7A7", "112435", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 25, "80D4B2", "00FFFF", 0 }, // Mark Style 1 { 24, "3FBA89", "FF8000", 0 }, // Mark Style 2 { 23, "101010", "FFFF00", 0 }, // Mark Style 3 { 22, "808080", "8000FF", 0 }, // Mark Style 4 { 21, "FAAA3C", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "972FFF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Choco[] = { { 9, "8996A8", "1A0F0B", 0 }, // PREPROCESSOR { 11, "C3BE98", "1A0F0B", 0 }, // DEFAULT { 5, "F1E694", "1A0F0B", 0 }, // INSTRUCTION WORD { 16, "B3935C", "1A0F0B", 0 }, // TYPE WORD { 4, "DA5659", "1A0F0B", 0 }, // NUMBER { 6, "7CA563", "1A0F0B", 0 }, // STRING { 7, "7CA563", "1A0F0B", 0 }, // CHARACTER { 10, "B3935C", "1A0F0B", 0 }, // OPERATOR { 13, "DA5659", "1A0F0B", 0 }, // VERBATIM { 14, "E9C062", "1A0F0B", 0 }, // REGEX { 1, "679D47", "1A0F0B", 0 }, // COMMENT { 2, "679D47", "1A0F0B", 0 }, // COMMENT LINE { 3, "679D47", "1A0F0B", 0 }, // COMMENT DOC { 15, "679D47", "1A0F0B", 0 }, // COMMENT LINE DOC { 17, "679D47", "1A0F0B", 0 }, // COMMENT DOC KEYWORD { 18, "679D47", "1A0F0B", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Choco[] = { { 9, "8996A8", "1A0F0B", 0 }, // PREPROCESSOR { 11, "C3BE98", "1A0F0B", 0 }, // DEFAULT { 5, "F1E694", "1A0F0B", 0 }, // INSTRUCTION WORD { 16, "B3935C", "1A0F0B", 0 }, // TYPE WORD { 4, "DA5659", "1A0F0B", 0 }, // NUMBER { 6, "7CA563", "1A0F0B", 0 }, // STRING { 7, "7CA563", "1A0F0B", 0 }, // CHARACTER { 10, "B3935C", "1A0F0B", 0 }, // OPERATOR { 13, "DA5659", "1A0F0B", 0 }, // VERBATIM { 14, "E9C062", "1A0F0B", 0 }, // REGEX { 1, "679D47", "1A0F0B", 0 }, // COMMENT { 2, "679D47", "1A0F0B", 0 }, // COMMENT LINE { 3, "679D47", "1A0F0B", 0 }, // COMMENT DOC { 15, "679D47", "1A0F0B", 0 }, // COMMENT LINE DOC { 17, "679D47", "1A0F0B", 0 }, // COMMENT DOC KEYWORD { 18, "679D47", "1A0F0B", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Choco[] = { { 41, "C3BE98", "1A0F0B", 0 }, // DEFAULT { 45, "DA5659", "1A0F0B", 0 }, // NUMBER { 46, "C3BE98", "1A0F0B", 0 }, // WORD { 47, "B3935C", "1A0F0B", 0 }, // KEYWORD { 48, "7CA563", "1A0F0B", 0 }, // DOUBLESTRING { 49, "7CA563", "1A0F0B", 0 }, // SINGLESTRING { 50, "C3BE98", "1A0F0B", 0 }, // SYMBOLS { 51, "7CA563", "1A0F0B", 0 }, // STRINGEOL { 52, "E9C062", "1A0F0B", 0 }, // REGEX { 42, "679D47", "1A0F0B", 0 }, // COMMENT { 43, "679D47", "1A0F0B", 0 }, // COMMENTLINE { 44, "679D47", "1A0F0B", 0 }, // COMMENTDOC }; static const lexstyle python_Choco[] = { { 0, "C3BE98", "1A0F0B", 0 }, // DEFAULT { 1, "679D47", "1A0F0B", 0 }, // COMMENTLINE { 2, "DA5659", "1A0F0B", 0 }, // NUMBER { 3, "7CA563", "1A0F0B", 0 }, // STRING { 4, "7CA563", "1A0F0B", 0 }, // CHARACTER { 5, "B3935C", "1A0F0B", 0 }, // KEYWORDS { 6, "000000", "1A0F0B", 0 }, // TRIPLE { 7, "000000", "1A0F0B", 0 }, // TRIPLEDOUBLE { 8, "000000", "1A0F0B", 0 }, // CLASSNAME { 9, "000000", "1A0F0B", 0 }, // DEFNAME { 10, "B3935C", "1A0F0B", 0 }, // OPERATOR { 11, "D77261", "1A0F0B", 0 }, // IDENTIFIER { 12, "679D47", "1A0F0B", 0 }, // COMMENTBLOCK { 12, "7CA563", "1A0F0B", 0 }, // STRINGEOL }; static const lexstyle ruby_Choco[] = { { 0, "C3BE98", "1A0F0B", 0 }, // DEFAULT { 1, "000000", "1A0F0B", 0 }, // ERROR { 2, "679D47", "1A0F0B", 0 }, // COMMENTLINE { 3, "000000", "1A0F0B", 0 }, // POD { 4, "DA5659", "1A0F0B", 0 }, // NUMBER { 5, "B3935C", "1A0F0B", 0 }, // INSTRUCTION { 6, "7CA563", "1A0F0B", 0 }, // STRING { 7, "7CA563", "1A0F0B", 0 }, // CHARACTER { 8, "6D4C2F", "1A0F0B", 0 }, // CLASS NAME { 9, "6D4C2F", "1A0F0B", 0 }, // DEF NAME { 10, "B3935C", "1A0F0B", 0 }, // OPERATOR { 11, "D77261", "1A0F0B", 0 }, // IDENTIFIER { 12, "E9C062", "1A0F0B", 0 }, // REGEX { 13, "7989A6", "1A0F0B", 0 }, // GLOBAL { 14, "C3BE98", "1A0F0B", 0 }, // SYMBOL { 15, "000000", "1A0F0B", 0 }, // MODULE NAME { 16, "7989A6", "1A0F0B", 0 }, // INSTANCE VAR { 17, "000000", "1A0F0B", 0 }, // CLASS VAR { 18, "000000", "1A0F0B", 0 }, // BACKTICKS { 19, "000000", "1A0F0B", 0 }, // DATA SECTION { 24, "7CA563", "1A0F0B", 0 }, // STRING Q }; static const lexstyle global_khaki[] = { { 32, "5f5f00", "d7d7af", 0 }, // Default Style { 37, "afaf87", "d7d7af", 0 }, // Indent guideline style { 34, "d7d7af", "005f00", 1 }, // Brace highlight style { 35, "ff005f", "d7d7af", 0 }, // Bad brace colour { 2069, "5f5f00", "d7d7af", 0 }, // Caret colour { 33, "5f5f00", "afaf87", 0 }, // Line number margin { 29, "5f5f00", "d7ff87", 0 }, // Smart HighLighting { 31, "5f5f00", "d7ff87", 0 }, // Find Mark Style { 25, "5f5f00", "af5f00", 0 }, // Mark Style 1 { 24, "5f5f00", "005f5f", 0 }, // Mark Style 2 { 23, "5f5f00", "afaf87", 0 }, // Mark Style 3 { 22, "5f5f00", "87005f", 0 }, // Mark Style 4 { 21, "5f5f00", "d7ff87", 0 }, // Mark Style 5 { 28, "5f5f00", "d7ff87", 0 }, // Incremental highlight all { 27, "5f5f00", "afff87", 0 }, // Tags match highlighting { 26, "5f5f00", "5faf5f", 0 }, // Tags attribute }; static const lexstyle cpp_khaki[] = { { 9, "5f0000", "d7d7af", 0 }, // PREPROCESSOR { 11, "5f5f00", "d7d7af", 0 }, // DEFAULT { 5, "87005f", "d7d7af", 0 }, // INSTRUCTION WORD { 16, "5f005f", "d7d7af", 0 }, // TYPE WORD { 4, "005f00", "d7d7af", 0 }, // NUMBER { 6, "005f5f", "d7d7af", 0 }, // STRING { 7, "005f5f", "d7d7af", 0 }, // CHARACTER { 10, "00005f", "d7d7af", 0 }, // OPERATOR { 13, "005f5f", "d7d7af", 0 }, // VERBATIM { 14, "0087af", "d7d7af", 0 }, // REGEX { 1, "87875f", "d7d7af", 2 }, // COMMENT { 2, "87875f", "d7d7af", 2 }, // COMMENT LINE { 3, "87875f", "d7d7af", 2 }, // COMMENT DOC { 15, "87875f", "d7d7af", 2 }, // COMMENT LINE DOC { 17, "87875f", "d7d7af", 3 }, // COMMENT DOC KEYWORD { 18, "d700d7", "d7d7af", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_khaki[] = { { 9, "5f0000", "d7d7af", 0 }, // PREPROCESSOR { 11, "5f5f00", "d7d7af", 0 }, // DEFAULT { 5, "87005f", "d7d7af", 0 }, // INSTRUCTION WORD { 16, "5f005f", "d7d7af", 0 }, // TYPE WORD { 4, "005f00", "d7d7af", 0 }, // NUMBER { 6, "005f5f", "d7d7af", 0 }, // STRING { 7, "005f5f", "d7d7af", 0 }, // CHARACTER { 10, "00005f", "d7d7af", 0 }, // OPERATOR { 13, "005f5f", "d7d7af", 0 }, // VERBATIM { 14, "0087af", "d7d7af", 0 }, // REGEX { 1, "87875f", "d7d7af", 2 }, // COMMENT { 2, "87875f", "d7d7af", 2 }, // COMMENT LINE { 3, "87875f", "d7d7af", 2 }, // COMMENT DOC { 15, "87875f", "d7d7af", 2 }, // COMMENT LINE DOC { 17, "005f5f", "d7d7af", 3 }, // COMMENT DOC KEYWORD { 18, "d700d7", "d7d7af", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_khaki[] = { { 41, "5f5f00", "d7d7af", 0 }, // DEFAULT { 45, "005f00", "d7d7af", 0 }, // NUMBER { 46, "000087", "d7d7af", 0 }, // WORD { 47, "87005f", "d7d7af", 0 }, // KEYWORD { 48, "005f5f", "d7d7af", 0 }, // DOUBLESTRING { 49, "005f5f", "d7d7af", 0 }, // SINGLESTRING { 50, "5f5f00", "d7d7af", 0 }, // SYMBOLS { 51, "af5f00", "d7d7af", 0 }, // STRINGEOL { 52, "0087af", "d7d7af", 0 }, // REGEX { 42, "87875f", "d7d7af", 2 }, // COMMENT { 43, "87875f", "d7d7af", 2 }, // COMMENTLINE { 44, "87875f", "d7d7af", 2 }, // COMMENTDOC { 17, "005f5f", "d7d7af", 3 }, // COMMENT DOC KEYWORD { 18, "d700d7", "d7d7af", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_khaki[] = { { 0, "5f5f00", "d7d7af", 0 }, // DEFAULT { 1, "87875f", "d7d7af", 2 }, // COMMENTLINE { 2, "005f00", "d7d7af", 0 }, // NUMBER { 3, "005f5f", "d7d7af", 0 }, // STRING { 4, "005f5f", "d7d7af", 0 }, // CHARACTER { 5, "87005f", "d7d7af", 0 }, // KEYWORDS { 6, "005f5f", "d7d7af", 0 }, // TRIPLE { 7, "005f5f", "d7d7af", 0 }, // TRIPLEDOUBLE { 8, "5f0000", "d7d7af", 0 }, // CLASSNAME { 9, "af0000", "d7d7af", 0 }, // DEFNAME { 10, "00005f", "d7d7af", 0 }, // OPERATOR { 11, "000087", "d7d7af", 0 }, // IDENTIFIER { 12, "87875f", "d7d7af", 2 }, // COMMENTBLOCK { 12, "87875f", "d7d7af", 0 }, // STRINGEOL }; static const lexstyle ruby_khaki[] = { { 0, "5f5f00", "d7d7af", 0 }, // DEFAULT { 1, "af5f00", "d7d7af", 0 }, // ERROR { 2, "87875f", "d7d7af", 2 }, // COMMENTLINE { 3, "5f5f00", "d7d7af", 2 }, // POD { 4, "005f00", "d7d7af", 0 }, // NUMBER { 5, "87005f", "d7d7af", 0 }, // INSTRUCTION { 6, "005f5f", "d7d7af", 0 }, // STRING { 7, "005f5f", "d7d7af", 0 }, // CHARACTER { 8, "5f0000", "d7d7af", 0 }, // CLASS NAME { 9, "005f5f", "d7d7af", 0 }, // DEF NAME { 10, "00005f", "d7d7af", 0 }, // OPERATOR { 11, "000087", "d7d7af", 0 }, // IDENTIFIER { 12, "0087af", "d7d7af", 0 }, // REGEX { 13, "000087", "d7d7af", 0 }, // GLOBAL { 14, "5f5f00", "d7d7af", 0 }, // SYMBOL { 15, "af0000", "d7d7af", 0 }, // MODULE NAME { 16, "000087", "d7d7af", 0 }, // INSTANCE VAR { 17, "000087", "d7d7af", 0 }, // CLASS VAR { 18, "af0000", "d7d7af", 0 }, // BACKTICKS { 19, "005f5f", "d7d7af", 0 }, // DATA SECTION { 24, "005f5f", "d7d7af", 0 }, // STRING Q { 25, "005f5f", "d7d7af", 0 }, // BOOLEAN }; static const lexstyle global_Bespin[] = { { 32, "BDAE9D", "2A211C", 0 }, // Default Style { 37, "888A85", "2A211C", 0 }, // Indent guideline style { 34, "E5C138", "2A211C", 1 }, // Brace highlight style { 35, "EF2929", "2A211C", 0 }, // Bad brace colour { 2069, "37A8ED", "80FF00", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "E5C138", "4C4A41", 0 }, // Line number margin { 29, "555753", "FF0080", 0 }, // Smart HighLighting { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 25, "BDAE9D", "00FFFF", 0 }, // Mark Style 1 { 24, "FAAA3C", "FF8000", 0 }, // Mark Style 2 { 23, "FFFF80", "FFFF00", 0 }, // Mark Style 3 { 22, "000000", "8000FF", 0 }, // Mark Style 4 { 21, "808080", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "808000", 0 }, // Tags match highlighting { 26, "8080C0", "808080", 0 }, // Tags attribute }; static const lexstyle cpp_Bespin[] = { { 9, "FFAA00", "2A211C", 0 }, // PREPROCESSOR { 11, "F8F8F8", "2A211C", 0 }, // DEFAULT { 5, "F6F080", "2A211C", 0 }, // INSTRUCTION WORD { 16, "FFAA00", "2A211C", 0 }, // TYPE WORD { 4, "FF3A83", "2A211C", 0 }, // NUMBER { 6, "55E439", "2A211C", 0 }, // STRING { 7, "55E439", "2A211C", 0 }, // CHARACTER { 10, "FFAA00", "2A211C", 0 }, // OPERATOR { 13, "FF3A83", "2A211C", 0 }, // VERBATIM { 14, "FFB454", "2A211C", 0 }, // REGEX { 1, "1E9AE0", "2A211C", 0 }, // COMMENT { 2, "1E9AE0", "2A211C", 0 }, // COMMENT LINE { 3, "1E9AE0", "2A211C", 0 }, // COMMENT DOC { 15, "1E9AE0", "2A211C", 0 }, // COMMENT LINE DOC { 17, "1E9AE0", "2A211C", 0 }, // COMMENT DOC KEYWORD { 18, "1E9AE0", "2A211C", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Bespin[] = { { 9, "FFAA00", "2A211C", 0 }, // PREPROCESSOR { 11, "F8F8F8", "2A211C", 0 }, // DEFAULT { 5, "F6F080", "2A211C", 0 }, // INSTRUCTION WORD { 16, "FFAA00", "2A211C", 0 }, // TYPE WORD { 4, "FF3A83", "2A211C", 0 }, // NUMBER { 6, "55E439", "2A211C", 0 }, // STRING { 7, "55E439", "2A211C", 0 }, // CHARACTER { 10, "FFAA00", "2A211C", 0 }, // OPERATOR { 13, "FF3A83", "2A211C", 0 }, // VERBATIM { 14, "FFB454", "2A211C", 0 }, // REGEX { 1, "1E9AE0", "2A211C", 0 }, // COMMENT { 2, "1E9AE0", "2A211C", 0 }, // COMMENT LINE { 3, "1E9AE0", "2A211C", 0 }, // COMMENT DOC { 15, "1E9AE0", "2A211C", 0 }, // COMMENT LINE DOC { 17, "1E9AE0", "2A211C", 0 }, // COMMENT DOC KEYWORD { 18, "1E9AE0", "2A211C", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Bespin[] = { { 41, "BDAF9D", "2A211C", 0 }, // DEFAULT { 45, "FF3A83", "2A211C", 0 }, // NUMBER { 46, "BDAE9D", "2A211C", 0 }, // WORD { 47, "37A3ED", "2A211C", 0 }, // KEYWORD { 16, "FF5555", "2A211C", 0 }, // USER-DEFINED { 48, "00FF40", "2A211C", 0 }, // DOUBLESTRING { 49, "80FF00", "2A211C", 0 }, // SINGLESTRING { 50, "E5C138", "2A211C", 0 }, // SYMBOLS { 51, "55E439", "2A211C", 0 }, // STRINGEOL { 52, "FFB454", "2A211C", 0 }, // REGEX { 42, "666666", "2A211C", 0 }, // COMMENT { 43, "666666", "2A211C", 0 }, // COMMENTLINE { 44, "FFFF80", "2A211C", 0 }, // COMMENTDOC { 17, "FF0080", "2A211C", 0 }, // COMMENT DOC KEYWORD { 18, "FF0080", "2A211C", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_Bespin[] = { { 0, "F8F8F8", "2A211C", 0 }, // DEFAULT { 1, "1E9AE0", "2A211C", 0 }, // COMMENTLINE { 2, "FF3A83", "2A211C", 0 }, // NUMBER { 3, "55E439", "2A211C", 0 }, // STRING { 4, "55E439", "2A211C", 0 }, // CHARACTER { 5, "FFAA00", "2A211C", 0 }, // KEYWORDS { 6, "000000", "2A211C", 0 }, // TRIPLE { 7, "000000", "2A211C", 0 }, // TRIPLEDOUBLE { 8, "000000", "2A211C", 0 }, // CLASSNAME { 9, "000000", "2A211C", 0 }, // DEFNAME { 10, "FFAA00", "2A211C", 0 }, // OPERATOR { 11, "EB939A", "2A211C", 0 }, // IDENTIFIER { 12, "1E9AE0", "2A211C", 0 }, // COMMENTBLOCK { 12, "55E439", "2A211C", 0 }, // STRINGEOL }; static const lexstyle ruby_Bespin[] = { { 0, "F8F8F8", "2A211C", 0 }, // DEFAULT { 1, "000000", "2A211C", 0 }, // ERROR { 2, "1E9AE0", "2A211C", 0 }, // COMMENTLINE { 3, "000000", "2A211C", 0 }, // POD { 4, "FF3A83", "2A211C", 0 }, // NUMBER { 5, "FFAA00", "2A211C", 0 }, // INSTRUCTION { 6, "55E439", "2A211C", 0 }, // STRING { 7, "55E439", "2A211C", 0 }, // CHARACTER { 8, "EFE900", "2A211C", 0 }, // CLASS NAME { 9, "EFE900", "2A211C", 0 }, // DEF NAME { 10, "FFAA00", "2A211C", 0 }, // OPERATOR { 11, "EB939A", "2A211C", 0 }, // IDENTIFIER { 12, "FFB454", "2A211C", 0 }, // REGEX { 13, "FB9A4B", "2A211C", 0 }, // GLOBAL { 14, "F8F8F8", "2A211C", 0 }, // SYMBOL { 15, "000000", "2A211C", 0 }, // MODULE NAME { 16, "FB9A4B", "2A211C", 0 }, // INSTANCE VAR { 17, "000000", "2A211C", 0 }, // CLASS VAR { 18, "000000", "2A211C", 0 }, // BACKTICKS { 19, "000000", "2A211C", 0 }, // DATA SECTION { 24, "55E439", "2A211C", 0 }, // STRING Q }; static const lexstyle global_Zenburn[] = { { 32, "DCDCCC", "3F3F3F", 0 }, // Default Style { 37, "4F5F5F", "3F3F3F", 0 }, // Indent guideline style { 34, "F0F9F9", "3F3F3F", 1 }, // Brace highlight style { 35, "F09F9F", "3F3F3F", 0 }, // Bad brace colour { 2069, "8FAF9F", "3F3F3F", 0 }, // Caret colour { 33, "8A8A8A", "0C0C0C", 0 }, // Line number margin { 29, "DCDCCC", "358A35", 0 }, // Smart HighLighting { 31, "DCDCCC", "FF0000", 0 }, // Find Mark Style { 25, "DCDCCC", "88B090", 0 }, // Mark Style 1 { 24, "DCDCCC", "F8F893", 0 }, // Mark Style 2 { 23, "DCDCCC", "F18C96", 0 }, // Mark Style 3 { 22, "DCDCCC", "408040", 0 }, // Mark Style 4 { 21, "DCDCCC", "968CF1", 0 }, // Mark Style 5 { 28, "DCDCCC", "C3BF9F", 0 }, // Incremental highlight all { 27, "DCDCCC", "C6C600", 0 }, // Tags match highlighting { 26, "DCDCCC", "78926F", 0 }, // Tags attribute }; static const lexstyle cpp_Zenburn[] = { { 9, "FFCFAF", "3F3F3F", 0 }, // PREPROCESSOR { 11, "DCDCCC", "3F3F3F", 0 }, // DEFAULT { 5, "DFC47D", "3F3F3F", 1 }, // INSTRUCTION WORD { 16, "CEDF99", "3F3F3F", 1 }, // TYPE WORD { 4, "8CD0D3", "3F3F3F", 0 }, // NUMBER { 6, "CC9393", "3F3F3F", 0 }, // STRING { 7, "DCA3A3", "3F3F3F", 0 }, // CHARACTER { 10, "9F9D6D", "3F3F3F", 1 }, // OPERATOR { 13, "CC9393", "3F3F3F", 0 }, // VERBATIM { 14, "C89191", "3F3F3F", 1 }, // REGEX { 1, "7F9F7F", "3F3F3F", 3 }, // COMMENT { 2, "7F9F7F", "3F3F3F", 3 }, // COMMENT LINE { 3, "7F9F7F", "3F3F3F", 2 }, // COMMENT DOC { 15, "7F9F7F", "3F3F3F", 2 }, // COMMENT LINE DOC { 17, "7F9F7F", "3F3F3F", 3 }, // COMMENT DOC KEYWORD { 18, "7F9F7F", "3F3F3F", 2 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Zenburn[] = { { 9, "FFCFAF", "3F3F3F", 0 }, // PREPROCESSOR { 11, "DCDCCC", "3F3F3F", 0 }, // DEFAULT { 5, "DFC47D", "3F3F3F", 1 }, // INSTRUCTION WORD { 16, "CEDF99", "3F3F3F", 1 }, // TYPE WORD { 4, "8CD0D3", "3F3F3F", 0 }, // NUMBER { 6, "CC9393", "3F3F3F", 0 }, // STRING { 7, "DCA3A3", "3F3F3F", 0 }, // CHARACTER { 10, "9F9D6D", "3F3F3F", 1 }, // OPERATOR { 13, "CC9393", "3F3F3F", 0 }, // VERBATIM { 14, "C89191", "3F3F3F", 1 }, // REGEX { 1, "7F9F7F", "3F3F3F", 3 }, // COMMENT { 2, "7F9F7F", "3F3F3F", 3 }, // COMMENT LINE { 3, "7F9F7F", "3F3F3F", 3 }, // COMMENT DOC { 15, "7F9F7F", "3F3F3F", 2 }, // COMMENT LINE DOC { 17, "7F9F7F", "3F3F3F", 2 }, // COMMENT DOC KEYWORD { 18, "7F9F7F", "3F3F3F", 2 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Zenburn[] = { { 41, "DCDCCC", "3F3F3F", 0 }, // DEFAULT { 45, "8CD0D3", "3F3F3F", 0 }, // NUMBER { 46, "DCDCCC", "3F3F3F", 0 }, // WORD { 47, "CEDF99", "3F3F3F", 3 }, // KEYWORD { 48, "CC9393", "3F3F3F", 0 }, // DOUBLESTRING { 49, "CC9393", "3F3F3F", 0 }, // SINGLESTRING { 50, "DFC47D", "3F3F3F", 1 }, // SYMBOLS { 52, "CC9393", "3F3F3F", 1 }, // REGEX { 42, "7F9F7F", "3F3F3F", 3 }, // COMMENT { 43, "7F9F7F", "3F3F3F", 3 }, // COMMENTLINE { 44, "7F9F7F", "3F3F3F", 2 }, // COMMENTDOC }; static const lexstyle python_Zenburn[] = { { 0, "DCDCCC", "3F3F3F", 0 }, // DEFAULT { 1, "7F9F7F", "3F3F3F", 3 }, // COMMENTLINE { 2, "8CD0D3", "3F3F3F", 0 }, // NUMBER { 3, "CC9393", "3F3F3F", 0 }, // STRING { 4, "DCA3A3", "3F3F3F", 0 }, // CHARACTER { 5, "DFC47D", "3F3F3F", 1 }, // KEYWORDS { 6, "7F9F7F", "3F3F3F", 0 }, // TRIPLE { 7, "7F9F7F", "3F3F3F", 0 }, // TRIPLEDOUBLE { 8, "DCDCCC", "3F3F3F", 0 }, // CLASSNAME { 9, "CEDF99", "3F3F3F", 0 }, // DEFNAME { 10, "9F9D6D", "3F3F3F", 1 }, // OPERATOR { 11, "DCDCCC", "3F3F3F", 0 }, // IDENTIFIER { 12, "7F9F7F", "3F3F3F", 0 }, // COMMENTBLOCK }; static const lexstyle ruby_Zenburn[] = { { 0, "DCDCCC", "3F3F3F", 0 }, // DEFAULT { 1, "EBD6EB", "3F3F3F", 0 }, // ERROR { 2, "7F9F7F", "3F3F3F", 3 }, // COMMENTLINE { 3, "DCDCCC", "3F3F3F", 0 }, // POD { 4, "8CD0D3", "3F3F3F", 0 }, // NUMBER { 5, "E3CEAB", "3F3F3F", 1 }, // INSTRUCTION { 6, "CC9393", "3F3F3F", 0 }, // STRING { 7, "DCA3A3", "3F3F3F", 0 }, // CHARACTER { 8, "DFE4CF", "3F3F3F", 1 }, // CLASS NAME { 9, "EFEF8F", "3F3F3F", 0 }, // DEF NAME { 10, "9F9D6D", "3F3F3F", 1 }, // OPERATOR { 11, "FFEBDD", "3F3F3F", 0 }, // IDENTIFIER { 12, "CC9393", "3F3F3F", 1 }, // REGEX { 13, "FFEBDD", "3F3F3F", 3 }, // GLOBAL { 14, "E3CEAB", "3F3F3F", 0 }, // SYMBOL { 15, "DCDCCC", "3F3F3F", 1 }, // MODULE NAME { 16, "FFCFAF", "3F3F3F", 0 }, // INSTANCE VAR { 17, "FFCFAF", "3F3F3F", 1 }, // CLASS VAR { 18, "DCDCCC", "3F3F3F", 0 }, // BACKTICKS { 19, "DCDCCC", "3F3F3F", 0 }, // DATA SECTION { 24, "C89191", "3F3F3F", 0 }, // STRING Q }; static const lexstyle global_Plastic_Code_Wrap[] = { { 32, "F8F8F8", "0B161D", 0 }, // Default Style { 37, "888A85", "0B161D", 0 }, // Indent guideline style { 34, "FCE94F", "0B161D", 1 }, // Brace highlight style { 35, "EF2929", "0B161D", 0 }, // Bad brace colour { 2069, "8BA7A7", "0B161D", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "F8F8F8", "00FFFF", 0 }, // Mark Style 1 { 24, "F8F8F8", "FF8000", 0 }, // Mark Style 2 { 23, "F8F8F8", "FFFF00", 0 }, // Mark Style 3 { 22, "F8F8F8", "8000FF", 0 }, // Mark Style 4 { 21, "F8F8F8", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Plastic_Code_Wrap[] = { { 9, "FFAA00", "0B161D", 0 }, // PREPROCESSOR { 11, "F8F8F8", "0B161D", 0 }, // DEFAULT { 5, "F6F080", "0B161D", 0 }, // INSTRUCTION WORD { 16, "FFAA00", "0B161D", 0 }, // TYPE WORD { 4, "FF3A83", "0B161D", 0 }, // NUMBER { 6, "55E439", "0B161D", 0 }, // STRING { 7, "55E439", "0B161D", 0 }, // CHARACTER { 10, "FFAA00", "0B161D", 0 }, // OPERATOR { 13, "FF3A83", "0B161D", 0 }, // VERBATIM { 14, "FFB454", "0B161D", 0 }, // REGEX { 1, "1E9AE0", "0B161D", 0 }, // COMMENT { 2, "1E9AE0", "0B161D", 0 }, // COMMENT LINE { 3, "1E9AE0", "0B161D", 0 }, // COMMENT DOC { 15, "1E9AE0", "0B161D", 0 }, // COMMENT LINE DOC { 17, "1E9AE0", "0B161D", 0 }, // COMMENT DOC KEYWORD { 18, "1E9AE0", "0B161D", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Plastic_Code_Wrap[] = { { 9, "FFAA00", "0B161D", 0 }, // PREPROCESSOR { 11, "F8F8F8", "0B161D", 0 }, // DEFAULT { 5, "F6F080", "0B161D", 0 }, // INSTRUCTION WORD { 16, "FFAA00", "0B161D", 0 }, // TYPE WORD { 4, "FF3A83", "0B161D", 0 }, // NUMBER { 6, "55E439", "0B161D", 0 }, // STRING { 7, "55E439", "0B161D", 0 }, // CHARACTER { 10, "FFAA00", "0B161D", 0 }, // OPERATOR { 13, "FF3A83", "0B161D", 0 }, // VERBATIM { 14, "FFB454", "0B161D", 0 }, // REGEX { 1, "1E9AE0", "0B161D", 0 }, // COMMENT { 2, "1E9AE0", "0B161D", 0 }, // COMMENT LINE { 3, "1E9AE0", "0B161D", 0 }, // COMMENT DOC { 15, "1E9AE0", "0B161D", 0 }, // COMMENT LINE DOC { 17, "1E9AE0", "0B161D", 0 }, // COMMENT DOC KEYWORD { 18, "1E9AE0", "0B161D", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Plastic_Code_Wrap[] = { { 41, "F8F8F8", "0B161D", 0 }, // DEFAULT { 45, "FF3A83", "0B161D", 0 }, // NUMBER { 46, "F8F8F8", "0B161D", 0 }, // WORD { 47, "FFAA00", "0B161D", 0 }, // KEYWORD { 48, "55E439", "0B161D", 0 }, // DOUBLESTRING { 49, "55E439", "0B161D", 0 }, // SINGLESTRING { 50, "F8F8F8", "0B161D", 0 }, // SYMBOLS { 51, "55E439", "0B161D", 0 }, // STRINGEOL { 52, "FFB454", "0B161D", 0 }, // REGEX { 42, "1E9AE0", "0B161D", 0 }, // COMMENT { 43, "1E9AE0", "0B161D", 0 }, // COMMENTLINE { 44, "1E9AE0", "0B161D", 0 }, // COMMENTDOC }; static const lexstyle python_Plastic_Code_Wrap[] = { { 0, "F8F8F8", "0B161D", 0 }, // DEFAULT { 1, "1E9AE0", "0B161D", 0 }, // COMMENTLINE { 2, "FF3A83", "0B161D", 0 }, // NUMBER { 3, "55E439", "0B161D", 0 }, // STRING { 4, "55E439", "0B161D", 0 }, // CHARACTER { 5, "FFAA00", "0B161D", 0 }, // KEYWORDS { 6, "000000", "0B161D", 0 }, // TRIPLE { 7, "000000", "0B161D", 0 }, // TRIPLEDOUBLE { 8, "000000", "0B161D", 0 }, // CLASSNAME { 9, "000000", "0B161D", 0 }, // DEFNAME { 10, "FFAA00", "0B161D", 0 }, // OPERATOR { 11, "EB939A", "0B161D", 0 }, // IDENTIFIER { 12, "1E9AE0", "0B161D", 0 }, // COMMENTBLOCK { 12, "55E439", "0B161D", 0 }, // STRINGEOL }; static const lexstyle ruby_Plastic_Code_Wrap[] = { { 0, "F8F8F8", "0B161D", 0 }, // DEFAULT { 1, "000000", "0B161D", 0 }, // ERROR { 2, "1E9AE0", "0B161D", 0 }, // COMMENTLINE { 3, "000000", "0B161D", 0 }, // POD { 4, "FF3A83", "0B161D", 0 }, // NUMBER { 5, "FFAA00", "0B161D", 0 }, // INSTRUCTION { 6, "55E439", "0B161D", 0 }, // STRING { 7, "55E439", "0B161D", 0 }, // CHARACTER { 8, "EFE900", "0B161D", 0 }, // CLASS NAME { 9, "EFE900", "0B161D", 0 }, // DEF NAME { 10, "FFAA00", "0B161D", 0 }, // OPERATOR { 11, "EB939A", "0B161D", 0 }, // IDENTIFIER { 12, "FFB454", "0B161D", 0 }, // REGEX { 13, "FB9A4B", "0B161D", 0 }, // GLOBAL { 14, "F8F8F8", "0B161D", 0 }, // SYMBOL { 15, "000000", "0B161D", 0 }, // MODULE NAME { 16, "FB9A4B", "0B161D", 0 }, // INSTANCE VAR { 17, "000000", "0B161D", 0 }, // CLASS VAR { 18, "000000", "0B161D", 0 }, // BACKTICKS { 19, "000000", "0B161D", 0 }, // DATA SECTION { 24, "55E439", "0B161D", 0 }, // STRING Q }; static const lexstyle global_Solarized[] = { { 32, "839496", "002B36", 0 }, // Default Style { 37, "586E75", "002B36", 0 }, // Indent guideline style { 34, "DC322F", "859900", 1 }, // Brace highlight style { 35, "D33682", "002B36", 0 }, // Bad brace colour { 2069, "EEE8D5", "002B36", 0 }, // Caret colour { 33, "586E75", "073642", 0 }, // Line number margin { 29, "839496", "FDF6E3", 0 }, // Smart HighLighting { 31, "839496", "6C71C4", 0 }, // Find Mark Style { 25, "839496", "DC322F", 0 }, // Mark Style 1 { 24, "839496", "268BD2", 0 }, // Mark Style 2 { 23, "839496", "2AA198", 0 }, // Mark Style 3 { 22, "839496", "859900", 0 }, // Mark Style 4 { 21, "839496", "B58900", 0 }, // Mark Style 5 { 28, "839496", "002B36", 0 }, // Incremental highlight all { 27, "839496", "CB4B16", 0 }, // Tags match highlighting { 26, "839496", "CB4B16", 0 }, // Tags attribute }; static const lexstyle cpp_Solarized[] = { { 9, "DC322F", "002B36", 0 }, // PREPROCESSOR { 11, "839496", "002B36", 0 }, // DEFAULT { 5, "859900", "002B36", 0 }, // INSTRUCTION WORD { 16, "B58900", "002B36", 0 }, // TYPE WORD { 4, "2AA198", "002B36", 0 }, // NUMBER { 6, "2AA198", "002B36", 0 }, // STRING { 7, "2AA198", "002B36", 0 }, // CHARACTER { 10, "93A1A1", "002B36", 0 }, // OPERATOR { 13, "2AA198", "002B36", 0 }, // VERBATIM { 14, "268BD2", "002B36", 0 }, // REGEX { 1, "586E75", "002B36", 2 }, // COMMENT { 2, "586E75", "002B36", 2 }, // COMMENT LINE { 3, "586E75", "002B36", 2 }, // COMMENT DOC { 15, "586E75", "002B36", 2 }, // COMMENT LINE DOC { 17, "586E75", "002B36", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "002B36", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Solarized[] = { { 9, "DC322F", "002B36", 0 }, // PREPROCESSOR { 11, "839496", "002B36", 0 }, // DEFAULT { 5, "859900", "002B36", 0 }, // INSTRUCTION WORD { 16, "B58900", "002B36", 0 }, // TYPE WORD { 4, "2AA198", "002B36", 0 }, // NUMBER { 6, "2AA198", "002B36", 0 }, // STRING { 7, "2AA198", "002B36", 0 }, // CHARACTER { 10, "93A1A1", "002B36", 0 }, // OPERATOR { 13, "2AA198", "002B36", 0 }, // VERBATIM { 14, "268BD2", "002B36", 0 }, // REGEX { 1, "586E75", "002B36", 2 }, // COMMENT { 2, "586E75", "002B36", 2 }, // COMMENT LINE { 3, "586E75", "002B36", 2 }, // COMMENT DOC { 15, "586E75", "002B36", 2 }, // COMMENT LINE DOC { 17, "268BD2", "002B36", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "002B36", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Solarized[] = { { 41, "839496", "002B36", 0 }, // DEFAULT { 45, "2AA198", "002B36", 0 }, // NUMBER { 46, "B58900", "002B36", 0 }, // WORD { 47, "859900", "002B36", 0 }, // KEYWORD { 48, "2AA198", "002B36", 0 }, // DOUBLESTRING { 49, "2AA198", "002B36", 0 }, // SINGLESTRING { 50, "839496", "002B36", 0 }, // SYMBOLS { 51, "DC322F", "002B36", 0 }, // STRINGEOL { 52, "268BD2", "002B36", 0 }, // REGEX { 42, "586E75", "002B36", 2 }, // COMMENT { 43, "586E75", "002B36", 2 }, // COMMENTLINE { 44, "586E75", "002B36", 2 }, // COMMENTDOC { 17, "268BD2", "002B36", 3 }, // COMMENT DOC KEYWORD { 18, "D33682", "002B36", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_Solarized[] = { { 0, "839496", "002B36", 0 }, // DEFAULT { 1, "586E75", "002B36", 2 }, // COMMENTLINE { 2, "2AA198", "002B36", 0 }, // NUMBER { 3, "2AA198", "002B36", 0 }, // STRING { 4, "2AA198", "002B36", 0 }, // CHARACTER { 5, "859900", "002B36", 0 }, // KEYWORDS { 6, "2AA198", "002B36", 0 }, // TRIPLE { 7, "2AA198", "002B36", 0 }, // TRIPLEDOUBLE { 8, "CB4B16", "002B36", 0 }, // CLASSNAME { 9, "CB4B16", "002B36", 0 }, // DEFNAME { 10, "93A1A1", "002B36", 0 }, // OPERATOR { 11, "B58900", "002B36", 0 }, // IDENTIFIER { 12, "586E75", "002B36", 2 }, // COMMENTBLOCK { 12, "586E75", "002B36", 0 }, // STRINGEOL }; static const lexstyle ruby_Solarized[] = { { 0, "839496", "002B36", 0 }, // DEFAULT { 1, "DC322F", "002B36", 0 }, // ERROR { 2, "586E75", "002B36", 2 }, // COMMENTLINE { 3, "839496", "002B36", 2 }, // POD { 4, "2AA198", "002B36", 0 }, // NUMBER { 5, "859900", "002B36", 0 }, // INSTRUCTION { 6, "2AA198", "002B36", 0 }, // STRING { 7, "2AA198", "002B36", 0 }, // CHARACTER { 8, "B58900", "002B36", 0 }, // CLASS NAME { 9, "268BD2", "002B36", 0 }, // DEF NAME { 10, "93A1A1", "002B36", 0 }, // OPERATOR { 11, "B58900", "002B36", 0 }, // IDENTIFIER { 12, "268BD2", "002B36", 0 }, // REGEX { 13, "B58900", "002B36", 0 }, // GLOBAL { 14, "839496", "002B36", 0 }, // SYMBOL { 15, "CB4B16", "002B36", 0 }, // MODULE NAME { 16, "B58900", "002B36", 0 }, // INSTANCE VAR { 17, "839496", "002B36", 0 }, // CLASS VAR { 18, "EEE8D5", "6C71C4", 0 }, // BACKTICKS { 19, "2AA198", "002B36", 0 }, // DATA SECTION { 24, "2AA198", "002B36", 0 }, // STRING Q { 25, "268BD2", "002B36", 0 }, // BOOLEAN }; static const lexstyle global_Hello_Kitty[] = { { 32, "000000", "FFB0FF", 0 }, // Default Style { 37, "C0C0C0", "FFB0FF", 0 }, // Indent guideline style { 34, "FF0000", "FFB0FF", 1 }, // Brace highlight style { 35, "800000", "FFB0FF", 0 }, // Bad brace colour { 2069, "FFFFFF", "372017", 0 }, // Caret colour { 33, "FFFFFF", "FF80FF", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "000000", "00FFFF", 0 }, // Mark Style 1 { 24, "000000", "FF8000", 0 }, // Mark Style 2 { 23, "000000", "FFFF00", 0 }, // Mark Style 3 { 22, "000000", "8000FF", 0 }, // Mark Style 4 { 21, "FAAA3C", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Hello_Kitty[] = { { 9, "804000", "FFB0FF", 0 }, // PREPROCESSOR { 11, "000000", "FFB0FF", 0 }, // DEFAULT { 5, "0000FF", "FFB0FF", 1 }, // INSTRUCTION WORD { 16, "8000FF", "FFB0FF", 0 }, // TYPE WORD { 4, "FF8000", "FFB0FF", 0 }, // NUMBER { 6, "808080", "FFB0FF", 0 }, // STRING { 7, "808080", "FFB0FF", 0 }, // CHARACTER { 10, "000080", "FFB0FF", 1 }, // OPERATOR { 13, "000000", "FFB0FF", 0 }, // VERBATIM { 14, "000000", "FFB0FF", 1 }, // REGEX { 1, "008000", "FFB0FF", 0 }, // COMMENT { 2, "008000", "FFB0FF", 0 }, // COMMENT LINE { 3, "008080", "FFB0FF", 0 }, // COMMENT DOC { 15, "008080", "FFB0FF", 0 }, // COMMENT LINE DOC { 17, "008080", "FFB0FF", 1 }, // COMMENT DOC KEYWORD { 18, "008080", "FFB0FF", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Hello_Kitty[] = { { 9, "804000", "FFB0FF", 0 }, // PREPROCESSOR { 11, "000000", "FFB0FF", 0 }, // DEFAULT { 5, "0000FF", "FFB0FF", 1 }, // INSTRUCTION WORD { 16, "8000FF", "FFB0FF", 0 }, // TYPE WORD { 4, "FF8000", "FFB0FF", 0 }, // NUMBER { 6, "808080", "FFB0FF", 0 }, // STRING { 7, "808080", "FFB0FF", 0 }, // CHARACTER { 10, "000080", "FFB0FF", 1 }, // OPERATOR { 13, "000000", "FFB0FF", 0 }, // VERBATIM { 14, "000000", "FFB0FF", 1 }, // REGEX { 1, "008000", "FFB0FF", 0 }, // COMMENT { 2, "008000", "FFB0FF", 0 }, // COMMENT LINE { 3, "008080", "FFB0FF", 0 }, // COMMENT DOC { 15, "008080", "FFB0FF", 0 }, // COMMENT LINE DOC { 17, "008080", "FFB0FF", 1 }, // COMMENT DOC KEYWORD { 18, "008080", "FFB0FF", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Hello_Kitty[] = { { 41, "000000", "F2F4FF", 0 }, // DEFAULT { 45, "FF0000", "F2F4FF", 0 }, // NUMBER { 46, "000000", "F2F4FF", 0 }, // WORD { 47, "000080", "F2F4FF", 3 }, // KEYWORD { 48, "808080", "F2F4FF", 0 }, // DOUBLESTRING { 49, "808080", "F2F4FF", 0 }, // SINGLESTRING { 50, "000000", "F2F4FF", 1 }, // SYMBOLS { 51, "808080", "F2F4FF", 1 }, // STRINGEOL { 52, "8000FF", "F2F4FF", 0 }, // REGEX { 42, "008000", "F2F4FF", 0 }, // COMMENT { 43, "008000", "F2F4FF", 0 }, // COMMENTLINE { 44, "008080", "F2F4FF", 0 }, // COMMENTDOC }; static const lexstyle python_Hello_Kitty[] = { { 0, "000000", "FFB0FF", 0 }, // DEFAULT { 1, "008000", "FFB0FF", 0 }, // COMMENTLINE { 2, "FF0000", "FFB0FF", 0 }, // NUMBER { 3, "808080", "FFB0FF", 0 }, // STRING { 4, "808080", "FFB0FF", 0 }, // CHARACTER { 5, "0000FF", "FFB0FF", 1 }, // KEYWORDS { 6, "FF8000", "FFB0FF", 0 }, // TRIPLE { 7, "000000", "FFB0FF", 0 }, // TRIPLEDOUBLE { 8, "000000", "FFB0FF", 1 }, // CLASSNAME { 9, "FF00FF", "FFB0FF", 0 }, // DEFNAME { 10, "000080", "FFB0FF", 1 }, // OPERATOR { 11, "000000", "FFB0FF", 0 }, // IDENTIFIER { 12, "008000", "FFB0FF", 0 }, // COMMENTBLOCK { 12, "FFFF00", "FFB0FF", 0 }, // STRINGEOL }; static const lexstyle ruby_Hello_Kitty[] = { { 0, "000000", "FFB0FF", 0 }, // DEFAULT { 1, "000000", "FFB0FF", 0 }, // ERROR { 2, "008000", "FFB0FF", 0 }, // COMMENTLINE { 3, "004000", "C0FFC0", 0 }, // POD { 4, "FF8000", "FFB0FF", 0 }, // NUMBER { 5, "0000FF", "FFB0FF", 1 }, // INSTRUCTION { 6, "808080", "FFB0FF", 0 }, // STRING { 7, "808000", "FFB0FF", 0 }, // CHARACTER { 8, "0080C0", "FFB0FF", 1 }, // CLASS NAME { 9, "8080FF", "FFFFCC", 1 }, // DEF NAME { 10, "000080", "FFB0FF", 1 }, // OPERATOR { 11, "000000", "FFB0FF", 0 }, // IDENTIFIER { 12, "0080FF", "FFB0FF", 0 }, // REGEX { 13, "000080", "FFB0FF", 1 }, // GLOBAL { 14, "000000", "FFB0FF", 0 }, // SYMBOL { 15, "804000", "FFB0FF", 1 }, // MODULE NAME { 16, "000000", "FFB0FF", 0 }, // INSTANCE VAR { 17, "000000", "FFB0FF", 0 }, // CLASS VAR { 18, "FFFF00", "A08080", 0 }, // BACKTICKS { 19, "600000", "FFF0D8", 0 }, // DATA SECTION { 24, "808080", "FFB0FF", 0 }, // STRING Q }; static const lexstyle global_HotFudgeSundae[] = { { 32, "B7975D", "2b0f01", 0 }, // Default Style { 37, "8B642B", "2b0f01", 0 }, // Indent guideline style { 34, "2b0f01", "EC6221", 1 }, // Brace highlight style { 35, "ff00ff", "2b0f01", 0 }, // Bad brace colour { 2069, "faf1c6", "2b0f01", 0 }, // Caret colour { 33, "8B642B", "43250b", 0 }, // Line number margin { 29, "B7975D", "008947", 0 }, // Smart HighLighting { 31, "B7975D", "7578DB", 0 }, // Find Mark Style { 25, "B7975D", "C11418", 0 }, // Mark Style 1 { 24, "B7975D", "0088CE", 0 }, // Mark Style 2 { 23, "B7975D", "BCBB80", 0 }, // Mark Style 3 { 22, "B7975D", "42A658", 0 }, // Mark Style 4 { 21, "B7975D", "cfba28", 0 }, // Mark Style 5 { 28, "B7975D", "2b0f01", 0 }, // Incremental highlight all { 27, "B7975D", "990000", 0 }, // Tags match highlighting { 26, "B7975D", "3D0B0C", 0 }, // Tags attribute }; static const lexstyle cpp_HotFudgeSundae[] = { { 9, "C11418", "2b0f01", 0 }, // PREPROCESSOR { 11, "B7975D", "2b0f01", 0 }, // DEFAULT { 5, "42A658", "2b0f01", 0 }, // INSTRUCTION WORD { 16, "cfba28", "2b0f01", 0 }, // TYPE WORD { 4, "AFA7D6", "2b0f01", 0 }, // NUMBER { 6, "BCBB80", "2b0f01", 0 }, // STRING { 7, "BCBB80", "2b0f01", 0 }, // CHARACTER { 10, "D6C479", "2b0f01", 0 }, // OPERATOR { 13, "BCBB80", "2b0f01", 0 }, // VERBATIM { 14, "0088CE", "2b0f01", 0 }, // REGEX { 1, "255C08", "2b0f01", 2 }, // COMMENT { 2, "255C08", "2b0f01", 2 }, // COMMENT LINE { 3, "255C08", "2b0f01", 2 }, // COMMENT DOC { 15, "255C08", "2b0f01", 2 }, // COMMENT LINE DOC { 17, "255C08", "2b0f01", 3 }, // COMMENT DOC KEYWORD { 18, "ff00ff", "2b0f01", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_HotFudgeSundae[] = { { 9, "C11418", "2b0f01", 0 }, // PREPROCESSOR { 11, "B7975D", "2b0f01", 0 }, // DEFAULT { 5, "42A658", "2b0f01", 0 }, // INSTRUCTION WORD { 16, "cfba28", "2b0f01", 0 }, // TYPE WORD { 4, "AFA7D6", "2b0f01", 0 }, // NUMBER { 6, "BCBB80", "2b0f01", 0 }, // STRING { 7, "BCBB80", "2b0f01", 0 }, // CHARACTER { 10, "D6C479", "2b0f01", 0 }, // OPERATOR { 13, "BCBB80", "2b0f01", 0 }, // VERBATIM { 14, "0088CE", "2b0f01", 0 }, // REGEX { 1, "255C08", "2b0f01", 2 }, // COMMENT { 2, "255C08", "2b0f01", 2 }, // COMMENT LINE { 3, "255C08", "2b0f01", 2 }, // COMMENT DOC { 15, "255C08", "2b0f01", 2 }, // COMMENT LINE DOC { 17, "0088CE", "2b0f01", 3 }, // COMMENT DOC KEYWORD { 18, "ff00ff", "2b0f01", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_HotFudgeSundae[] = { { 41, "B7975D", "2b0f01", 0 }, // DEFAULT { 45, "AFA7D6", "2b0f01", 0 }, // NUMBER { 46, "cfba28", "2b0f01", 0 }, // WORD { 47, "42A658", "2b0f01", 0 }, // KEYWORD { 48, "BCBB80", "2b0f01", 0 }, // DOUBLESTRING { 49, "BCBB80", "2b0f01", 0 }, // SINGLESTRING { 50, "B7975D", "2b0f01", 0 }, // SYMBOLS { 51, "C11418", "2b0f01", 0 }, // STRINGEOL { 52, "0088CE", "2b0f01", 0 }, // REGEX { 42, "255C08", "2b0f01", 2 }, // COMMENT { 43, "255C08", "2b0f01", 2 }, // COMMENTLINE { 44, "255C08", "2b0f01", 2 }, // COMMENTDOC { 17, "0088CE", "2b0f01", 3 }, // COMMENT DOC KEYWORD { 18, "ff00ff", "2b0f01", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_HotFudgeSundae[] = { { 0, "B7975D", "2b0f01", 0 }, // DEFAULT { 1, "255C08", "2b0f01", 2 }, // COMMENTLINE { 2, "AFA7D6", "2b0f01", 0 }, // NUMBER { 3, "BCBB80", "2b0f01", 0 }, // STRING { 4, "BCBB80", "2b0f01", 0 }, // CHARACTER { 5, "42A658", "2b0f01", 0 }, // KEYWORDS { 6, "BCBB80", "2b0f01", 0 }, // TRIPLE { 7, "BCBB80", "2b0f01", 0 }, // TRIPLEDOUBLE { 8, "d92b10", "2b0f01", 0 }, // CLASSNAME { 9, "d92b10", "2b0f01", 0 }, // DEFNAME { 10, "D6C479", "2b0f01", 0 }, // OPERATOR { 11, "cfba28", "2b0f01", 0 }, // IDENTIFIER { 12, "255C08", "2b0f01", 2 }, // COMMENTBLOCK { 12, "255C08", "2b0f01", 0 }, // STRINGEOL }; static const lexstyle ruby_HotFudgeSundae[] = { { 0, "B7975D", "2b0f01", 0 }, // DEFAULT { 1, "C11418", "2b0f01", 0 }, // ERROR { 2, "255C08", "2b0f01", 2 }, // COMMENTLINE { 3, "B7975D", "2b0f01", 2 }, // POD { 4, "AFA7D6", "2b0f01", 0 }, // NUMBER { 5, "42A658", "2b0f01", 0 }, // INSTRUCTION { 6, "BCBB80", "2b0f01", 0 }, // STRING { 7, "BCBB80", "2b0f01", 0 }, // CHARACTER { 8, "cfba28", "2b0f01", 0 }, // CLASS NAME { 9, "0088CE", "2b0f01", 0 }, // DEF NAME { 10, "D6C479", "2b0f01", 0 }, // OPERATOR { 11, "cfba28", "2b0f01", 0 }, // IDENTIFIER { 12, "0088CE", "2b0f01", 0 }, // REGEX { 13, "cfba28", "2b0f01", 0 }, // GLOBAL { 14, "B7975D", "2b0f01", 0 }, // SYMBOL { 15, "d92b10", "2b0f01", 0 }, // MODULE NAME { 16, "cfba28", "2b0f01", 0 }, // INSTANCE VAR { 17, "B7975D", "2b0f01", 0 }, // CLASS VAR { 18, "98AE66", "602F1A", 0 }, // BACKTICKS { 19, "BCBB80", "2b0f01", 0 }, // DATA SECTION { 24, "BCBB80", "2b0f01", 0 }, // STRING Q { 25, "0088CE", "2b0f01", 0 }, // BOOLEAN }; static const lexstyle global_Black_board[] = { { 32, "F8F8F8", "0C1021", 0 }, // Default Style { 37, "888A85", "0C1021", 0 }, // Indent guideline style { 34, "FCE94F", "0C1021", 1 }, // Brace highlight style { 35, "EF2929", "0C1021", 0 }, // Bad brace colour { 2069, "FFFFFF", "112435", 0 }, // Caret colour { 31, "CC0000", "EDD400", 0 }, // Find Mark Style { 33, "EEEEEC", "2E3436", 0 }, // Line number margin { 29, "555753", "00FF00", 0 }, // Smart HighLighting { 31, "FCAF3E", "FF0000", 0 }, // Find Mark Style { 25, "F8F8F8", "00FFFF", 0 }, // Mark Style 1 { 24, "F8F8F8", "FF8000", 0 }, // Mark Style 2 { 23, "F8F8F8", "FFFF00", 0 }, // Mark Style 3 { 22, "F8F8F8", "8000FF", 0 }, // Mark Style 4 { 21, "F8F8F8", "008000", 0 }, // Mark Style 5 { 28, "FFCAB0", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "8080C0", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_Black_board[] = { { 9, "FBDE2D", "0C1021", 0 }, // PREPROCESSOR { 11, "F8F8F8", "0C1021", 0 }, // DEFAULT { 5, "FBDE2D", "0C1021", 0 }, // INSTRUCTION WORD { 16, "FBDE2D", "0C1021", 0 }, // TYPE WORD { 4, "D8FA3C", "0C1021", 0 }, // NUMBER { 6, "61CE3C", "0C1021", 0 }, // STRING { 7, "61CE3C", "0C1021", 0 }, // CHARACTER { 10, "FBDE2D", "0C1021", 0 }, // OPERATOR { 13, "D8FA3C", "0C1021", 0 }, // VERBATIM { 14, "61CE3C", "0C1021", 0 }, // REGEX { 1, "AEAEAE", "0C1021", 0 }, // COMMENT { 2, "AEAEAE", "0C1021", 0 }, // COMMENT LINE { 3, "AEAEAE", "0C1021", 0 }, // COMMENT DOC { 15, "AEAEAE", "0C1021", 0 }, // COMMENT LINE DOC { 17, "AEAEAE", "0C1021", 0 }, // COMMENT DOC KEYWORD { 18, "AEAEAE", "0C1021", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Black_board[] = { { 9, "FBDE2D", "0C1021", 0 }, // PREPROCESSOR { 11, "F8F8F8", "0C1021", 0 }, // DEFAULT { 5, "FBDE2D", "0C1021", 0 }, // INSTRUCTION WORD { 16, "FBDE2D", "0C1021", 0 }, // TYPE WORD { 4, "D8FA3C", "0C1021", 0 }, // NUMBER { 6, "61CE3C", "0C1021", 0 }, // STRING { 7, "61CE3C", "0C1021", 0 }, // CHARACTER { 10, "FBDE2D", "0C1021", 0 }, // OPERATOR { 13, "D8FA3C", "0C1021", 0 }, // VERBATIM { 14, "61CE3C", "0C1021", 0 }, // REGEX { 1, "AEAEAE", "0C1021", 0 }, // COMMENT { 2, "AEAEAE", "0C1021", 0 }, // COMMENT LINE { 3, "AEAEAE", "0C1021", 0 }, // COMMENT DOC { 15, "AEAEAE", "0C1021", 0 }, // COMMENT LINE DOC { 17, "AEAEAE", "0C1021", 0 }, // COMMENT DOC KEYWORD { 18, "AEAEAE", "0C1021", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Black_board[] = { { 41, "F8F8F8", "0C1021", 0 }, // DEFAULT { 45, "D8FA3C", "0C1021", 0 }, // NUMBER { 46, "F8F8F8", "0C1021", 0 }, // WORD { 47, "FBDE2D", "0C1021", 0 }, // KEYWORD { 48, "61CE3C", "0C1021", 0 }, // DOUBLESTRING { 49, "61CE3C", "0C1021", 0 }, // SINGLESTRING { 50, "F8F8F8", "0C1021", 0 }, // SYMBOLS { 51, "61CE3C", "0C1021", 0 }, // STRINGEOL { 52, "61CE3C", "0C1021", 0 }, // REGEX { 42, "AEAEAE", "0C1021", 0 }, // COMMENT { 43, "AEAEAE", "0C1021", 0 }, // COMMENTLINE { 44, "AEAEAE", "0C1021", 0 }, // COMMENTDOC }; static const lexstyle python_Black_board[] = { { 0, "F8F8F8", "0C1021", 0 }, // DEFAULT { 1, "AEAEAE", "0C1021", 0 }, // COMMENTLINE { 2, "D8FA3C", "0C1021", 0 }, // NUMBER { 3, "61CE3C", "0C1021", 0 }, // STRING { 4, "61CE3C", "0C1021", 0 }, // CHARACTER { 5, "FBDE2D", "0C1021", 0 }, // KEYWORDS { 6, "000000", "0C1021", 0 }, // TRIPLE { 7, "000000", "0C1021", 0 }, // TRIPLEDOUBLE { 8, "000000", "0C1021", 0 }, // CLASSNAME { 9, "000000", "0C1021", 0 }, // DEFNAME { 10, "FBDE2D", "0C1021", 0 }, // OPERATOR { 11, "8DA6CE", "0C1021", 0 }, // IDENTIFIER { 12, "AEAEAE", "0C1021", 0 }, // COMMENTBLOCK { 12, "61CE3C", "0C1021", 0 }, // STRINGEOL }; static const lexstyle ruby_Black_board[] = { { 0, "F8F8F8", "0C1021", 0 }, // DEFAULT { 1, "000000", "0C1021", 0 }, // ERROR { 2, "AEAEAE", "0C1021", 0 }, // COMMENTLINE { 3, "000000", "0C1021", 0 }, // POD { 4, "D8FA3C", "0C1021", 0 }, // NUMBER { 5, "FBDE2D", "0C1021", 0 }, // INSTRUCTION { 6, "61CE3C", "0C1021", 0 }, // STRING { 7, "61CE3C", "0C1021", 0 }, // CHARACTER { 8, "FF6400", "0C1021", 0 }, // CLASS NAME { 9, "FF6400", "0C1021", 0 }, // DEF NAME { 10, "FBDE2D", "0C1021", 0 }, // OPERATOR { 11, "8DA6CE", "0C1021", 0 }, // IDENTIFIER { 12, "61CE3C", "0C1021", 0 }, // REGEX { 13, "F8F8F8", "0C1021", 0 }, // GLOBAL { 14, "F8F8F8", "0C1021", 0 }, // SYMBOL { 15, "000000", "0C1021", 0 }, // MODULE NAME { 16, "F8F8F8", "0C1021", 0 }, // INSTANCE VAR { 17, "000000", "0C1021", 0 }, // CLASS VAR { 18, "000000", "0C1021", 0 }, // BACKTICKS { 19, "000000", "0C1021", 0 }, // DATA SECTION { 24, "61CE3C", "0C1021", 0 }, // STRING Q }; static const lexstyle global_MossyLawn[] = { { 32, "f2c476", "6c7d51", 0 }, // Default Style { 37, "003709", "6c7d51", 0 }, // Indent guideline style { 34, "561e0f", "9ece3c", 1 }, // Brace highlight style { 35, "981f0e", "6c7d51", 0 }, // Bad brace colour { 2069, "ffc973", "6c7d51", 0 }, // Caret colour { 33, "603d13", "7e8a28", 0 }, // Line number margin { 29, "f2c476", "bf8830", 0 }, // Smart HighLighting { 31, "f2c476", "6a1a01", 0 }, // Find Mark Style { 25, "f2c476", "fdd64a", 0 }, // Mark Style 1 { 24, "f2c476", "afcf90", 0 }, // Mark Style 2 { 23, "f2c476", "ffdc87", 0 }, // Mark Style 3 { 22, "f2c476", "cbe248", 0 }, // Mark Style 4 { 21, "f2c476", "8abbe4", 0 }, // Mark Style 5 { 28, "f2c476", "6a1a01", 0 }, // Incremental highlight all { 27, "f2c476", "92983e", 0 }, // Tags match highlighting { 26, "f2c476", "dab57e", 0 }, // Tags attribute }; static const lexstyle cpp_MossyLawn[] = { { 9, "a32129", "6c7d51", 0 }, // PREPROCESSOR { 11, "f2c476", "6c7d51", 0 }, // DEFAULT { 5, "cbe248", "6c7d51", 0 }, // INSTRUCTION WORD { 16, "efc53d", "6c7d51", 0 }, // TYPE WORD { 4, "ffdc87", "6c7d51", 0 }, // NUMBER { 6, "ffdc87", "6c7d51", 0 }, // STRING { 7, "ffdc87", "6c7d51", 0 }, // CHARACTER { 10, "ffee88", "6c7d51", 1 }, // OPERATOR { 13, "ffdc87", "6c7d51", 0 }, // VERBATIM { 14, "afcf90", "6c7d51", 0 }, // REGEX { 1, "2a390e", "6c7d51", 2 }, // COMMENT { 2, "2a390e", "6c7d51", 2 }, // COMMENT LINE { 3, "2a390e", "6c7d51", 2 }, // COMMENT DOC { 15, "2a390e", "6c7d51", 2 }, // COMMENT LINE DOC { 17, "2a390e", "6c7d51", 3 }, // COMMENT DOC KEYWORD { 18, "981f0e", "fdd64a", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_MossyLawn[] = { { 9, "a32129", "6c7d51", 0 }, // PREPROCESSOR { 11, "f2c476", "6c7d51", 0 }, // DEFAULT { 5, "cbe248", "6c7d51", 0 }, // INSTRUCTION WORD { 16, "efc53d", "6c7d51", 0 }, // TYPE WORD { 4, "ffdc87", "6c7d51", 0 }, // NUMBER { 6, "ffdc87", "6c7d51", 0 }, // STRING { 7, "ffdc87", "6c7d51", 0 }, // CHARACTER { 10, "ffee88", "6c7d51", 1 }, // OPERATOR { 13, "ffdc87", "6c7d51", 0 }, // VERBATIM { 14, "afcf90", "6c7d51", 0 }, // REGEX { 1, "2a390e", "6c7d51", 2 }, // COMMENT { 2, "2a390e", "6c7d51", 2 }, // COMMENT LINE { 3, "2a390e", "6c7d51", 2 }, // COMMENT DOC { 15, "2a390e", "6c7d51", 2 }, // COMMENT LINE DOC { 17, "afcf90", "6c7d51", 3 }, // COMMENT DOC KEYWORD { 18, "981f0e", "fdd64a", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_MossyLawn[] = { { 41, "f2c476", "6c7d51", 0 }, // DEFAULT { 45, "ffdc87", "6c7d51", 0 }, // NUMBER { 46, "efc53d", "6c7d51", 0 }, // WORD { 47, "cbe248", "6c7d51", 0 }, // KEYWORD { 48, "ffdc87", "6c7d51", 0 }, // DOUBLESTRING { 49, "ffdc87", "6c7d51", 0 }, // SINGLESTRING { 50, "f2c476", "6c7d51", 0 }, // SYMBOLS { 51, "a32129", "6c7d51", 0 }, // STRINGEOL { 52, "afcf90", "6c7d51", 0 }, // REGEX { 42, "2a390e", "6c7d51", 2 }, // COMMENT { 43, "2a390e", "6c7d51", 2 }, // COMMENTLINE { 44, "2a390e", "6c7d51", 2 }, // COMMENTDOC { 17, "afcf90", "6c7d51", 3 }, // COMMENT DOC KEYWORD { 18, "981f0e", "fdd64a", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_MossyLawn[] = { { 0, "f2c476", "6c7d51", 0 }, // DEFAULT { 1, "2a390e", "6c7d51", 2 }, // COMMENTLINE { 2, "ffdc87", "6c7d51", 0 }, // NUMBER { 3, "ffdc87", "6c7d51", 0 }, // STRING { 4, "ffdc87", "6c7d51", 0 }, // CHARACTER { 5, "cbe248", "6c7d51", 0 }, // KEYWORDS { 6, "ffdc87", "6c7d51", 0 }, // TRIPLE { 7, "ffdc87", "6c7d51", 0 }, // TRIPLEDOUBLE { 8, "a32129", "6c7d51", 0 }, // CLASSNAME { 9, "a32129", "6c7d51", 0 }, // DEFNAME { 10, "ffee88", "6c7d51", 1 }, // OPERATOR { 11, "efc53d", "6c7d51", 0 }, // IDENTIFIER { 12, "2a390e", "6c7d51", 2 }, // COMMENTBLOCK { 12, "2a390e", "6c7d51", 0 }, // STRINGEOL }; static const lexstyle ruby_MossyLawn[] = { { 0, "f2c476", "6c7d51", 0 }, // DEFAULT { 1, "a32129", "6c7d51", 0 }, // ERROR { 2, "2a390e", "6c7d51", 2 }, // COMMENTLINE { 3, "f2c476", "6c7d51", 2 }, // POD { 4, "ffdc87", "6c7d51", 0 }, // NUMBER { 5, "cbe248", "6c7d51", 0 }, // INSTRUCTION { 6, "ffdc87", "6c7d51", 0 }, // STRING { 7, "ffdc87", "6c7d51", 0 }, // CHARACTER { 8, "efc53d", "6c7d51", 0 }, // CLASS NAME { 9, "afcf90", "6c7d51", 0 }, // DEF NAME { 10, "ffee88", "6c7d51", 1 }, // OPERATOR { 11, "efc53d", "6c7d51", 0 }, // IDENTIFIER { 12, "afcf90", "6c7d51", 0 }, // REGEX { 13, "efc53d", "6c7d51", 0 }, // GLOBAL { 14, "f2c476", "6c7d51", 0 }, // SYMBOL { 15, "a32129", "6c7d51", 0 }, // MODULE NAME { 16, "efc53d", "6c7d51", 0 }, // INSTANCE VAR { 17, "f2c476", "6c7d51", 0 }, // CLASS VAR { 18, "bfb8c4", "7e8a28", 0 }, // BACKTICKS { 19, "ffdc87", "6c7d51", 0 }, // DATA SECTION { 24, "ffdc87", "6c7d51", 0 }, // STRING Q { 25, "afcf90", "6c7d51", 0 }, // BOOLEAN }; static const lexstyle global_Obsidian[] = { { 32, "E0E2E4", "293134", 0 }, // Default Style { 37, "394448", "293134", 0 }, // Indent guideline style { 34, "F3DB2E", "293134", 1 }, // Brace highlight style { 35, "FB0000", "293134", 0 }, // Bad brace colour { 2069, "C1CBD2", "6699CC", 0 }, // Caret colour { 33, "81969A", "3F4B4E", 0 }, // Line number margin { 29, "222222", "56676D", 0 }, // Smart HighLighting { 31, "E0E2E4", "6B8189", 1 }, // Find Mark Style { 25, "E0E2E4", "00659B", 0 }, // Mark Style 1 { 24, "E0E2E4", "00880B", 0 }, // Mark Style 2 { 23, "E0E2E4", "A6AA00", 0 }, // Mark Style 3 { 22, "E0E2E4", "8A0B0B", 0 }, // Mark Style 4 { 21, "E0E2E4", "44116F", 0 }, // Mark Style 5 { 28, "FFFF80", "0080FF", 0 }, // Incremental highlight all { 27, "E0E2E4", "4D5C62", 0 }, // Tags match highlighting { 26, "FFCAB0", "93975E", 0 }, // Tags attribute }; static const lexstyle cpp_Obsidian[] = { { 9, "A082BD", "293134", 0 }, // PREPROCESSOR { 11, "E0E2E4", "293134", 0 }, // DEFAULT { 5, "93C763", "293134", 1 }, // INSTRUCTION WORD { 16, "678CB1", "293134", 0 }, // TYPE WORD { 4, "FFCD22", "293134", 0 }, // NUMBER { 6, "EC7600", "293134", 0 }, // STRING { 7, "FF8409", "293134", 0 }, // CHARACTER { 10, "E8E2B7", "293134", 0 }, // OPERATOR { 13, "E0E2E4", "293134", 0 }, // VERBATIM { 14, "D39745", "293134", 0 }, // REGEX { 1, "66747B", "293134", 0 }, // COMMENT { 2, "66747B", "293134", 0 }, // COMMENT LINE { 3, "6C788C", "293134", 0 }, // COMMENT DOC { 15, "6C788C", "293134", 0 }, // COMMENT LINE DOC { 17, "6C788C", "293134", 1 }, // COMMENT DOC KEYWORD { 18, "6C788C", "293134", 1 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Obsidian[] = { { 9, "A082BD", "293134", 0 }, // PREPROCESSOR { 11, "E0E2E4", "293134", 0 }, // DEFAULT { 5, "93C763", "293134", 1 }, // INSTRUCTION WORD { 16, "678CB1", "293134", 0 }, // TYPE WORD { 4, "FFCD22", "293134", 0 }, // NUMBER { 6, "EC7600", "293134", 0 }, // STRING { 7, "FF8409", "293134", 0 }, // CHARACTER { 10, "E8E2B7", "293134", 0 }, // OPERATOR { 13, "E0E2E4", "293134", 0 }, // VERBATIM { 14, "D39745", "293134", 0 }, // REGEX { 1, "66747B", "293134", 0 }, // COMMENT { 2, "66747B", "293134", 0 }, // COMMENT LINE { 3, "6C788C", "293134", 0 }, // COMMENT DOC { 15, "6C788C", "293134", 0 }, // COMMENT LINE DOC { 17, "6C788C", "293134", 1 }, // COMMENT DOC KEYWORD { 18, "6C788C", "293134", 1 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Obsidian[] = { { 41, "E0E2E4", "293134", 0 }, // DEFAULT { 45, "FFCD22", "293134", 0 }, // NUMBER { 46, "E0E2E4", "293134", 0 }, // WORD { 47, "93C763", "293134", 1 }, // KEYWORD { 48, "EC7600", "293134", 0 }, // DOUBLESTRING { 49, "EC7600", "293134", 0 }, // SINGLESTRING { 50, "E8E2B7", "293134", 0 }, // SYMBOLS { 51, "E0E2E4", "293134", 0 }, // STRINGEOL { 52, "D39745", "293134", 0 }, // REGEX { 42, "818E96", "293134", 0 }, // COMMENT { 43, "818E96", "293134", 0 }, // COMMENTLINE { 44, "6C788C", "293134", 0 }, // COMMENTDOC }; static const lexstyle python_Obsidian[] = { { 0, "E0E2E4", "293134", 0 }, // DEFAULT { 1, "66747B", "293134", 0 }, // COMMENTLINE { 2, "FFCD22", "293134", 0 }, // NUMBER { 3, "EC7600", "293134", 0 }, // STRING { 4, "FF8409", "293134", 0 }, // CHARACTER { 5, "93C763", "293134", 1 }, // KEYWORDS { 6, "66747B", "293134", 0 }, // TRIPLE { 7, "66747B", "293134", 0 }, // TRIPLEDOUBLE { 8, "A082BD", "293134", 1 }, // CLASSNAME { 9, "678CB1", "293134", 1 }, // DEFNAME { 10, "E8E2B7", "293134", 0 }, // OPERATOR { 11, "E0E2E4", "293134", 0 }, // IDENTIFIER { 12, "66747B", "293134", 0 }, // COMMENTBLOCK { 12, "E0E2E4", "293134", 0 }, // STRINGEOL }; static const lexstyle ruby_Obsidian[] = { { 0, "E0E2E4", "293134", 0 }, // DEFAULT { 1, "E0E2E4", "293134", 0 }, // ERROR { 2, "66747B", "293134", 0 }, // COMMENTLINE { 3, "E0E2E4", "293134", 0 }, // POD { 4, "FFCD22", "293134", 0 }, // NUMBER { 5, "93C763", "293134", 1 }, // INSTRUCTION { 6, "EC7600", "293134", 0 }, // STRING { 7, "FF8409", "293134", 0 }, // CHARACTER { 8, "A082BD", "293134", 1 }, // CLASS NAME { 9, "678CB1", "293134", 1 }, // DEF NAME { 10, "E8E2B7", "293134", 0 }, // OPERATOR { 11, "E0E2E4", "293134", 0 }, // IDENTIFIER { 12, "D39745", "293134", 0 }, // REGEX { 13, "E0E2E4", "293134", 0 }, // GLOBAL { 14, "E0E2E4", "293134", 0 }, // SYMBOL { 15, "E0E2E4", "293134", 0 }, // MODULE NAME { 16, "B6C8DA", "293134", 0 }, // INSTANCE VAR { 17, "E0E2E4", "293134", 0 }, // CLASS VAR { 18, "E0E2E4", "293134", 0 }, // BACKTICKS { 19, "E0E2E4", "293134", 0 }, // DATA SECTION { 24, "E0E2E4", "293134", 0 }, // STRING Q }; static const lexstyle global_Eclipse_Default[] = { { 32, "000000", "FFFFFF", 0 }, // Default Style { 37, "C0C0C0", "FFFFFF", 0 }, // Indent guideline style { 34, "FF0000", "FFFFFF", 1 }, // Brace highlight style { 35, "800000", "FFFFFF", 1 }, // Bad brace colour { 2069, "000000", "FFFFFF", 0 }, // Caret colour { 33, "808080", "E4E4E4", 0 }, // Line number margin { 29, "000000", "A3A3A3", 0 }, // Smart HighLighting { 31, "000000", "FF0000", 0 }, // Find Mark Style { 28, "000000", "FFFF00", 0 }, // Incremental highlight all { 27, "000000", "FFFF00", 0 }, // Tags match highlighting { 26, "000000", "FFFFFF", 0 }, // Tags attribute }; static const lexstyle cpp_Eclipse_Default[] = { { 9, "7F7F9F", "FFFFFF", 1 }, // PREPROCESSOR { 11, "000000", "FFFFFF", 0 }, // DEFAULT { 5, "7F0055", "FFFFFF", 1 }, // INSTRUCTION WORD { 16, "7F0055", "FFFFFF", 1 }, // TYPE WORD { 4, "000000", "FFFFFF", 0 }, // NUMBER { 6, "2A00FF", "FFFFFF", 0 }, // STRING { 7, "2A00FF", "FFFFFF", 0 }, // CHARACTER { 10, "000000", "FFFFFF", 0 }, // OPERATOR { 13, "646464", "FFFFFF", 0 }, // VERBATIM { 14, "646464", "FFFFFF", 0 }, // REGEX { 1, "3F7F5F", "FFFFFF", 0 }, // COMMENT { 2, "3F7F5F", "FFFFFF", 0 }, // COMMENT LINE { 3, "3F5FBF", "FFFFFF", 0 }, // COMMENT DOC { 15, "3F5FBF", "FFFFFF", 0 }, // COMMENT LINE DOC { 17, "7F9FBF", "FFFFFF", 1 }, // COMMENT DOC KEYWORD { 18, "7F9FBF", "FFFFFF", 1 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Eclipse_Default[] = { { 9, "7F7F9F", "FFFFFF", 1 }, // PREPROCESSOR { 11, "000000", "FFFFFF", 0 }, // DEFAULT { 5, "7F0055", "FFFFFF", 1 }, // INSTRUCTION WORD { 16, "7F0055", "FFFFFF", 1 }, // TYPE WORD { 4, "000000", "FFFFFF", 0 }, // NUMBER { 6, "2A00FF", "FFFFFF", 0 }, // STRING { 7, "2A00FF", "FFFFFF", 0 }, // CHARACTER { 10, "000000", "FFFFFF", 0 }, // OPERATOR { 13, "646464", "FFFFFF", 0 }, // VERBATIM { 14, "646464", "FFFFFF", 0 }, // REGEX { 1, "3F7F5F", "FFFFFF", 0 }, // COMMENT { 2, "3F7F5F", "FFFFFF", 0 }, // COMMENT LINE { 3, "3F5FBF", "FFFFFF", 0 }, // COMMENT DOC { 15, "3F5FBF", "FFFFFF", 0 }, // COMMENT LINE DOC { 17, "7F9FBF", "FFFFFF", 1 }, // COMMENT DOC KEYWORD { 18, "7F9FBF", "FFFFFF", 1 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Eclipse_Default[] = { { 41, "000000", "FFFFFF", 0 }, // DEFAULT { 45, "000000", "FFFFFF", 0 }, // NUMBER { 46, "000000", "FFFFFF", 0 }, // WORD { 47, "7F0055", "FFFFFF", 1 }, // KEYWORD { 48, "2A00FF", "FFFFFF", 0 }, // DOUBLESTRING { 49, "2A00FF", "FFFFFF", 0 }, // SINGLESTRING { 50, "000000", "FFFFFF", 0 }, // SYMBOLS { 51, "2A00FF", "FFFFFF", 0 }, // STRINGEOL { 52, "646464", "FFFFFF", 0 }, // REGEX { 42, "3F7F5F", "FFFFFF", 0 }, // COMMENT { 43, "3F7F5F", "FFFFFF", 0 }, // COMMENTLINE { 44, "3F5FBF", "FFFFFF", 0 }, // COMMENTDOC }; static const lexstyle python_Eclipse_Default[] = { { 0, "000000", "FFFFFF", 0 }, // DEFAULT { 1, "3F7F5F", "FFFFFF", 0 }, // COMMENTLINE { 2, "000000", "FFFFFF", 0 }, // NUMBER { 3, "2A00FF", "FFFFFF", 0 }, // STRING { 4, "2A00FF", "FFFFFF", 0 }, // CHARACTER { 5, "7F0055", "FFFFFF", 1 }, // KEYWORDS { 6, "646464", "FFFFFF", 0 }, // TRIPLE { 7, "000000", "FFFFFF", 0 }, // TRIPLEDOUBLE { 8, "000000", "FFFFFF", 0 }, // CLASSNAME { 9, "3F5FBF", "FFFFFF", 1 }, // DEFNAME { 10, "000000", "FFFFFF", 0 }, // OPERATOR { 11, "000000", "FFFFFF", 0 }, // IDENTIFIER { 12, "3F7F5F", "FFFFFF", 0 }, // COMMENTBLOCK { 12, "2A00FF", "FFFFFF", 0 }, // STRINGEOL }; static const lexstyle ruby_Eclipse_Default[] = { { 0, "000000", "FFFFFF", 0 }, // DEFAULT { 1, "FF0000", "FFFFFF", 0 }, // ERROR { 2, "3F7F5F", "FFFFFF", 0 }, // COMMENTLINE { 3, "000000", "FFFFFF", 0 }, // POD { 4, "000000", "FFFFFF", 0 }, // NUMBER { 5, "7F0055", "FFFFFF", 1 }, // INSTRUCTION { 6, "2A00FF", "FFFFFF", 0 }, // STRING { 7, "2A00FF", "FFFFFF", 0 }, // CHARACTER { 8, "000000", "FFFFFF", 0 }, // CLASS NAME { 9, "3F5FBF", "FFFFFF", 1 }, // DEF NAME { 10, "000000", "FFFFFF", 0 }, // OPERATOR { 11, "000000", "FFFFFF", 0 }, // IDENTIFIER { 12, "646464", "FFFFFF", 0 }, // REGEX { 13, "0000C0", "FFFFFF", 0 }, // GLOBAL { 14, "000000", "FFFFFF", 0 }, // SYMBOL { 15, "7F7F9F", "FFFFFF", 1 }, // MODULE NAME { 16, "000000", "FFFFFF", 0 }, // INSTANCE VAR { 17, "000000", "FFFFFF", 0 }, // CLASS VAR { 18, "000000", "FFFFFF", 0 }, // BACKTICKS { 19, "646464", "FFFFFF", 0 }, // DATA SECTION { 24, "2A00FF", "FFFFFF", 0 }, // STRING Q }; static const lexstyle global_Navajo[] = { { 32, "000000", "BA9C80", 0 }, // Default Style { 37, "181880", "BA9C80", 0 }, // Indent guideline style { 34, "000000", "00FFFF", 1 }, // Brace highlight style { 35, "BCBCBC", "5F0000", 0 }, // Bad brace colour { 2069, "FFFFFF", "BA9C80", 0 }, // Caret colour { 33, "000000", "808080", 0 }, // Line number margin { 29, "000000", "BCBCBC", 0 }, // Smart HighLighting { 31, "000000", "3b4092", 0 }, // Find Mark Style { 25, "000000", "870087", 0 }, // Mark Style 1 { 24, "000000", "C00058", 0 }, // Mark Style 2 { 23, "000000", "181880", 0 }, // Mark Style 3 { 22, "000000", "804040", 0 }, // Mark Style 4 { 21, "000000", "106060", 0 }, // Mark Style 5 { 28, "000000", "BA9C80", 0 }, // Incremental highlight all { 27, "000000", "D92B10", 0 }, // Tags match highlighting { 26, "000000", "D92B10", 0 }, // Tags attribute }; static const lexstyle cpp_Navajo[] = { { 9, "870087", "BA9C80", 0 }, // PREPROCESSOR { 11, "000000", "BA9C80", 0 }, // DEFAULT { 5, "804040", "BA9C80", 0 }, // INSTRUCTION WORD { 16, "1E8B47", "BA9C80", 0 }, // TYPE WORD { 4, "C00058", "BA9C80", 0 }, // NUMBER { 6, "C00058", "BA9C80", 0 }, // STRING { 7, "C00058", "BA9C80", 0 }, // CHARACTER { 10, "010101", "BA9C80", 1 }, // OPERATOR { 13, "C00058", "BA9C80", 0 }, // VERBATIM { 14, "C00058", "BA9C80", 0 }, // REGEX { 1, "181880", "BA9C80", 2 }, // COMMENT { 2, "181880", "BA9C80", 2 }, // COMMENT LINE { 3, "181880", "BA9C80", 2 }, // COMMENT DOC { 15, "181880", "BA9C80", 2 }, // COMMENT LINE DOC { 17, "181880", "BA9C80", 3 }, // COMMENT DOC KEYWORD { 18, "BCBCBC", "5F0000", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_Navajo[] = { { 9, "870087", "BA9C80", 0 }, // PREPROCESSOR { 11, "000000", "BA9C80", 0 }, // DEFAULT { 5, "804040", "BA9C80", 0 }, // INSTRUCTION WORD { 16, "1E8B47", "BA9C80", 0 }, // TYPE WORD { 4, "C00058", "BA9C80", 0 }, // NUMBER { 6, "C00058", "BA9C80", 0 }, // STRING { 7, "C00058", "BA9C80", 0 }, // CHARACTER { 10, "010101", "BA9C80", 1 }, // OPERATOR { 13, "C00058", "BA9C80", 0 }, // VERBATIM { 14, "C00058", "BA9C80", 0 }, // REGEX { 1, "181880", "BA9C80", 2 }, // COMMENT { 2, "181880", "BA9C80", 2 }, // COMMENT LINE { 3, "181880", "BA9C80", 2 }, // COMMENT DOC { 15, "181880", "BA9C80", 2 }, // COMMENT LINE DOC { 17, "C00058", "BA9C80", 3 }, // COMMENT DOC KEYWORD { 18, "BCBCBC", "5F0000", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_Navajo[] = { { 41, "000000", "BA9C80", 0 }, // DEFAULT { 45, "C00058", "BA9C80", 0 }, // NUMBER { 46, "106060", "BA9C80", 0 }, // WORD { 47, "804040", "BA9C80", 0 }, // KEYWORD { 48, "C00058", "BA9C80", 0 }, // DOUBLESTRING { 49, "C00058", "BA9C80", 0 }, // SINGLESTRING { 50, "000000", "BA9C80", 0 }, // SYMBOLS { 51, "870087", "BA9C80", 0 }, // STRINGEOL { 52, "C00058", "BA9C80", 0 }, // REGEX { 42, "181880", "BA9C80", 2 }, // COMMENT { 43, "181880", "BA9C80", 2 }, // COMMENTLINE { 44, "181880", "BA9C80", 2 }, // COMMENTDOC { 17, "C00058", "BA9C80", 3 }, // COMMENT DOC KEYWORD { 18, "BCBCBC", "5F0000", 3 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle python_Navajo[] = { { 0, "000000", "BA9C80", 0 }, // DEFAULT { 1, "181880", "BA9C80", 2 }, // COMMENTLINE { 2, "C00058", "BA9C80", 0 }, // NUMBER { 3, "C00058", "BA9C80", 0 }, // STRING { 4, "C00058", "BA9C80", 0 }, // CHARACTER { 5, "804040", "BA9C80", 0 }, // KEYWORDS { 6, "C00058", "BA9C80", 0 }, // TRIPLE { 7, "C00058", "BA9C80", 0 }, // TRIPLEDOUBLE { 8, "D92B10", "BA9C80", 0 }, // CLASSNAME { 9, "D92B10", "BA9C80", 0 }, // DEFNAME { 10, "010101", "BA9C80", 1 }, // OPERATOR { 11, "106060", "BA9C80", 0 }, // IDENTIFIER { 12, "181880", "BA9C80", 2 }, // COMMENTBLOCK { 12, "181880", "BA9C80", 0 }, // STRINGEOL }; static const lexstyle ruby_Navajo[] = { { 0, "000000", "BA9C80", 0 }, // DEFAULT { 1, "870087", "BA9C80", 0 }, // ERROR { 2, "181880", "BA9C80", 2 }, // COMMENTLINE { 3, "000000", "BA9C80", 2 }, // POD { 4, "C00058", "BA9C80", 0 }, // NUMBER { 5, "804040", "BA9C80", 0 }, // INSTRUCTION { 6, "C00058", "BA9C80", 0 }, // STRING { 7, "C00058", "BA9C80", 0 }, // CHARACTER { 8, "106060", "BA9C80", 0 }, // CLASS NAME { 9, "C00058", "BA9C80", 0 }, // DEF NAME { 10, "010101", "BA9C80", 1 }, // OPERATOR { 11, "106060", "BA9C80", 0 }, // IDENTIFIER { 12, "C00058", "BA9C80", 0 }, // REGEX { 13, "106060", "BA9C80", 0 }, // GLOBAL { 14, "000000", "BA9C80", 0 }, // SYMBOL { 15, "D92B10", "BA9C80", 0 }, // MODULE NAME { 16, "106060", "BA9C80", 0 }, // INSTANCE VAR { 17, "000000", "BA9C80", 0 }, // CLASS VAR { 18, "C00058", "CDB38B", 0 }, // BACKTICKS { 19, "C00058", "BA9C80", 0 }, // DATA SECTION { 24, "C00058", "BA9C80", 0 }, // STRING Q { 25, "C00058", "BA9C80", 0 }, // BOOLEAN }; static const lexstyle global_NotepadPlusPlus[] = { { 32, "000000", "FFFFFF", 0 }, // Default Style { 37, "C0C0C0", "FFFFFF", 0 }, // Indent guideline style { 34, "FF0000", "FFFFFF", 1 }, // Brace highlight style { 35, "800000", "FFFFFF", 0 }, // Bad brace colour { 2069, "8000FF", "FFFFFF", 0 }, // Caret colour { 33, "808080", "E4E4E4", 0 }, // Line number margin { 29, "000000", "00FF00", 0 }, // Smart HighLighting { 31, "000000", "FF0000", 0 }, // Find Mark Style { 25, "000000", "00FFFF", 0 }, // Mark Style 1 { 24, "000000", "FF8000", 0 }, // Mark Style 2 { 23, "000000", "FFFF00", 0 }, // Mark Style 3 { 22, "000000", "8000FF", 0 }, // Mark Style 4 { 21, "000000", "008000", 0 }, // Mark Style 5 { 28, "000000", "0080FF", 0 }, // Incremental highlight all { 27, "000000", "8000FF", 0 }, // Tags match highlighting { 26, "000000", "FFFF00", 0 }, // Tags attribute }; static const lexstyle cpp_NotepadPlusPlus[] = { { 9, "804000", "FFFFFF", 0 }, // PREPROCESSOR { 11, "000000", "FFFFFF", 0 }, // DEFAULT { 5, "0000FF", "FFFFFF", 1 }, // INSTRUCTION WORD { 16, "8000FF", "FFFFFF", 0 }, // TYPE WORD { 4, "FF8000", "FFFFFF", 0 }, // NUMBER { 6, "808080", "FFFFFF", 0 }, // STRING { 7, "808080", "FFFFFF", 0 }, // CHARACTER { 10, "000080", "FFFFFF", 1 }, // OPERATOR { 13, "000000", "FFFFFF", 0 }, // VERBATIM { 14, "000000", "FFFFFF", 1 }, // REGEX { 1, "008000", "FFFFFF", 0 }, // COMMENT { 2, "008000", "FFFFFF", 0 }, // COMMENT LINE { 3, "008080", "FFFFFF", 0 }, // COMMENT DOC { 15, "008080", "FFFFFF", 0 }, // COMMENT LINE DOC { 17, "008080", "FFFFFF", 1 }, // COMMENT DOC KEYWORD { 18, "008080", "FFFFFF", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle java_NotepadPlusPlus[] = { { 9, "804000", "FFFFFF", 0 }, // PREPROCESSOR { 11, "000000", "FFFFFF", 0 }, // DEFAULT { 5, "0000FF", "FFFFFF", 1 }, // INSTRUCTION WORD { 16, "8000FF", "FFFFFF", 0 }, // TYPE WORD { 4, "FF8000", "FFFFFF", 0 }, // NUMBER { 6, "808080", "FFFFFF", 0 }, // STRING { 7, "808080", "FFFFFF", 0 }, // CHARACTER { 10, "000080", "FFFFFF", 1 }, // OPERATOR { 13, "000000", "FFFFFF", 0 }, // VERBATIM { 14, "000000", "FFFFFF", 1 }, // REGEX { 1, "008000", "FFFFFF", 0 }, // COMMENT { 2, "008000", "FFFFFF", 0 }, // COMMENT LINE { 3, "008080", "FFFFFF", 0 }, // COMMENT DOC { 15, "008080", "FFFFFF", 0 }, // COMMENT LINE DOC { 17, "008080", "FFFFFF", 1 }, // COMMENT DOC KEYWORD { 18, "008080", "FFFFFF", 0 }, // COMMENT DOC KEYWORD ERROR }; static const lexstyle javascript_NotepadPlusPlus[] = { { 41, "000000", "F2F4FF", 0 }, // DEFAULT { 45, "FF0000", "F2F4FF", 0 }, // NUMBER { 46, "000000", "F2F4FF", 0 }, // WORD { 47, "000080", "F2F4FF", 3 }, // KEYWORD { 48, "808080", "F2F4FF", 0 }, // DOUBLESTRING { 49, "808080", "F2F4FF", 0 }, // SINGLESTRING { 50, "000000", "F2F4FF", 1 }, // SYMBOLS { 52, "8000FF", "F2F4FF", 0 }, // REGEX { 42, "008000", "F2F4FF", 0 }, // COMMENT { 43, "008000", "F2F4FF", 0 }, // COMMENTLINE { 44, "008080", "F2F4FF", 0 }, // COMMENTDOC }; static const lexstyle python_NotepadPlusPlus[] = { { 0, "000000", "FFFFFF", 0 }, // DEFAULT { 1, "008000", "FFFFFF", 0 }, // COMMENTLINE { 2, "FF0000", "FFFFFF", 0 }, // NUMBER { 3, "808080", "FFFFFF", 0 }, // STRING { 4, "808080", "FFFFFF", 0 }, // CHARACTER { 5, "0000FF", "FFFFFF", 1 }, // KEYWORDS { 6, "FF8000", "FFFFFF", 0 }, // TRIPLE { 7, "FF8000", "FFFFFF", 0 }, // TRIPLEDOUBLE { 8, "000000", "FFFFFF", 1 }, // CLASSNAME { 9, "FF00FF", "FFFFFF", 0 }, // DEFNAME { 10, "000080", "FFFFFF", 1 }, // OPERATOR { 11, "000000", "FFFFFF", 0 }, // IDENTIFIER { 12, "008000", "FFFFFF", 0 }, // COMMENTBLOCK }; static const lexstyle ruby_NotepadPlusPlus[] = { { 0, "000000", "FFFFFF", 0 }, // DEFAULT { 1, "000000", "FFFFFF", 0 }, // ERROR { 2, "008000", "FFFFFF", 0 }, // COMMENTLINE { 3, "004000", "C0FFC0", 0 }, // POD { 4, "FF8000", "FFFFFF", 0 }, // NUMBER { 5, "0000FF", "FFFFFF", 1 }, // INSTRUCTION { 6, "808080", "FFFFFF", 0 }, // STRING { 7, "808000", "FFFFFF", 0 }, // CHARACTER { 8, "0080C0", "FFFFFF", 1 }, // CLASS NAME { 9, "8080FF", "FFFFCC", 1 }, // DEF NAME { 10, "000080", "FFFFFF", 1 }, // OPERATOR { 11, "000000", "FFFFFF", 0 }, // IDENTIFIER { 12, "0080FF", "FFFFFF", 0 }, // REGEX { 13, "000080", "FFFFFF", 1 }, // GLOBAL { 14, "000000", "FFFFFF", 0 }, // SYMBOL { 15, "804000", "FFFFFF", 1 }, // MODULE NAME { 16, "000000", "FFFFFF", 0 }, // INSTANCE VAR { 17, "000000", "FFFFFF", 0 }, // CLASS VAR { 18, "FFFF00", "A08080", 0 }, // BACKTICKS { 19, "600000", "FFF0D8", 0 }, // DATA SECTION { 24, "808080", "FFFFFF", 0 }, // STRING Q }; static const langstyle cppstyle[] = { { "Monokai", "F8F8F2", "272822", "3E3D32", "EEEEEC", cpp_Monokai, global_Monokai, 16, 17 }, { "Vibrant Ink", "FFFFFF", "000000", "333333", "E4E4E4", cpp_Vibrant_Ink, global_Vibrant_Ink, 16, 17 }, { "Solarized light", "657B83", "FDF6E3", "EEE8D5", "93A1A1", cpp_Solarized_light, global_Solarized_light, 16, 16 }, { "Twilight", "F8F8F8", "141414", "292929", "EEEEEC", cpp_Twilight, global_Twilight, 16, 17 }, { "vim Dark Blue", "FFFFFF", "000040", "000040", "FFFFFF", cpp_vim_Dark_Blue, global_vim_Dark_Blue, 16, 11 }, { "Deep Black", "FFFFFF", "000000", "333333", "C0C0C0", cpp_Deep_Black, global_Deep_Black, 16, 11 }, { "Mono Industrial", "FFFFFF", "222C28", "2C3833", "EEEEEC", cpp_Mono_Industrial, global_Mono_Industrial, 16, 17 }, { "Ruby Blue", "FFFFFF", "112435", "273A4B", "FFFFFF", cpp_Ruby_Blue, global_Ruby_Blue, 16, 17 }, { "Choco", "C3BE98", "1A0F0B", "281711", "EEEEEC", cpp_Choco, global_Choco, 16, 17 }, { "khaki", "5f5f00", "d7d7af", "afaf87", "5f5f00", cpp_khaki, global_khaki, 16, 16 }, { "Bespin", "F8F8F8", "2A211C", "4B3C34", "E5C138", cpp_Bespin, global_Bespin, 16, 17 }, { "Zenburn", "DCDCCC", "3F3F3F", "101010", "8A8A8A", cpp_Zenburn, global_Zenburn, 16, 16 }, { "Plastic Code Wrap", "F8F8F8", "0B161D", "11222D", "EEEEEC", cpp_Plastic_Code_Wrap, global_Plastic_Code_Wrap, 16, 17 }, { "Solarized", "839496", "002B36", "073642", "586E75", cpp_Solarized, global_Solarized, 16, 16 }, { "Hello Kitty", "000000", "FFB0FF", "FF80C0", "FFFFFF", cpp_Hello_Kitty, global_Hello_Kitty, 16, 16 }, { "HotFudgeSundae", "B7975D", "2b0f01", "432c13", "8B642B", cpp_HotFudgeSundae, global_HotFudgeSundae, 16, 16 }, { "Black board", "F8F8F8", "0C1021", "121830", "EEEEEC", cpp_Black_board, global_Black_board, 16, 17 }, { "MossyLawn", "f2c476", "6c7d51", "858e4d", "603d13", cpp_MossyLawn, global_MossyLawn, 16, 16 }, { "Obsidian", "E0E2E4", "293134", "2F393C", "81969A", cpp_Obsidian, global_Obsidian, 16, 16 }, { "Eclipse Default", "000000", "FFFFFF", "E8F2FE", "808080", cpp_Eclipse_Default, global_Eclipse_Default, 16, 11 }, { "Navajo", "000000", "BA9C80", "B39674", "000000", cpp_Navajo, global_Navajo, 16, 16 }, { "NotepadPlusPlus", "000000", "FFFFFF", "E8E8FF", "808080", cpp_NotepadPlusPlus, global_NotepadPlusPlus, 16, 16 }, { NULL, NULL, NULL, 0 } }; static const langstyle javastyle[] = { { "Monokai", "F8F8F2", "272822", "3E3D32", "EEEEEC", java_Monokai, global_Monokai, 16, 17 }, { "Vibrant Ink", "FFFFFF", "000000", "333333", "E4E4E4", java_Vibrant_Ink, global_Vibrant_Ink, 16, 17 }, { "Solarized light", "657B83", "FDF6E3", "EEE8D5", "93A1A1", java_Solarized_light, global_Solarized_light, 16, 16 }, { "Twilight", "F8F8F8", "141414", "292929", "EEEEEC", java_Twilight, global_Twilight, 16, 17 }, { "vim Dark Blue", "FFFFFF", "000040", "000040", "FFFFFF", java_vim_Dark_Blue, global_vim_Dark_Blue, 16, 11 }, { "Deep Black", "FFFFFF", "000000", "333333", "C0C0C0", java_Deep_Black, global_Deep_Black, 16, 11 }, { "Mono Industrial", "FFFFFF", "222C28", "2C3833", "EEEEEC", java_Mono_Industrial, global_Mono_Industrial, 16, 17 }, { "Ruby Blue", "FFFFFF", "112435", "273A4B", "FFFFFF", java_Ruby_Blue, global_Ruby_Blue, 16, 17 }, { "Choco", "C3BE98", "1A0F0B", "281711", "EEEEEC", java_Choco, global_Choco, 16, 17 }, { "khaki", "5f5f00", "d7d7af", "afaf87", "5f5f00", java_khaki, global_khaki, 16, 16 }, { "Bespin", "F8F8F8", "2A211C", "4B3C34", "E5C138", java_Bespin, global_Bespin, 16, 17 }, { "Zenburn", "DCDCCC", "3F3F3F", "101010", "8A8A8A", java_Zenburn, global_Zenburn, 16, 16 }, { "Plastic Code Wrap", "F8F8F8", "0B161D", "11222D", "EEEEEC", java_Plastic_Code_Wrap, global_Plastic_Code_Wrap, 16, 17 }, { "Solarized", "839496", "002B36", "073642", "586E75", java_Solarized, global_Solarized, 16, 16 }, { "Hello Kitty", "000000", "FFB0FF", "FF80C0", "FFFFFF", java_Hello_Kitty, global_Hello_Kitty, 16, 16 }, { "HotFudgeSundae", "B7975D", "2b0f01", "432c13", "8B642B", java_HotFudgeSundae, global_HotFudgeSundae, 16, 16 }, { "Black board", "F8F8F8", "0C1021", "121830", "EEEEEC", java_Black_board, global_Black_board, 16, 17 }, { "MossyLawn", "f2c476", "6c7d51", "858e4d", "603d13", java_MossyLawn, global_MossyLawn, 16, 16 }, { "Obsidian", "E0E2E4", "293134", "2F393C", "81969A", java_Obsidian, global_Obsidian, 16, 16 }, { "Eclipse Default", "000000", "FFFFFF", "E8F2FE", "808080", java_Eclipse_Default, global_Eclipse_Default, 16, 11 }, { "Navajo", "000000", "BA9C80", "B39674", "000000", java_Navajo, global_Navajo, 16, 16 }, { "NotepadPlusPlus", "000000", "FFFFFF", "E8E8FF", "808080", java_NotepadPlusPlus, global_NotepadPlusPlus, 16, 16 }, { NULL, NULL, NULL, 0 } }; static const langstyle pythonstyle[] = { { "Monokai", "F8F8F2", "272822", "3E3D32", "EEEEEC", python_Monokai, global_Monokai, 14, 17 }, { "Vibrant Ink", "FFFFFF", "000000", "333333", "E4E4E4", python_Vibrant_Ink, global_Vibrant_Ink, 14, 17 }, { "Solarized light", "657B83", "FDF6E3", "EEE8D5", "93A1A1", python_Solarized_light, global_Solarized_light, 14, 16 }, { "Twilight", "F8F8F8", "141414", "292929", "EEEEEC", python_Twilight, global_Twilight, 14, 17 }, { "vim Dark Blue", "FFFFFF", "000040", "000040", "FFFFFF", python_vim_Dark_Blue, global_vim_Dark_Blue, 14, 11 }, { "Deep Black", "FFFFFF", "000000", "333333", "C0C0C0", python_Deep_Black, global_Deep_Black, 14, 11 }, { "Mono Industrial", "FFFFFF", "222C28", "2C3833", "EEEEEC", python_Mono_Industrial, global_Mono_Industrial, 14, 17 }, { "Ruby Blue", "FFFFFF", "112435", "273A4B", "FFFFFF", python_Ruby_Blue, global_Ruby_Blue, 14, 17 }, { "Choco", "C3BE98", "1A0F0B", "281711", "EEEEEC", python_Choco, global_Choco, 14, 17 }, { "khaki", "5f5f00", "d7d7af", "afaf87", "5f5f00", python_khaki, global_khaki, 14, 16 }, { "Bespin", "F8F8F8", "2A211C", "4B3C34", "E5C138", python_Bespin, global_Bespin, 14, 17 }, { "Zenburn", "DCDCCC", "3F3F3F", "101010", "8A8A8A", python_Zenburn, global_Zenburn, 13, 16 }, { "Plastic Code Wrap", "F8F8F8", "0B161D", "11222D", "EEEEEC", python_Plastic_Code_Wrap, global_Plastic_Code_Wrap, 14, 17 }, { "Solarized", "839496", "002B36", "073642", "586E75", python_Solarized, global_Solarized, 14, 16 }, { "Hello Kitty", "000000", "FFB0FF", "FF80C0", "FFFFFF", python_Hello_Kitty, global_Hello_Kitty, 14, 16 }, { "HotFudgeSundae", "B7975D", "2b0f01", "432c13", "8B642B", python_HotFudgeSundae, global_HotFudgeSundae, 14, 16 }, { "Black board", "F8F8F8", "0C1021", "121830", "EEEEEC", python_Black_board, global_Black_board, 14, 17 }, { "MossyLawn", "f2c476", "6c7d51", "858e4d", "603d13", python_MossyLawn, global_MossyLawn, 14, 16 }, { "Obsidian", "E0E2E4", "293134", "2F393C", "81969A", python_Obsidian, global_Obsidian, 14, 16 }, { "Eclipse Default", "000000", "FFFFFF", "E8F2FE", "808080", python_Eclipse_Default, global_Eclipse_Default, 14, 11 }, { "Navajo", "000000", "BA9C80", "B39674", "000000", python_Navajo, global_Navajo, 14, 16 }, { "NotepadPlusPlus", "000000", "FFFFFF", "E8E8FF", "808080", python_NotepadPlusPlus, global_NotepadPlusPlus, 13, 16 }, { NULL, NULL, NULL, 0 } }; static const langstyle rubystyle[] = { { "Monokai", "F8F8F2", "272822", "3E3D32", "EEEEEC", ruby_Monokai, global_Monokai, 21, 17 }, { "Vibrant Ink", "FFFFFF", "000000", "333333", "E4E4E4", ruby_Vibrant_Ink, global_Vibrant_Ink, 21, 17 }, { "Solarized light", "657B83", "FDF6E3", "EEE8D5", "93A1A1", ruby_Solarized_light, global_Solarized_light, 22, 16 }, { "Twilight", "F8F8F8", "141414", "292929", "EEEEEC", ruby_Twilight, global_Twilight, 21, 17 }, { "vim Dark Blue", "FFFFFF", "000040", "000040", "FFFFFF", ruby_vim_Dark_Blue, global_vim_Dark_Blue, 21, 11 }, { "Deep Black", "FFFFFF", "000000", "333333", "C0C0C0", ruby_Deep_Black, global_Deep_Black, 21, 11 }, { "Mono Industrial", "FFFFFF", "222C28", "2C3833", "EEEEEC", ruby_Mono_Industrial, global_Mono_Industrial, 21, 17 }, { "Ruby Blue", "FFFFFF", "112435", "273A4B", "FFFFFF", ruby_Ruby_Blue, global_Ruby_Blue, 21, 17 }, { "Choco", "C3BE98", "1A0F0B", "281711", "EEEEEC", ruby_Choco, global_Choco, 21, 17 }, { "khaki", "5f5f00", "d7d7af", "afaf87", "5f5f00", ruby_khaki, global_khaki, 22, 16 }, { "Bespin", "F8F8F8", "2A211C", "4B3C34", "E5C138", ruby_Bespin, global_Bespin, 21, 17 }, { "Zenburn", "DCDCCC", "3F3F3F", "101010", "8A8A8A", ruby_Zenburn, global_Zenburn, 21, 16 }, { "Plastic Code Wrap", "F8F8F8", "0B161D", "11222D", "EEEEEC", ruby_Plastic_Code_Wrap, global_Plastic_Code_Wrap, 21, 17 }, { "Solarized", "839496", "002B36", "073642", "586E75", ruby_Solarized, global_Solarized, 22, 16 }, { "Hello Kitty", "000000", "FFB0FF", "FF80C0", "FFFFFF", ruby_Hello_Kitty, global_Hello_Kitty, 21, 16 }, { "HotFudgeSundae", "B7975D", "2b0f01", "432c13", "8B642B", ruby_HotFudgeSundae, global_HotFudgeSundae, 22, 16 }, { "Black board", "F8F8F8", "0C1021", "121830", "EEEEEC", ruby_Black_board, global_Black_board, 21, 17 }, { "MossyLawn", "f2c476", "6c7d51", "858e4d", "603d13", ruby_MossyLawn, global_MossyLawn, 22, 16 }, { "Obsidian", "E0E2E4", "293134", "2F393C", "81969A", ruby_Obsidian, global_Obsidian, 21, 16 }, { "Eclipse Default", "000000", "FFFFFF", "E8F2FE", "808080", ruby_Eclipse_Default, global_Eclipse_Default, 21, 11 }, { "Navajo", "000000", "BA9C80", "B39674", "000000", ruby_Navajo, global_Navajo, 22, 16 }, { "NotepadPlusPlus", "000000", "FFFFFF", "E8E8FF", "808080", ruby_NotepadPlusPlus, global_NotepadPlusPlus, 21, 16 }, { NULL, NULL, NULL, 0 } }; static const langstyle javascriptstyle[] = { { "Monokai", "F8F8F2", "272822", "3E3D32", "EEEEEC", javascript_Monokai, global_Monokai, 12, 17 }, { "Vibrant Ink", "FFFFFF", "000000", "333333", "E4E4E4", javascript_Vibrant_Ink, global_Vibrant_Ink, 12, 17 }, { "Solarized light", "657B83", "FDF6E3", "EEE8D5", "93A1A1", javascript_Solarized_light, global_Solarized_light, 14, 16 }, { "Twilight", "F8F8F8", "141414", "292929", "EEEEEC", javascript_Twilight, global_Twilight, 12, 17 }, { "vim Dark Blue", "FFFFFF", "000040", "000040", "FFFFFF", javascript_vim_Dark_Blue, global_vim_Dark_Blue, 12, 11 }, { "Deep Black", "FFFFFF", "000000", "333333", "C0C0C0", javascript_Deep_Black, global_Deep_Black, 12, 11 }, { "Mono Industrial", "FFFFFF", "222C28", "2C3833", "EEEEEC", javascript_Mono_Industrial, global_Mono_Industrial, 12, 17 }, { "Ruby Blue", "FFFFFF", "112435", "273A4B", "FFFFFF", javascript_Ruby_Blue, global_Ruby_Blue, 12, 17 }, { "Choco", "C3BE98", "1A0F0B", "281711", "EEEEEC", javascript_Choco, global_Choco, 12, 17 }, { "khaki", "5f5f00", "d7d7af", "afaf87", "5f5f00", javascript_khaki, global_khaki, 14, 16 }, { "Bespin", "BDAF9D", "2A211C", "4B3C34", "E5C138", javascript_Bespin, global_Bespin, 15, 17 }, { "Zenburn", "DCDCCC", "3F3F3F", "101010", "8A8A8A", javascript_Zenburn, global_Zenburn, 11, 16 }, { "Plastic Code Wrap", "F8F8F8", "0B161D", "11222D", "EEEEEC", javascript_Plastic_Code_Wrap, global_Plastic_Code_Wrap, 12, 17 }, { "Solarized", "839496", "002B36", "073642", "586E75", javascript_Solarized, global_Solarized, 14, 16 }, { "Hello Kitty", "000000", "F2F4FF", "FF80C0", "FFFFFF", javascript_Hello_Kitty, global_Hello_Kitty, 12, 16 }, { "HotFudgeSundae", "B7975D", "2b0f01", "432c13", "8B642B", javascript_HotFudgeSundae, global_HotFudgeSundae, 14, 16 }, { "Black board", "F8F8F8", "0C1021", "121830", "EEEEEC", javascript_Black_board, global_Black_board, 12, 17 }, { "MossyLawn", "f2c476", "6c7d51", "858e4d", "603d13", javascript_MossyLawn, global_MossyLawn, 14, 16 }, { "Obsidian", "E0E2E4", "293134", "2F393C", "81969A", javascript_Obsidian, global_Obsidian, 12, 16 }, { "Eclipse Default", "000000", "FFFFFF", "E8F2FE", "808080", javascript_Eclipse_Default, global_Eclipse_Default, 12, 11 }, { "Navajo", "000000", "BA9C80", "B39674", "000000", javascript_Navajo, global_Navajo, 14, 16 }, { "NotepadPlusPlus", "000000", "F2F4FF", "E8E8FF", "808080", javascript_NotepadPlusPlus, global_NotepadPlusPlus, 11, 16 }, { NULL, NULL, NULL, 0 } }; codequery-0.21.0/gui/translations/000077500000000000000000000000001310136352400170755ustar00rootroot00000000000000codequery-0.21.0/gui/translations/codequery_de.ts000066400000000000000000000554071310136352400221300ustar00rootroot00000000000000 DialogGraph Graph Graph Please wait ... Bitte warten... Zoom Out Verkleinern Zoom In Vergrößern Number of levels: Anzahl der Ebenen: Save to DOT file DOT-Datei speichern Save Image Bild speichern Close Schließen MainWindow CodeQuery CodeQuery Open Database Datenbank öffnen Auto-complete Automatische Vervollständigung Exact match Genaue Übereinstimmung File path filter Pfad Dateifilter Filter Filter File path filter, wildcard searches (* and ?) are supported Pfad Dateifilter, Platzhaltersuche (* und?) werden unterstützt Previous search term Vorherigen Suchbegriff Next search term Nächsten Suchbegriff If Exact Match is switched off, wildcard searches (* and ?) are supported Wenn genaue Übereinstimmung Platzhaltersuche ausgeschaltet ist (* und?) werden unterstützt Search Suche Paste and Search Paste und Suche List of all files Liste aller Dateien Draw graph Zeichnen von Graphen Previous File Vorherige Datei Next File Nächste Datei Open in Editor Im Editor geöffnet Go to selected line Gehen Sie zu ausgewählten Zeile Reduce font size Schrift verkleinern Increase font size Schriftgrad erhöhen Copy, paste and search Kopieren, einfügen und Suche Symbol search only for paste and search Symbolsuche nur nach einfügen und Suche Symbol only Symbol nur Previous search result in this file Vorherige Suchergebnis in dieser Datei Next search result in this file Nächste Suchergebnis in dieser Datei FilePath:0 FilePath:0 Sort by line number Sortieren nach Zeilennummer Sort by name Nach Namen sortieren File Datei Options Optionen Help Hilfe Exit Ausfahrt Open Offene About Über External Editor Externer Editor Open CQ Database Offene CQ-Datenbank Language Sprache About Qt Über Qt File Viewer Settings Datei-Viewer-Einstellungen aboutDialog About CodeQuery Über CodeQuery OK Okay cqDialogGraph Images Bilder und Videos Export Image Bild exportieren File could not be saved! Datei konnte nicht gespeichert werden! Export DOT file DOT-Datei exportieren fileViewSettingsDialog File Viewer Settings Datei-Viewer-Einstellungen Font Schriftart Syntax highlight theme Syntax-Highlight-Thema Tab Width (number of spaces) Tab-Schrittweite (Anzahl der Räume) Cancel Abbrechen OK Okay fileviewer File not found Datei nicht gefunden File could not be opened Datei konnte nicht geöffnet werden The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. Die Quelldatei angezeigt werden ist neuer als die CodeQuery-Datenbank-Datei. Wir empfehlen Ihnen, die CodeQuery-Datenbank-Datei manuell zu regenerieren. Cancel Abbrechen OK Okay External Editor Configuration Externer Editor Konfiguration Please enter the path and arguments for the external editor. Replace as follows: Bitte geben Sie den Pfad und die Argumente für den externen Editor. Wie folgt ersetzen: for file path für Dateipfad for line number für Zeilennummer For example: Zum Beispiel: File could not be opened! Datei konnte nicht geöffnet werden! External editor could not be started. Please check Options! Externer Editor konnte nicht gestartet werden. Bitte überprüfen Sie die Optionen! listhandler Symbol Symbol File Datei Line Linie Preview Vorschau mainwindow Cancel Abbrechen OK Okay Language Sprache Select language: Sprache auswählen: searchhandler Symbol Symbol Function or macro definition (Graph available) Funktion oder ein Makro-Definition (Graph verfügbar) Class or struct (Graph available) Klasse oder Struktur (Graph verfügbar) Functions calling this function Funktionen aufrufen dieser Funktion Functions called by this function Von dieser Funktion aufgerufenen Funktionen Calls of this function or macro Aufrufe dieser Funktion oder Makro Class which owns this member or method Klasse, die dieses Mitglied oder Methode besitzt Members or methods of this class Mitglieder oder Methoden dieser Klasse Parent of this class Eltern dieser Klasse Children of this class Kinder dieser Klasse Files including this file Dateien einschließlich dieser Full path for file Vollständiger Pfad für die Datei Functions or macros inside this file Funktionen oder Makros in dieser Datei CodeQuery DB Files CodeQuery DB-Dateien Open CQ database file Offene CQ-Datenbankdatei Function Call Graph Funktion Anruf-Diagramm Class Inheritance Graph Klasse Vererbung Graph If Exact Match is switched off, wildcard searches (* and ?) are supported Wenn genaue Übereinstimmung Platzhaltersuche ausgeschaltet ist (* und?) werden unterstützt results found Treffer gefunden in progress in Bearbeitung Cancel Abbrechen You have to first select an item from the list before pushing the Graph button. Du musst zuerst ein Element aus der Liste auswählen, bevor Sie sich die Schaltfläche \"Graph\". File open error Offene Dateifehler Wrong file format Falsches Dateiformat Incorrect CQ database version Falsche CQ-Datenbankversion OK Okay Unknown Error Unbekannter Fehler codequery-0.21.0/gui/translations/codequery_en.ts000066400000000000000000000542211310136352400221330ustar00rootroot00000000000000 DialogGraph Graph Please wait ... Zoom Out Zoom In Number of levels: Save to DOT file Save Image Close MainWindow CodeQuery Open Database Auto-complete Exact match File path filter Filter File path filter, wildcard searches (* and ?) are supported Previous search term Next search term If Exact Match is switched off, wildcard searches (* and ?) are supported Search Paste and Search List of all files Draw graph Previous File Next File Open in Editor Go to selected line Reduce font size Increase font size Copy, paste and search Symbol search only for paste and search Symbol only Previous search result in this file Next search result in this file FilePath:0 Sort by line number Sort by name File Options Help Exit Open About External Editor Open CQ Database Language About Qt File Viewer Settings aboutDialog About CodeQuery OK cqDialogGraph Images Export Image File could not be saved! Export DOT file fileViewSettingsDialog File Viewer Settings Font Syntax highlight theme Tab Width (number of spaces) Cancel OK fileviewer File not found File could not be opened The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. Cancel OK External Editor Configuration Please enter the path and arguments for the external editor. Replace as follows: for file path for line number For example: File could not be opened! External editor could not be started. Please check Options! listhandler Symbol File Line Preview mainwindow Cancel OK Language Select language: searchhandler Symbol Function or macro definition (Graph available) Class or struct (Graph available) Functions calling this function Functions called by this function Calls of this function or macro Class which owns this member or method Members or methods of this class Parent of this class Children of this class Files including this file Full path for file Functions or macros inside this file CodeQuery DB Files Open CQ database file Function Call Graph Class Inheritance Graph If Exact Match is switched off, wildcard searches (* and ?) are supported results found in progress Cancel You have to first select an item from the list before pushing the Graph button. File open error Wrong file format Incorrect CQ database version OK Unknown Error codequery-0.21.0/gui/translations/codequery_es.ts000066400000000000000000000556461310136352400221540ustar00rootroot00000000000000 DialogGraph Graph Gráfico Please wait ... Espera... Zoom Out Alejar Zoom In Zoom Number of levels: Número de niveles: Save to DOT file Guardar en un archivo de punto Save Image Guardar imagen Close Cerrar MainWindow CodeQuery CodeQuery Open Database Base de datos abierta Auto-complete Completar automáticamente Exact match Coincidencia exacta File path filter Filtro de ruta de archivo Filter Filtro File path filter, wildcard searches (* and ?) are supported Filtro de ruta de acceso de archivo, búsquedas de comodín (* y?) son compatibles Previous search term Término de búsqueda anterior Next search term Al término de la búsqueda If Exact Match is switched off, wildcard searches (* and ?) are supported Si está apagado coincidencia exacta, búsquedas de comodín (* y?) son compatibles Search Búsqueda Paste and Search Pasta y búsqueda List of all files lista de todos los archivos Draw graph Gráfica Previous File Archivo anterior Next File Siguiente archivo Open in Editor Abierto en el Editor Go to selected line Ir a la línea seleccionada Reduce font size Reducir el tamaño de la fuente Increase font size Aumentar tamaño de fuente Copy, paste and search Copiar, pegar y buscar Symbol search only for paste and search Búsqueda de símbolo sólo para pasta y búsqueda Symbol only Símbolo sólo Previous search result in this file Resultado de la búsqueda anterior en este archivo Next search result in this file A continuación resultados de la búsqueda en este archivo FilePath:0 FilePath:0 Sort by line number Ordenar por número de línea Sort by name Ordenar por nombre File Archivo Options Opciones Help Ayuda Exit Salida Open Abierto About Acerca de External Editor Editor externo Open CQ Database Base de datos abierta CQ Language Idioma About Qt Acerca de Qt File Viewer Settings Configuraciones de visor de archivos aboutDialog About CodeQuery Acerca de CodeQuery OK Vale cqDialogGraph Images Imágenes Export Image Exportar imagen File could not be saved! No se han podido guardar archivo! Export DOT file Archivo de punto de exportación fileViewSettingsDialog File Viewer Settings Configuraciones de visor de archivos Font Fuente Syntax highlight theme Tema de resaltado de sintaxis Tab Width (number of spaces) Ficha anchura (número de espacios) Cancel Cancelar OK Vale fileviewer File not found Archivo no encontrado File could not be opened No se pudo abrir el archivo The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. El archivo de origen para ser visto es más reciente que el archivo de base de datos de CodeQuery. Se recomienda para regenerar manualmente el archivo de base de datos de CodeQuery. Cancel Cancelar OK Vale External Editor Configuration Configuración del Editor externo Please enter the path and arguments for the external editor. Replace as follows: Por favor ingrese la ruta y argumentos para el editor externo. Reemplace como sigue: for file path para la ruta del archivo for line number para el número de línea For example: Por ejemplo: File could not be opened! No se pudo abrir el archivo! External editor could not be started. Please check Options! No se pudo iniciar el editor externo. Consulte Opciones! listhandler Symbol Símbolo File Archivo Line Línea Preview Vista previa mainwindow Cancel Cancelar OK Vale Language Idioma Select language: Seleccionar idioma: searchhandler Symbol Símbolo Function or macro definition (Graph available) Definición de función o macro (gráfico disponible) Class or struct (Graph available) Clase o estructura (gráfico disponible) Functions calling this function Funciones llamar a esta función Functions called by this function Funciones de llamada por esta función Calls of this function or macro Llamadas de esta función o macro Class which owns this member or method Clase que posee este miembro o método Members or methods of this class Miembros o métodos de esta clase Parent of this class Padres de esta clase Children of this class Niños de esta clase Files including this file Archivos incluyendo este archivo Full path for file Ruta de acceso completa de archivo Functions or macros inside this file Funciones o macros dentro de este archivo CodeQuery DB Files CodeQuery DB archivos Open CQ database file Abrir archivo de base de datos de CQ Function Call Graph Gráfico de la llamada de función Class Inheritance Graph Gráfico de la herencia de clase If Exact Match is switched off, wildcard searches (* and ?) are supported Si está apagado coincidencia exacta, búsquedas de comodín (* y?) son compatibles results found se han encontrado resultados in progress en progreso Cancel Cancelar You have to first select an item from the list before pushing the Graph button. Tienes que seleccionar primero un elemento de la lista antes de presionar el botón gráfico. File open error Error de archivo abierto Wrong file format Formato de archivo incorrecto Incorrect CQ database version Versión incorrecta de la base de datos de CQ OK Vale Unknown Error Error desconocido codequery-0.21.0/gui/translations/codequery_fr.ts000066400000000000000000000561461310136352400221500ustar00rootroot00000000000000 DialogGraph Graph Graphique Please wait ... Veuillez patienter... Zoom Out Effectuer un zoom arrière Zoom In Effectuez un zoom avant Number of levels: Nombre de niveaux: Save to DOT file Enregistrer dans fichier DOT Save Image Enregistrer l'Image Close Fermer MainWindow CodeQuery CodeQuery Open Database Base de données ouverte Auto-complete Semi-automatique Exact match Correspondance exacte File path filter Filtre de chemin de fichier Filter Filtre File path filter, wildcard searches (* and ?) are supported Filtre de chemin d'accès de fichier, les recherches génériques (* et?) sont pris en charge Previous search term Terme de la recherche précédente Next search term Prochain mandat de recherche If Exact Match is switched off, wildcard searches (* and ?) are supported Si une correspondance exacte déconnexion, recherches génériques (* et?) sont pris en charge Search Rechercher Paste and Search Pâte et recherche List of all files liste de tous les fichiers Draw graph Tracer graphique Previous File Fichier précédent Next File Fichier suivant Open in Editor Ouvert dans l'éditeur Go to selected line Aller à la ligne sélectionnée Reduce font size Réduire la taille de police Increase font size Augmenter la taille de police Copy, paste and search Copier, coller et Rechercher Symbol search only for paste and search Recherche de symbole que pour la pâte et de la recherche Symbol only Symbole seulement Previous search result in this file Résultat de la recherche précédente dans ce fichier Next search result in this file Résultat de la recherche suivante dans ce fichier FilePath:0 FilePath:0 Sort by line number Trier par numéro de ligne Sort by name Trier par nom File Fichier Options Options Help Aide Exit Sortie Open Ouvert About Sur External Editor External Editor Open CQ Database Base de données ouverte CQ Language Langue About Qt Sur Qt File Viewer Settings Paramètres de visionneuse de fichiers aboutDialog About CodeQuery Sur CodeQuery OK Bien cqDialogGraph Images Images Export Image Exporter Image File could not be saved! Fichier n'a pas pu être sauvé ! Export DOT file Exporter fichier DOT fileViewSettingsDialog File Viewer Settings Paramètres de visionneuse de fichiers Font Polices Syntax highlight theme Thème de point culminant de syntaxe Tab Width (number of spaces) Onglet largeur (nombre de places) Cancel Annuler OK Bien fileviewer File not found Fichier non trouvé File could not be opened Fichier n'a pas pu être ouvert The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. Le fichier source à afficher est plus récent que le fichier de base de données CodeQuery. Il est conseillé de régénérer manuellement le fichier de base de données CodeQuery. Cancel Annuler OK Bien External Editor Configuration Configuration de l'éditeur externe Please enter the path and arguments for the external editor. Replace as follows: Veuillez entrer le chemin d'accès et les arguments de l'éditeur externe. Remplacer comme suit : for file path pour le chemin du fichier for line number pour le numéro de ligne For example: Par exemple : File could not be opened! Fichier n'a pas pu être ouvert ! External editor could not be started. Please check Options! Éditeur externe n'a pas pu être démarré. Vérifiez les Options ! listhandler Symbol Symbole File Fichier Line Ligne Preview Aperçu mainwindow Cancel Annuler OK Bien Language Langue Select language: Sélectionner une langue: searchhandler Symbol Symbole Function or macro definition (Graph available) Définition de fonction ou de la macro (graphique disponible) Class or struct (Graph available) Classe ou struct (graphique disponible) Functions calling this function Fonctions d'appel de cette fonction Functions called by this function Fonctions appelées par cette fonction Calls of this function or macro Appels de la fonction ou la macro Class which owns this member or method Classe qui possède ce membre ou la méthode Members or methods of this class Membres ou méthodes de cette classe Parent of this class Parent de cette classe Children of this class Enfants de cette classe Files including this file Fichiers à inclure ce fichier Full path for file Chemin d'accès complet pour le fichier Functions or macros inside this file Fonctions ou des macros à l'intérieur de ce fichier CodeQuery DB Files CodeQuery DB fichiers Open CQ database file Ouvrir le fichier de base de données CQ Function Call Graph Fonction Call Graph Class Inheritance Graph Classe héritage graphique If Exact Match is switched off, wildcard searches (* and ?) are supported Si une correspondance exacte déconnexion, recherches génériques (* et?) sont pris en charge results found résultats trouvés in progress en cours Cancel Annuler You have to first select an item from the list before pushing the Graph button. Vous devez d'abord sélectionner un élément dans la liste avant de pousser le bouton graphique. File open error Erreur de fichier ouvert Wrong file format Format de fichier incorrect Incorrect CQ database version Version de base de données incorrecte CQ OK Bien Unknown Error Erreur inconnue codequery-0.21.0/gui/translations/codequery_id.ts000066400000000000000000000547751310136352400221430ustar00rootroot00000000000000 DialogGraph Graph Grafik Please wait ... Harap tunggu... Zoom Out Zoom Out Zoom In Memperbesar Number of levels: Jumlah tingkat: Save to DOT file Menyimpan DOT file Save Image Simpan gambar Close Dekat MainWindow CodeQuery CodeQuery Open Database Buka Database Auto-complete Auto-lengkap Exact match Pencocokan sama persis File path filter File path filter Filter Filter File path filter, wildcard searches (* and ?) are supported File path filter, pencarian wildcard (* dan?) yang didukung Previous search term Istilah penelusuran sebelumnya Next search term Istilah pencarian berikutnya If Exact Match is switched off, wildcard searches (* and ?) are supported Jika pencocokan sama persis dimatikan, pencarian wildcard (* dan?) yang didukung Search Cari Paste and Search Tempel dan telusuri List of all files Daftar semua file Draw graph Menggambar grafik Previous File File sebelumnya Next File Sebelumnya/berikutnya Open in Editor Terbuka di Editor Go to selected line Pergi ke saluran yang dipilih Reduce font size Mengurangi ukuran font Increase font size Meningkatkan ukuran font Copy, paste and search Salin, Tempel dan telusuri Symbol search only for paste and search Simbol pencarian hanya untuk Tempel dan telusuri Symbol only Simbol hanya Previous search result in this file Hasil penelusuran sebelumnya dalam file ini Next search result in this file Hasil pencarian berikutnya dalam file ini FilePath:0 FilePath:0 Sort by line number Urut berdasarkan nomor baris Sort by name Urut berdasarkan nama File File Options Pilihan Help Tolong Exit Keluar Open Buka About Tentang External Editor Editor eksternal Open CQ Database CQ buka Database Language Bahasa About Qt Tentang Qt File Viewer Settings Pengaturan file Viewer aboutDialog About CodeQuery Tentang CodeQuery OK Oke cqDialogGraph Images Gambar Export Image Ekspor gambar File could not be saved! File tidak bisa diselamatkan! Export DOT file Mengekspor DOT file fileViewSettingsDialog File Viewer Settings Pengaturan file Viewer Font Font Syntax highlight theme Sintaks sorot tema Tab Width (number of spaces) Tab lebar (jumlah ruang) Cancel Batal OK Oke fileviewer File not found File tidak ditemukan File could not be opened File tidak bisa dibuka The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. File sumber untuk dilihat lebih baru daripada CodeQuery database file. Anda disarankan untuk secara manual regenerasi CodeQuery database file. Cancel Batal OK Oke External Editor Configuration Konfigurasi eksternal Editor Please enter the path and arguments for the external editor. Replace as follows: Harap masukkan path dan argumen untuk editor eksternal. Ganti sebagai berikut: for file path untuk file path for line number untuk nomor baris For example: Sebagai contoh: File could not be opened! File tidak bisa dibuka! External editor could not be started. Please check Options! Editor eksternal tidak dapat dimulai. Silakan periksa pilihan! listhandler Symbol Simbol File File Line Baris Preview Tinjauan mainwindow Cancel Batal OK Oke Language Bahasa Select language: Pilih bahasa: searchhandler Symbol Simbol Function or macro definition (Graph available) Definisi fungsi atau makro (grafik tersedia) Class or struct (Graph available) Kelas atau struct (grafik tersedia) Functions calling this function Fungsi-fungsi yang memanggil fungsi ini Functions called by this function Fungsi-fungsi yang disebut oleh fungsi ini Calls of this function or macro Panggilan ini fungsi atau makro Class which owns this member or method Kelas yang memiliki anggota atau metode ini Members or methods of this class Anggota atau metode kelas ini Parent of this class Orang tua dari kelas ini Children of this class Anak-anak kelas ini Files including this file File termasuk file ini Full path for file Path lengkap untuk file Functions or macros inside this file Fungsi atau Macro di dalam file ini CodeQuery DB Files CodeQuery DB file Open CQ database file Buka file database CQ Function Call Graph Grafik fungsi panggilan Class Inheritance Graph Kelas warisan grafik If Exact Match is switched off, wildcard searches (* and ?) are supported Jika pencocokan sama persis dimatikan, pencarian wildcard (* dan?) yang didukung results found hasil ditemukan in progress sedang berlangsung Cancel Batal You have to first select an item from the list before pushing the Graph button. Anda harus memilih dulu item dari daftar sebelum menekan tombol grafik. File open error Buka file kesalahan Wrong file format Format file salah Incorrect CQ database version Salah CQ database versi OK Oke Unknown Error Error tidak diketahui codequery-0.21.0/gui/translations/codequery_it.ts000066400000000000000000000554701310136352400221540ustar00rootroot00000000000000 DialogGraph Graph Grafico Please wait ... Attendere prego... Zoom Out Zoom indietro Zoom In Zoom In Number of levels: Numero di livelli: Save to DOT file Salvare file DOT Save Image Salva immagine Close Chiudere MainWindow CodeQuery CodeQuery Open Database Database aperto Auto-complete Completamento automatico Exact match Corrispondenza esatta File path filter Filtro percorso file Filter Filtro File path filter, wildcard searches (* and ?) are supported Filtro percorso file, ricerche con caratteri jolly (* e?) sono supportati Previous search term Termine di ricerca precedente Next search term Successivo al termine di ricerca If Exact Match is switched off, wildcard searches (* and ?) are supported Se la corrispondenza esatta è spento, ricerche con caratteri jolly (* e?) sono supportati Search Ricerca Paste and Search Incolla e ricerca List of all files elenco di tutti i file Draw graph Disegnare il grafico Previous File Precedente File Next File File successivo Open in Editor Aperto nell'Editor Go to selected line Vai alla riga selezionata. Reduce font size Ridurre la dimensione del carattere Increase font size Aumentare la dimensione del carattere Copy, paste and search Copia, incolla e ricerca Symbol search only for paste and search Simbolo cerca solo pasta e ricerca Symbol only Unico simbolo Previous search result in this file Risultato della ricerca precedente in questo file Next search result in this file Risultati di ricerca successivo in questo file FilePath:0 FilePath:0 Sort by line number Ordina per numero di riga Sort by name Ordina per nome File File Options Opzioni Help Guida Exit Uscita Open Open About Info su External Editor Editor esterno Open CQ Database CQ Open Database Language Lingua About Qt Info su Qt File Viewer Settings Impostazioni del file Viewer aboutDialog About CodeQuery Info su CodeQuery OK Ok cqDialogGraph Images Immagini Export Image Esportazione immagine File could not be saved! File non poteva essere salvato! Export DOT file Esportare file DOT fileViewSettingsDialog File Viewer Settings Impostazioni del file Viewer Font Tipo di carattere Syntax highlight theme Tema di evidenziazione sintassi Tab Width (number of spaces) Larghezza scheda (numero di spazi) Cancel Annulla OK Ok fileviewer File not found File non trovato File could not be opened File non può essere aperto The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. Il file di origine per essere visualizzati è più recente rispetto al file di database CodeQuery. Si raccomanda di rigenerare manualmente il file di database CodeQuery. Cancel Annulla OK Ok External Editor Configuration Configurazione Editor esterno Please enter the path and arguments for the external editor. Replace as follows: Inserisci il percorso e gli argomenti per l'editor esterno. Sostituire come segue: for file path per il percorso del file for line number per numero di riga For example: Ad esempio: File could not be opened! File non può essere aperto! External editor could not be started. Please check Options! Editor esterno potrebbe non essere avviato. Si prega di controllare le opzioni! listhandler Symbol Simbolo File File Line Linea Preview Anteprima mainwindow Cancel Annulla OK Ok Language Lingua Select language: Seleziona lingua: searchhandler Symbol Simbolo Function or macro definition (Graph available) Definizione di funzione o macro (grafico disponibile) Class or struct (Graph available) Classe o struttura (grafico disponibile) Functions calling this function Funzioni di chiamata a questa funzione Functions called by this function Funzioni chiamate da questa funzione Calls of this function or macro Chiamate di questa funzione o macro Class which owns this member or method Classe che possiede questo membro o metodo. Members or methods of this class Membri o i metodi di questa classe Parent of this class Padre di questa classe Children of this class Bambini di questa classe Files including this file File incluso questo file Full path for file Percorso completo per il file Functions or macros inside this file Macro o funzioni all'interno di questo file. CodeQuery DB Files CodeQuery DB file Open CQ database file Aprire il file database CQ Function Call Graph Funzione Call Graph Class Inheritance Graph Grafico di ereditarietà di classe If Exact Match is switched off, wildcard searches (* and ?) are supported Se la corrispondenza esatta è spento, ricerche con caratteri jolly (* e?) sono supportati results found risultati trovati in progress in corso Cancel Annulla You have to first select an item from the list before pushing the Graph button. È necessario innanzitutto selezionare un elemento dall'elenco prima di spingere il pulsante grafico. File open error Errore di file aperti Wrong file format Formato di file sbagliato Incorrect CQ database version Versione del database corretto CQ OK Ok Unknown Error Errore sconosciuto codequery-0.21.0/gui/translations/codequery_ja.ts000066400000000000000000000571351310136352400221320ustar00rootroot00000000000000 DialogGraph Graph グラフ Please wait ... ãŠå¾…ã¡ãã ã•ã„。。。 Zoom Out ズーム アウト Zoom In ズームインã—ã¾ã™ã€‚ Number of levels: レベル数: Save to DOT file ドット ファイルã«ä¿å­˜ã—ã¾ã™ã€‚ Save Image ç”»åƒã‚’ä¿å­˜ã—ã¾ã™ã€‚ Close é–‰ã˜ã‚‹ MainWindow CodeQuery CodeQuery Open Database データベースを開ã Auto-complete 自動車-完全㪠Exact match 完全ã«ä¸€è‡´ã—ã¾ã™ã€‚ File path filter ファイル パス フィルター Filter フィルター File path filter, wildcard searches (* and ?) are supported ファイル パス フィルターã€ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰æ¤œç´¢ (* ã¨?) ãŒã‚µãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã™ Previous search term å‰ã®æ¤œç´¢ã‚¯ã‚¨ãƒª Next search term æ¬¡ã®æ¤œç´¢ç”¨èªž If Exact Match is switched off, wildcard searches (* and ?) are supported 完全ã«ä¸€è‡´ã™ã‚‹ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰æ¤œç´¢ã‚’切り替ãˆãŸå ´åˆ (* ã¨?) サãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã™ã€‚ Search 検索 Paste and Search 貼り付ã‘ã€æ¤œç´¢ List of all files ã™ã¹ã¦ã®ãƒ•ァイルã®ä¸€è¦§ Draw graph グラフをæã Previous File 以å‰ã®ãƒ•ァイル Next File 次ã®ãƒ•ァイル Open in Editor エディターã§é–‹ã Go to selected line é¸æŠžã—ãŸè¡Œã«ç§»å‹•ã—ã¾ã™ã€‚ Reduce font size フォント サイズをå°ã•ã Increase font size フォント サイズを大ãã Copy, paste and search コピーã€è²¼ã‚Šä»˜ã‘ã€æ¤œç´¢ Symbol search only for paste and search シンボル検索ã¯ã€è²¼ã‚Šä»˜ã‘ã€æ¤œç´¢ã®ã¿ Symbol only シンボルã®ã¿ Previous search result in this file ã“ã®ãƒ•ァイルã®å‰ã®æ¤œç´¢çµæžœ Next search result in this file ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã®æ¬¡ã®æ¤œç´¢çµæžœ FilePath:0 FilePath:0 Sort by line number 行番å·é †ã«ä¸¦ã¹æ›¿ãˆã¾ã™ Sort by name åå‰é †ã«ä¸¦ã¹æ›¿ãˆã¾ã™ File ファイル Options オプション Help ヘルプ Exit 終了 Open オープン About ã«ã¤ã„㦠External Editor 外部エディター Open CQ Database オープン cq, データベース Language 言語 About Qt Qt ã«ã¤ã„㦠File Viewer Settings ファイル ビューアーã®è¨­å®š aboutDialog About CodeQuery CodeQuery ã«ã¤ã„㦠OK ã‚ã‹ã‚Šã¾ã—㟠cqDialogGraph Images ç”»åƒ Export Image イメージをエクスãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ File could not be saved! ファイルをä¿å­˜ã§ãã¾ã›ã‚“ã§ã—ãŸ ï¼ Export DOT file ドット ファイルをエクスãƒãƒ¼ãƒˆã—ã¾ã™ã€‚ fileViewSettingsDialog File Viewer Settings ファイル ビューアーã®è¨­å®š Font フォント Syntax highlight theme 構文強調表示テーマ Tab Width (number of spaces) タブ幅 (スペース数) Cancel キャンセル OK ã‚ã‹ã‚Šã¾ã—㟠fileviewer File not found ファイルãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“ File could not be opened ファイルを開ãã“ã¨ãŒã§ãã¾ã›ã‚“。 The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. ソース ファイルを表示ã™ã‚‹ã®ã«ã¯ã€CodeQuery データベース ファイルよりも新ã—ã„ã§ã™ã€‚CodeQuery データベース ファイルを手動ã§å†ç”Ÿæˆã«æŽ¨å¥¨ã•れã¾ã™ã€‚ Cancel キャンセル OK ã‚ã‹ã‚Šã¾ã—㟠External Editor Configuration å¤–éƒ¨ã‚¨ãƒ‡ã‚£ã‚¿ãƒ¼ã®æ§‹æˆ Please enter the path and arguments for the external editor. Replace as follows: 外部エディターã®å¼•æ•°ã¨ãƒ‘スを入力ã—ã¦ãã ã•ã„。次ã®ã‚ˆã†ã«ç½®ãæ›ãˆã¾ã™ã€‚ for file path ファイルã®ãƒ‘ス for line number 行番å·ã«ã¤ã„㦠For example: ãŸã¨ãˆã°ã€‚ File could not be opened! ファイルを開ãã“ã¨ãŒã§ãã¾ã›ã‚“ ï¼ External editor could not be started. Please check Options! 外部エディターを開始ã§ãã¾ã›ã‚“ã§ã—ãŸã€‚オプションを確èªã—ã¦ãã ã•ã„ ï¼ listhandler Symbol シンボル File ファイル Line ライン Preview プレビュー mainwindow Cancel キャンセル OK ã‚ã‹ã‚Šã¾ã—㟠Language 言語 Select language: 言語ã®é¸æŠžï¼š searchhandler Symbol シンボル Function or macro definition (Graph available) 関数ã¾ãŸã¯ãƒžã‚¯ãƒ­ã®å®šç¾© (グラフ) Class or struct (Graph available) クラスã¾ãŸã¯æ§‹é€ ä½“ (利用å¯èƒ½ãªã‚°ãƒ©ãƒ•) Functions calling this function ã“ã®é–¢æ•°ã‚’呼ã³å‡ºã™é–¢æ•° Functions called by this function ã“ã®é–¢æ•°ã«ã‚ˆã£ã¦å‘¼ã³å‡ºã•れãŸé–¢æ•° Calls of this function or macro ã“ã®é–¢æ•°ã‚„マクロã®å‘¼ã³å‡ºã— Class which owns this member or method ã“ã®ãƒ¡ãƒ³ãƒãƒ¼ã¾ãŸã¯ãƒ¡ã‚½ãƒƒãƒ‰ã‚’所有ã—ã¦ã„るクラス Members or methods of this class ã“ã®ã‚¯ãƒ©ã‚¹ã®ãƒ¡ãƒ³ãƒãƒ¼ã‚„メソッド Parent of this class ã“ã®ã‚¯ãƒ©ã‚¹ã®è¦ª Children of this class ã“ã®ã‚¯ãƒ©ã‚¹ã®å­ä¾›ãŸã¡ Files including this file ã“ã®ãƒ•ァイルをå«ã‚€ãƒ•ァイル Full path for file ファイルã®å®Œå…¨ãªãƒ‘ス Functions or macros inside this file 関数ã¾ãŸã¯ã“ã®ãƒ•ァイル内ã®ãƒžã‚¯ãƒ­ CodeQuery DB Files CodeQuery DB ファイル Open CQ database file Cq, データベース ファイルを開ã Function Call Graph 関数コール グラフ Class Inheritance Graph クラス継承グラフ If Exact Match is switched off, wildcard searches (* and ?) are supported 完全ã«ä¸€è‡´ã™ã‚‹ãƒ¯ã‚¤ãƒ«ãƒ‰ã‚«ãƒ¼ãƒ‰æ¤œç´¢ã‚’切り替ãˆãŸå ´åˆ (* ã¨?) サãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã™ã€‚ results found æ¤œç´¢çµæžœ in progress 進行中 Cancel キャンセル You have to first select an item from the list before pushing the Graph button. [グラフ] ボタンを押ã™å‰ã«ã¾ãšä¸€è¦§ã‹ã‚‰é …ç›®ã‚’é¸æŠžã™ã‚‹å¿…è¦ãŒã‚りã¾ã™ã€‚ File open error ファイルを開ãエラー Wrong file format ファイル フォーマット Incorrect CQ database version Cq, データベース ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒæ­£ã—ããªã„ã§ã™ã€‚ OK ã‚ã‹ã‚Šã¾ã—㟠Unknown Error 䏿˜Žãªã‚¨ãƒ©ãƒ¼ codequery-0.21.0/gui/translations/codequery_ko.ts000066400000000000000000000556321310136352400221510ustar00rootroot00000000000000 DialogGraph Graph 그래프 Please wait ... 잠시만 기다려 주십시오... Zoom Out 축소 Zoom In 확대 Number of levels: ìˆ˜ì¤€ì˜ ìˆ˜: Save to DOT file ì  íŒŒì¼ì— 저장 Save Image ì´ë¯¸ì§€ 저장 Close 닫기 MainWindow CodeQuery CodeQuery Open Database ë°ì´í„°ë² ì´ìФ 열기 Auto-complete ìžë™ 완성 Exact match 정확 하 게 ì¼ì¹˜ File path filter íŒŒì¼ ê²½ë¡œ í•„í„° Filter í•„í„° File path filter, wildcard searches (* and ?) are supported íŒŒì¼ ê²½ë¡œ í•„í„°, 와ì¼ë“œ 카드 검색 (* ë°?) ì§€ì› Previous search term ì´ì „ 검색어 Next search term ë‹¤ìŒ ê²€ìƒ‰ì–´ If Exact Match is switched off, wildcard searches (* and ?) are supported 정확히 ì¼ì¹˜ 하는 와ì¼ë“œ 카드 ê²€ìƒ‰ì„ ì „í™˜ 하는 경우 (* ë°?) ì§€ì› Search 검색 Paste and Search 붙여넣기 ë° ê²€ìƒ‰ List of all files 모든 파ì¼ì˜ ëª©ë¡ Draw graph 그래프 그리기 Previous File ì´ì „ íŒŒì¼ Next File ë‹¤ìŒ íŒŒì¼ Open in Editor 편집기ì—서 ì—´ë ¤ Go to selected line ì„ íƒ ëœ ì¤„ìœ¼ë¡œ ì´ë™ Reduce font size 글꼴 í¬ê¸° 줄ì´ê¸° Increase font size 글꼴 í¬ê¸° ì¦ê°€ Copy, paste and search 복사, 붙여넣기 ë° ê²€ìƒ‰ Symbol search only for paste and search 붙여넣기 ë° ê²€ìƒ‰ì— ëŒ€í•´ì„œë§Œ 기호 검색 Symbol only ìƒì§•ë§Œ Previous search result in this file ì´ íŒŒì¼ì—서 ì´ì „ 검색 ê²°ê³¼ Next search result in this file ì´ íŒŒì¼ì—서 ë‹¤ìŒ ê²€ìƒ‰ ê²°ê³¼ FilePath:0 FilePath:0 Sort by line number 줄 번호로 ì •ë ¬ 합니다 Sort by name ì´ë¦„으로 ì •ë ¬ 합니다 File íŒŒì¼ Options 옵션 Help ë„ì›€ë§ Exit 출구 Open 오픈 About ì— ëŒ€ 한 External Editor 외부 편집기 Open CQ Database 오픈 CQ ë°ì´í„°ë² ì´ìФ Language 언어 About Qt Qtì— ëŒ€ 한 File Viewer Settings íŒŒì¼ ë·°ì–´ 설정 aboutDialog About CodeQuery CodeQueryì— ëŒ€ 한 OK ê´œì°®ì•˜ë˜ ê²ƒ cqDialogGraph Images ì´ë¯¸ì§€ Export Image ì´ë¯¸ì§€ 내보내기 File could not be saved! 파ì¼ì„ 저장할 수 없습니다! Export DOT file ë„트 íŒŒì¼ ë‚´ë³´ë‚´ê¸° fileViewSettingsDialog File Viewer Settings íŒŒì¼ ë·°ì–´ 설정 Font 글꼴 Syntax highlight theme 구문 하ì´ë¼ì´íЏ 테마 Tab Width (number of spaces) 탭 너비 (공백 수) Cancel 취소 OK ê´œì°®ì•˜ë˜ ê²ƒ fileviewer File not found 파ì¼ì„ ì°¾ì„ ìˆ˜ 없습니다 File could not be opened 파ì¼ì„ ì—´ 수 없습니다. The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. 소스 파ì¼ì„ ë³¼ 수 CodeQuery ë°ì´í„°ë² ì´ìФ íŒŒì¼ ë³´ë‹¤ 최신입니다. CodeQuery ë°ì´í„°ë² ì´ìФ 파ì¼ì„ 수ë™ìœ¼ë¡œ 다시 ìƒì„± 하는 ê²ƒì´ ì¢‹ìŠµë‹ˆë‹¤. Cancel 취소 OK ê´œì°®ì•˜ë˜ ê²ƒ External Editor Configuration 외부 편집기 구성 Please enter the path and arguments for the external editor. Replace as follows: 경로 ë° ì™¸ë¶€ íŽ¸ì§‘ê¸°ì— ëŒ€ 한 ì¸ìˆ˜ë¥¼ ìž…ë ¥ í•´ 주시기 ë°”ëžë‹ˆë‹¤. 다ìŒê³¼ ê°™ì´ ë°”ê¿‰ë‹ˆë‹¤. for file path íŒŒì¼ ê²½ë¡œ 대 한 for line number 줄 ë²ˆí˜¸ì— ëŒ€ 한 For example: 예를 들어: File could not be opened! 파ì¼ì„ ì—´ 수 없습니다! External editor could not be started. Please check Options! 외부 편집기를 시작할 수 없습니다. ì˜µì…˜ì„ í™•ì¸ í•˜ì‹­ì‹œì˜¤! listhandler Symbol 기호 File íŒŒì¼ Line ì„  Preview 미리 보기 mainwindow Cancel 취소 OK ê´œì°®ì•˜ë˜ ê²ƒ Language 언어 Select language: 언어 ì„ íƒ: searchhandler Symbol 기호 Function or macro definition (Graph available) 함수 ë˜ëŠ” 매í¬ë¡œ ì •ì˜ (그래프 제공) Class or struct (Graph available) í´ëž˜ìФ ë˜ëŠ” 구조체 (그래프 제공) Functions calling this function ì´ í•¨ìˆ˜ë¥¼ 호출 하는 함수 Functions called by this function ì´ í•¨ìˆ˜ì— ì˜í•´ 호출 ëœ í•¨ìˆ˜ Calls of this function or macro ì´ í•¨ìˆ˜ ë˜ëŠ” 매í¬ë¡œì˜ 호출 Class which owns this member or method í´ëž˜ìФ 멤버 ë˜ëŠ” 메서드가 소유 하 ê³  있는 Members or methods of this class íšŒì› ë˜ëŠ”ì´ í´ëž˜ìŠ¤ì˜ ë©”ì„œë“œ Parent of this class ì´ í´ëž˜ìŠ¤ì˜ ë¶€ëª¨ Children of this class ì´ í´ëž˜ìŠ¤ì˜ ìžì‹ Files including this file ì´ íŒŒì¼ì„ í¬í•¨ 한 íŒŒì¼ Full path for file 파ì¼ì˜ ì „ì²´ 경로 Functions or macros inside this file ì´ íŒŒì¼ ì•ˆì— ë§¤í¬ë¡œ ë˜ëŠ” 함수 CodeQuery DB Files CodeQuery DB íŒŒì¼ Open CQ database file CQ ë°ì´í„°ë² ì´ìФ íŒŒì¼ ì—´ê¸° Function Call Graph 함수 호출 그래프 Class Inheritance Graph í´ëž˜ìФ ìƒì† 그래프 If Exact Match is switched off, wildcard searches (* and ?) are supported 정확히 ì¼ì¹˜ 하는 와ì¼ë“œ 카드 ê²€ìƒ‰ì„ ì „í™˜ 하는 경우 (* ë°?) ì§€ì› results found ì°¾ì€ ê²°ê³¼ in progress ì§„í–‰ 중 Cancel 취소 You have to first select an item from the list before pushing the Graph button. 먼저 그래프 ë²„íŠ¼ì„ ì¶”ì§„ 하기 ì „ì— ëª©ë¡ì—서 í•­ëª©ì„ ì„ íƒ í•´ì•¼ 합니다. File open error íŒŒì¼ ì—´ê¸° 오류 Wrong file format 잘못 ëœ íŒŒì¼ í˜•ì‹ Incorrect CQ database version 잘못 ëœ CQ ë°ì´í„°ë² ì´ìФ 버전 OK ê´œì°®ì•˜ë˜ ê²ƒ Unknown Error 알 수 없는 오류 codequery-0.21.0/gui/translations/codequery_zh-CHS.ts000066400000000000000000000543351310136352400225730ustar00rootroot00000000000000 DialogGraph Graph 图 Please wait ... 请ç¨å€™ã€‚。。 Zoom Out ç¼©å° Zoom In 放大 Number of levels: 级别数: Save to DOT file å°†ä¿å­˜åˆ°ç‚¹æ–‡ä»¶ Save Image ä¿å­˜å›¾åƒ Close 关闭 MainWindow CodeQuery CodeQuery Open Database 打开的数æ®åº“ Auto-complete è‡ªåŠ¨å®Œæˆ Exact match ç²¾ç¡®åŒ¹é… File path filter 文件路径筛选器 Filter 筛选器 File path filter, wildcard searches (* and ?) are supported 文件路径筛选器〠通é…符æœç´¢ (* å’Œ?) æ”¯æŒ Previous search term 以å‰çš„æœç´¢è¯ Next search term 下一个æœç´¢è¯ If Exact Match is switched off, wildcard searches (* and ?) are supported 如果精确匹é…关掉,通é…符æœç´¢ (* å’Œ?) æ”¯æŒ Search æœç´¢ Paste and Search 粘贴并æœç´¢ List of all files 所有文件列表 Draw graph 绘制关系图 Previous File 以å‰çš„æ–‡ä»¶ Next File 下一个文件 Open in Editor 在编辑器中打开 Go to selected line 转到所选行 Reduce font size å‡å°å­—ä½“å¤§å° Increase font size å¢žåŠ å­—ä½“å¤§å° Copy, paste and search å¤åˆ¶ã€ 粘贴和æœç´¢ Symbol search only for paste and search 仅用于粘贴和æœç´¢ç¬¦å·æœç´¢ Symbol only åªæœ‰ç¬¦å· Previous search result in this file 此文件中的上一个æœç´¢ç»“æžœ Next search result in this file 在此文件中的下一个æœç´¢ç»“æžœ FilePath:0 FilePath:0 Sort by line number æŒ‰è¡Œå·æŽ’åº Sort by name 按åç§°æŽ’åº File 文件 Options 选项 Help 帮助 Exit 退出 Open 开放 About 关于 External Editor 外部编辑器 Open CQ Database 打开 CQ æ•°æ®åº“ Language 语言 About Qt 关于 Qt File Viewer Settings 文件查看器设置 aboutDialog About CodeQuery 关于 CodeQuery OK 还行 cqDialogGraph Images å›¾åƒ Export Image å¯¼å‡ºå›¾åƒ File could not be saved! 无法ä¿å­˜æ–‡ä»¶ ï¼ Export DOT file 出å£ç‚¹æ–‡ä»¶ fileViewSettingsDialog File Viewer Settings 文件查看器设置 Font 字体 Syntax highlight theme 语法çªå‡ºæ˜¾ç¤ºä¸»é¢˜ Tab Width (number of spaces) 标签宽度 (空格的数é‡ï¼‰ Cancel å–æ¶ˆ OK 还行 fileviewer File not found 找ä¸åˆ°æ–‡ä»¶ File could not be opened ä¸èƒ½æ‰“开文件 The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. è¦æŸ¥çœ‹æºæ–‡ä»¶æ˜¯æ¯” CodeQuery æ•°æ®åº“æ–‡ä»¶æ›´æ–°ã€‚å»ºè®®æ‚¨æ‰‹åŠ¨é‡æ–°ç”Ÿæˆçš„ CodeQuery æ•°æ®åº“文件。 Cancel å–æ¶ˆ OK 还行 External Editor Configuration 外部编辑器é…ç½® Please enter the path and arguments for the external editor. Replace as follows: è¯·è¾“å…¥è·¯å¾„å’Œå‚æ•°çš„外部编辑器。替æ¢ï¼Œå¦‚下所示: for file path 文件路径 for line number ä¸ºè¡Œå· For example: 例如: File could not be opened! ä¸èƒ½æ‰“开文件 ï¼ External editor could not be started. Please check Options! 无法å¯åŠ¨å¤–éƒ¨ç¼–è¾‘å™¨ã€‚è¯·æ£€æŸ¥é€‰é¡¹ ï¼ listhandler Symbol ç¬¦å· File 文件 Line 行 Preview 预览 mainwindow Cancel å–æ¶ˆ OK 还行 Language 语言 Select language: 选择语言: searchhandler Symbol ç¬¦å· Function or macro definition (Graph available) 函数或å®çš„定义 (Graph 中å¯ç”¨) Class or struct (Graph available) 类或结构 (Graph 中å¯ç”¨ï¼‰ Functions calling this function 调用此函数的函数 Functions called by this function 此函数调用的函数 Calls of this function or macro 此函数或å®çš„调用 Class which owns this member or method 拥有此æˆå‘˜æˆ–方法的类 Members or methods of this class 此类方法或æˆå‘˜ Parent of this class 此类的父 Children of this class 儿童的此类 Files including this file 此文件包括文件 Full path for file 文件的完整路径 Functions or macros inside this file å‡½æ•°æˆ–æ­¤æ–‡ä»¶ä¸­çš„å® CodeQuery DB Files CodeQuery DB 文件 Open CQ database file 打开 CQ æ•°æ®åº“文件 Function Call Graph 函数的调用关系图 Class Inheritance Graph 类继承关系图 If Exact Match is switched off, wildcard searches (* and ?) are supported 如果精确匹é…关掉,通é…符æœç´¢ (* å’Œ?) æ”¯æŒ results found 找到的结果 in progress 在进行中 Cancel å–æ¶ˆ You have to first select an item from the list before pushing the Graph button. 您必须先推图形按钮之å‰ä»Žåˆ—表中选择一个项。 File open error 文件打开错误 Wrong file format é”™è¯¯çš„æ–‡ä»¶æ ¼å¼ Incorrect CQ database version CQ æ•°æ®åº“ç‰ˆæœ¬ä¸æ­£ç¡® OK 还行 Unknown Error 未知的错误 codequery-0.21.0/gui/translations/codequery_zh-CHT.ts000066400000000000000000000542441310136352400225730ustar00rootroot00000000000000 DialogGraph Graph 圖 Please wait ... è«‹ç¨å€™ã€‚。。 Zoom Out ç¸®å° Zoom In 放大 Number of levels: 級別數: Save to DOT file å°‡ä¿å­˜åˆ°é»žæª” Save Image ä¿å­˜åœ–åƒ Close 關閉 MainWindow CodeQuery CodeQuery Open Database 打開的資料庫 Auto-complete è‡ªå‹•å®Œæˆ Exact match ç²¾ç¢ºåŒ¹é… File path filter 檔路徑篩é¸å™¨ Filter 篩é¸å™¨ File path filter, wildcard searches (* and ?) are supported 檔路徑篩é¸å™¨ã€ è¬ç”¨å­—å…ƒæœå°‹ (* å’Œ?) æ”¯æ´ Previous search term 以å‰çš„æœç´¢è©ž Next search term 下一個æœç´¢è©ž If Exact Match is switched off, wildcard searches (* and ?) are supported 如果精確匹é…關掉,è¬ç”¨å­—å…ƒæœå°‹ (* å’Œ?) æ”¯æ´ Search æœç´¢ Paste and Search 粘貼並æœç´¢ List of all files 所有檔案清單 Draw graph 繪製關係圖 Previous File 以å‰çš„æª” Next File 下一個檔 Open in Editor 在編輯器中打開 Go to selected line 轉到所é¸è¡Œ Reduce font size 減å°å­—é«”å¤§å° Increase font size å¢žåŠ å­—é«”å¤§å° Copy, paste and search 複製〠粘貼和æœç´¢ Symbol search only for paste and search 僅用於粘貼和æœç´¢ç¬¦è™Ÿæœç´¢ Symbol only åªæœ‰ç¬¦è™Ÿ Previous search result in this file 此檔中的上一個æœå°‹çµæžœ Next search result in this file 在此檔中的下一個æœå°‹çµæžœ FilePath:0 FilePath:0 Sort by line number æŒ‰è¡Œè™ŸæŽ’åº Sort by name 按åç¨±æŽ’åº File 檔 Options é¸é … Help 説明 Exit 退出 Open 開放 About 關於 External Editor 外部編輯器 Open CQ Database 打開 CQ 資料庫 Language 語言 About Qt 關於 Qt File Viewer Settings 檔檢視器設置 aboutDialog About CodeQuery 關於 CodeQuery OK 還行 cqDialogGraph Images åœ–åƒ Export Image åŒ¯å‡ºåœ–åƒ File could not be saved! 無法ä¿å­˜æª” ï¼ Export DOT file 出å£é»žæª” fileViewSettingsDialog File Viewer Settings 檔檢視器設置 Font å­—é«” Syntax highlight theme 語法çªå‡ºé¡¯ç¤ºä¸»é¡Œ Tab Width (number of spaces) 標籤寬度 (空格的數é‡ï¼‰ Cancel å–æ¶ˆ OK 還行 fileviewer File not found 找ä¸åˆ°æª” File could not be opened ä¸èƒ½æ‰“開檔 The source file to be viewed is newer than the CodeQuery database file. You are recommended to manually regenerate the CodeQuery database file. è¦æŸ¥çœ‹åŽŸå§‹æª”æ¡ˆæ˜¯æ¯” CodeQuery è³‡æ–™åº«æª”æ¡ˆæ›´æ–°ã€‚å»ºè­°æ‚¨æ‰‹å‹•é‡æ–°ç”Ÿæˆçš„ CodeQuery 資料庫檔案。 Cancel å–æ¶ˆ OK 還行 External Editor Configuration 外部編輯器é…ç½® Please enter the path and arguments for the external editor. Replace as follows: è«‹è¼¸å…¥è·¯å¾‘å’Œåƒæ•¸çš„外部編輯器。替æ›ï¼Œå¦‚下所示: for file path 檔路徑 for line number 為行號 For example: 例如: File could not be opened! ä¸èƒ½æ‰“開檔 ï¼ External editor could not be started. Please check Options! 無法啟動外部編輯器。請檢查é¸é … ï¼ listhandler Symbol 符號 File 檔 Line 行 Preview é è¦½ mainwindow Cancel å–æ¶ˆ OK 還行 Language 語言 Select language: 鏿“‡èªžè¨€ï¼š searchhandler Symbol 符號 Function or macro definition (Graph available) 函數或å®çš„定義 (Graph 中å¯ç”¨) Class or struct (Graph available) é¡žæˆ–çµæ§‹ (Graph 中å¯ç”¨ï¼‰ Functions calling this function 調用此函數的函數 Functions called by this function 此函å¼å‘¼å«çš„函數 Calls of this function or macro 此函數或å®çš„調用 Class which owns this member or method æ“æœ‰æ­¤æˆå“¡æˆ–方法的類 Members or methods of this class 此類方法或æˆå“¡ Parent of this class 此類的父 Children of this class 兒童的此類 Files including this file 此檔包括檔 Full path for file 檔的完整路徑 Functions or macros inside this file å‡½æ•¸æˆ–æ­¤æª”ä¸­çš„å® CodeQuery DB Files CodeQuery DB 檔 Open CQ database file 打開 CQ 資料庫檔案 Function Call Graph 函數的調用關係圖 Class Inheritance Graph 類繼承關係圖 If Exact Match is switched off, wildcard searches (* and ?) are supported 如果精確匹é…關掉,è¬ç”¨å­—å…ƒæœå°‹ (* å’Œ?) æ”¯æ´ results found æ‰¾åˆ°çš„çµæžœ in progress 在進行中 Cancel å–æ¶ˆ You have to first select an item from the list before pushing the Graph button. 您必須先推圖形按鈕之å‰å¾žæ¸…單䏭鏿“‡ä¸€å€‹é …。 File open error 檔打開錯誤 Wrong file format éŒ¯èª¤çš„æª”æ¡ˆæ ¼å¼ Incorrect CQ database version CQ è³‡æ–™åº«ç‰ˆæœ¬ä¸æ­£ç¢º OK 還行 Unknown Error 未知的錯誤 codequery-0.21.0/gui/translations/dolupdate.pl000066400000000000000000000026111310136352400214130ustar00rootroot00000000000000 # lupdate # # This license applies only to this file: # # Copyright (c) 2013 ruben2020 # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # use strict; my @langfiles; open(FIL, "./tslist.txt"); while() { chomp; if (/\{[ \t]*\"(.+)\"[ \t]*,[ \t]*\"(.+)\"[ \t]*\}/) { push @langfiles, $2; } } close(FIL); foreach(@langfiles) { system("lupdate-qt4 -no-obsolete ../*.cpp ../ui/*.ui -ts ./$_.ts"); } codequery-0.21.0/gui/translations/dowebtranslate.pl000066400000000000000000000046651310136352400224630ustar00rootroot00000000000000 # Automatically web-translate ts files. # # This license applies only to this file: # # Copyright (c) 2013 ruben2020 # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. # use strict; use HTTP::Request::Common qw(POST); use LWP::UserAgent; my @langfiles; open(FIL, "./tslist.txt"); while() { chomp; if (/\{[ \t]*\"(.+)\"[ \t]*,[ \t]*\"(.+)\"[ \t]*\}/) { push @langfiles, $2; } } close(FIL); foreach(@langfiles) { system("lupdate-qt4 -no-obsolete ../*.cpp ../ui/*.ui -ts ./$_.ts"); } my $langout; my $langfil; foreach(@langfiles) { $langfil = "./$_.ts"; if ($_ =~ /codequery\_([A-Za-z0-9-]+)/) {$langout = $1;} if ($langout eq 'en') {next;} print "Web translating $langfil $langout ...\n"; &translatedoc($langfil, $langout); } ############################################# sub translatedoc { my ($fn, $lang) = @_; my $ua = LWP::UserAgent->new(); my $req = POST 'http://maille.tk/translate/index-curl.php', Content_Type => 'multipart/form-data', Content => [ "bingkey" => "689AC7C9ABE8CF4C53B930FE1A0019F73C0C8AB5", "languagein" => "en", "languageout" => $lang, "output" => "pofile", "pofile" => [$fn] ]; my $resp = $ua->request($req); my @respxml; if ($resp->is_success) { open(FILO, ">$fn"); @respxml = split /\n/, $resp->content; $respxml[0] =~ s/^[ \t]*<\?xml/as_string;} } codequery-0.21.0/gui/translations/tslist.txt000066400000000000000000000005351310136352400211630ustar00rootroot00000000000000{"English", "codequery_en" }, {"Deutsch", "codequery_de" }, {"Fran\347ais", "codequery_fr" }, {"Espa\361ol", "codequery_es" }, {"Italiano", "codequery_it" }, {"Bahasa Indonesia", "codequery_id" }, {"Chinese Simplified", "codequery_zh-CHS" }, {"Chinese Traditional", "codequery_zh-CHT" }, {"Japanese", "codequery_ja" }, {"Korean", "codequery_ko" }, codequery-0.21.0/gui/ui/000077500000000000000000000000001310136352400147715ustar00rootroot00000000000000codequery-0.21.0/gui/ui/aboutDialog.ui000066400000000000000000000074241310136352400175710ustar00rootroot00000000000000 aboutDialog 0 0 400 300 0 0 About CodeQuery true 0 0 :/mainwindow/images/logo.png false 0 0 Qt::AlignCenter true true 0 0 true true Qt::Horizontal 40 20 0 0 OK codequery-0.21.0/gui/ui/fileViewSettingsDialog.ui000066400000000000000000000111631310136352400217450ustar00rootroot00000000000000 fileViewSettingsDialog 0 0 423 162 File Viewer Settings true 0 0 Font 0 0 Syntax highlight theme 0 0 Tab Width (number of spaces) 0 0 0 0 0 0 Qt::Horizontal 40 20 0 0 Cancel 0 0 OK comboBoxFont lineEditTabWidth comboBoxTheme codequery-0.21.0/gui/ui/graphDialog.ui000066400000000000000000000144501310136352400175550ustar00rootroot00000000000000 DialogGraph 0 0 999 713 Graph true Please wait ... Qt::AlignCenter true 0 0 979 591 Qt::LeftToRight 1 0 Zoom Out Zoom Out :/mainwindow/images/Zoom_Out.png:/mainwindow/images/Zoom_Out.png 1 0 Zoom In Zoom In :/mainwindow/images/Zoom_In.png:/mainwindow/images/Zoom_In.png Qt::Vertical 5 0 Number of levels: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter 1 0 0 0 Save to DOT file Save to DOT file Save to DOT file 0 0 Save Image Save Image Save Image 0 0 Close Close Close pushButtonZoomOut pushButtonZoomIn pushButtonSaveDot pushButtonSave pushButtonClose codequery-0.21.0/gui/ui/mainWindow.ui000066400000000000000000000637751310136352400174660ustar00rootroot00000000000000 MainWindow 0 0 967 813 CodeQuery :/mainwindow/images/logo.png:/mainwindow/images/logo.png Open Database Open Database :/mainwindow/images/Database.png:/mainwindow/images/Database.png 24 24 0 0 Qt::RightToLeft QComboBox::AdjustToMinimumContentsLength Qt::Vertical Qt::LeftToRight Auto-complete Qt::Vertical Exact match Qt::Vertical File path filter File path filter Filter true 0 0 File path filter, wildcard searches (* and ?) are supported File path filter, wildcard searches (* and ?) are supported Qt::RightToLeft true QComboBox::NoInsert QComboBox::AdjustToMinimumContentsLength Previous search term Previous search term :/mainwindow/images/Arrow2_Left.png:/mainwindow/images/Arrow2_Left.png 24 24 Next search term Next search term :/mainwindow/images/Arrow2_Right.png:/mainwindow/images/Arrow2_Right.png 24 24 0 0 If Exact Match is switched off, wildcard searches (* and ?) are supported If Exact Match is switched off, wildcard searches (* and ?) are supported true QComboBox::NoInsert QComboBox::AdjustToMinimumContentsLength true Search Search :/mainwindow/images/Search.png:/mainwindow/images/Search.png 24 24 Paste and Search Paste and Search :/mainwindow/images/Clipboard_Paste.png:/mainwindow/images/Clipboard_Paste.png 24 24 List of all files List of all files :/mainwindow/images/Folder2.png:/mainwindow/images/Folder2.png 24 24 false Draw graph Draw graph :/mainwindow/images/Graph.png:/mainwindow/images/Graph.png 24 24 0 0 15 QComboBox::NoInsert QComboBox::AdjustToMinimumContentsLength Qt::Vertical 1 Previous File Previous File :/mainwindow/images/Arrow2_Left.png:/mainwindow/images/Arrow2_Left.png 24 24 Next File Next File :/mainwindow/images/Arrow2_Right.png:/mainwindow/images/Arrow2_Right.png 24 24 Open in Editor Open in Editor :/mainwindow/images/Document2.png:/mainwindow/images/Document2.png 24 24 Go to selected line Go to selected line :/mainwindow/images/Flag.png:/mainwindow/images/Flag.png 24 24 Reduce font size Reduce font size :/mainwindow/images/Text_Minus.png:/mainwindow/images/Text_Minus.png 24 24 Increase font size Increase font size :/mainwindow/images/Text_Plus.png:/mainwindow/images/Text_Plus.png 24 24 Qt::Vertical Copy, paste and search Copy, paste and search :/mainwindow/images/Clipboard_Paste.png:/mainwindow/images/Clipboard_Paste.png 24 24 Symbol search only for paste and search Symbol search only for paste and search Symbol only Qt::Vertical Previous search result in this file Previous search result in this file :/mainwindow/images/Arrow2_Up.png:/mainwindow/images/Arrow2_Up.png 24 24 Next search result in this file Next search result in this file :/mainwindow/images/Arrow2_Down.png:/mainwindow/images/Arrow2_Down.png 24 24 0 0 QFrame::Box QFrame::Sunken FilePath:0 Qt::AlignBottom|Qt::AlignRight|Qt::AlignTrailing Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse Qt::Horizontal 100 QComboBox::NoInsert Sort by line number Sort by name 1 0 4 0 0 0 967 28 File Options Help Exit QAction::QuitRole Open About External Editor Open CQ Database Language About Qt QAction::AboutQtRole File Viewer Settings ScintillaEdit QFrame
ScintillaEdit.h
1
pushButtonOpenDB comboBoxDB checkBoxAutoComplete checkBoxExactMatch checkBoxFilter comboBoxFilter pushButtonSearchPrev pushButtonSearchNext comboBoxSearch pushButtonSearch pushButtonClipSearch pushButtonFilesList pushButtonGraph comboBoxQueryType treeWidgetSearchResults pushButtonPrev pushButtonNext pushButtonOpenInEditor pushButtonGoToLine pushButtonTextShrink pushButtonTextEnlarge pushButtonPaste checkBoxSymbolOnly pushButtonUp pushButtonDown comboBoxFuncListSort listWidgetFunc checkBoxFilter toggled(bool) comboBoxFilter setEnabled(bool) 675 65 956 68
codequery-0.21.0/gui/winmain.cpp000066400000000000000000000056371310136352400165350ustar00rootroot00000000000000 /* Taken from: https://github.com/gosu/gosu/blob/master/src/WinMain.cpp This license applies only to this file: Copyright (C) 2001-2017 Julian Raschke, Jan Lücker and all contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Julian Raschke & contributors http://www.libgosu.org/ */ #ifdef _MSC_VER #include #include #include #include using namespace std; vector splitCmdLine() { vector result; const char* cmdLine = ::GetCommandLineA(); const char* argBegin = 0; bool isQuotedArg = false; while (*cmdLine) { if (*cmdLine == '"') { if (argBegin == 0) { argBegin = cmdLine + 1; isQuotedArg = true; } else if (isQuotedArg) { result.push_back(std::string(argBegin, cmdLine)); argBegin = 0; } } else if (!isspace((unsigned char)*cmdLine) && argBegin == 0) { argBegin = cmdLine; isQuotedArg = false; } else if (isspace((unsigned char)*cmdLine) && argBegin != 0 && !isQuotedArg) { result.push_back(std::string(argBegin, cmdLine + 1)); argBegin = 0; } ++cmdLine; } if (argBegin != 0) result.push_back(argBegin); return result; } int main(int argc, char* argv[]); int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { vector arguments = splitCmdLine(); vector argv(arguments.size()); for (unsigned i = 0; i < argv.size(); ++i) argv[i] = const_cast(arguments[i].c_str()); return main(argv.size(), &argv[0]); } catch (const std::exception& e) { ::MessageBoxA(0, e.what(), "Uncaught Exception", MB_OK | MB_ICONERROR); return EXIT_FAILURE; } } #endif codequery-0.21.0/makedb/000077500000000000000000000000001310136352400150135ustar00rootroot00000000000000codequery-0.21.0/makedb/CMakeLists.txt000066400000000000000000000010151310136352400175500ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.2.2) project(CodeQueryDBMaker) #add_definitions( -Wall ) find_package(Sqlite REQUIRED) include_directories( "." ) include_directories( "../querylib" ) include_directories( "${SQLITE_INCLUDE_DIR}" ) set( CQMAKEDB_SRCS sqlbase.cpp csdbheader.cpp csdbparser.cpp cs2sq.cpp ctagread.cpp main.cpp ) add_executable( cqmakedb ${CQMAKEDB_SRCS} ) target_link_libraries( cqmakedb ${SQLITE_LIBRARIES} small_lib ) install(TARGETS cqmakedb RUNTIME DESTINATION bin) codequery-0.21.0/makedb/cs2sq.cpp000066400000000000000000000211671310136352400165610ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "cs2sq.h" #include "small_lib.h" cs2sq::cs2sq() :m_csdbpLastErr(csdbparser::resOK) ,m_buf(NULL) ,m_filesstmt(NULL) ,m_linesstmt(NULL) ,m_callstmt(NULL) ,m_symstmt(NULL) { m_buf = new char[1000]; } cs2sq::~cs2sq() { close_csdb(); close_db(); if (m_buf != NULL) delete[] m_buf; } csdbparser::enResult cs2sq::open_csdb(const char* csdbfn) { return m_csdbp.open_file(csdbfn); } void cs2sq::close_csdb(void) { m_csdbp.close_file(); } csdbparser::enResult cs2sq::test_csdb(void) { csdbparser::enResult res; if (isCSDBFileOpen() == false) return csdbparser::resFILE_NOT_OPEN; if (m_debug) { printf("CSDB base path = %s\nChecking source files...\n", m_csdbp.getBasePath()); } res = m_csdbp.setup_srcfil_read(); if (res != csdbparser::resOK) return res; long int num = 0; std::string s; do { m_csdbp.get_next_srcfil(&s); if (s.length() == 0) break; num++; } while (s.length() > 0); if (m_debug) { printf("Number of source files = %ld\nReading symbols...\n", num); } res = m_csdbp.setup_symbol_read(); if (res != csdbparser::resOK) return res; num = 0; symdata_pack sp; sp.valid = true; while(sp.valid) { res = m_csdbp.get_next_symbol(&sp); if (res != csdbparser::resOK) { if (m_debug) {printf("Error at symbol %ld, retval=%d," " file=%s:%ld\n", num, res, sp.filename.c_str(), sp.line_num);} return res; } if (sp.line_num == -1) continue; // empty line if (sp.valid) num += sp.symbols.size(); } if (m_debug) { printf("Total number of symbols found = %ld\nCSDB file OK!\n",num); } m_csdbp.setDebug(false); return csdbparser::resOK; } cs2sq::enResult cs2sq::open_db(const char* sqldb) { int rc; rc = sqlite3_open_v2(sqldb, &m_db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL); if (rc != SQLITE_OK) { sqlite3_close(m_db); m_db = 0; return resFILE_ACCESS_ERR; } return resOK; } void cs2sq::close_db(void) { sqlite3_reset(m_filesstmt); sqlite3_reset(m_linesstmt); sqlite3_reset(m_callstmt); sqlite3_reset(m_symstmt); sqlite3_finalize(m_filesstmt); sqlite3_finalize(m_linesstmt); sqlite3_finalize(m_callstmt); sqlite3_finalize(m_symstmt); sqlite3_close(m_db); m_db = 0; } cs2sq::enResult cs2sq::setup_tables(void) { std::string s; //enResult res; int rc; if (m_db == NULL) return resOTHER_ERR; if (m_csdbp.isFileOpen() == false) return resOTHER_ERR; s = "PRAGMA synchronous = OFF;"; s+= "PRAGMA journal_mode = OFF;"; s+= "PRAGMA locking_mode = EXCLUSIVE;"; s+= "PRAGMA automatic_index = FALSE;"; s+= "PRAGMA cache_size = 20000;"; s+= "BEGIN;"; s+= "DROP TABLE IF EXISTS symtbl;"; s+= "DROP TABLE IF EXISTS filestbl;"; s+= "DROP TABLE IF EXISTS linestbl;"; s+= "DROP TABLE IF EXISTS calltbl;"; s+= "DROP TABLE IF EXISTS inherittbl;"; s+= "DROP TABLE IF EXISTS configtbl;"; s+= "DROP TABLE IF EXISTS membertbl;"; s+= "DROP INDEX IF EXISTS symNameIdx;"; s+= "DROP INDEX IF EXISTS symName2Idx;"; s+= "DROP INDEX IF EXISTS filePathIdx;"; s+= "DROP INDEX IF EXISTS filePath2Idx;"; s+= "DROP INDEX IF EXISTS callerIDIdx;"; s+= "DROP INDEX IF EXISTS calledIDIdx;"; s+= "DROP INDEX IF EXISTS memberIDIdx;"; s+= "DROP INDEX IF EXISTS groupIDIdx;"; s+= "DROP INDEX IF EXISTS parentIDIdx;"; s+= "DROP INDEX IF EXISTS childIDIdx;"; s+= "DROP INDEX IF EXISTS lines_fileIDIDx;"; s+= "DROP INDEX IF EXISTS lines_linenumIDx;"; s+= "CREATE TABLE configtbl(configKey TEXT, configVal TEXT);"; s+= "CREATE TABLE filestbl(fileID INTEGER PRIMARY KEY ASC, filePath TEXT);"; s+= "CREATE TABLE linestbl(lineID INTEGER PRIMARY KEY ASC, linenum INTEGER, fileID INTEGER, linetext TEXT);"; s+= "CREATE TABLE calltbl(callerID INTEGER, calledID INTEGER);"; s+= "CREATE TABLE inherittbl(parentID INTEGER, childID INTEGER);"; s+= "CREATE TABLE symtbl(symID INTEGER PRIMARY KEY ASC, symName TEXT, symType TEXT, lineID INTEGER);"; s+= "CREATE TABLE membertbl(groupID INTEGER, memberID INTEGER, memberType TEXT);"; s+= "INSERT INTO configtbl VALUES (\"DB_MAJOR_VER\",\"0\");"; s+= "INSERT INTO configtbl VALUES (\"DB_MINOR_VER\",\"1\");"; s+= "INSERT INTO configtbl VALUES (\"DB_BASE_PATH\",\""; s+= m_csdbp.getBasePath(); s+= "\");COMMIT;"; rc=sqlite3_exec(m_db, s.c_str(), NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr1: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } return resOK; } cs2sq::enResult cs2sq::add_symbols(void) { enResult res; int rc; if (m_db == NULL) return resOTHER_ERR; if (m_csdbp.isFileOpen() == false) return resOTHER_ERR; m_csdbpLastErr = m_csdbp.setup_symbol_read(); if (m_csdbpLastErr != csdbparser::resOK) return resCSDBPError; rc = prepare_stmt(&m_filesstmt, "INSERT INTO filestbl VALUES (?,?);"); if (rc!=0) return resSQLError; rc = prepare_stmt(&m_linesstmt, "INSERT INTO linestbl VALUES (?,?,?,?);"); if (rc!=0) return resSQLError; rc = prepare_stmt(&m_callstmt, "INSERT INTO calltbl VALUES (?,?);"); if (rc!=0) return resSQLError; rc = prepare_stmt(&m_symstmt, "INSERT INTO symtbl VALUES (?,?,?,?);"); if (rc!=0) return resSQLError; rc=sqlite3_exec(m_db, "BEGIN EXCLUSIVE;", NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr13: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } idxcounter fileidx; idxcounter symidx; idxcounter lineidx; std::string current_file = ""; std::string s; symdata_pack sp; sp.valid = true; while(sp.valid) { m_csdbpLastErr = m_csdbp.get_next_symbol(&sp); if (m_csdbpLastErr != csdbparser::resOK) return resCSDBPError; if (sp.valid == false) break; //end of symbols if (sp.line_num == -1) continue; // empty line ++lineidx; if (current_file.compare(sp.filename) != 0) { ++fileidx; current_file = sp.filename; rc=execstmt(m_filesstmt, fileidx.getStr(), current_file.c_str()); if (rc!=0) return resSQLError; } rc=execstmt(m_linesstmt, lineidx.getStr(), sp.line_num_str().c_str(), fileidx.getStr(), sp.line_text_replacetab().c_str()); if (rc!=0) return resSQLError; if (sp.symbols.empty() == false) res = add_symdata(sp.symbols, lineidx.getStr(), &symidx); if (res != resOK) return res; } return resOK; } cs2sq::enResult cs2sq::add_symdata(symdatalist sdlist, const char* lineid, idxcounter* idx) { //enResult res; symdatalist::iterator it; char smallstr[2]; int rc; smallstr[1] = 0; // NULL-terminated for (it = sdlist.begin(); it < sdlist.end(); it++) { ++(*idx); smallstr[0] = it->getTypeChar(); rc=execstmt(m_symstmt, idx->getStr(), it->symbname.c_str(), smallstr, lineid); if (rc!=0) return resSQLError; if ((it->sym_type != sym_data::symMacroDef)&& (it->sym_type != sym_data::symFuncCall)&& (it->sym_type != sym_data::symFuncDef)) continue; switch (it->sym_type) { case sym_data::symMacroDef: m_calling_macro.str = it->symbname; m_calling_macro.id = idx->getStr(); break; case sym_data::symFuncDef: m_calling_func.str = it->symbname; m_calling_func.id = idx->getStr(); break; case sym_data::symFuncCall: if ((it->calling_func.empty() == false) &&(m_calling_func.str.compare(it->calling_func) == 0)) { rc=execstmt(m_callstmt, m_calling_func.id.c_str(), idx->getStr()); if (rc!=0) return resSQLError; } if ((it->calling_macro.empty() == false) &&(m_calling_macro.str.compare(it->calling_macro) == 0)) { rc=execstmt(m_callstmt, m_calling_macro.id.c_str(), idx->getStr()); if (rc!=0) return resSQLError; } break; default: break; }; } return resOK; } cs2sq::enResult cs2sq::finalize(void) { int rc=sqlite3_exec(m_db, "COMMIT;", NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr14: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } std::string s; s = "BEGIN EXCLUSIVE;"; s += "CREATE INDEX filePathIdx ON filestbl (filePath);"; s += "CREATE INDEX filePath2Idx ON filestbl (filePath COLLATE NOCASE);"; s += "CREATE INDEX callerIDIdx ON calltbl (callerID);"; s += "CREATE INDEX calledIDIdx ON calltbl (calledID);"; s += "CREATE INDEX lines_fileIDIDx ON linestbl (fileID);"; s += "CREATE INDEX lines_linenumIDx ON linestbl (linenum);"; s += "CREATE INDEX symNameIdx ON symtbl (symName, symType);"; s += "CREATE INDEX symName2Idx ON symtbl (symName COLLATE NOCASE, symType COLLATE NOCASE);"; //s += "VACUUM;"; s += "COMMIT;"; rc=sqlite3_exec(m_db, s.c_str(), NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr15: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } return resOK; } codequery-0.21.0/makedb/cs2sq.h000066400000000000000000000026761310136352400162320ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef CS2SQ_H_CQ #define CS2SQ_H_CQ #include #include #include "sqlbase.h" #include "csdbparser.h" #include "small_lib.h" typedef struct { std::string str; std::string id; } stStrID; typedef std::vector strIDList; class cs2sq : public sqlbase { public: enum enResult { resOK = 0, resSQLError, resCSDBPFileNotOpen, resCSDBPError, resFilenameError, resFILE_ACCESS_ERR, resOTHER_ERR }; cs2sq(); ~cs2sq(); csdbparser::enResult open_csdb(const char* csdbfn); void close_csdb(void); csdbparser::enResult test_csdb(void); enResult open_db(const char* sqldb); void close_db(void); enResult setup_tables(void); enResult add_symbols(void); enResult finalize(void); csdbparser::enResult get_csdbpError(void) {return m_csdbpLastErr;} bool isCSDBFileOpen(void) {return m_csdbp.isFileOpen();} private: char* m_buf; csdbparser m_csdbp; csdbparser::enResult m_csdbpLastErr; stStrID m_calling_func; stStrID m_calling_macro; sqlite3_stmt* m_filesstmt; sqlite3_stmt* m_linesstmt; sqlite3_stmt* m_callstmt; sqlite3_stmt* m_symstmt; enResult add_symdata(symdatalist sdlist, const char* lineid, idxcounter* idx); }; // class cs2sq #endif codequery-0.21.0/makedb/cscommon.h000066400000000000000000000014361310136352400170060ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef CSCOMMON_H_CQ #define CSCOMMON_H_CQ #define CSFuncCall '`' #define CSDirectAssgnIncrDecr '=' #define CSClass 'c' #define CSEnum 'e' #define CSOtherGlobal 'g' #define CSLocalFuncBlockDef 'l' #define CSGlobalEnumStructUnion 'm' #define CSFuncParam 'p' #define CSStruct 's' #define CSTypeDef 't' #define CSUnion 'u' #define CSFuncDef '$' #define CSMacroDef '#' #define CSInclude '~' #define CSFile '@' #define CSNoType 'X' #endif // CSCOMMON_H_CQ codequery-0.21.0/makedb/csdbheader.cpp000066400000000000000000000057331310136352400176130ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // Cscope database header #include "csdbheader.h" #include csdbheader::csdbheader() :m_csdbver(0) ,m_trailer_start(0) { } csdbheader::csdbheader(tStr hdr) :m_csdbver(0) ,m_trailer_start(0) { m_header = hdr; } void csdbheader::set_header(tStr hdr) { m_header = hdr; } void csdbheader::set_header(const char* hdr) { m_header = hdr; } bool csdbheader::parse(void) { size_t pos; m_param_list.clear(); if (m_header.empty()) return false; // Header should be at least 19 bytes long and starts with "cscope " if ((m_header.length() <19)||(m_header.compare(0, strlen("cscope "), "cscope ") != 0)) {return false;} // Get the cscope version used to build the database // Assuming it is 2 digits always m_csdbver = strtol(m_header.substr(7, 2).c_str(), NULL, 10); // Get the trailer start position pos = m_header.find_last_of((char) ' '); m_trailer_start = strtol(m_header.substr(pos + 1).c_str(), NULL, 10); // Get rid of "cscope nn " and trailer start pos m_header = m_header.substr(10, pos - 10); // Get the first position of a param pos = m_header.find((const char*) " -"); // if no params, then whole string is db path if (pos == std::string::npos) { m_base_path = m_header.substr(0); // Trim db path pos = m_base_path.find_last_not_of((char) ' ') + 1; m_base_path = m_base_path.substr(0, pos); // If the last char of base path is \", remove it // Cannot remember why I needed to do this if (*(m_base_path.rbegin()) == '\"') m_base_path.erase(m_base_path.end() - 1); return true; } // Get db path m_base_path = m_header.substr(0, pos); // Get rid of db path m_header = m_header.substr(pos); // Trim db path pos = m_base_path.find_last_not_of((char) ' ') + 1; m_base_path = m_base_path.substr(0, pos); // If the last char of base path is \", remove it // Cannot remember why I needed to do this if (*(m_base_path.rbegin()) == '\"') m_base_path.erase(m_base_path.end() - 1); // Prepare a list of params pos = 0; tStr s; while ((pos != std::string::npos) && (pos < m_header.length())) { pos = m_header.find((char) '-', pos); if (pos != std::string::npos) { pos++; s = m_header.at(pos); m_param_list.push_back(s); } } return true; } long int csdbheader::get_version(void) { return m_csdbver; } tStr csdbheader::get_base_path(void) { return m_base_path; } tVecStr csdbheader::get_param_list(void) { return m_param_list; } long int csdbheader::get_trailer_start(void) { return m_trailer_start; } void csdbheader::print_contents(void) { unsigned int i; printf("Ver= %lu\nPath= \"%s\"\nTrailer start= %lu\nParam list= ", m_csdbver, m_base_path.c_str(), m_trailer_start); for (i=0; i< m_param_list.size(); i++) { printf("\"%s\", ", m_param_list[i].c_str()); } printf("\n\n"); } codequery-0.21.0/makedb/csdbheader.h000066400000000000000000000015101310136352400172450ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // Cscope database header #ifndef CSDBHEADER_H #define CSDBHEADER_H #include "small_lib.h" class csdbheader { public: csdbheader(); csdbheader(tStr hdr); void set_header(tStr hdr); void set_header(const char* hdr); bool parse(void); long int get_version(void); tStr get_base_path(void); tVecStr get_param_list(void); long int get_trailer_start(void); void print_contents(void); tStr m_header; long int m_csdbver; tStr m_base_path; tVecStr m_param_list; long int m_trailer_start; }; // class csdbheader #endif // CSDBHEADER_H codequery-0.21.0/makedb/csdbparser.cpp000066400000000000000000000320261310136352400176520ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // Cscope database parser #include #include "csdbparser.h" #include "csdbheader.h" #include "small_lib.h" #define MAX_TEXT_LINE_LEN (800) #define CSDBP_GENERAL_CHK() if ((m_fp == NULL) || \ (m_trailer_start <= 0) || \ (m_buf == NULL)) \ {return resOTHER_ERR;} typedef struct { int chr; sym_data::enSymType type; const char* desc; } chr2enum; static const chr2enum symbtypetbl[] = { {'`', sym_data::symFuncCall, "FuncCall"}, {'=', sym_data::symDrctAssgnIncrDecr, "DirectAssgnIncrDecr"}, {'c', sym_data::symClass, "Class"}, {'e', sym_data::symEnum, "Enum"}, {'g', sym_data::symGlobal, "OtherGlobal"}, {'l', sym_data::symLocalFuncBlockDef, "LocalFuncBlockDef"}, {'m', sym_data::symGlobalEnumStructUnion, "GlobalEnumStructUnion"}, {'p', sym_data::symFuncParam, "FuncParam"}, {'s', sym_data::symStruct, "Struct"}, {'t', sym_data::symTypeDef, "TypeDef"}, {'u', sym_data::symUnion, "Union"}, {'$', sym_data::symFuncDef, "FuncDef"}, {'#', sym_data::symMacroDef, "MacroDef"}, {'~', sym_data::symIncl, "Include"}, {'@', sym_data::symFile, "File"}, {'X', sym_data::symNone, "NoType"} }; #define symbtypetbl_SIZE (sizeof(symbtypetbl)/sizeof(chr2enum)) // sym_data /////////////////////////////////////////////////// sym_data::sym_data() :valid(false) ,sym_type(symNone) { } sym_data::sym_data(const sym_data& copy) { valid = copy.valid; symbname = copy.symbname; sym_type = copy.sym_type; calling_func = copy.calling_func; calling_macro = copy.calling_macro; } sym_data& sym_data::operator= (const sym_data& copy) { if (this != ©) { valid = copy.valid; symbname = copy.symbname; sym_type = copy.sym_type; calling_func = copy.calling_func; calling_macro = copy.calling_macro; } return *this; } void sym_data::clear(void) { valid = false; symbname.clear(); sym_type = symNone; calling_func.clear(); calling_macro.clear(); } std::string sym_data::symbname_escaped(void) { return add_escape_char(symbname, '"', '"'); } const char* sym_data::getTypeDesc(void) { for (long i=0; i(symbtypetbl[i].chr); } } return '\0'; } // symdata_pack /////////////////////////////////////////////////// symdata_pack::symdata_pack() :valid(false) ,line_num(0) { } symdata_pack::symdata_pack(const symdata_pack& copy) { valid = copy.valid; filename = copy.filename; line_num = copy.line_num; line_text = copy.line_text; symbols = copy.symbols; } symdata_pack& symdata_pack::operator= (const symdata_pack& copy) { if (this != ©) { valid = copy.valid; filename = copy.filename; line_num = copy.line_num; line_text = copy.line_text; symbols = copy.symbols; } return *this; } void symdata_pack::clear(void) { valid = false; filename.clear(); line_num = 0; line_text.clear(); symbols.clear(); } std::string symdata_pack::line_num_str(void) { char str[30]; sprintf(str, "%ld", line_num); std::string s(str); return s; } std::string symdata_pack::line_text_escaped(void) { return add_escape_char(line_text.substr(0, MAX_TEXT_LINE_LEN) , '"', '"'); } std::string symdata_pack::line_text_replacetab(void) { std::string s; long i; long n = line_text.length(); for (i=0; i < n; i++) { if (line_text[i] == '\t') s += ' '; else s += line_text[i]; } s = s.substr(0, MAX_TEXT_LINE_LEN); return s; } std::string symdata_pack::line_text_blob(void) { tempbuf buf(20000); strcpy(buf.get(), line_text.substr(0, MAX_TEXT_LINE_LEN).c_str()); //packtext(buf.get(), true); std::string s(buf.get()); return s; } // csdbparser /////////////////////////////////////////////////// csdbparser::csdbparser() : m_fp(NULL) ,m_buf(NULL) ,m_state(stIDLE) ,m_trailer_start(0) ,m_bufsize(0) ,m_debug(false) { } csdbparser::~csdbparser() { close_file(); } const char* csdbparser::getBasePath(void) { return m_base_path.c_str(); } void csdbparser::setDebug(bool val) { m_debug = val; } void csdbparser::create_buf(long int size) { if (size >= CSDBP_MINIM_BUFSIZE) { destroy_buf(); m_buf = new char[size]; *m_buf = 0; m_bufsize = size; } } void csdbparser::destroy_buf(void) { if (m_buf != NULL) { delete[] m_buf; m_buf = NULL; m_bufsize = 0; } } csdbparser::enResult csdbparser::open_file(const char *fn) { enResult res = file_sanity_check(fn); if (res != resOK) {return res;} close_file(); m_fp = fopen(fn, "r"); res = parse_headers(); if (res != resOK) {close_file();} return res; } void csdbparser::close_file(void) { if (m_fp != NULL) { fclose(m_fp); m_fp = NULL; } m_trailer_start = 0; destroy_buf(); m_base_path.clear(); m_calling_func.clear(); m_calling_macro.clear(); m_current_srcfile.clear(); } csdbparser::enResult csdbparser::file_sanity_check(const char *fn) { smartFILE fp; tempbuf buf(20000); long i; std::string s; bool chkok; // Does the file exist? if (check_fileExists(fn) == false) {return resFILE_NOT_FOUND;} // Try to open the file for reading fp = fopen(fn, "r"); if (fp == NULL) {return resFILE_ACCESS_ERR;} // Read out the first line i.e. the header if (fgets(buf.get(), 20000, fp.get()) == NULL) {return resFILE_ACCESS_ERR;} chomp(buf.get()); s = static_cast(buf.get()); csdbheader hdr; hdr.set_header(s); if (hdr.parse() == false) {return resUNRECOG_FORMAT;} // Compare the cscope version used to build the database if (hdr.get_version() != CSDBP_SUPPORTED_VER_NUM) {return resINCORRECT_VER;} // Compare the parameters used to build the database with the supported one // We must have "c", we don't mind "q" and we cannot have any other chkok = false; tVecStr vs = hdr.get_param_list(); for(i=0; i< vs.size(); i++) { if (vs[i].compare("c") == 0) chkok = true; } if (chkok == false) {return resUNSUPPORTED_PARAM;} for(i=0; i< vs.size(); i++) { if ((vs[i].compare("c") != 0) && (vs[i].compare("q") != 0)) chkok = false; } if (chkok == false) {return resUNSUPPORTED_PARAM;} // Trailer offset should be a positive number, normally > 20 if (hdr.get_trailer_start() < 20) {return resUNRECOG_FORMAT;} // Header looks OK so far! return resOK; } csdbparser::enResult csdbparser::parse_headers(void) { long slen; if (m_fp == NULL) {return resFILE_NOT_OPEN;} create_buf(); m_base_path.clear(); m_calling_func.clear(); m_calling_macro.clear(); m_current_srcfile.clear(); csdbheader hdr; // Read out the first line i.e. the header if (fgets(m_buf, CSDBP_MINIM_BUFSIZE, m_fp) == NULL) {return resFILE_ACCESS_ERR;} slen = strlen(chomp(m_buf)); std::string s(static_cast(m_buf)); hdr.set_header(s); if (hdr.parse() == false) {return resUNRECOG_FORMAT;} m_trailer_start = hdr.get_trailer_start(); m_base_path = hdr.get_base_path(); return resOK; } csdbparser::enResult csdbparser::setup_srcfil_read(void) { CSDBP_GENERAL_CHK(); long int num; if (fseek(m_fp, m_trailer_start, SEEK_SET) != 0) {return resFILE_ACCESS_ERR;} fscanf(m_fp, "%ld\n", &num); // number of source directories while (num-- > 0) {fgets(m_buf, CSDBP_MINIM_BUFSIZE, m_fp);} fscanf(m_fp, "%ld\n", &num); // number of include directories while (num-- > 0) {fgets(m_buf, CSDBP_MINIM_BUFSIZE, m_fp);} fscanf(m_fp, "%ld\n", &num); // number of files fscanf(m_fp, "%ld\n", &num); // string size required create_buf(num); return resOK; } csdbparser::enResult csdbparser::get_next_srcfil(std::string* srcfil) { CSDBP_GENERAL_CHK(); if (ftell(m_fp) < m_trailer_start) setup_srcfil_read(); if (fgets(m_buf, m_bufsize, m_fp) != NULL) *srcfil = chomp(m_buf); else srcfil->clear(); return resOK; } csdbparser::enResult csdbparser::setup_symbol_read(void) { CSDBP_GENERAL_CHK(); rewind(m_fp); if (fgets(m_buf, m_bufsize, m_fp) == NULL) {return resFILE_ACCESS_ERR;} m_calling_func.clear(); m_calling_macro.clear(); m_current_srcfile.clear(); //m_state = stSYMB_SETUP_DONE; return resOK; } csdbparser::enResult csdbparser::get_next_symbol(symdata_pack* pack) { CSDBP_GENERAL_CHK(); enResult res; bool endOfSymbData; bool foundSomething; int ch; //if (m_state != stSYMB_SETUP_DONE) return resUNKNOWN_ERR; pack->clear(); if (m_debug) printf("=====> get_next_symbol\n"); do { res = single_line_symbol(endOfSymbData, foundSomething); if (res != resOK) return res; if (endOfSymbData) { pack->valid = false; if (m_debug) printf("End of symbols data!\n"); return resOK; } } while (foundSomething); pack->valid = true; pack->filename = m_current_srcfile; if (m_debug) printf("=====> Back from get_next_symbol\n"); ch = fgetc(m_fp); if (ch == 0x0A) { pack->line_num = -1; // empty line return resOK; //EOL } else ungetc(ch, m_fp); if (fscanf(m_fp, "%ld", &(pack->line_num)) != 1) { return resUNKNOWN_ERR; } ch = fgetc(m_fp); // the space after the line number if (fgets(m_buf, m_bufsize, m_fp) == NULL) {return resFILE_ACCESS_ERR;} pack->line_text = chomp(m_buf); if (m_debug) {printf("fn = %s, lineno=%ld, firstline=%s\n", pack->filename.c_str(), pack->line_num, pack->line_text.c_str());} unsigned int loopcheck = 0; // prevent infinite loop sym_data sd; while(loopcheck++ < 65500) { // symbol line ch = fgetc(m_fp); if ((ch == 0x0A)&&(loopcheck > 1)) { break; //EOL } else if ((ch >= 0x30)&&(ch <= 0x39)&&(loopcheck > 1)) { ungetc(ch, m_fp); break; // symbol shouldn't start with line numbers } else { ungetc(ch, m_fp); res = symbolread(&sd, pack); if (res != resOK) return res; pack->line_text += sd.symbname; if (sd.valid) {pack->symbols.push_back(sd);} } // no-symbol line ch = fgetc(m_fp); if ((ch == 0x0A)&&(loopcheck > 1)) {;} else { ungetc(ch, m_fp); if (fgets(m_buf, m_bufsize, m_fp) == NULL) {return resFILE_ACCESS_ERR;} pack->line_text += chomp(m_buf); } } return resOK; } csdbparser::enResult csdbparser::single_line_symbol(bool& endOfSymbData, bool& foundSomething) { if (m_debug) printf("=====> single_line_symbol\n"); endOfSymbData = false; foundSomething = false; int ch; ch = fgetc(m_fp); if (m_debug) printf("check1! %c\n", (char)ch); if (ch == 9) // TAB { ch = fgetc(m_fp); foundSomething = true; if (m_debug) printf("check2! %c\n", (char)ch); switch(ch) { case '@': // start of a new file if (fgets(m_buf, m_bufsize, m_fp) == NULL) return resFILE_ACCESS_ERR; m_current_srcfile = chomp(m_buf); if (m_debug) printf("New file=%s\n", m_buf); endOfSymbData = m_current_srcfile.empty(); break; case ')': // end of a definition if (m_calling_macro.size() > 0) m_calling_macro.clear(); else if (m_debug) printf("no macro to clear!\n"); if (fgets(m_buf, m_bufsize, m_fp) == NULL) {return resFILE_ACCESS_ERR;} break; default: return resUNKNOWN_ERR; }; fgets(m_buf, m_bufsize, m_fp); // empty line } else ungetc(ch, m_fp); return resOK; } csdbparser::enResult csdbparser::symbolread(sym_data *data, symdata_pack* pack) { if (m_debug) printf("=====> symbolread\n"); int ch, ch2; data->clear(); data->valid = true; data->sym_type = sym_data::symNone; ch = fgetc(m_fp); if (m_debug) printf("check3! %c\n", (char)ch); if (ch == 9) // TAB { ch = fgetc(m_fp); if (m_debug) printf("check4! %c\n", (char)ch); switch(ch) { case '}': // end of func if (m_calling_func.size() > 0) m_calling_func.clear(); else if (m_debug) printf("no func to clear!\n"); data->valid = false; if (m_debug) printf("End of func found\n"); break; case ')': // end of macro if (m_calling_macro.size() > 0) m_calling_macro.clear(); else if (m_debug) printf("no macro to clear!\n"); data->valid = false; if (m_debug) printf("End of macro found\n"); break; case '~': // include ch2 = fgetc(m_fp); if ((ch2 == '"')||(ch2 == '<')) { pack->line_text += (char) ch2; } else { ungetc(ch2, m_fp); } data->sym_type = sym_data::symIncl; if (m_debug) printf("Incl found\n"); break; default: for (int i=0; isym_type = symbtypetbl[i].type; break; } } if (data->sym_type == sym_data::symNone) return resUNKNOWN_ERR; break; }; } else ungetc(ch, m_fp); if (fgets(m_buf, m_bufsize, m_fp) == NULL) {return resFILE_ACCESS_ERR;} data->symbname = chomp(m_buf); if (data->valid) data->valid = (strlen(data->symbname.c_str()) > 0); if (m_debug) printf("sym name=%s, type = %s, valid=%d, ch=%c\n", data->symbname.c_str(), data->getTypeDesc(), data->valid, ch); if (ch == '$') {m_calling_func.assign(data->symbname);} else if (ch == '#') {m_calling_macro.assign(data->symbname);} else if (ch == '`') { data->calling_func = m_calling_func; data->calling_macro = m_calling_macro; } return resOK; } codequery-0.21.0/makedb/csdbparser.h000066400000000000000000000064341310136352400173230ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ // Cscope database parser #ifndef CSDBPARSER_H_CQ #define CSDBPARSER_H_CQ #include #include #include #include #include #include #define CSDBP_MINIM_BUFSIZE (20000) #define CSDBP_SUPPORTED_VER "15" #define CSDBP_SUPPORTED_VER_NUM (15) #define CSDBP_SUP_PARAM " -c " #define CSDBP_SUP_PARAM2 " -c " typedef std::vector strvect; // sym_data /////////////////////////////////////////////////// class sym_data { public: enum enSymType { symNone = 0, symFuncDef, symFuncCall, symMacroDef, symIncl, symDrctAssgnIncrDecr, symClass, symEnum, symGlobal, symLocalFuncBlockDef, symGlobalEnumStructUnion, symFuncParam, symStruct, symTypeDef, symUnion, symFile }; sym_data(); sym_data(const sym_data& copy); sym_data& operator= (const sym_data& copy); ~sym_data() { /* nothing to do */ } void clear(void); std::string symbname_escaped(void); const char* getTypeDesc(void); const char getTypeChar(void); bool valid; std::string symbname; enSymType sym_type; std::string calling_func; std::string calling_macro; }; // class sym_data typedef std::vector symdatalist; // symdata_pack /////////////////////////////////////////////////// class symdata_pack { public: bool valid; std::string filename; long int line_num; std::string line_text; symdatalist symbols; symdata_pack(); symdata_pack(const symdata_pack& copy); symdata_pack& operator= (const symdata_pack& copy); ~symdata_pack() { /* nothing to do */ } void clear(void); std::string line_num_str(void); std::string line_text_escaped(void); std::string line_text_blob(void); std::string line_text_replacetab(void); }; // class symdata_pack // csdbparser /////////////////////////////////////////////////// class csdbparser { public: enum enResult { resOK = 0, resFILE_NOT_FOUND, resFILE_ACCESS_ERR, resUNRECOG_FORMAT, resINCORRECT_VER, resUNSUPPORTED_PARAM, resOTHER_ERR, resUNKNOWN_ERR, resFILE_NOT_OPEN }; enum enState { stIDLE = 0, stSYMB_SETUP_DONE }; csdbparser(); ~csdbparser(); enResult open_file(const char *fn); bool isFileOpen(void) {return (m_fp != NULL);} void close_file(void); static enResult file_sanity_check(const char *fn); enResult setup_srcfil_read(void); enResult get_next_srcfil(std::string* srcfil); enResult setup_symbol_read(void); enResult get_next_symbol(symdata_pack* pack); const char* getBasePath(void); void setDebug(bool val); private: FILE *m_fp; char *m_buf; long int m_bufsize; enState m_state; long int m_trailer_start; std::string m_base_path; std::string m_calling_func; std::string m_calling_macro; std::string m_current_srcfile; bool m_debug; void create_buf(long int size = CSDBP_MINIM_BUFSIZE); void destroy_buf(void); enResult parse_headers(void); enResult single_line_symbol(bool& endOfSymbData, bool& foundSomething); enResult symbolread(sym_data* data, symdata_pack* pack); }; // class csdbparser #endif //CSDBPARSER_H_CQ codequery-0.21.0/makedb/ctagread.cpp000066400000000000000000000250541310136352400172770ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "ctagread.h" #include "small_lib.h" ctagread::ctagread() :f_tags(NULL) ,m_insertstmt(NULL) ,m_insertinheritstmt(NULL) ,m_readclassstmt(NULL) ,m_readsymstmt(NULL) ,m_writedeststmt(NULL) ,m_writetypestmt(NULL) ,m_readsymfstmt(NULL) { } ctagread::~ctagread() { close_files(); } ctagread::enResult ctagread::open_files(const char* sqldb, const char* tagsfn) { int rc; f_tags = fopen(tagsfn, "r"); if (f_tags == NULL) return resFILE_ACCESS_ERR; rc = sqlite3_open_v2(sqldb, &m_db, SQLITE_OPEN_READWRITE, NULL); if (rc != SQLITE_OK) { sqlite3_close(m_db); return resFILE_ACCESS_ERR; } rc=sqlite3_exec(m_db, "PRAGMA synchronous = OFF;" "PRAGMA journal_mode = OFF;" "PRAGMA locking_mode = EXCLUSIVE;" "PRAGMA automatic_index = FALSE;" "PRAGMA cache_size = 20000;", NULL, 0, NULL); if (rc != SQLITE_OK) return resSQLError; return resOK; } void ctagread::close_files(void) { sqlite3_reset(m_insertstmt); sqlite3_reset(m_insertinheritstmt); sqlite3_reset(m_readclassstmt); sqlite3_reset(m_readsymstmt); sqlite3_reset(m_writedeststmt); sqlite3_reset(m_writetypestmt); sqlite3_reset(m_readsymfstmt); sqlite3_finalize(m_insertstmt); sqlite3_finalize(m_insertinheritstmt); sqlite3_finalize(m_readclassstmt); sqlite3_finalize(m_readsymstmt); sqlite3_finalize(m_writedeststmt); sqlite3_finalize(m_writetypestmt); sqlite3_finalize(m_readsymfstmt); m_insertstmt = NULL; m_readclassstmt = NULL; m_readsymstmt = NULL; m_writedeststmt = NULL; m_writetypestmt = NULL; m_readsymfstmt = NULL; fclose(f_tags); f_tags = NULL; sqlite3_close(m_db); m_db = 0; } ctagread::enResult ctagread::prepare_cqdb(void) { int rc; rc = prepare_stmt(&m_insertstmt, "INSERT INTO membertbl VALUES (?,?,?);"); if (rc != SQLITE_OK) return resSQLError; rc = prepare_stmt(&m_insertinheritstmt, "INSERT INTO inherittbl VALUES (?,?);"); if (rc != SQLITE_OK) return resSQLError; rc = prepare_stmt(&m_readclassstmt, "SELECT symID FROM symtbl WHERE symName=? AND symType=\"c\";"); if (rc != SQLITE_OK) return resSQLError; //rc = prepare_stmt(&m_readsymstmt, "SELECT symID FROM symtbl WHERE symName=? AND lineid IN (SELECT lineID FROM linestbl WHERE linenum=? AND fileid IN (SELECT fileID FROM filestbl WHERE filePath LIKE ?));"); rc = prepare_stmt(&m_readsymstmt, "SELECT symtbl.symID FROM symtbl INNER JOIN linestbl ON (symtbl.symName=? AND symtbl.lineID = linestbl.lineID AND linestbl.linenum=?) INNER JOIN filestbl ON (linestbl.fileID = filestbl.fileID AND filePath LIKE ?);"); if (rc != SQLITE_OK) return resSQLError; rc = prepare_stmt(&m_writedeststmt, "UPDATE symtbl SET symName=? WHERE symID=?;"); if (rc != SQLITE_OK) return resSQLError; rc = prepare_stmt(&m_writetypestmt, "UPDATE symtbl SET symType=? WHERE symID=?;"); if (rc != SQLITE_OK) return resSQLError; //rc = prepare_stmt(&m_readsymfstmt, "SELECT symID FROM symtbl WHERE symName=? AND symType=\"$\" AND lineid IN (SELECT lineID FROM linestbl WHERE linenum=? AND fileid IN (SELECT fileID FROM filestbl WHERE filePath LIKE ?));"); rc = prepare_stmt(&m_readsymfstmt, "SELECT symtbl.symID FROM symtbl INNER JOIN linestbl ON (symtbl.symName=? AND symtbl.symType=\"$\" AND symtbl.lineID = linestbl.lineID AND linestbl.linenum=?) INNER JOIN filestbl ON (linestbl.fileID = filestbl.fileID AND filePath LIKE ?);"); if (rc != SQLITE_OK) return resSQLError; rc=sqlite3_exec(m_db, "BEGIN EXCLUSIVE;" "DROP INDEX IF EXISTS memberIDIdx;" "DROP INDEX IF EXISTS groupIDIdx;" "DROP INDEX IF EXISTS parentIDIdx;" "DROP INDEX IF EXISTS childIDIdx;" "DELETE FROM membertbl;" "DELETE FROM inherittbl;" "COMMIT;", NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr13: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } return resOK; } ctagread::enResult ctagread::process_ctags(void) { tempbuf sym(65501), fil(65501), classname(65501), classname2(65501); tempbuf numtxt(500), linetxt(65501), fil2(65501), nmspace(65501); long int num; long int numOfLines=0; long int numOfLines2=0; char* retval; int scanretval = 0; int rc; char c; char smallstr[2]; char *cp; strctagIDList classIDs, symIDs, parentClassIDs, parentClassIDs_temp; enResult res; std::vector listClsHist; bool result; *(fil.get()) = '%'; // for SQL LIKE pattern recognition smallstr[1] = 0; res = prepare_cqdb(); if (res != resOK) return res; do{ retval = fgets(linetxt.get(), linetxt.size() - 1, f_tags); if (retval != NULL) { chomp(linetxt.get()); scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tclass:%s\t", sym.get(), fil2.get(), &num, &c, classname.get()); } if ((retval != NULL)&&(scanretval == 5)) { strcpy(fil.get(), "%"); strcat(fil.get(), extract_filename(fil2.get())); res = getHListOfClassIDs(&classIDs, get_last_part(get_last_part(classname.get(), ':'), '.'), &listClsHist); if (res != resOK) return res; if (classIDs.empty()) continue; cp = sym.get(); if (*(sym.get()) == '~') { cp = (sym.get()) + 1; // include destructors // which cscope missed out } sprintf(numtxt.get(), "%ld", num); if (c == 'f') res = getListOfSymIDs(m_readsymfstmt, &symIDs, cp, numtxt.get(), fil.get()); else res = getListOfSymIDs(m_readsymstmt, &symIDs, cp, numtxt.get(), fil.get()); if (res != resOK) {return res;} if ((symIDs.empty() == true)&&(c == 'f')) { res = getListOfSymIDs(m_readsymstmt, &symIDs, cp, numtxt.get(), fil.get()); if (res != resOK) {return res;} if (symIDs.empty() == false) for (long i=0; i < symIDs.size(); i++) { rc=execstmt(m_writetypestmt, "$", symIDs[i].c_str()); if (rc!=0) return resSQLError; } } if (symIDs.empty() == false) { for (long i=0; i < symIDs.size(); i++) { smallstr[0] = c; rc=execstmt(m_insertstmt, classIDs[0].c_str(), symIDs[i].c_str(), smallstr); if (rc!=0) return resSQLError; if (*(sym.get()) == '~') { rc=execstmt(m_writedeststmt, sym.get(), symIDs[i].c_str()); if (rc!=0) return resSQLError; } numOfLines++; } } //else {if (m_debug) {printf("no match found for symbol: %s\n",sym.get());}} } if (retval != NULL) { scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tinherits:%s", sym.get(), fil2.get(), &num, &c, classname.get()); result = ((scanretval == 5)&&(c == 'c')); if (!result) { scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tfile:\tinherits:%s", sym.get(), fil2.get(), &num, &c, classname.get()); result = ((scanretval == 5)&&(c == 'c')); } if (!result) { scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tclass:%s\tinherits:%s", sym.get(), fil2.get(), &num, &c, classname2.get(), classname.get()); result = ((scanretval == 6)&&(c == 'c')); } if (!result) { scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tnamespace:%s\tinherits:%s", sym.get(), fil2.get(), &num, &c, nmspace.get(), classname.get()); result = ((scanretval == 6)&&(c == 'c')); } if (!result) { scanretval = sscanf(linetxt.get(), "%s\t%s\t%ld;\"\t%c\tnamespace:%s\tfile:\tinherits:%s", sym.get(), fil2.get(), &num, &c, nmspace.get(), classname.get()); result = ((scanretval == 6)&&(c == 'c')); } if (result) { res = getHListOfClassIDs(&classIDs, sym.get(), &listClsHist); if (res != resOK) return res; if (classIDs.empty()) continue; parentClassIDs.clear(); parentClassIDs_temp.clear(); std::vector vecstr = splitstr(classname.get(), ','); for (long i=0; i *listClsHist) { enResult res = resOK; idlist->clear(); for (long i=0; isize(); i++) { if ((*listClsHist)[i].cls.compare(v1) == 0) {idlist->push_back((*listClsHist)[i].id); break;} } if (idlist->empty()) { res = getListOfClassIDs(idlist, v1); if (res != resOK) {return res;} if (idlist->empty() == false) { stClsID tempClsID; tempClsID.cls = v1; tempClsID.id = (*idlist)[0]; (*listClsHist).insert((*listClsHist).begin(), tempClsID); if ((*listClsHist).size() > 50) (*listClsHist).pop_back(); } } return resOK; } ctagread::enResult ctagread::getListOfClassIDs(strctagIDList* idlist, const char* v1) { int rc; std::string s; idlist->clear(); rc = execstmt(m_readclassstmt, v1); while ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) { if (rc == SQLITE_ROW) { s = (const char*) sqlite3_column_text(m_readclassstmt, 0); idlist->push_back(s); } rc = sqlite3_step(m_readclassstmt); } return resOK; } ctagread::enResult ctagread::getListOfSymIDs(sqlite3_stmt* pstmt, strctagIDList* idlist, const char* v1, const char* v2, const char* v3) { int rc; std::string s; idlist->clear(); rc = execstmt(pstmt, v1, v2, v3); while ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) { if (rc == SQLITE_ROW) { s = (const char*) sqlite3_column_text(pstmt, 0); idlist->push_back(s); } rc = sqlite3_step(pstmt); } return resOK; } ctagread::enResult ctagread::finalize(void) { int rc; std::string s; s = "BEGIN EXCLUSIVE;"; s += "CREATE INDEX groupIDIdx ON membertbl (groupID);"; s += "CREATE INDEX memberIDIdx ON membertbl (memberID);"; s += "CREATE INDEX parentIDIdx ON inherittbl (parentID);"; s += "CREATE INDEX childIDIdx ON inherittbl (childID);"; s += "REINDEX symNameIdx;"; s += "REINDEX symName2Idx;"; s += "COMMIT;"; rc=sqlite3_exec(m_db, s.c_str(), NULL, 0, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLErr15: %d, %s\n", rc, sqlite3_errmsg(m_db)); return resSQLError; } return resOK; } codequery-0.21.0/makedb/ctagread.h000066400000000000000000000031151310136352400167360ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef CTAGREAD_H_CQ #define CTAGREAD_H_CQ #include #include #include #include #include #include #include #include "sqlbase.h" typedef std::vector strctagIDList; typedef struct { std::string cls; std::string id; } stClsID; class ctagread : public sqlbase { public: enum enResult { resOK = 0, resSQLError, resFILE_NOT_FOUND, resFILE_ACCESS_ERR, resUNRECOG_FORMAT, resINCORRECT_VER, resUNSUPPORTED_PARAM, resOTHER_ERR, resUNKNOWN_ERR, resFILE_NOT_OPEN }; ctagread(); ~ctagread(); enResult open_files(const char* sqldb, const char* tagsfn); void close_files(void); enResult process_ctags(void); enResult finalize(void); private: FILE* f_tags; sqlite3_stmt* m_insertstmt; sqlite3_stmt* m_insertinheritstmt; sqlite3_stmt* m_readclassstmt; sqlite3_stmt* m_readsymstmt; sqlite3_stmt* m_readsymfstmt; sqlite3_stmt* m_writedeststmt; sqlite3_stmt* m_writetypestmt; enResult getListOfClassIDs(strctagIDList* idlist, const char* v1); enResult getHListOfClassIDs(strctagIDList* idlist, const char* v1, std::vector *listClsHist); enResult getListOfSymIDs(sqlite3_stmt* pstmt, strctagIDList* idlist, const char* v1, const char* v2, const char* v3); enResult prepare_cqdb(void); }; #endif codequery-0.21.0/makedb/main.cpp000066400000000000000000000157611310136352400164550ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include #include "getopt2.h" #include "csdbparser.h" #include "cs2sq.h" #include "ctagread.h" #include "small_lib.h" #include "swver.h" #if 0 // test code for csdbparser - not needed int test_csdbparser (void) { csdbparser csdbp; std::string s; long int num = 0; csdbparser::enResult res; //csdbp.setDebug(true); int k = csdbparser::file_sanity_check("./cscope.out"); printf("%d\n",k); csdbp.open_file("./cscope.out"); //csdbp.setup_srcfil_read(); do { csdbp.get_next_srcfil(&s); if (s.length() == 0) break; num++; //printf("\"%s\"\n",s.data()); } while (s.length() > 0); printf("Total num of files = %ld\nBase path = %s\n\n", num, csdbp.getBasePath()); num = 0; res = csdbp.setup_symbol_read(); if (res != csdbparser::resOK) printf("Error in setup_symbol_read: %d\n", res); symdata_pack sp; sp.valid = true; while(sp.valid) { res = csdbp.get_next_symbol(&sp); if (res != csdbparser::resOK) { printf("Error in get_next_symbol: %d\n", res); break; } if (sp.valid) { printf("[[ %s, linenum=%ld, symbols=%d, \"%s\" ]]\n", sp.filename.c_str(), sp.line_num, sp.symbols.size(), sp.line_text.c_str()); if (sp.symbols.size() > 0) { for (int i=0; i < sp.symbols.size(); i++) { printf("{%s, %s", sp.symbols[i].symbname.c_str(), sp.symbols[i].getTypeDesc()); if (sp.symbols[i].sym_type == sym_data::symFuncCall) printf(", func[%s], macro[%s]", sp.symbols[i].calling_func.c_str(), sp.symbols[i].calling_macro.c_str()); printf("} "); } printf("\n"); } num += sp.symbols.size(); } } printf("Total number of symbols found = %ld\n",num); } #endif int process_cscope(const char* cscopefn, const char* sqfn, bool debug) { cs2sq::enResult res; cs2sq dbmaker; dbmaker.setDebug(debug); int k = csdbparser::file_sanity_check(cscopefn); printf("cscope.out sanity check %s\n",(k==csdbparser::resOK ? "OK" : "Error")); if (k == csdbparser::resUNSUPPORTED_PARAM) printf("Unsupported cscope parameters: -c is required. -q, -b and -R are optional. The rest should not be used.\n"); if (k != csdbparser::resOK) return 1; dbmaker.open_csdb(cscopefn); k = dbmaker.test_csdb(); printf("cscope.out detailed check %s\n",(k==0 ? "OK" : "Error")); if (k != 0) { printf("Please note that assembly code embedded in C/C++ files is unsupported.\n" "This might be the cause for this error.\n" "Please use the -d (for debug) argument to get more info.\n"); return 1; } remove(sqfn); res = dbmaker.open_db(sqfn); if (res != cs2sq::resOK) {printf("Error1! %d\n",res); return 1;} res = dbmaker.setup_tables(); if (res != cs2sq::resOK) {printf("Error2! %d\n",res); return 1;} printf("Adding symbols ...\n"); res = dbmaker.add_symbols(); if (res != cs2sq::resOK) {printf("Error3! %d\n",res); return 1;} printf("Finalizing ...\n"); res = dbmaker.finalize(); if (res != cs2sq::resOK) {printf("Error4! %d\n",res); return 1;} return 0; } int process_ctags(const char* ctagsfn, const char* sqfn, bool debug) { ctagread tagreader; ctagread::enResult restag; tagreader.setDebug(debug); restag = tagreader.open_files(sqfn, ctagsfn); if (restag != ctagread::resOK) {printf("Error!!!\n"); return 1;} printf("Processing ctags file ...\n"); restag = tagreader.process_ctags(); if (restag != ctagread::resOK) {printf("Error!!!\n"); return 1;} printf("Finalizing ...\n"); restag = tagreader.finalize(); if (restag != ctagread::resOK) {printf("Error!!!\n"); return 1;} return 0; } void printhelp(const char* str) { printf("Usage: %s [-s [-c ] [-t ]] [-p] [-d] [-v] [-h]\n\n", str); printf("options:\n"); printf(" -s : CodeQuery sqlite3 db file path\n"); printf(" -c : cscope.out file path\n"); printf(" -t : ctags tags file path\n"); printf(" -p : \"vacuum\", compact database (may take more time)\n"); printf(" -d : debug\n"); printf(" -v : version\n"); printf(" -h : help\n\n"); printf("The combinations possible are -s -c, -s -t, -s -c -t\n"); printf("The additional optional arguments are -p and -d\n"); printf("if -c is present then sqdbfile need not exist. It will be created.\n"); printf("if -t is present but not -c, then sqdbfile has to exist. Ctags info will be added to it.\n\n"); } void printlicense(void) { printf(CODEQUERY_SW_VERSION); printf("\n"); printf(CODEQUERY_SW_LICENSE); } bool fileexists(const char* fn) { bool retval; FILE *fp; fp = fopen(fn, "r"); retval = (fp != NULL); if (retval) fclose(fp); return retval; } void process_argwithopt(char* thisOpt, int option, bool& err, std::string& fnstr, bool filemustexist) { if (thisOpt != NULL) { fnstr = thisOpt; if (filemustexist && (fileexists(fnstr.c_str()) == false)) { printf("Error: File %s doesn't exist.\n", fnstr.c_str()); err = true; } } else { printf("Error: -%c used without file option.\n", option); err = true; } } int main(int argc, char *argv[]) { int c; bool bHelp, bSqlite, bCscope, bCtags, bDebug, bError, bVacuum, bVersion; bHelp = (argc <= 1); bVersion = false; bSqlite = false; bCscope = false; bCtags = false; bDebug = false; bError = false; bVacuum = false; std::string sqfn, csfn, ctfn; while ((c = getopt2(argc, argv, "s:c:t:pdvh")) != -1) { switch(c) { case 'v': bVersion = true; break; case 'h': bHelp = true; break; case 's': bSqlite = true; process_argwithopt(optarg, c, bError, sqfn, false); break; case 'c': bCscope = true; process_argwithopt(optarg, c, bError, csfn, true); break; case 't': bCtags = true; process_argwithopt(optarg, c, bError, ctfn, true); break; case 'd': bDebug = true; break; case 'p': bVacuum = true; break; case '?': bError = true; break; default: break; } } if (bVersion) { printlicense(); return 0; } if (bHelp || bError) { printhelp(extract_filename(argv[0])); return (bError ? 1 : 0); } if (!bSqlite) { printf("Error: -s is required.\n"); bError = true; } if ((bCscope == false)&&(bCtags == false)) { printf("Error: Either -c or -t or both must be present. Both are missing.\n"); bError = true; } if ((!bCscope) && (fileexists(sqfn.c_str()) == false)) { printf("Error: File %s doesn't exist.\n", sqfn.c_str()); printf("Error: Without -c, sqdbfile must exist.\n"); bError = true; } if (bError) { printhelp(extract_filename(argv[0])); return 1; } if (bCscope) { if (process_cscope(csfn.c_str(), sqfn.c_str(), bDebug) == 1) return 1; } if (bCtags) { if (process_ctags(ctfn.c_str(), sqfn.c_str(), bDebug) == 1) return 1; } if (bVacuum) { printf("Compacting database ...\n"); if (sqlbase::vacuum(sqfn.c_str(), bDebug) != 0) return 1; } else { if (sqlbase::analyze(sqfn.c_str(), bDebug) != 0) return 1; } return 0; } codequery-0.21.0/makedb/sqlbase.cpp000066400000000000000000000162161310136352400171570ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include "sqlbase.h" sqlbase::sqlbase() :m_db(NULL) ,m_debug(false) { } sqlbase::~sqlbase() { if (m_db) sqlite3_close(m_db); m_db = 0; } void sqlbase::setDebug(bool val) { m_debug = val; } int sqlbase::vacuum(const char* fn, const bool& debug) { int rc; sqlite3 *sqdb; rc = sqlite3_open_v2(fn, &sqdb, SQLITE_OPEN_READWRITE, NULL); if (rc != SQLITE_OK) { sqlite3_close(sqdb); return rc; } rc=sqlite3_exec(sqdb, "PRAGMA synchronous = OFF;" "PRAGMA journal_mode = OFF;" "PRAGMA locking_mode = EXCLUSIVE;" "PRAGMA automatic_index = FALSE;" "PRAGMA cache_size = 20000;" "VACUUM;ANALYZE;", NULL, 0, NULL); if (rc != SQLITE_OK) { if (debug) printf("SQLBaseErr099: %d, %s\n", rc, sqlite3_errmsg(sqdb)); } sqlite3_close(sqdb); return rc; } int sqlbase::analyze(const char* fn, const bool& debug) { int rc; sqlite3 *sqdb; rc = sqlite3_open_v2(fn, &sqdb, SQLITE_OPEN_READWRITE, NULL); if (rc != SQLITE_OK) { sqlite3_close(sqdb); return rc; } rc=sqlite3_exec(sqdb, "PRAGMA synchronous = OFF;" "PRAGMA journal_mode = OFF;" "PRAGMA locking_mode = EXCLUSIVE;" "PRAGMA automatic_index = FALSE;" "PRAGMA cache_size = 20000;" "ANALYZE;", NULL, 0, NULL); if (rc != SQLITE_OK) { if (debug) printf("SQLBaseErr100: %d, %s\n", rc, sqlite3_errmsg(sqdb)); } sqlite3_close(sqdb); return rc; } int sqlbase::prepare_stmt(sqlite3_stmt** pStmt, const char* sqlquery) { int rc; rc = sqlite3_prepare_v2(m_db, sqlquery, strlen(sqlquery), pStmt, NULL); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr001: %d, %s, line=%s\n", rc, sqlite3_errmsg(m_db), sqlquery); return SQLITE_ERROR; } return SQLITE_OK; } int sqlbase::execstmt(sqlite3_stmt* pstmt, const char* v1) { int rc; rc = sqlite3_reset(pstmt); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr004: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 1, v1, strlen(v1), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr002: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_step(pstmt); if ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) return rc; if (rc != SQLITE_DONE) { if (m_debug) printf("SQLBaseErr003: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } return SQLITE_OK; } int sqlbase::execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2) { int rc; rc = sqlite3_reset(pstmt); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr004: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 1, v1, strlen(v1), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr005: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 2, v2, strlen(v2), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr006: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_step(pstmt); if ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) return rc; if (rc != SQLITE_DONE) { if (m_debug) printf("SQLBaseErr007: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } return SQLITE_OK; } int sqlbase::execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3) { int rc; rc = sqlite3_reset(pstmt); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr004: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 1, v1, strlen(v1), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr009: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 2, v2, strlen(v2), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr010: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 3, v3, strlen(v3), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr011: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_step(pstmt); if ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) return rc; if (rc != SQLITE_DONE) { if (m_debug) printf("SQLBaseErr012: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } return SQLITE_OK; } int sqlbase::execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3, const char* v4) { int rc; rc = sqlite3_reset(pstmt); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr004: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 1, v1, strlen(v1), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr014: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 2, v2, strlen(v2), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr015: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 3, v3, strlen(v3), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr016: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 4, v4, strlen(v4), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr017: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_step(pstmt); if ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) return rc; if (rc != SQLITE_DONE) { if (m_debug) printf("SQLBaseErr018: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } return SQLITE_OK; } int sqlbase::execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3, const char* v4, const char* v5) { int rc; rc = sqlite3_reset(pstmt); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr004: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 1, v1, strlen(v1), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr020: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 2, v2, strlen(v2), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr021: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 3, v3, strlen(v3), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr022: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 4, v4, strlen(v4), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr023: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_bind_text(pstmt, 5, v5, strlen(v5), SQLITE_STATIC); if (rc != SQLITE_OK) { if (m_debug) printf("SQLBaseErr024: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } rc = sqlite3_step(pstmt); if ((rc == SQLITE_ROW)||(rc == SQLITE_BUSY)) return rc; if (rc != SQLITE_DONE) { if (m_debug) printf("SQLBaseErr025: %d, %s\n", rc, sqlite3_errmsg(m_db)); return SQLITE_ERROR; } return SQLITE_OK; } codequery-0.21.0/makedb/sqlbase.h000066400000000000000000000021611310136352400166160ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef SQLBASE_H_CQ #define SQLBASE_H_CQ #include #include #include class sqlbase { public: sqlbase(); ~sqlbase(); void setDebug(bool val); static int vacuum(const char* fn, const bool& debug); static int analyze(const char* fn, const bool& debug); int prepare_stmt(sqlite3_stmt** pStmt, const char* sqlquery); int execstmt(sqlite3_stmt* pstmt, const char* v1); int execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2); int execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3); int execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3, const char* v4); int execstmt(sqlite3_stmt* pstmt, const char* v1, const char* v2, const char* v3, const char* v4, const char* v5); protected: bool m_debug; sqlite3 *m_db; }; #endif codequery-0.21.0/makedb/swver.h000066400000000000000000000073621310136352400163420ustar00rootroot00000000000000 /* * CodeQuery * Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/ * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #ifndef SWVER_H_CQ #define SWVER_H_CQ #define CODEQUERY_SW_VERSION "CodeQuery 0.21.0" #define CODEQUERY_SW_VERSION_WEBSITE "

"\ CODEQUERY_SW_VERSION \ "

"\ "

Official Website

"\ "

GitHub Page

" #define CODEQUERY_SW_LICENSE \ "Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/\n\n" \ "Website: https://github.com/ruben2020/codequery\n\n" \ "The Source Code Form and the Executable Form of this software\n" \ "are subject to the terms of the Mozilla Public License, v. 2.0.\n" \ "If a copy of the MPL was not distributed with this software,\n" \ "You can obtain one at http://mozilla.org/MPL/2.0/.\n\n" \ "The Source Code Form of this software can be obtained from:\n" \ "https://github.com/ruben2020/codequery\n\n" \ "This software is distributed in the hope that it will be useful,\n" \ "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \ "Mozilla Public License, v. 2.0 for more details.\n\n" \ #define CODEQUERY_SW_LICENSE_PARA \ "Copyright (C) 2013-2017 ruben2020 https://github.com/ruben2020/\n\n" \ "Website: https://github.com/ruben2020/codequery\n\n" \ "The Source Code Form and the Executable Form of this software " \ "are subject to the terms of the Mozilla Public License, v. 2.0. " \ "If a copy of the MPL was not distributed with this software, " \ "You can obtain one at http://mozilla.org/MPL/2.0/.\n\n" \ "The Source Code Form of this software can be obtained from: " \ "https://github.com/ruben2020/codequery\n\n" \ "This software is distributed in the hope that it will be useful, " \ "but WITHOUT ANY WARRANTY; without even the implied warranty of " \ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " \ "Mozilla Public License, v. 2.0 for more details.\n\n" \ #define CODEQUERY_SW_LICENSE_PARA_LINK \ "

Copyright (C) 2013-2017 ruben2020

\n\n" \ "

The Source Code Form and the Executable Form of this software " \ "are subject to the terms of the Mozilla Public License, v. 2.0. " \ "If a copy of the MPL was not distributed with this software, " \ "You can obtain one at http://mozilla.org/MPL/2.0/.

\n\n" \ "

The Source Code Form of this software can be obtained from: " \ "https://github.com/ruben2020/codequery

\n\n" \ "

This software is distributed in the hope that it will be useful, " \ "but WITHOUT ANY WARRANTY; without even the implied warranty of " \ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " \ "Mozilla Public License, v. 2.0 for more details.

\n\n" \ /** * \mainpage CodeQuery Documentation * * GitHub: https://github.com/ruben2020/codequery * * Downloads: http://sourceforge.net/projects/codequery/files/ * * This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. * It builds upon the databases of cscope and Exuberant ctags. * The databases of cscope and ctags would be processed by the cqmakedb tool to * generate the CodeQuery database file. * The CodeQuery database file can be viewed and queried using the codequery GUI tool. * * This contains only the Doxygen documentation of the source code. * For the rest, please see the Github page above. */ #endif // SWVER_H_CQ codequery-0.21.0/querylib/000077500000000000000000000000001310136352400154245ustar00rootroot00000000000000codequery-0.21.0/querylib/CMakeLists.txt000066400000000000000000000006501310136352400201650ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.2.2) project(CodeQueryLib) find_package(Sqlite REQUIRED) include_directories( "." ) include_directories( "${SQLITE_INCLUDE_DIR}" ) set( SMALL_LIB_SRCS small_lib.cpp getopt2.cpp ) add_library( small_lib STATIC ${SMALL_LIB_SRCS} ) set( QUERY_LIB_SRCS sqlquery.cpp ) add_library( sqlquery_lib STATIC ${QUERY_LIB_SRCS} ) target_link_libraries( sqlquery_lib ${SQLITE_LIBRARIES} small_lib ) codequery-0.21.0/querylib/README.txt000066400000000000000000000024521310136352400171250ustar00rootroot00000000000000 Library to query CodeQuery database files This library is MIT-licensed, so that it may be used to create plugins for editors, IDEs and other software without license restrictions This license applies only to this directory and below. Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. codequery-0.21.0/querylib/getopt2.cpp000066400000000000000000000174121310136352400175210ustar00rootroot00000000000000// This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // /* $Id: getopt.c 4022 2008-03-31 06:11:07Z rra $ * * Replacement implementation of getopt. * * This is a replacement implementation for getopt based on the my_getopt * distribution by Benjamin Sittler. Only the getopt interface is included, * since remctl doesn't use GNU long options, and the code has been rearranged * and reworked somewhat to fit with the remctl coding style. * * Copyright 1997, 2000, 2001, 2002 Benjamin Sittler * Copyright 2008 Russ Allbery * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #include #include #include "getopt2.h" /* Initialize global interface variables. */ int optind = 1; int opterr = 1; int optopt = 0; char *optarg = NULL; /* * This is the plain old UNIX getopt, with GNU-style extensions. If you're * porting some piece of UNIX software, this is all you need. It supports * GNU-style permutation and optional arguments, but does not support the GNU * -W extension. * * This function is not re-entrant or thread-safe, has static variables, and * generally isn't a great interface, but normally you only call it once. */ int getopt2(int argc, char *argv[], const char *optstring) { const char *p; size_t offset = 0; char mode = '\0'; int colon_mode = 0; int option = -1; /* Holds the current position in the parameter being parsed. */ static int charind = 0; /* * By default, getopt permutes argv as it scans and leaves all non-options * at the end. This can be changed with the first character of optstring * or the environment variable POSIXLY_CORRECT. With a first character of * '+' or when POSIXLY_CORRECT is set, option processing stops at the * first non-option. If the first character is '-', each non-option argv * element is handled as if it were the argument of an option with * character code 1. mode holds this character. * * After the optional leading '+' and '-', optstring may contain ':'. If * present, missing arguments return ':' instead of '?'. colon_mode holds * this setting. */ /* if (getenv("POSIXLY_CORRECT") != NULL) { mode = '+'; colon_mode = '+'; } else { */ if (optstring[offset] == '+' || optstring[offset] == '-') { mode = optstring[offset]; offset++; } if (optstring[offset] == ':') { colon_mode = 1; offset++; } /* }*/ /* * charind holds where we left off. If it's set, we were in the middle * of an argv element; if not, we pick up with the next element of * optind. */ optarg = NULL; if (charind == 0) { if (optind >= argc) option = -1; else if (strcmp(argv[optind], "--") == 0) { optind++; option = -1; } else if (argv[optind][0] != '-' || argv[optind][1] == '\0') { char *tmp; int i, j, k, end; if (mode == '+') option = -1; else if (mode == '-') { optarg = argv[optind]; optind++; option = 1; } else { for (i = optind + 1, j = optind; i < argc; i++) if ((argv[i][0] == '-') && (argv[i][1] != '\0')) { optind = i; option = getopt2(argc, argv, optstring); while (i > j) { --i; tmp = argv[i]; end = (charind == 0) ? optind - 1 : optind; for (k = i; k + 1 <= end; k++) { argv[k] = argv[k + 1]; } argv[end] = tmp; --optind; } break; } if (i == argc) option = -1; } return option; } else { charind = 1; } } if (charind != 0) { optopt = argv[optind][charind]; for (p = optstring + offset; *p != '\0'; p++) if (optopt == *p) { p++; if (*p == ':') { if (argv[optind][charind + 1] != '\0') { optarg = &argv[optind][charind + 1]; optind++; charind = 0; } else { p++; if (*p != ':') { charind = 0; optind++; if (optind >= argc) { if (opterr) fprintf(stderr, "%s: option requires" " an argument -- %c\n", argv[0], optopt); option = colon_mode ? ':' : '?'; goto done; } else { optarg = argv[optind]; optind++; } } } } option = optopt; } if (option == -1) { if (opterr) fprintf(stderr, "%s: illegal option -- %c\n", argv[0], optopt); option = '?'; } } done: if (charind != 0) { charind++; if (argv[optind][charind] == '\0') { optind++; charind = 0; } } if (optind > argc) optind = argc; return option; } codequery-0.21.0/querylib/getopt2.h000066400000000000000000000055161310136352400171700ustar00rootroot00000000000000// This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // /* $Id: getopt.c 4022 2008-03-31 06:11:07Z rra $ * * Replacement implementation of getopt. * * This is a replacement implementation for getopt based on the my_getopt * distribution by Benjamin Sittler. Only the getopt interface is included, * since remctl doesn't use GNU long options, and the code has been rearranged * and reworked somewhat to fit with the remctl coding style. * * Copyright 1997, 2000, 2001, 2002 Benjamin Sittler * Copyright 2008 Russ Allbery * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ #ifndef GETOPT2_H #define GETOPT2_H extern char *optarg; int getopt2(int argc, char *argv[], const char *optstring); #endif codequery-0.21.0/querylib/small_lib.cpp000066400000000000000000000171431310136352400200740ustar00rootroot00000000000000 // Small library of useful classes and functions // // This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // #ifdef _WIN32 #include #endif #ifndef _MSC_VER #include #endif #include "small_lib.h" #include bool check_fileExists(const char *fn) { #ifdef _MSC_VER DWORD dwAttrib = GetFileAttributes(fn); return ((dwAttrib != INVALID_FILE_ATTRIBUTES) && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)); #else return (access(fn, F_OK) != -1); #endif } // is the file path given (fp), absolute or relative? bool isAbsolutePath(tStr fp) { bool result = false; // example: /usr/bin/local/file or \temp\file result = (fp[0] == DIRSEP); #ifdef _WIN32 // example: c:\temp\file result = result || ((fp[1] == ':')&&(fp[2] == DIRSEP)); #endif return result; } // reverse string compare bool strrevcmp(tStr str, tStr cmpstr) { bool retval = (1 == 1); long n = str.length(); if (n != cmpstr.length()) {retval = (1 == 0);} else for (long i = (n - 1); i >= 0; i--) { if (str[i] != cmpstr[i]) { retval = (1 == 0); break; } } return retval; } // return pointer to the last part of the string, // after the last occurrence of delimiter c char* get_last_part(char* str, int c) { char* retval; retval = strrchr(str, c); if (retval == NULL) { // not found, just return whole string retval = str; } else { retval += 1; } return retval; } // split string into an array based on a delimiter std::vector splitstr(const char* inpstr, const char delim) { size_t pos = 0, retpos = 0; std::vector vecstr; std::string str(inpstr); do { retpos = str.find_first_of(delim, pos); if (retpos == std::string::npos) { vecstr.push_back(str.substr(pos)); } else { vecstr.push_back(str.substr(pos, retpos - pos)); pos = retpos + 1; } } while (retpos != std::string::npos); return vecstr; } // replace char o with char r for every part of the string // from iterator i1 to iterator i2, excluding i2 long replacechar(std::string::iterator i1, std::string::iterator i2, const char o, const char r) { long count = 0; for(std::string::iterator i = i1; i != i2; ++i) { if (*i == o) { *i = r; count++; } } return count; } // remove EOL char const char* chomp(char* str) { if ((str != NULL)&&(strlen(str) > 0)) { char* charr = strrchr(str, 0xA); if (charr != NULL) { *charr = 0; // Unix chomp, Windows half-chomp charr--; if (*charr == 0xD) *charr = 0; // Windows chomp } else { charr = strrchr(str, 0xD); if (charr != NULL) *charr = 0; // MacOS chomp } } return static_cast(str); } // add an escape character in front of another predetermined character std::string add_escape_char(std::string ori, char chr2escp, char escpchr) { std::string s; long num = 0; size_t retval = -1; s = ori; do { retval = ori.find(chr2escp, retval+1); if (retval != std::string::npos) { s.insert(retval + num, 1, escpchr); num++; } } while (retval != std::string::npos); return s; } // add an escape character in front of another predetermined character std::string add_escape_char(const char* oristr, char chr2escp, char escpchr) { std::string ori(oristr); std::string s; long num = 0; size_t retval = -1; s = ori; do { retval = ori.find(chr2escp, retval+1); if (retval != std::string::npos) { s.insert(retval + num, 1, escpchr); num++; } } while (retval != std::string::npos); return s; } // extract the filename.ext from a file path const char* extract_filename(const char* filepath) { char* str = (char*) filepath; char* charr = NULL; char pathdelim[] = {'/', '\\', ':'}; if ((filepath != NULL)&&(strlen(filepath) > 0)) for (int i=0; i < sizeof(pathdelim); i++) { charr = (char*) strrchr(filepath, pathdelim[i]); if (charr != NULL) {str = charr+1; break;} } return static_cast(str); } void smartFILE::setme(FILE *fptr) {close_file(); m_fp = fptr;} smartFILE::smartFILE() :m_fp(NULL) {} smartFILE::smartFILE(FILE *fptr) :m_fp(fptr) {} smartFILE::smartFILE(const smartFILE& sfp) :m_fp(sfp.m_fp) {} smartFILE::~smartFILE() {close_file();} FILE* smartFILE::operator() () {return m_fp;} bool smartFILE::operator ==(FILE* fptr) const {return (m_fp == fptr);} bool smartFILE::operator !=(FILE* fptr) const {return (m_fp != fptr);} bool smartFILE::operator ==(const smartFILE& sfp) const {return (m_fp == sfp.m_fp);} bool smartFILE::operator !=(const smartFILE& sfp) const {return (m_fp != sfp.m_fp);} smartFILE& smartFILE::operator =(FILE *fptr) {setme(fptr); return *this;} smartFILE& smartFILE::operator =(const smartFILE& sfp) { if (this != &sfp) {setme(sfp.m_fp);} return *this; } void smartFILE::assign(FILE* fptr) {setme(fptr);} void smartFILE::assign(const smartFILE& sfp) {setme(sfp.m_fp);} FILE* smartFILE::get(void) {return m_fp;} void smartFILE::close_file(void) { if (m_fp != NULL) { fclose(m_fp); m_fp = NULL; } } tempbuf::tempbuf(long n) { if (n < 10) n = 10; m_buffer = new (std::nothrow) char[n]; if (m_buffer != NULL) { *m_buffer = 0; } m_size = n; } tempbuf::~tempbuf() { if (m_buffer != NULL) { delete[] m_buffer; } } char* tempbuf::operator() () {return m_buffer;} char* tempbuf::get(void) {return m_buffer;} char tempbuf::operator[] (long i) { char chr; if (i < m_size) chr = *(m_buffer + i); else chr = 0; return chr; } long tempbuf::size(void) const {return m_size;} bool tempbuf::isempty(void) const {return (*m_buffer == 0);} void tempbuf::clear(void) {*m_buffer = 0;} char* tempbuf::reinit(long n) { if (n < 10) n = 10; delete[] m_buffer; m_buffer = new char[n]; *m_buffer = 0; m_size = n; return m_buffer; } const char* tempbuf::constchar(void) {return static_cast(m_buffer);} idxcounter::idxcounter():m_ctr(0) {} idxcounter::~idxcounter(){} idxcounter::idxcounter(const idxcounter& idxc) { m_ctr = idxc.m_ctr; } idxcounter& idxcounter::operator =(long unsigned int idx) {m_ctr = idx; return *this;} idxcounter& idxcounter::operator =(const idxcounter& idxc) { if (this != &idxc) { m_ctr = idxc.m_ctr; } return *this; } void idxcounter::setCounterVal(long unsigned int i) {m_ctr = i;} void idxcounter::reset(void) {m_ctr = 0;} idxcounter& idxcounter::operator ++() {++m_ctr;sprintf(m_buf, "%lu", m_ctr); return *this;} idxcounter& idxcounter::operator --() {--m_ctr;sprintf(m_buf, "%lu", m_ctr); return *this;} long unsigned int idxcounter::getInt(void) const {return m_ctr;} const char* idxcounter::getStr(void) const {return m_buf;} int idxcounter::getStrSize(void) const {return strlen(m_buf);} codequery-0.21.0/querylib/small_lib.h000066400000000000000000000067771310136352400175540ustar00rootroot00000000000000 // Small library of useful classes and functions // // This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // #ifndef SMALL_LIB_H_CQ #define SMALL_LIB_H_CQ #include #include #include #include #ifdef _WIN32 #define DIRSEP '\\' #else #define DIRSEP '/' #endif // Get number of elements of a fixed-sized array #define DIM(x) (sizeof( x ) / sizeof( x [0] ) ) typedef std::string tStr; typedef std::vector tVecStr; bool check_fileExists(const char *fn); bool isAbsolutePath(tStr fp); bool strrevcmp(tStr str, tStr cmpstr); char* get_last_part(char* str, int c); std::vector splitstr(const char* inpstr, const char delim); long replacechar(std::string::iterator i1, std::string::iterator i2, const char o, const char r); const char* chomp(char* str); std::string add_escape_char(std::string ori, char chr2escp, char escpchr); std::string add_escape_char(const char* oristr, char chr2escp, char escpchr); const char* extract_filename(const char* filepath); class smartFILE { private: FILE* m_fp; inline void setme(FILE *fptr); public: smartFILE(); smartFILE(FILE *fptr); smartFILE(const smartFILE& sfp); ~smartFILE(); // the reason why this class was written FILE* operator() (); bool operator ==(FILE* fptr) const; bool operator !=(FILE* fptr) const; bool operator ==(const smartFILE& sfp) const; bool operator !=(const smartFILE& sfp) const; smartFILE& operator =(FILE *fptr); smartFILE& operator =(const smartFILE& sfp); void assign(FILE* fptr); void assign(const smartFILE& sfp); FILE* get(void); void close_file(void); }; //class smartFILE class tempbuf { private: char* m_buffer; long m_size; public: tempbuf(long n); ~tempbuf(); // the reason why this class was written char* operator() (); char* get(void); char operator[] (long i); long size(void) const; bool isempty(void) const; void clear(void); char* reinit(long n); const char* constchar(void); }; //class tempbuf class idxcounter { private: long unsigned int m_ctr; char m_buf[20]; public: idxcounter(); ~idxcounter(); idxcounter(const idxcounter& idxc); idxcounter& operator =(long unsigned int idx); idxcounter& operator =(const idxcounter& idxc); void setCounterVal(long unsigned int i); void reset(void); idxcounter& operator ++(); idxcounter& operator --(); long unsigned int getInt(void) const; const char* getStr(void) const; int getStrSize(void) const; }; //class idxcounter #endif //SMALL_LIB_H_CQ codequery-0.21.0/querylib/sqlquery.cpp000066400000000000000000000711751310136352400200300ustar00rootroot00000000000000 // Library to query CodeQuery database files // // This library is MIT-licensed, so that it may be used to create plugins // for editors, IDEs and other software without license restrictions // // This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // #include #include //#include #include #include #include "small_lib.h" #include "sqlquery.h" #define SQL_SYM "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_FUNC_MACRO "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\") AND (symtbl.symType=\"$\" OR symtbl.symType=\"#\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_CLASS_STRUCT "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\") AND (symtbl.symType=\"c\" OR symtbl.symType=\"s\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_CALLINGFUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT callerID FROM calltbl WHERE calledID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_CALLEDFUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT calledID FROM calltbl WHERE callerID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_CALLS_OF_FUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\") AND (symtbl.symType=\"`\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_MEMBERS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT memberID FROM membertbl WHERE groupID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_OWNERCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT groupID FROM membertbl WHERE memberID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_PARENTCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT parentID FROM inherittbl WHERE childID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_CHILDCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT childID FROM inherittbl WHERE parentID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_INCLUDE "SELECT filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName LIKE ? ESCAPE \";\" AND symType=\"~\") INNER JOIN filestbl ON linestbl.fileID=filestbl.fileID;" #define SQL_FILEPATH "SELECT DISTINCT filePath FROM filestbl WHERE filePath LIKE ? ESCAPE \";\";" #define SQL_FILESLIST "SELECT DISTINCT filePath FROM filestbl WHERE filePath LIKE ? ESCAPE \";\" ORDER BY filePath ASC;" #define SQL_AUTOCOMPLETE "SELECT DISTINCT symName FROM symtbl WHERE symName LIKE ? ORDER BY symName LIMIT 20;" #define SQL_FUNCSINFILE "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE (symtbl.symType=\"$\" OR symtbl.symType=\"#\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_FUNCSINONEFILE "SELECT symtbl.symName,filestbl.filePath,linestbl.linenum FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE (symtbl.symType=\"$\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_FUNCSINONEFILE2 "SELECT symtbl.symName,filestbl.filePath,linestbl.linenum FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE (symtbl.symType=\"$\")) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND linestbl.fileID=?);" #define SQL_EM_SYM "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=?) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_FUNC_MACRO "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=?) AND (symtbl.symType=\"$\" OR symtbl.symType=\"#\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_CLASS_STRUCT "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=?) AND (symtbl.symType=\"c\" OR symtbl.symType=\"s\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_CALLINGFUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT callerID FROM calltbl WHERE calledID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_CALLEDFUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT calledID FROM calltbl WHERE callerID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_CALLS_OF_FUNC "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=?) AND (symtbl.symType=\"`\") INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_MEMBERS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT memberID FROM membertbl WHERE groupID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_OWNERCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT groupID FROM membertbl WHERE memberID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_PARENTCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT parentID FROM inherittbl WHERE childID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_CHILDCLASS "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT childID FROM inherittbl WHERE parentID IN (SELECT symID FROM symtbl WHERE symName=?)) INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID AND filestbl.filePath LIKE ? ESCAPE \";\");" #define SQL_EM_INCLUDE "SELECT filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.lineID=linestbl.lineID AND symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=? AND symType=\"~\") INNER JOIN filestbl ON linestbl.fileID=filestbl.fileID;" #define SQL_EM_FILEPATH "SELECT DISTINCT filePath FROM filestbl WHERE filePath=?;" #define SQL_EM_FILESLIST "SELECT DISTINCT filePath FROM filestbl WHERE filePath=? ORDER BY filePath ASC;" #define SQL_DECLARATION "SELECT symtbl.symName,symtbl.symType,filestbl.filePath,linestbl.linenum,linestbl.linetext,linestbl.fileID FROM symtbl INNER JOIN linestbl ON symtbl.symID IN (SELECT symID FROM symtbl WHERE symName=?) AND (symtbl.symType=\"$\" OR symtbl.symType=\"#\" OR symtbl.symType=\"c\" OR symtbl.symType=\"s\") AND symtbl.lineID=linestbl.lineID INNER JOIN filestbl ON (linestbl.fileID=filestbl.fileID) LIMIT 1;" struct nameasc { bool operator()( const sqlqueryresult& lx, const sqlqueryresult& rx ) const { return lx.symname2.compare(rx.symname2) < 0; } }; struct numasc { bool operator()( const sqlqueryresult& lx, const sqlqueryresult& rx ) const { return lx.intLinenum < rx.intLinenum; } }; tempstmt::tempstmt() :m_stmt(NULL) { } tempstmt::~tempstmt() { finalize(); } void tempstmt::finalize(void) { sqlite3_finalize(m_stmt); m_stmt = NULL; qry.clear(); } sqlite3_stmt* tempstmt::get(void) { return m_stmt; } sqlqueryresultlist::sqlqueryresultlist() :result_type(sqlresultERROR) ,sqlerrmsg("empty") { } sqlqueryresultlist::sqlqueryresultlist(const sqlqueryresultlist& copy) { result_type = copy.result_type; sqlerrmsg = copy.sqlerrmsg; resultlist = copy.resultlist; } sqlqueryresultlist& sqlqueryresultlist::operator= (const sqlqueryresultlist& copy) { if (© != this) { result_type = copy.result_type; sqlerrmsg = copy.sqlerrmsg; resultlist.clear(); resultlist = copy.resultlist; } return *this; } void sqlqueryresultlist::sort_by_name(void) { std::sort(resultlist.begin(), resultlist.end(), nameasc()); } void sqlqueryresultlist::sort_by_linenum(void) { std::sort(resultlist.begin(), resultlist.end(), numasc()); } sqlquery::sqlquery() :m_db(NULL) { } sqlquery::~sqlquery() { close_dbfile(); } sqlquery::en_filereadstatus sqlquery::open_dbfile(tStr dbfn) { if (dbfn.empty()) return sqlfileOPENERROR; smartFILE fp; // Does the file exist? if (check_fileExists(dbfn.c_str()) == false) {return sqlfileOPENERROR;} // Try to open the file for reading fp = fopen(dbfn.c_str(), "r"); if (fp == NULL) {return sqlfileOPENERROR;} fp.close_file(); int rc = sqlite3_open_v2(dbfn.c_str(), &m_db, SQLITE_OPEN_READONLY, NULL); if ((rc != SQLITE_OK)||(m_db == NULL)) { close_dbfile(); return sqlfileOPENERROR; } tempstmt stmt; sqlite3_exec(m_db, /*"PRAGMA synchronous = OFF;" "PRAGMA journal_mode = OFF;" "PRAGMA locking_mode = EXCLUSIVE;" "PRAGMA automatic_index = FALSE;"*/ "PRAGMA cache_size = 20000;", NULL, 0, NULL); tStr majorver = read_configtbl("DB_MAJOR_VER", stmt.get()); tStr minorver = read_configtbl("DB_MINOR_VER", stmt.get()); if ((majorver.empty())||(minorver.empty())) {return sqlfileNOTCORRECTDB;} if (majorver.compare(tStr("0")) != 0) return sqlfileINCORRECTVER; if (minorver.compare(tStr("1")) != 0) return sqlfileINCORRECTVER; m_basepath = read_configtbl("DB_BASE_PATH", stmt.get()); if (m_basepath.empty()) {return sqlfileNOTCORRECTDB;} rc = sqlite3_prepare_v2(m_db, SQL_AUTOCOMPLETE, strlen(SQL_AUTOCOMPLETE), &(m_autocompstmt.m_stmt), NULL); rc = sqlite3_prepare_v2(m_db, SQL_FUNCSINONEFILE, strlen(SQL_FUNCSINONEFILE), &(m_funclistfilenamestmt.m_stmt), NULL); rc = sqlite3_prepare_v2(m_db, SQL_FUNCSINONEFILE2, strlen(SQL_FUNCSINONEFILE2), &(m_funclistfileidstmt.m_stmt), NULL); rc = sqlite3_prepare_v2(m_db, SQL_DECLARATION, strlen(SQL_DECLARATION), &(m_declarationstmt.m_stmt), NULL); if (rc != SQLITE_OK) {return sqlfileNOTCORRECTDB;} return sqlfileOK; } void sqlquery::close_dbfile(void) { m_declarationstmt.finalize(); m_autocompstmt.finalize(); m_funclistfilenamestmt.finalize(); m_funclistfileidstmt.finalize(); m_searchstmt.finalize(); sqlite3_close(m_db); m_db = NULL; m_basepath.clear(); } tStr sqlquery::read_configtbl(const char *key, sqlite3_stmt *stmt) { tStr result = ""; if ((key == NULL)||(strlen(key) == 0)||(m_db == NULL)) return result; int rc; if (stmt == NULL) { rc = sqlite3_prepare_v2(m_db, "SELECT configVal FROM configtbl WHERE configKey=?;", strlen("SELECT configVal FROM configtbl WHERE configKey=?;"), &stmt, NULL); if (rc != SQLITE_OK) {return result;} } else sqlite3_reset(stmt); rc = sqlite3_bind_text(stmt, 1, key, strlen(key), SQLITE_STATIC); if (rc != SQLITE_OK) {return result;} rc = sqlite3_step(stmt); if (rc != SQLITE_ROW) {return result;} result = (const char*) sqlite3_column_text(stmt, 0); return result; } sqlqueryresultlist sqlquery::search_funclist_filename(const char* searchstr) { //printf("search_funclist_filename %s\n", searchstr); sqlqueryresultlist result; if (searchstr == NULL) return result; result.result_type = sqlqueryresultlist::sqlresultERROR; tStr srchterm("%"); srchterm.append(searchstr); if ((searchstr == NULL)||(strlen(searchstr) < 1)||(m_db == NULL)) return result; sqlite3_reset(m_funclistfilenamestmt.get()); int rc = sqlite3_bind_text(m_funclistfilenamestmt.get(), 1, srchterm.c_str(), srchterm.size(), SQLITE_STATIC); if (rc != SQLITE_OK) {printf("Err: %s\n", sqlite3_errmsg(m_db)); return result;} result = search_func_in_one_file(m_funclistfilenamestmt.get()); return result; } sqlqueryresultlist sqlquery::search_funclist_fileid(int& fileid) { //printf("search_funclist_fileid %d\n", fileid); sqlqueryresultlist result; result.result_type = sqlqueryresultlist::sqlresultERROR; if ((fileid < 0)||(m_db == NULL)) return result; sqlite3_reset(m_funclistfileidstmt.get()); int rc = sqlite3_bind_int(m_funclistfileidstmt.get(), 1, fileid); if (rc != SQLITE_OK) {printf("Err: %s\n", sqlite3_errmsg(m_db)); return result;} result = search_func_in_one_file(m_funclistfileidstmt.get()); return result; } tVecStr sqlquery::search_autocomplete(const char* searchstr) { tVecStr result; //int ctr = 0; if ((searchstr == NULL)||(strlen(searchstr) < 1)||(m_db == NULL)) return result; tStr srchterm = process_searchterm_autocomplete(searchstr); sqlite3_reset(m_autocompstmt.get()); int rc = sqlite3_bind_text(m_autocompstmt.get(), 1, srchterm.c_str(), srchterm.size(), SQLITE_STATIC); if (rc != SQLITE_OK) {printf("Err: %s\n", sqlite3_errmsg(m_db)); return result;} do { rc = sqlite3_step(m_autocompstmt.get()); if (rc == SQLITE_ROW) { result.push_back(tStr((const char*) sqlite3_column_text(m_autocompstmt.get(), 0))); //if (ctr++ > 300) rc = SQLITE_DONE; } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { printf("Err: %s\n", sqlite3_errmsg(m_db)); } return result; } sqlqueryresultlist sqlquery::search( tStr searchstr, sqlquery::en_queryType querytype, bool exactmatch, tStr filterstr) { sqlqueryresultlist result; int rc; bool twoTerms = true; result.result_type = sqlqueryresultlist::sqlresultERROR; if ((m_db == NULL)||(searchstr.empty())||(m_basepath.empty())) return result; tStr sqlqry, srchterm, filterterm; sqlqueryresultlist::en_resultType resultType = sqlqueryresultlist::sqlresultFULL; if (exactmatch && (querytype == sqlresultFUNCSINFILE)) {searchstr.insert(0, "%");} srchterm = process_searchterm(searchstr.c_str(), exactmatch); if (filterstr.empty()) {filterterm = "%";} else {filterterm = process_searchterm(filterstr.c_str(), false);} switch (querytype) { case sqlquerySYMBOL: sqlqry = exactmatch ? SQL_EM_SYM : SQL_SYM; break; case sqlresultFUNC_MACRO: sqlqry = exactmatch ? SQL_EM_FUNC_MACRO : SQL_FUNC_MACRO; break; case sqlresultCLASS_STRUCT: sqlqry = exactmatch ? SQL_EM_CLASS_STRUCT : SQL_CLASS_STRUCT; break; case sqlresultINCLUDE: sqlqry = exactmatch ? SQL_EM_INCLUDE : SQL_INCLUDE; resultType = sqlqueryresultlist::sqlresultFILE_LINE; twoTerms = false; break; case sqlresultFILEPATH: sqlqry = exactmatch ? SQL_EM_FILEPATH : SQL_FILEPATH; resultType = sqlqueryresultlist::sqlresultFILE_ONLY; twoTerms = false; break; case sqlresultFILESLIST: sqlqry = exactmatch ? SQL_EM_FILESLIST : SQL_FILESLIST; resultType = sqlqueryresultlist::sqlresultFILE_ONLY; twoTerms = false; break; case sqlresultCALLINGFUNC: sqlqry = exactmatch ? SQL_EM_CALLINGFUNC : SQL_CALLINGFUNC; break; case sqlresultCALLEDFUNC: sqlqry = exactmatch ? SQL_EM_CALLEDFUNC : SQL_CALLEDFUNC; break; case sqlresultCALLSOFFUNC: sqlqry = exactmatch ? SQL_EM_CALLS_OF_FUNC : SQL_CALLS_OF_FUNC; break; case sqlresultMEMBERS: sqlqry = exactmatch ? SQL_EM_MEMBERS : SQL_MEMBERS; break; case sqlresultOWNERCLASS: sqlqry = exactmatch ? SQL_EM_OWNERCLASS : SQL_OWNERCLASS; break; case sqlresultPARENTCLASS: sqlqry = exactmatch ? SQL_EM_PARENTCLASS : SQL_PARENTCLASS; break; case sqlresultCHILDCLASS: sqlqry = exactmatch ? SQL_EM_CHILDCLASS : SQL_CHILDCLASS; break; case sqlresultFUNCSINFILE: sqlqry = SQL_FUNCSINFILE; twoTerms = false; break; case sqlresultAUTOCOMPLETE: resultType = sqlqueryresultlist::sqlresultSYM_ONLY; twoTerms = false; break; default: result.sqlerrmsg = "Unknown search type"; return result; } if (m_searchstmt.qry.compare(sqlqry) != 0) { sqlite3_finalize(m_searchstmt.get()); rc = sqlite3_prepare_v2(m_db, sqlqry.c_str(), sqlqry.size(), &(m_searchstmt.m_stmt), NULL); m_searchstmt.qry = (rc == SQLITE_OK) ? sqlqry : ""; } else { rc = sqlite3_reset(m_searchstmt.get()); } if (rc != SQLITE_OK) {result.sqlerrmsg = sqlite3_errmsg(m_db); return result;} rc = sqlite3_bind_text(m_searchstmt.get(), 1, srchterm.c_str(), srchterm.size(), SQLITE_TRANSIENT); if (rc != SQLITE_OK) {result.sqlerrmsg = sqlite3_errmsg(m_db); return result;} if (twoTerms) { rc = sqlite3_bind_text(m_searchstmt.get(), 2, filterterm.c_str(), filterterm.size(), SQLITE_TRANSIENT); if (rc != SQLITE_OK) {result.sqlerrmsg = sqlite3_errmsg(m_db); return result;} } if (resultType == sqlqueryresultlist::sqlresultFULL) result = search_full(m_searchstmt.get()); else if (resultType == sqlqueryresultlist::sqlresultFILE_LINE) result = search_file_line(m_searchstmt.get()); else if (resultType == sqlqueryresultlist::sqlresultFILE_ONLY) { if (querytype == sqlresultFILESLIST) result = search_filepath_only(m_searchstmt.get()); else result = search_file_only(m_searchstmt.get()); } return result; } tStr sqlquery::process_searchterm(const char* searchterm, const bool& exactmatch) { tStr srchterm, srchterm2; if (!exactmatch) { srchterm2 = add_escape_char(searchterm, '%', ';').c_str(); srchterm2 = add_escape_char( srchterm2.c_str(), '_', ';').c_str(); srchterm = "%"; srchterm += srchterm2; srchterm += "%"; replacechar( srchterm.begin(), srchterm.end(), '*', '%'); replacechar( srchterm.begin(), srchterm.end(), '?', '_'); } else srchterm = searchterm; return srchterm; } tStr sqlquery::process_searchterm_autocomplete(const char* searchterm) { tStr srchterm(searchterm); srchterm += "%"; replacechar( srchterm.begin(), srchterm.end(), '*', '%'); replacechar( srchterm.begin(), srchterm.end(), '?', '_'); return srchterm; } sqlqueryresultlist sqlquery::search_declaration(const char* searchstr) { int rc; sqlqueryresultlist result; tStr fp; sqlite3_stmt* stmt = m_declarationstmt.get(); if ((searchstr == NULL)||(strlen(searchstr) < 1)||(m_db == NULL)) return result; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; sqlite3_reset(stmt); rc = sqlite3_bind_text(stmt, 1, searchstr, strlen(searchstr), SQLITE_STATIC); if (rc != SQLITE_OK) {printf("Err: %s\n", sqlite3_errmsg(m_db)); return result;} do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { item.symname = (const char*) sqlite3_column_text(stmt, 0); item.symtype = (const char*) sqlite3_column_text(stmt, 1); fp = (const char*) sqlite3_column_text(stmt, 2); item.linenum = (const char*) sqlite3_column_text(stmt, 3); item.linetext = (const char*) sqlite3_column_text(stmt, 4); item.filename = extract_filename(fp.c_str()); if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFULL; } return result; } sqlqueryresultlist sqlquery::search_full(sqlite3_stmt* stmt) { int rc; sqlqueryresultlist result; tStr fp; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { item.symname = (const char*) sqlite3_column_text(stmt, 0); item.symtype = (const char*) sqlite3_column_text(stmt, 1); fp = (const char*) sqlite3_column_text(stmt, 2); item.linenum = (const char*) sqlite3_column_text(stmt, 3); item.linetext = (const char*) sqlite3_column_text(stmt, 4); item.fileid = sqlite3_column_int (stmt, 5); item.filename = extract_filename(fp.c_str()); if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFULL; } return result; } sqlqueryresultlist sqlquery::search_func_in_one_file(sqlite3_stmt* stmt) { int rc; sqlqueryresultlist result; tStr fp; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { item.symname = (const char*) sqlite3_column_text(stmt, 0); fp = (const char*) sqlite3_column_text(stmt, 1); item.linenum = (const char*) sqlite3_column_text(stmt, 2); item.filename = extract_filename(fp.c_str()); item.intLinenum = atoi(item.linenum.c_str()); item.symname2 = item.symname; std::transform(item.symname2.begin(), item.symname2.end(), item.symname2.begin(), ::tolower); if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFUNC_IN_ONE_FILE; } return result; } sqlqueryresultlist sqlquery::search_file_line(sqlite3_stmt* stmt) { int rc; sqlqueryresultlist result; tStr fp; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { fp = (const char*) sqlite3_column_text(stmt, 0); item.linenum = (const char*) sqlite3_column_text(stmt, 1); item.linetext = (const char*) sqlite3_column_text(stmt, 2); item.fileid = sqlite3_column_int (stmt, 3); item.filename = extract_filename(fp.c_str()); if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFILE_LINE; } return result; } sqlqueryresultlist sqlquery::search_file_only(sqlite3_stmt* stmt) { int rc; sqlqueryresultlist result; tStr fp; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { fp = (const char*) sqlite3_column_text(stmt, 0); item.linenum = "1"; item.filename = extract_filename(fp.c_str()); if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFILE_ONLY; } return result; } sqlqueryresultlist sqlquery::search_filepath_only(sqlite3_stmt* stmt) { int rc; sqlqueryresultlist result; tStr fp; result.result_type = sqlqueryresultlist::sqlresultERROR; sqlqueryresult item; do { rc = sqlite3_step(stmt); if (rc == SQLITE_ROW) { fp = (const char*) sqlite3_column_text(stmt, 0); item.linenum = "1"; item.filename = fp; if (isAbsolutePath(fp) == false) { item.filepath = m_basepath; item.filepath += DIRSEP; item.filepath += fp; } else item.filepath = fp; result.resultlist.push_back(item); } } while (rc == SQLITE_ROW); if (rc != SQLITE_DONE) { result.result_type = sqlqueryresultlist::sqlresultERROR; result.sqlerrmsg = sqlite3_errmsg(m_db); } else { result.result_type = sqlqueryresultlist::sqlresultFILE_ONLY; } return result; } codequery-0.21.0/querylib/sqlquery.h000066400000000000000000000101131310136352400174560ustar00rootroot00000000000000 // Library to query CodeQuery database files // // This library is MIT-licensed, so that it may be used to create plugins // for editors, IDEs and other software without license restrictions // // This license applies only to this file: // // Copyright (c) 2011 ruben2020 https://github.com/ruben2020/ // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // #ifndef SQLQUERY_H_CQ #define SQLQUERY_H_CQ #include "small_lib.h" // forward declaration struct sqlite3; struct sqlite3_stmt; class tempstmt { public: sqlite3_stmt *m_stmt; tStr qry; tempstmt(); ~tempstmt(); void finalize(void); sqlite3_stmt* get(void); }; class sqlqueryresult { public: tStr symname; tStr symname2; tStr symtype; tStr linenum; unsigned int intLinenum; tStr filename; tStr filepath; int fileid; tStr linetext; sqlqueryresult() : linenum((const char*)"1"), fileid(-99), intLinenum(0){} }; class sqlqueryresultlist { public: enum en_resultType { sqlresultFULL = 0, sqlresultFILE_LINE, sqlresultFILE_ONLY, sqlresultSYM_ONLY, sqlresultFUNC_IN_ONE_FILE, sqlresultERROR }; en_resultType result_type; std::vector resultlist; sqlqueryresultlist(); sqlqueryresultlist(const sqlqueryresultlist& copy); sqlqueryresultlist& operator= (const sqlqueryresultlist& copy); void sort_by_name(void); void sort_by_linenum(void); tStr sqlerrmsg; }; class sqlquery { public: enum en_queryType { sqlquerySYMBOL = 0, sqlresultFUNC_MACRO, sqlresultCLASS_STRUCT, sqlresultINCLUDE, sqlresultFILESLIST, sqlresultCALLINGFUNC, sqlresultCALLEDFUNC, sqlresultCALLSOFFUNC, sqlresultMEMBERS, sqlresultOWNERCLASS, sqlresultCHILDCLASS, sqlresultPARENTCLASS, sqlresultFUNCSINFILE, sqlresultGREP, sqlresultAUTOCOMPLETE, sqlresultFILEPATH, sqlresultDEFAULT = 100 }; enum en_filereadstatus { sqlfileOK = 0, sqlfileOPENERROR, sqlfileNOTCORRECTDB, sqlfileINCORRECTVER, sqlfileUNKNOWNERROR }; sqlquery(); ~sqlquery(); bool isDBOpen(void) {return (m_db != NULL);} en_filereadstatus open_dbfile(tStr dbfn); void close_dbfile(void); sqlqueryresultlist search(tStr searchstr, en_queryType querytype = sqlquerySYMBOL, bool exactmatch=false, tStr filterstr = ""); sqlqueryresultlist search_funclist_filename(const char* searchstr); sqlqueryresultlist search_funclist_fileid(int& fileid); tVecStr search_autocomplete(const char* searchstr); sqlqueryresultlist search_declaration(const char* searchstr); private: sqlite3 *m_db; tStr m_basepath; tempstmt m_declarationstmt; tempstmt m_autocompstmt; tempstmt m_funclistfilenamestmt; tempstmt m_funclistfileidstmt; tempstmt m_searchstmt; sqlqueryresultlist search_full(sqlite3_stmt* stmt); sqlqueryresultlist search_file_line(sqlite3_stmt* stmt); sqlqueryresultlist search_file_only(sqlite3_stmt* stmt); sqlqueryresultlist search_filepath_only(sqlite3_stmt* stmt); sqlqueryresultlist search_func_in_one_file(sqlite3_stmt* stmt); tStr read_configtbl(const char *key, sqlite3_stmt *stmt); tStr process_searchterm(const char* searchterm, const bool& exactmatch); tStr process_searchterm_autocomplete(const char* searchstr); }; #endif codequery-0.21.0/release.json000066400000000000000000000003571310136352400161100ustar00rootroot00000000000000{ "version": "0.21.0", "state": "stable", "scope": "minor feature", "changes": "Fixes in the ctags file parser, List of files button added to the GUI", "download": "https://sourceforge.net/projects/codequery/files/" } codequery-0.21.0/scintilla/000077500000000000000000000000001310136352400155525ustar00rootroot00000000000000codequery-0.21.0/scintilla/CONTRIBUTING000066400000000000000000000014721310136352400174100ustar00rootroot00000000000000Fixes should be posted to the Bug Tracker http://sourceforge.net/p/scintilla/bugs/ Features should be posted to the Feature Request Tracker http://sourceforge.net/p/scintilla/feature-requests/ Either send unified diffs (or patch files) or zip archives with whole files. Mercurial patch files are best as they include author information and commit messages. Questions should go to the scintilla-interest mailing list https://groups.google.com/forum/#!forum/scintilla-interest Code should follow the guidelines at http://www.scintilla.org/SciCoding.html Do not use SourceForge's Merge Request mechanism or message sending feature as no one is monitoring these. The neilh @ scintilla.org account receives much spam and is only checked occasionally. Almost all Scintilla mail should go to the mailing list.codequery-0.21.0/scintilla/License.txt000066400000000000000000000015441310136352400177010ustar00rootroot00000000000000License for Scintilla and SciTE Copyright 1998-2003 by Neil Hodgson All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. codequery-0.21.0/scintilla/README000066400000000000000000000051521310136352400164350ustar00rootroot00000000000000README for building of Scintilla and SciTE Scintilla can be built by itself. To build SciTE, Scintilla must first be built. *** GTK+/Linux version *** You must first have GTK+ 2.18 or later and GCC (4.8 or better) installed. Clang may be used by adding CLANG=1 to the make command line. Other C++ compilers may work but may require tweaking the make file. Either GTK+ 2.x or 3.x may be used with 2.x the default and 3.x chosen with the make argument GTK3=1. To build Scintilla, use the makefile located in the scintilla/gtk directory cd scintilla/gtk make cd ../.. To build and install SciTE, use the makefile located in the scite/gtk directory cd scite/gtk make sudo make install This installs SciTE into $prefix/bin. The value of $prefix is determined from the location of Gnome if it is installed. This is usually /usr if installed with Linux or /usr/local if built from source. If Gnome is not installed /usr/bin is used as the prefix. The prefix can be overridden on the command line like "make prefix=/opt" but the same value should be used for both make and make install as this location is compiled into the executable. The global properties file is installed at $prefix/share/scite/SciTEGlobal.properties. The language specific properties files are also installed into this directory. To remove SciTE sudo make uninstall To clean the object files which may be needed to change $prefix make clean The current make file only supports static linking between SciTE and Scintilla. *** Windows version *** A C++ 11 compiler is required. Visual Studio 2015 is the development system used for most development although Mingw32 4.8 is also supported. To build Scintilla, make in the scintilla/win32 directory cd scintilla\win32 GCC: mingw32-make Visual C++: nmake -f scintilla.mak cd ..\.. To build SciTE, use the makefiles located in the scite/win32 directory cd scite\win32 GCC: mingw32-make Visual C++: nmake -f scite.mak An executable SciTE will now be in scite/bin. *** GTK+/Windows version *** Mingw32 is known to work. Other compilers will probably not work. Only Scintilla will build with GTK+ on Windows. SciTE will not work. To build Scintilla, make in the scintilla/gtk directory cd scintilla\gtk mingw32-make *** macOS Cocoa version *** Xcode 8 may be used to build Scintilla on macOS. There is no open source version of SciTE for macOS but there is a commercial version available through the App Store. To build Scintilla, run xcodebuild in the scintilla/cocoa/ScintillaFramework directory cd cocoa/ScintillaFramework xcodebuild *** Qt version *** See the qt/README file to build Scintilla with Qt. codequery-0.21.0/scintilla/cocoa/000077500000000000000000000000001310136352400166365ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/InfoBar.h000066400000000000000000000025571310136352400203400ustar00rootroot00000000000000 /** * Scintilla source code edit control * InfoBar.h - Implements special info bar with zoom info, caret position etc. to be used with * ScintillaView. * * Mike Lischke * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import #import "InfoBarCommunicator.h" /** * Extended text cell for vertically aligned text. */ @interface VerticallyCenteredTextFieldCell : NSTextFieldCell { BOOL mIsEditingOrSelecting; } @end @interface InfoBar : NSView { @private NSImage* mBackground; IBDisplay mDisplayMask; float mScaleFactor; NSPopUpButton* mZoomPopup; int mCurrentCaretX; int mCurrentCaretY; NSTextField* mCaretPositionLabel; NSTextField* mStatusTextLabel; id mCallback; } - (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location value: (float) value; - (void) setCallback: (id ) callback; - (void) createItems; - (void) positionSubViews; - (void) setDisplay: (IBDisplay) display; - (void) zoomItemAction: (id) sender; - (void) setScaleFactor: (float) newScaleFactor adjustPopup: (BOOL) flag; - (void) setCaretPosition: (NSPoint) position; - (void) sizeToFit; @end codequery-0.21.0/scintilla/cocoa/InfoBar.mm000066400000000000000000000333041310136352400205140ustar00rootroot00000000000000 /** * Scintilla source code edit control * InfoBar.mm - Implements special info bar with zoom info, caret position etc. to be used with * ScintillaView. * * Mike Lischke * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import "InfoBar.h" //-------------------------------------------------------------------------------------------------- @implementation VerticallyCenteredTextFieldCell // Inspired by code from Daniel Jalkut, Red Sweater Software. - (NSRect) drawingRectForBounds: (NSRect) theRect { // Get the parent's idea of where we should draw NSRect newRect = [super drawingRectForBounds: theRect]; // When the text field is being edited or selected, we have to turn off the magic because it // screws up the configuration of the field editor. We sneak around this by intercepting // selectWithFrame and editWithFrame and sneaking a reduced, centered rect in at the last minute. if (mIsEditingOrSelecting == NO) { // Get our ideal size for current text NSSize textSize = [self cellSizeForBounds: theRect]; // Center that in the proposed rect CGFloat heightDelta = newRect.size.height - textSize.height; if (heightDelta > 0) { newRect.size.height -= heightDelta; newRect.origin.y += ceil(heightDelta / 2); } } return newRect; } //-------------------------------------------------------------------------------------------------- - (void) selectWithFrame: (NSRect) aRect inView: (NSView*) controlView editor: (NSText*) textObj delegate:(id) anObject start: (NSInteger) selStart length: (NSInteger) selLength { aRect = [self drawingRectForBounds: aRect]; mIsEditingOrSelecting = YES; [super selectWithFrame: aRect inView: controlView editor: textObj delegate: anObject start: selStart length: selLength]; mIsEditingOrSelecting = NO; } //-------------------------------------------------------------------------------------------------- - (void) editWithFrame: (NSRect) aRect inView: (NSView*) controlView editor: (NSText*) textObj delegate: (id) anObject event: (NSEvent*) theEvent { aRect = [self drawingRectForBounds: aRect]; mIsEditingOrSelecting = YES; [super editWithFrame: aRect inView: controlView editor: textObj delegate: anObject event: theEvent]; mIsEditingOrSelecting = NO; } @end //-------------------------------------------------------------------------------------------------- @implementation InfoBar - (id) initWithFrame: (NSRect) frame { self = [super initWithFrame: frame]; if (self) { NSBundle* bundle = [NSBundle bundleForClass: [InfoBar class]]; NSString* path = [bundle pathForResource: @"info_bar_bg" ofType: @"tiff" inDirectory: nil]; mBackground = [[NSImage alloc] initWithContentsOfFile: path]; if (![mBackground isValid]) NSLog(@"Background image for info bar is invalid."); mScaleFactor = 1.0; mCurrentCaretX = 0; mCurrentCaretY = 0; [self createItems]; } return self; } //-------------------------------------------------------------------------------------------------- /** * Called by a connected component (usually the info bar) if something changed there. * * @param type The type of the notification. * @param message Carries the new status message if the type is a status message change. * @param location Carries the new location (e.g. caret) if the type is a caret change or similar type. * @param value Carries the new zoom value if the type is a zoom change. */ - (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location value: (float) value { switch (type) { case IBNZoomChanged: [self setScaleFactor: value adjustPopup: YES]; break; case IBNCaretChanged: [self setCaretPosition: location]; break; case IBNStatusChanged: [mStatusTextLabel setStringValue: message]; break; } } //-------------------------------------------------------------------------------------------------- /** * Used to set a protocol object we can use to send change notifications to. */ - (void) setCallback: (id ) callback { mCallback = callback; } //-------------------------------------------------------------------------------------------------- static NSString *DefaultScaleMenuLabels[] = { @"20%", @"30%", @"50%", @"75%", @"100%", @"130%", @"160%", @"200%", @"250%", @"300%" }; static float DefaultScaleMenuFactors[] = { 0.2f, 0.3f, 0.5f, 0.75f, 1.0f, 1.3f, 1.6f, 2.0f, 2.5f, 3.0f }; static unsigned DefaultScaleMenuSelectedItemIndex = 4; static float BarFontSize = 10.0; - (void) createItems { // 1) The zoom popup. unsigned numberOfDefaultItems = sizeof(DefaultScaleMenuLabels) / sizeof(NSString *); // Create the popup button. mZoomPopup = [[NSPopUpButton allocWithZone:[self zone]] initWithFrame: NSMakeRect(0.0, 0.0, 1.0, 1.0) pullsDown: NO]; // No border or background please. [[mZoomPopup cell] setBordered: NO]; [[mZoomPopup cell] setArrowPosition: NSPopUpArrowAtBottom]; // Fill it. for (unsigned count = 0; count < numberOfDefaultItems; count++) { [mZoomPopup addItemWithTitle: NSLocalizedStringFromTable(DefaultScaleMenuLabels[count], @"ZoomValues", nil)]; id currentItem = [mZoomPopup itemAtIndex: count]; if (DefaultScaleMenuFactors[count] != 0.0) [currentItem setRepresentedObject: [NSNumber numberWithFloat: DefaultScaleMenuFactors[count]]]; } [mZoomPopup selectItemAtIndex: DefaultScaleMenuSelectedItemIndex]; // Hook it up. [mZoomPopup setTarget: self]; [mZoomPopup setAction: @selector(zoomItemAction:)]; // Set a suitable font. [mZoomPopup setFont: [NSFont menuBarFontOfSize: BarFontSize]]; // Make sure the popup is big enough to fit the cells. [mZoomPopup sizeToFit]; // Don't let it become first responder [mZoomPopup setRefusesFirstResponder: YES]; // put it in the scrollview. [self addSubview: mZoomPopup]; [mZoomPopup release]; // 2) The caret position label. Class oldCellClass = [NSTextField cellClass]; [NSTextField setCellClass: [VerticallyCenteredTextFieldCell class]]; mCaretPositionLabel = [[NSTextField alloc] initWithFrame: NSMakeRect(0.0, 0.0, 50.0, 1.0)]; [mCaretPositionLabel setBezeled: NO]; [mCaretPositionLabel setBordered: NO]; [mCaretPositionLabel setEditable: NO]; [mCaretPositionLabel setSelectable: NO]; [mCaretPositionLabel setDrawsBackground: NO]; [mCaretPositionLabel setFont: [NSFont menuBarFontOfSize: BarFontSize]]; NSTextFieldCell* cell = [mCaretPositionLabel cell]; [cell setPlaceholderString: @"0:0"]; [cell setAlignment: NSCenterTextAlignment]; [self addSubview: mCaretPositionLabel]; [mCaretPositionLabel release]; // 3) The status text. mStatusTextLabel = [[NSTextField alloc] initWithFrame: NSMakeRect(0.0, 0.0, 1.0, 1.0)]; [mStatusTextLabel setBezeled: NO]; [mStatusTextLabel setBordered: NO]; [mStatusTextLabel setEditable: NO]; [mStatusTextLabel setSelectable: NO]; [mStatusTextLabel setDrawsBackground: NO]; [mStatusTextLabel setFont: [NSFont menuBarFontOfSize: BarFontSize]]; cell = [mStatusTextLabel cell]; [cell setPlaceholderString: @""]; [self addSubview: mStatusTextLabel]; [mStatusTextLabel release]; // Restore original cell class so that everything else doesn't get broken [NSTextField setCellClass: oldCellClass]; } //-------------------------------------------------------------------------------------------------- - (void) dealloc { [mBackground release]; [super dealloc]; } //-------------------------------------------------------------------------------------------------- /** * Fill the background. */ - (void) drawRect: (NSRect) rect { // Since the background is seamless, we don't need to take care for the proper offset. // Simply tile the background over the invalid rectangle. NSPoint target = {rect.origin.x, 0}; while (target.x < rect.origin.x + rect.size.width) { [mBackground drawAtPoint: target fromRect: NSZeroRect operation: NSCompositeCopy fraction: 1]; target.x += mBackground.size.width; } // Draw separator lines between items. NSRect verticalLineRect; CGFloat component = 190.0 / 255.0; NSColor* lineColor = [NSColor colorWithDeviceRed: component green: component blue: component alpha: 1]; if (mDisplayMask & IBShowZoom) { verticalLineRect = [mZoomPopup frame]; verticalLineRect.origin.x += verticalLineRect.size.width + 1.0; verticalLineRect.size.width = 1.0; if (NSIntersectsRect(rect, verticalLineRect)) { [lineColor set]; NSRectFill(verticalLineRect); } } if (mDisplayMask & IBShowCaretPosition) { verticalLineRect = [mCaretPositionLabel frame]; verticalLineRect.origin.x += verticalLineRect.size.width + 1.0; verticalLineRect.size.width = 1.0; if (NSIntersectsRect(rect, verticalLineRect)) { [lineColor set]; NSRectFill(verticalLineRect); } } } //-------------------------------------------------------------------------------------------------- - (BOOL) isOpaque { return YES; } //-------------------------------------------------------------------------------------------------- /** * Used to reposition our content depending on the size of the view. */ - (void) setFrame: (NSRect) newFrame { [super setFrame: newFrame]; [self positionSubViews]; } //-------------------------------------------------------------------------------------------------- - (void) positionSubViews { NSRect currentBounds = {{0, 0}, {0, [self frame].size.height}}; if (mDisplayMask & IBShowZoom) { [mZoomPopup setHidden: NO]; currentBounds.size.width = [mZoomPopup frame].size.width; [mZoomPopup setFrame: currentBounds]; currentBounds.origin.x += currentBounds.size.width + 1; // Add 1 for the separator. } else [mZoomPopup setHidden: YES]; if (mDisplayMask & IBShowCaretPosition) { [mCaretPositionLabel setHidden: NO]; currentBounds.size.width = [mCaretPositionLabel frame].size.width; [mCaretPositionLabel setFrame: currentBounds]; currentBounds.origin.x += currentBounds.size.width + 1; } else [mCaretPositionLabel setHidden: YES]; if (mDisplayMask & IBShowStatusText) { // The status text always takes the rest of the available space. [mStatusTextLabel setHidden: NO]; currentBounds.size.width = [self frame].size.width - currentBounds.origin.x; [mStatusTextLabel setFrame: currentBounds]; } else [mStatusTextLabel setHidden: YES]; } //-------------------------------------------------------------------------------------------------- /** * Used to switch the visible parts of the info bar. * * @param display Bitwise ORed IBDisplay values which determine what to show on the bar. */ - (void) setDisplay: (IBDisplay) display { if (mDisplayMask != display) { mDisplayMask = display; [self positionSubViews]; [self needsDisplay]; } } //-------------------------------------------------------------------------------------------------- /** * Handler for selection changes in the zoom menu. */ - (void) zoomItemAction: (id) sender { NSNumber* selectedFactorObject = [[sender selectedCell] representedObject]; if (selectedFactorObject == nil) { NSLog(@"Scale popup action: setting arbitrary zoom factors is not yet supported."); return; } else { [self setScaleFactor: [selectedFactorObject floatValue] adjustPopup: NO]; } } //-------------------------------------------------------------------------------------------------- - (void) setScaleFactor: (float) newScaleFactor adjustPopup: (BOOL) flag { if (mScaleFactor != newScaleFactor) { mScaleFactor = newScaleFactor; if (flag) { unsigned count = 0; unsigned numberOfDefaultItems = sizeof(DefaultScaleMenuFactors) / sizeof(float); // We only work with some preset zoom values. If the given value does not correspond // to one then show no selection. while (count < numberOfDefaultItems && (fabs(newScaleFactor - DefaultScaleMenuFactors[count]) > 0.07)) count++; if (count == numberOfDefaultItems) [mZoomPopup selectItemAtIndex: -1]; else { [mZoomPopup selectItemAtIndex: count]; // Set scale factor to found preset value if it comes close. mScaleFactor = DefaultScaleMenuFactors[count]; } } else { // Internally set. Notify owner. [mCallback notify: IBNZoomChanged message: nil location: NSZeroPoint value: newScaleFactor]; } } } //-------------------------------------------------------------------------------------------------- /** * Called from the notification method to update the caret position display. */ - (void) setCaretPosition: (NSPoint) position { // Make the position one-based. int newX = (int) position.x + 1; int newY = (int) position.y + 1; if (mCurrentCaretX != newX || mCurrentCaretY != newY) { mCurrentCaretX = newX; mCurrentCaretY = newY; [mCaretPositionLabel setStringValue: [NSString stringWithFormat: @"%d:%d", newX, newY]]; } } //-------------------------------------------------------------------------------------------------- /** * Makes the bar resize to the smallest width that can accommodate the currently enabled items. */ - (void) sizeToFit { NSRect frame = [self frame]; frame.size.width = 0; if (mDisplayMask & IBShowZoom) frame.size.width += [mZoomPopup frame].size.width; if (mDisplayMask & IBShowCaretPosition) frame.size.width += [mCaretPositionLabel frame].size.width; if (mDisplayMask & IBShowStatusText) frame.size.width += [mStatusTextLabel frame].size.width; [self setFrame: frame]; } @end codequery-0.21.0/scintilla/cocoa/InfoBarCommunicator.h000066400000000000000000000023671310136352400227200ustar00rootroot00000000000000/* * InfoBarCommunicator.h - Definitions of a communication protocol and other data types used for * the info bar implementation. * * Mike Lischke * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ typedef NS_OPTIONS(NSUInteger, IBDisplay) { IBShowZoom = 0x01, IBShowCaretPosition = 0x02, IBShowStatusText = 0x04, IBShowAll = 0xFF }; /** * The info bar communicator protocol is used for communication between ScintillaView and its * information bar component. Using this protocol decouples any potential info target from the main * ScintillaView implementation. The protocol is used two-way. */ typedef NS_ENUM(NSInteger, NotificationType) { IBNZoomChanged, // The user selected another zoom value. IBNCaretChanged, // The caret in the editor changed. IBNStatusChanged, // The application set a new status message. }; @protocol InfoBarCommunicator - (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location value: (float) value; - (void) setCallback: (id ) callback; @end codequery-0.21.0/scintilla/cocoa/PlatCocoa.h000066400000000000000000000105451310136352400206610ustar00rootroot00000000000000 /** * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #ifndef PLATCOCOA_H #define PLATCOCOA_H #include #include #include #include #include #include #include "Platform.h" #include "Scintilla.h" #include "QuartzTextLayout.h" NSRect PRectangleToNSRect(Scintilla::PRectangle& rc); Scintilla::PRectangle NSRectToPRectangle(NSRect& rc); CFStringEncoding EncodingFromCharacterSet(bool unicode, int characterSet); @interface ScintillaContextMenu : NSMenu { Scintilla::ScintillaCocoa* owner; } - (void) handleCommand: (NSMenuItem*) sender; - (void) setOwner: (Scintilla::ScintillaCocoa*) newOwner; @end namespace Scintilla { // A class to do the actual text rendering for us using Quartz 2D. class SurfaceImpl : public Surface { private: bool unicodeMode; float x; float y; CGContextRef gc; /** The text layout instance */ QuartzTextLayout* textLayout; int codePage; int verticalDeviceResolution; /** If the surface is a bitmap context, contains a reference to the bitmap data. */ uint8_t* bitmapData; /** If the surface is a bitmap context, stores the dimensions of the bitmap. */ int bitmapWidth; int bitmapHeight; /** Set the CGContext's fill colour to the specified desired colour. */ void FillColour( const ColourDesired& back ); // 24-bit RGB+A bitmap data constants static const int BITS_PER_COMPONENT = 8; static const int BITS_PER_PIXEL = BITS_PER_COMPONENT * 4; static const int BYTES_PER_PIXEL = BITS_PER_PIXEL / 8; public: SurfaceImpl(); ~SurfaceImpl() override; void Init(WindowID wid) override; void Init(SurfaceID sid, WindowID wid) override; void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override; CGContextRef GetContext() { return gc; } void Release() override; bool Initialised() override; void PenColour(ColourDesired fore) override; /** Returns a CGImageRef that represents the surface. Returns NULL if this is not possible. */ CGImageRef GetImage(); void CopyImageRectangle(Surface &surfaceSource, PRectangle srcRect, PRectangle dstRect); int LogPixelsY() override; int DeviceHeightFont(int points) override; void MoveTo(int x_, int y_) override; void LineTo(int x_, int y_) override; void Polygon(Scintilla::Point *pts, int npts, ColourDesired fore, ColourDesired back) override; void RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) override; void FillRectangle(PRectangle rc, ColourDesired back) override; void FillRectangle(PRectangle rc, Surface &surfacePattern) override; void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) override; void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int flags) override; void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) override; void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) override; void Copy(PRectangle rc, Scintilla::Point from, Surface &surfaceSource) override; void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) override; void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) override; void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore) override; void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions) override; XYPOSITION WidthText(Font &font_, const char *s, int len) override; XYPOSITION WidthChar(Font &font_, char ch) override; XYPOSITION Ascent(Font &font_) override; XYPOSITION Descent(Font &font_) override; XYPOSITION InternalLeading(Font &font_) override; XYPOSITION ExternalLeading(Font &font_) override; XYPOSITION Height(Font &font_) override; XYPOSITION AverageCharWidth(Font &font_) override; void SetClip(PRectangle rc) override; void FlushCachedState() override; void SetUnicodeMode(bool unicodeMode_) override; void SetDBCSMode(int codePage_) override; }; // SurfaceImpl class } // Scintilla namespace #endif codequery-0.21.0/scintilla/cocoa/PlatCocoa.mm000066400000000000000000001750351310136352400210510ustar00rootroot00000000000000/** * Scintilla source code edit control * PlatCocoa.mm - implementation of platform facilities on MacOS X/Cocoa * * Written by Mike Lischke * Based on PlatMacOSX.cxx * Based on work by Evan Jones (c) 2002 * Based on PlatGTK.cxx Copyright 1998-2002 by Neil Hodgson * The License.txt file describes the conditions under which this software may be distributed. * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #include #include #include #include #include #include #include #include #import #import "Platform.h" #include "StringCopy.h" #include "XPM.h" #import "ScintillaView.h" #import "ScintillaCocoa.h" #import "PlatCocoa.h" using namespace Scintilla; extern sptr_t scintilla_send_message(void* sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam); //-------------------------------------------------------------------------------------------------- /** * Converts a PRectangle as used by Scintilla to standard Obj-C NSRect structure . */ NSRect PRectangleToNSRect(PRectangle& rc) { return NSMakeRect(rc.left, rc.top, rc.Width(), rc.Height()); } //-------------------------------------------------------------------------------------------------- /** * Converts an NSRect as used by the system to a native Scintilla rectangle. */ PRectangle NSRectToPRectangle(NSRect& rc) { return PRectangle(static_cast(rc.origin.x), static_cast(rc.origin.y), static_cast(NSMaxX(rc)), static_cast(NSMaxY(rc))); } //-------------------------------------------------------------------------------------------------- /** * Converts a PRectangle as used by Scintilla to a Quartz-style rectangle. */ inline CGRect PRectangleToCGRect(PRectangle& rc) { return CGRectMake(rc.left, rc.top, rc.Width(), rc.Height()); } //-------------------------------------------------------------------------------------------------- /** * Converts a Quartz-style rectangle to a PRectangle structure as used by Scintilla. */ inline PRectangle CGRectToPRectangle(const CGRect& rect) { PRectangle rc; rc.left = (int)(rect.origin.x + 0.5); rc.top = (int)(rect.origin.y + 0.5); rc.right = (int)(rect.origin.x + rect.size.width + 0.5); rc.bottom = (int)(rect.origin.y + rect.size.height + 0.5); return rc; } //----------------- Point -------------------------------------------------------------------------- /** * Converts a point given as a long into a native Point structure. */ Scintilla::Point Scintilla::Point::FromLong(long lpoint) { return Scintilla::Point( Platform::LowShortFromLong(lpoint), Platform::HighShortFromLong(lpoint) ); } //----------------- Font --------------------------------------------------------------------------- Font::Font(): fid(0) { } //-------------------------------------------------------------------------------------------------- Font::~Font() { Release(); } //-------------------------------------------------------------------------------------------------- static int FontCharacterSet(Font &f) { return static_cast(f.GetID())->getCharacterSet(); } /** * Creates a CTFontRef with the given properties. */ void Font::Create(const FontParameters &fp) { Release(); QuartzTextStyle* style = new QuartzTextStyle(); fid = style; // Create the font with attributes QuartzFont font(fp.faceName, strlen(fp.faceName), fp.size, fp.weight, fp.italic); CTFontRef fontRef = font.getFontID(); style->setFontRef(fontRef, fp.characterSet); } //-------------------------------------------------------------------------------------------------- void Font::Release() { if (fid) delete static_cast( fid ); fid = 0; } //----------------- SurfaceImpl -------------------------------------------------------------------- SurfaceImpl::SurfaceImpl() { unicodeMode = true; x = 0; y = 0; gc = NULL; textLayout = new QuartzTextLayout(NULL); codePage = 0; verticalDeviceResolution = 0; bitmapData = NULL; // Release will try and delete bitmapData if != NULL bitmapWidth = 0; bitmapHeight = 0; Release(); } //-------------------------------------------------------------------------------------------------- SurfaceImpl::~SurfaceImpl() { Release(); delete textLayout; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::Release() { textLayout->setContext (NULL); if ( bitmapData != NULL ) { delete[] bitmapData; // We only "own" the graphics context if we are a bitmap context if (gc != NULL) CGContextRelease(gc); } bitmapData = NULL; gc = NULL; bitmapWidth = 0; bitmapHeight = 0; x = 0; y = 0; } //-------------------------------------------------------------------------------------------------- bool SurfaceImpl::Initialised() { // We are initalised if the graphics context is not null return gc != NULL;// || port != NULL; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::Init(WindowID) { // To be able to draw, the surface must get a CGContext handle. We save the graphics port, // then acquire/release the context on an as-need basis (see above). // XXX Docs on QDBeginCGContext are light, a better way to do this would be good. // AFAIK we should not hold onto a context retrieved this way, thus the need for // acquire/release of the context. Release(); } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::Init(SurfaceID sid, WindowID) { Release(); gc = static_cast(sid); CGContextSetLineWidth(gc, 1.0); textLayout->setContext(gc); } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::InitPixMap(int width, int height, Surface* surface_, WindowID /* wid */) { Release(); // Create a new bitmap context, along with the RAM for the bitmap itself bitmapWidth = width; bitmapHeight = height; const int bitmapBytesPerRow = (width * BYTES_PER_PIXEL); const int bitmapByteCount = (bitmapBytesPerRow * height); // Create an RGB color space. CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); if (colorSpace == NULL) return; // Create the bitmap. bitmapData = new uint8_t[bitmapByteCount]; // create the context gc = CGBitmapContextCreate(bitmapData, width, height, BITS_PER_COMPONENT, bitmapBytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast); if (gc == NULL) { // the context couldn't be created for some reason, // and we have no use for the bitmap without the context delete[] bitmapData; bitmapData = NULL; } textLayout->setContext (gc); // the context retains the color space, so we can release it CGColorSpaceRelease(colorSpace); if (gc != NULL && bitmapData != NULL) { // "Erase" to white. CGContextClearRect( gc, CGRectMake( 0, 0, width, height ) ); CGContextSetRGBFillColor( gc, 1.0, 1.0, 1.0, 1.0 ); CGContextFillRect( gc, CGRectMake( 0, 0, width, height ) ); } if (surface_) { SurfaceImpl *psurfOther = static_cast(surface_); unicodeMode = psurfOther->unicodeMode; codePage = psurfOther->codePage; } else { unicodeMode = true; codePage = SC_CP_UTF8; } } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::PenColour(ColourDesired fore) { if (gc) { ColourDesired colour(fore.AsLong()); // Set the Stroke color to match CGContextSetRGBStrokeColor(gc, colour.GetRed() / 255.0, colour.GetGreen() / 255.0, colour.GetBlue() / 255.0, 1.0 ); } } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::FillColour(const ColourDesired& back) { if (gc) { ColourDesired colour(back.AsLong()); // Set the Fill color to match CGContextSetRGBFillColor(gc, colour.GetRed() / 255.0, colour.GetGreen() / 255.0, colour.GetBlue() / 255.0, 1.0 ); } } //-------------------------------------------------------------------------------------------------- CGImageRef SurfaceImpl::GetImage() { // For now, assume that GetImage can only be called on PixMap surfaces. if (bitmapData == NULL) return NULL; CGContextFlush(gc); // Create an RGB color space. CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); if( colorSpace == NULL ) return NULL; const int bitmapBytesPerRow = ((int) bitmapWidth * BYTES_PER_PIXEL); const int bitmapByteCount = (bitmapBytesPerRow * (int) bitmapHeight); // Make a copy of the bitmap data for the image creation and divorce it // From the SurfaceImpl lifetime CFDataRef dataRef = CFDataCreate(kCFAllocatorDefault, bitmapData, bitmapByteCount); // Create a data provider. CGDataProviderRef dataProvider = CGDataProviderCreateWithCFData(dataRef); CGImageRef image = NULL; if (dataProvider != NULL) { // Create the CGImage. image = CGImageCreate(bitmapWidth, bitmapHeight, BITS_PER_COMPONENT, BITS_PER_PIXEL, bitmapBytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast, dataProvider, NULL, 0, kCGRenderingIntentDefault); } // The image retains the color space, so we can release it. CGColorSpaceRelease(colorSpace); colorSpace = NULL; // Done with the data provider. CGDataProviderRelease(dataProvider); dataProvider = NULL; // Done with the data provider. CFRelease(dataRef); return image; } //-------------------------------------------------------------------------------------------------- /** * Returns the vertical logical device resolution of the main monitor. * This is no longer called. * For Cocoa, all screens are treated as 72 DPI, even retina displays. */ int SurfaceImpl::LogPixelsY() { return 72; } //-------------------------------------------------------------------------------------------------- /** * Converts the logical font height in points into a device height. * For Cocoa, points are always used for the result even on retina displays. */ int SurfaceImpl::DeviceHeightFont(int points) { return points; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::MoveTo(int x_, int y_) { x = x_; y = y_; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::LineTo(int x_, int y_) { CGContextBeginPath( gc ); // Because Quartz is based on floating point, lines are drawn with half their colour // on each side of the line. Integer coordinates specify the INTERSECTION of the pixel // division lines. If you specify exact pixel values, you get a line that // is twice as thick but half as intense. To get pixel aligned rendering, // we render the "middle" of the pixels by adding 0.5 to the coordinates. CGContextMoveToPoint( gc, x + 0.5, y + 0.5 ); CGContextAddLineToPoint( gc, x_ + 0.5, y_ + 0.5 ); CGContextStrokePath( gc ); x = x_; y = y_; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::Polygon(Scintilla::Point *pts, int npts, ColourDesired fore, ColourDesired back) { // Allocate memory for the array of points. std::vector points(npts); for (int i = 0;i < npts;i++) { // Quartz floating point issues: plot the MIDDLE of the pixels points[i].x = pts[i].x + 0.5; points[i].y = pts[i].y + 0.5; } CGContextBeginPath(gc); // Set colours FillColour(back); PenColour(fore); // Draw the polygon CGContextAddLines(gc, points.data(), npts); // Explicitly close the path, so it is closed for stroking AND filling (implicit close = filling only) CGContextClosePath( gc ); CGContextDrawPath( gc, kCGPathFillStroke ); } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) { if (gc) { CGContextBeginPath( gc ); FillColour(back); PenColour(fore); // Quartz integer -> float point conversion fun (see comment in SurfaceImpl::LineTo) // We subtract 1 from the Width() and Height() so that all our drawing is within the area defined // by the PRectangle. Otherwise, we draw one pixel too far to the right and bottom. CGContextAddRect( gc, CGRectMake( rc.left + 0.5, rc.top + 0.5, rc.Width() - 1, rc.Height() - 1 ) ); CGContextDrawPath( gc, kCGPathFillStroke ); } } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) { if (gc) { FillColour(back); // Snap rectangle boundaries to nearest int rc.left = lround(rc.left); rc.right = lround(rc.right); CGRect rect = PRectangleToCGRect(rc); CGContextFillRect(gc, rect); } } //-------------------------------------------------------------------------------------------------- static void drawImageRefCallback(void *info, CGContextRef gc) { CGImageRef pattern = static_cast(info); CGContextDrawImage(gc, CGRectMake(0, 0, CGImageGetWidth(pattern), CGImageGetHeight(pattern)), pattern); } //-------------------------------------------------------------------------------------------------- static void releaseImageRefCallback(void *info) { CGImageRelease(static_cast(info)); } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) { SurfaceImpl& patternSurface = static_cast(surfacePattern); // For now, assume that copy can only be called on PixMap surfaces. Shows up black. CGImageRef image = patternSurface.GetImage(); if (image == NULL) { FillRectangle(rc, ColourDesired(0)); return; } const CGPatternCallbacks drawImageCallbacks = { 0, drawImageRefCallback, releaseImageRefCallback }; CGPatternRef pattern = CGPatternCreate(image, CGRectMake(0, 0, patternSurface.bitmapWidth, patternSurface.bitmapHeight), CGAffineTransformIdentity, patternSurface.bitmapWidth, patternSurface.bitmapHeight, kCGPatternTilingNoDistortion, true, &drawImageCallbacks ); if (pattern != NULL) { // Create a pattern color space CGColorSpaceRef colorSpace = CGColorSpaceCreatePattern( NULL ); if( colorSpace != NULL ) { CGContextSaveGState( gc ); CGContextSetFillColorSpace( gc, colorSpace ); // Unlike the documentation, you MUST pass in a "components" parameter: // For coloured patterns it is the alpha value. const CGFloat alpha = 1.0; CGContextSetFillPattern( gc, pattern, &alpha ); CGContextFillRect( gc, PRectangleToCGRect( rc ) ); CGContextRestoreGState( gc ); // Free the color space, the pattern and image CGColorSpaceRelease( colorSpace ); } /* colorSpace != NULL */ colorSpace = NULL; CGPatternRelease( pattern ); pattern = NULL; } /* pattern != NULL */ } void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) { // This is only called from the margin marker drawing code for SC_MARK_ROUNDRECT // The Win32 version does // ::RoundRect(hdc, rc.left + 1, rc.top, rc.right - 1, rc.bottom, 8, 8 ); // which is a rectangle with rounded corners each having a radius of 4 pixels. // It would be almost as good just cutting off the corners with lines at // 45 degrees as is done on GTK+. // Create a rectangle with semicircles at the corners const int MAX_RADIUS = 4; const int radius = std::min(MAX_RADIUS, static_cast(std::min(rc.Height()/2, rc.Width()/2))); // Points go clockwise, starting from just below the top left // Corners are kept together, so we can easily create arcs to connect them CGPoint corners[4][3] = { { { rc.left, rc.top + radius }, { rc.left, rc.top }, { rc.left + radius, rc.top }, }, { { rc.right - radius - 1, rc.top }, { rc.right - 1, rc.top }, { rc.right - 1, rc.top + radius }, }, { { rc.right - 1, rc.bottom - radius - 1 }, { rc.right - 1, rc.bottom - 1 }, { rc.right - radius - 1, rc.bottom - 1 }, }, { { rc.left + radius, rc.bottom - 1 }, { rc.left, rc.bottom - 1 }, { rc.left, rc.bottom - radius - 1 }, }, }; // Align the points in the middle of the pixels for( int i = 0; i < 4; ++ i ) { for( int j = 0; j < 3; ++ j ) { corners[i][j].x += 0.5; corners[i][j].y += 0.5; } } PenColour( fore ); FillColour( back ); // Move to the last point to begin the path CGContextBeginPath( gc ); CGContextMoveToPoint( gc, corners[3][2].x, corners[3][2].y ); for ( int i = 0; i < 4; ++ i ) { CGContextAddLineToPoint( gc, corners[i][0].x, corners[i][0].y ); CGContextAddArcToPoint( gc, corners[i][1].x, corners[i][1].y, corners[i][2].x, corners[i][2].y, radius ); } // Close the path to enclose it for stroking and for filling, then draw it CGContextClosePath( gc ); CGContextDrawPath( gc, kCGPathFillStroke ); } // DrawChamferedRectangle is a helper function for AlphaRectangle that either fills or strokes a // rectangle with its corners chamfered at 45 degrees. static void DrawChamferedRectangle(CGContextRef gc, PRectangle rc, int cornerSize, CGPathDrawingMode mode) { // Points go clockwise, starting from just below the top left CGPoint corners[4][2] = { { { rc.left, rc.top + cornerSize }, { rc.left + cornerSize, rc.top }, }, { { rc.right - cornerSize - 1, rc.top }, { rc.right - 1, rc.top + cornerSize }, }, { { rc.right - 1, rc.bottom - cornerSize - 1 }, { rc.right - cornerSize - 1, rc.bottom - 1 }, }, { { rc.left + cornerSize, rc.bottom - 1 }, { rc.left, rc.bottom - cornerSize - 1 }, }, }; // Align the points in the middle of the pixels for( int i = 0; i < 4; ++ i ) { for( int j = 0; j < 2; ++ j ) { corners[i][j].x += 0.5; corners[i][j].y += 0.5; } } // Move to the last point to begin the path CGContextBeginPath( gc ); CGContextMoveToPoint( gc, corners[3][1].x, corners[3][1].y ); for ( int i = 0; i < 4; ++ i ) { CGContextAddLineToPoint( gc, corners[i][0].x, corners[i][0].y ); CGContextAddLineToPoint( gc, corners[i][1].x, corners[i][1].y ); } // Close the path to enclose it for stroking and for filling, then draw it CGContextClosePath( gc ); CGContextDrawPath( gc, mode ); } void Scintilla::SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int /*flags*/) { if ( gc ) { // Snap rectangle boundaries to nearest int rc.left = lround(rc.left); rc.right = lround(rc.right); // Set the Fill color to match CGContextSetRGBFillColor( gc, fill.GetRed() / 255.0, fill.GetGreen() / 255.0, fill.GetBlue() / 255.0, alphaFill / 255.0 ); CGContextSetRGBStrokeColor( gc, outline.GetRed() / 255.0, outline.GetGreen() / 255.0, outline.GetBlue() / 255.0, alphaOutline / 255.0 ); PRectangle rcFill = rc; if (cornerSize == 0) { // A simple rectangle, no rounded corners if ((fill == outline) && (alphaFill == alphaOutline)) { // Optimization for simple case CGRect rect = PRectangleToCGRect( rcFill ); CGContextFillRect( gc, rect ); } else { rcFill.left += 1.0; rcFill.top += 1.0; rcFill.right -= 1.0; rcFill.bottom -= 1.0; CGRect rect = PRectangleToCGRect( rcFill ); CGContextFillRect( gc, rect ); CGContextAddRect( gc, CGRectMake( rc.left + 0.5, rc.top + 0.5, rc.Width() - 1, rc.Height() - 1 ) ); CGContextStrokePath( gc ); } } else { // Approximate rounded corners with 45 degree chamfers. // Drawing real circular arcs often leaves some over- or under-drawn pixels. if ((fill == outline) && (alphaFill == alphaOutline)) { // Specializing this case avoids a few stray light/dark pixels in corners. rcFill.left -= 0.5; rcFill.top -= 0.5; rcFill.right += 0.5; rcFill.bottom += 0.5; DrawChamferedRectangle( gc, rcFill, cornerSize, kCGPathFill ); } else { rcFill.left += 0.5; rcFill.top += 0.5; rcFill.right -= 0.5; rcFill.bottom -= 0.5; DrawChamferedRectangle( gc, rcFill, cornerSize-1, kCGPathFill ); DrawChamferedRectangle( gc, rc, cornerSize, kCGPathStroke ); } } } } static void ProviderReleaseData(void *, const void *data, size_t) { const unsigned char *pixels = static_cast(data); delete []pixels; } static CGImageRef ImageCreateFromRGBA(int width, int height, const unsigned char *pixelsImage, bool invert) { CGImageRef image = 0; // Create an RGB color space. CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); if (colorSpace) { const int bitmapBytesPerRow = ((int) width * 4); const int bitmapByteCount = (bitmapBytesPerRow * (int) height); // Create a data provider. CGDataProviderRef dataProvider = 0; if (invert) { unsigned char *pixelsUpsideDown = new unsigned char[bitmapByteCount]; for (int y=0; y(surfaceSource); CGImageRef image = source.GetImage(); CGRect src = PRectangleToCGRect(srcRect); CGRect dst = PRectangleToCGRect(dstRect); /* source from QuickDrawToQuartz2D.pdf on developer.apple.com */ float w = (float) CGImageGetWidth(image); float h = (float) CGImageGetHeight(image); CGRect drawRect = CGRectMake (0, 0, w, h); if (!CGRectEqualToRect (src, dst)) { CGFloat sx = CGRectGetWidth(dst) / CGRectGetWidth(src); CGFloat sy = CGRectGetHeight(dst) / CGRectGetHeight(src); CGFloat dx = CGRectGetMinX(dst) - (CGRectGetMinX(src) * sx); CGFloat dy = CGRectGetMinY(dst) - (CGRectGetMinY(src) * sy); drawRect = CGRectMake (dx, dy, w*sx, h*sy); } CGContextSaveGState (gc); CGContextClipToRect (gc, dst); CGContextDrawImage (gc, drawRect, image); CGContextRestoreGState (gc); CGImageRelease(image); } void SurfaceImpl::Copy(PRectangle rc, Scintilla::Point from, Surface &surfaceSource) { // Maybe we have to make the Surface two contexts: // a bitmap context which we do all the drawing on, and then a "real" context // which we copy the output to when we call "Synchronize". Ugh! Gross and slow! // For now, assume that copy can only be called on PixMap surfaces SurfaceImpl& source = static_cast(surfaceSource); // Get the CGImageRef CGImageRef image = source.GetImage(); // If we could not get an image reference, fill the rectangle black if ( image == NULL ) { FillRectangle( rc, ColourDesired( 0 ) ); return; } // Now draw the image on the surface // Some fancy clipping work is required here: draw only inside of rc CGContextSaveGState( gc ); CGContextClipToRect( gc, PRectangleToCGRect( rc ) ); //Platform::DebugPrintf(stderr, "Copy: CGContextDrawImage: (%d, %d) - (%d X %d)\n", rc.left - from.x, rc.top - from.y, source.bitmapWidth, source.bitmapHeight ); CGContextDrawImage( gc, CGRectMake( rc.left - from.x, rc.top - from.y, source.bitmapWidth, source.bitmapHeight ), image ); // Undo the clipping fun CGContextRestoreGState( gc ); // Done with the image CGImageRelease( image ); image = NULL; } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) { FillRectangle(rc, back); DrawTextTransparent(rc, font_, ybase, s, len, fore); } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) { CGContextSaveGState(gc); CGContextClipToRect(gc, PRectangleToCGRect(rc)); DrawTextNoClip(rc, font_, ybase, s, len, fore, back); CGContextRestoreGState(gc); } //-------------------------------------------------------------------------------------------------- CFStringEncoding EncodingFromCharacterSet(bool unicode, int characterSet) { if (unicode) return kCFStringEncodingUTF8; // Unsupported -> Latin1 as reasonably safe enum { notSupported = kCFStringEncodingISOLatin1}; switch (characterSet) { case SC_CHARSET_ANSI: return kCFStringEncodingISOLatin1; case SC_CHARSET_DEFAULT: return kCFStringEncodingISOLatin1; case SC_CHARSET_BALTIC: return kCFStringEncodingWindowsBalticRim; case SC_CHARSET_CHINESEBIG5: return kCFStringEncodingBig5; case SC_CHARSET_EASTEUROPE: return kCFStringEncodingWindowsLatin2; case SC_CHARSET_GB2312: return kCFStringEncodingGB_18030_2000; case SC_CHARSET_GREEK: return kCFStringEncodingWindowsGreek; case SC_CHARSET_HANGUL: return kCFStringEncodingEUC_KR; case SC_CHARSET_MAC: return kCFStringEncodingMacRoman; case SC_CHARSET_OEM: return kCFStringEncodingISOLatin1; case SC_CHARSET_RUSSIAN: return kCFStringEncodingKOI8_R; case SC_CHARSET_CYRILLIC: return kCFStringEncodingWindowsCyrillic; case SC_CHARSET_SHIFTJIS: return kCFStringEncodingShiftJIS; case SC_CHARSET_SYMBOL: return kCFStringEncodingMacSymbol; case SC_CHARSET_TURKISH: return kCFStringEncodingWindowsLatin5; case SC_CHARSET_JOHAB: return kCFStringEncodingWindowsKoreanJohab; case SC_CHARSET_HEBREW: return kCFStringEncodingWindowsHebrew; case SC_CHARSET_ARABIC: return kCFStringEncodingWindowsArabic; case SC_CHARSET_VIETNAMESE: return kCFStringEncodingWindowsVietnamese; case SC_CHARSET_THAI: return kCFStringEncodingISOLatinThai; case SC_CHARSET_8859_15: return kCFStringEncodingISOLatin1; default: return notSupported; } } void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); ColourDesired colour(fore.AsLong()); CGColorRef color = CGColorCreateGenericRGB(colour.GetRed()/255.0,colour.GetGreen()/255.0,colour.GetBlue()/255.0,1.0); QuartzTextStyle* style = static_cast(font_.GetID()); style->setCTStyleColor(color); CGColorRelease(color); textLayout->setText (reinterpret_cast(s), len, encoding, *static_cast(font_.GetID())); textLayout->draw(rc.left, ybase); } static size_t utf8LengthFromLead(unsigned char uch) { if (uch >= (0x80 + 0x40 + 0x20 + 0x10)) { return 4; } else if (uch >= (0x80 + 0x40 + 0x20)) { return 3; } else if (uch >= (0x80)) { return 2; } else { return 1; } } //-------------------------------------------------------------------------------------------------- void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); textLayout->setText (reinterpret_cast(s), len, encoding, *static_cast(font_.GetID())); CTLineRef mLine = textLayout->getCTLine(); assert(mLine != NULL); if (unicodeMode) { // Map the widths given for UTF-16 characters back onto the UTF-8 input string CFIndex fit = textLayout->getStringLength(); int ui=0; const unsigned char *us = reinterpret_cast(s); int i=0; while (ui(xPosition); } ui += codeUnits; } XYPOSITION lastPos = 0.0f; if (i > 0) lastPos = positions[i-1]; while (i(xPosition); } ui++; } } else { // Single byte encoding for (int i=0;i(xPosition); } } } XYPOSITION SurfaceImpl::WidthText(Font &font_, const char *s, int len) { if (font_.GetID()) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); textLayout->setText (reinterpret_cast(s), len, encoding, *static_cast(font_.GetID())); return static_cast(textLayout->MeasureStringWidth()); } return 1; } XYPOSITION SurfaceImpl::WidthChar(Font &font_, char ch) { char str[2] = { ch, '\0' }; if (font_.GetID()) { CFStringEncoding encoding = EncodingFromCharacterSet(unicodeMode, FontCharacterSet(font_)); textLayout->setText (reinterpret_cast(str), 1, encoding, *static_cast(font_.GetID())); return textLayout->MeasureStringWidth(); } else return 1; } // This string contains a good range of characters to test for size. const char sizeString[] = "`~!@#$%^&*()-_=+\\|[]{};:\"\'<,>.?/1234567890" "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; XYPOSITION SurfaceImpl::Ascent(Font &font_) { if (!font_.GetID()) return 1; float ascent = static_cast( font_.GetID() )->getAscent(); return ascent + 0.5f; } XYPOSITION SurfaceImpl::Descent(Font &font_) { if (!font_.GetID()) return 1; float descent = static_cast( font_.GetID() )->getDescent(); return descent + 0.5f; } XYPOSITION SurfaceImpl::InternalLeading(Font &) { return 0; } XYPOSITION SurfaceImpl::ExternalLeading(Font &font_) { if (!font_.GetID()) return 1; float leading = static_cast( font_.GetID() )->getLeading(); return leading + 0.5f; } XYPOSITION SurfaceImpl::Height(Font &font_) { return Ascent(font_) + Descent(font_); } XYPOSITION SurfaceImpl::AverageCharWidth(Font &font_) { if (!font_.GetID()) return 1; const int sizeStringLength = ELEMENTS( sizeString ); XYPOSITION width = WidthText( font_, sizeString, sizeStringLength ); return (int) ((width / (float) sizeStringLength) + 0.5); } void SurfaceImpl::SetClip(PRectangle rc) { CGContextClipToRect( gc, PRectangleToCGRect( rc ) ); } void SurfaceImpl::FlushCachedState() { CGContextSynchronize( gc ); } void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) { unicodeMode = unicodeMode_; } void SurfaceImpl::SetDBCSMode(int codePage_) { if (codePage_ && (codePage_ != SC_CP_UTF8)) codePage = codePage_; } Surface *Surface::Allocate(int) { return new SurfaceImpl(); } //----------------- Window ------------------------------------------------------------------------- // Cocoa uses different types for windows and views, so a Window may // be either an NSWindow or NSView and the code will check the type // before performing an action. Window::~Window() { } // Window::Destroy needs to see definition of ListBoxImpl so is located after ListBoxImpl //-------------------------------------------------------------------------------------------------- bool Window::HasFocus() { NSView* container = static_cast(wid); return [[container window] firstResponder] == container; } //-------------------------------------------------------------------------------------------------- static CGFloat ScreenMax() { return NSMaxY([[NSScreen mainScreen] frame]); } //-------------------------------------------------------------------------------------------------- PRectangle Window::GetPosition() { if (wid) { NSRect rect; id idWin = static_cast(wid); NSWindow* win; if ([idWin isKindOfClass: [NSView class]]) { // NSView NSView* view = idWin; win = [view window]; rect = [view convertRect: [view bounds] toView: nil]; rect = [win convertRectToScreen:rect]; } else { // NSWindow win = idWin; rect = [win frame]; } CGFloat screenHeight = ScreenMax(); // Invert screen positions to match Scintilla return PRectangle( static_cast(NSMinX(rect)), static_cast(screenHeight - NSMaxY(rect)), static_cast(NSMaxX(rect)), static_cast(screenHeight - NSMinY(rect))); } else { return PRectangle(0, 0, 1, 1); } } //-------------------------------------------------------------------------------------------------- void Window::SetPosition(PRectangle rc) { if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSView class]]) { // NSView // Moves this view inside the parent view NSRect nsrc = NSMakeRect(rc.left, rc.bottom, rc.Width(), rc.Height()); NSView* view = idWin; nsrc = [[view window] convertRectFromScreen:nsrc]; [view setFrame: nsrc]; } else { // NSWindow PLATFORM_ASSERT([idWin isKindOfClass: [NSWindow class]]); NSWindow* win = idWin; CGFloat screenHeight = ScreenMax(); NSRect nsrc = NSMakeRect(rc.left, screenHeight - rc.bottom, rc.Width(), rc.Height()); [win setFrame: nsrc display:YES]; } } } //-------------------------------------------------------------------------------------------------- void Window::SetPositionRelative(PRectangle rc, Window window) { PRectangle rcOther = window.GetPosition(); rc.left += rcOther.left; rc.right += rcOther.left; rc.top += rcOther.top; rc.bottom += rcOther.top; SetPosition(rc); } //-------------------------------------------------------------------------------------------------- PRectangle Window::GetClientPosition() { // This means, in MacOS X terms, get the "frame bounds". Call GetPosition, just like on Win32. return GetPosition(); } //-------------------------------------------------------------------------------------------------- void Window::Show(bool show) { if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSWindow class]]) { NSWindow* win = idWin; if (show) { [win orderFront:nil]; } else { [win orderOut:nil]; } } } } //-------------------------------------------------------------------------------------------------- /** * Invalidates the entire window or view so it is completely redrawn. */ void Window::InvalidateAll() { if (wid) { id idWin = static_cast(wid); NSView* container; if ([idWin isKindOfClass: [NSView class]]) { container = idWin; } else { // NSWindow NSWindow* win = idWin; container = [win contentView]; container.needsDisplay = YES; } container.needsDisplay = YES; } } //-------------------------------------------------------------------------------------------------- /** * Invalidates part of the window or view so only this part redrawn. */ void Window::InvalidateRectangle(PRectangle rc) { if (wid) { id idWin = static_cast(wid); NSView* container; if ([idWin isKindOfClass: [NSView class]]) { container = idWin; } else { // NSWindow NSWindow* win = idWin; container = [win contentView]; } [container setNeedsDisplayInRect: PRectangleToNSRect(rc)]; } } //-------------------------------------------------------------------------------------------------- void Window::SetFont(Font&) { // Implemented on list subclass on Cocoa. } //-------------------------------------------------------------------------------------------------- /** * Converts the Scintilla cursor enum into an NSCursor and stores it in the associated NSView, * which then will take care to set up a new mouse tracking rectangle. */ void Window::SetCursor(Cursor curs) { if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [SCIContentView class]]) { SCIContentView* container = idWin; [container setCursor: curs]; } } } //-------------------------------------------------------------------------------------------------- void Window::SetTitle(const char* s) { if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSWindow class]]) { NSWindow* win = idWin; NSString* sTitle = [NSString stringWithUTF8String:s]; [win setTitle:sTitle]; } } } //-------------------------------------------------------------------------------------------------- PRectangle Window::GetMonitorRect(Point) { if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSView class]]) { NSView* view = idWin; idWin = [view window]; } if ([idWin isKindOfClass: [NSWindow class]]) { PRectangle rcPosition = GetPosition(); NSWindow* win = idWin; NSScreen* screen = [win screen]; NSRect rect = [screen visibleFrame]; CGFloat screenHeight = rect.origin.y + rect.size.height; // Invert screen positions to match Scintilla PRectangle rcWork( static_cast(NSMinX(rect)), static_cast(screenHeight - NSMaxY(rect)), static_cast(NSMaxX(rect)), static_cast(screenHeight - NSMinY(rect))); PRectangle rcMonitor(rcWork.left - rcPosition.left, rcWork.top - rcPosition.top, rcWork.right - rcPosition.left, rcWork.bottom - rcPosition.top); return rcMonitor; } } return PRectangle(); } //----------------- ImageFromXPM ------------------------------------------------------------------- // Convert an XPM image into an NSImage for use with Cocoa static NSImage* ImageFromXPM(XPM* pxpm) { NSImage* img = nil; if (pxpm) { const int width = pxpm->GetWidth(); const int height = pxpm->GetHeight(); PRectangle rcxpm(0, 0, width, height); Surface* surfaceXPM = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceXPM) { surfaceXPM->InitPixMap(width, height, NULL, NULL); SurfaceImpl* surfaceIXPM = static_cast(surfaceXPM); CGContextClearRect(surfaceIXPM->GetContext(), CGRectMake(0, 0, width, height)); pxpm->Draw(surfaceXPM, rcxpm); img = [[[NSImage alloc] initWithSize:NSZeroSize] autorelease]; CGImageRef imageRef = surfaceIXPM->GetImage(); NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef]; [img addRepresentation: bitmapRep]; [bitmapRep release]; CGImageRelease(imageRef); delete surfaceXPM; } } return img; } //----------------- ListBox and related classes ---------------------------------------------------- //----------------- IListBox ----------------------------------------------------------------------- namespace { // unnamed namespace hides IListBox interface class IListBox { public: virtual int Rows() = 0; virtual NSImage* ImageForRow(NSInteger row) = 0; virtual NSString* TextForRow(NSInteger row) = 0; virtual void DoubleClick() = 0; }; } // unnamed namespace //----------------- AutoCompletionDataSource ------------------------------------------------------- @interface AutoCompletionDataSource : NSObject #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 #endif { IListBox* box; } @property IListBox* box; @end @implementation AutoCompletionDataSource @synthesize box; - (void) doubleClick: (id) sender { #pragma unused(sender) if (box) { box->DoubleClick(); } } - (id)tableView: (NSTableView*)aTableView objectValueForTableColumn: (NSTableColumn*)aTableColumn row: (NSInteger)rowIndex { #pragma unused(aTableView) if (!box) return nil; if ([(NSString*)[aTableColumn identifier] isEqualToString: @"icon"]) { return box->ImageForRow(rowIndex); } else { return box->TextForRow(rowIndex); } } - (void)tableView: (NSTableView*)aTableView setObjectValue: anObject forTableColumn: (NSTableColumn*)aTableColumn row: (NSInteger)rowIndex { #pragma unused(aTableView) #pragma unused(anObject) #pragma unused(aTableColumn) #pragma unused(rowIndex) } - (NSInteger)numberOfRowsInTableView: (NSTableView*)aTableView { #pragma unused(aTableView) if (!box) return 0; return box->Rows(); } @end //----------------- ListBoxImpl -------------------------------------------------------------------- namespace { // unnamed namespace hides ListBoxImpl and associated classes struct RowData { int type; std::string text; RowData(int type_, const char* text_) : type(type_), text(text_) { } }; class LinesData { std::vector lines; public: LinesData() { } ~LinesData() { } int Length() const { return static_cast(lines.size()); } void Clear() { lines.clear(); } void Add(int /* index */, int type, char* str) { lines.push_back(RowData(type, str)); } int GetType(size_t index) const { if (index < lines.size()) { return lines[index].type; } else { return 0; } } const char* GetString(size_t index) const { if (index < lines.size()) { return lines[index].text.c_str(); } else { return 0; } } }; // Map from icon type to an NSImage* typedef std::map ImageMap; class ListBoxImpl : public ListBox, IListBox { private: ImageMap images; int lineHeight; bool unicodeMode; int desiredVisibleRows; XYPOSITION maxItemWidth; unsigned int aveCharWidth; XYPOSITION maxIconWidth; Font font; int maxWidth; NSTableView* table; NSScrollView* scroller; NSTableColumn* colIcon; NSTableColumn* colText; AutoCompletionDataSource* ds; LinesData ld; CallBackAction doubleClickAction; void* doubleClickActionData; public: ListBoxImpl() : lineHeight(10), unicodeMode(false), desiredVisibleRows(5), maxItemWidth(0), aveCharWidth(8), maxIconWidth(0), maxWidth(2000), table(nil), scroller(nil), colIcon(nil), colText(nil), ds(nil), doubleClickAction(nullptr), doubleClickActionData(nullptr) { } ~ListBoxImpl() override {} // ListBox methods void SetFont(Font& font) override; void Create(Window& parent, int ctrlID, Scintilla::Point pt, int lineHeight_, bool unicodeMode_, int technology_) override; void SetAverageCharWidth(int width) override; void SetVisibleRows(int rows) override; int GetVisibleRows() const override; PRectangle GetDesiredRect() override; int CaretFromEdge() override; void Clear() override; void Append(char* s, int type = -1) override; int Length() override; void Select(int n) override; int GetSelection() override; int Find(const char* prefix) override; void GetValue(int n, char* value, int len) override; void RegisterImage(int type, const char* xpm_data) override; void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) override; void ClearRegisteredImages() override; void SetDoubleClickAction(CallBackAction action, void* data) override { doubleClickAction = action; doubleClickActionData = data; } void SetList(const char* list, char separator, char typesep) override; // To clean up when closed void ReleaseViews(); // For access from AutoCompletionDataSource implement IListBox int Rows() override; NSImage* ImageForRow(NSInteger row) override; NSString* TextForRow(NSInteger row) override; void DoubleClick() override; }; void ListBoxImpl::Create(Window& /*parent*/, int /*ctrlID*/, Scintilla::Point pt, int lineHeight_, bool unicodeMode_, int) { lineHeight = lineHeight_; unicodeMode = unicodeMode_; maxWidth = 2000; NSRect lbRect = NSMakeRect(pt.x,pt.y, 120, lineHeight * desiredVisibleRows); NSWindow* winLB = [[NSWindow alloc] initWithContentRect: lbRect styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO]; [winLB setLevel:NSFloatingWindowLevel]; [winLB setHasShadow:YES]; scroller = [NSScrollView alloc]; NSRect scRect = NSMakeRect(0, 0, lbRect.size.width, lbRect.size.height); [scroller initWithFrame: scRect]; [scroller setHasVerticalScroller:YES]; table = [[NSTableView alloc] initWithFrame: scRect]; [table setHeaderView:nil]; [scroller setDocumentView: table]; colIcon = [[NSTableColumn alloc] initWithIdentifier:@"icon"]; [colIcon setWidth: 20]; [colIcon setEditable:NO]; [colIcon setHidden:YES]; NSImageCell* imCell = [[[NSImageCell alloc] init] autorelease]; [colIcon setDataCell:imCell]; [table addTableColumn:colIcon]; colText = [[NSTableColumn alloc] initWithIdentifier:@"name"]; [colText setResizingMask:NSTableColumnAutoresizingMask]; [colText setEditable:NO]; [table addTableColumn:colText]; ds = [[AutoCompletionDataSource alloc] init]; [ds setBox:this]; [table setDataSource: ds]; // Weak reference [scroller setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable]; [[winLB contentView] addSubview: scroller]; [table setTarget:ds]; [table setDoubleAction:@selector(doubleClick:)]; table.selectionHighlightStyle = NSTableViewSelectionHighlightStyleSourceList; wid = winLB; } void ListBoxImpl::SetFont(Font& font_) { // NSCell setFont takes an NSFont* rather than a CTFontRef but they // are the same thing toll-free bridged. QuartzTextStyle* style = static_cast(font_.GetID()); font.Release(); font.SetID(new QuartzTextStyle(*style)); NSFont *pfont = (NSFont *)style->getFontRef(); [[colText dataCell] setFont: pfont]; CGFloat itemHeight = ceil([pfont boundingRectForFont].size.height); [table setRowHeight:itemHeight]; } void ListBoxImpl::SetAverageCharWidth(int width) { aveCharWidth = width; } void ListBoxImpl::SetVisibleRows(int rows) { desiredVisibleRows = rows; } int ListBoxImpl::GetVisibleRows() const { return desiredVisibleRows; } PRectangle ListBoxImpl::GetDesiredRect() { PRectangle rcDesired; rcDesired = GetPosition(); // There appears to be an extra pixel above and below the row contents CGFloat itemHeight = [table rowHeight] + 2; int rows = Length(); if ((rows == 0) || (rows > desiredVisibleRows)) rows = desiredVisibleRows; rcDesired.bottom = rcDesired.top + static_cast(itemHeight * rows); rcDesired.right = rcDesired.left + maxItemWidth + aveCharWidth; if (Length() > rows) { [scroller setHasVerticalScroller:YES]; rcDesired.right += [NSScroller scrollerWidthForControlSize:NSRegularControlSize scrollerStyle:NSScrollerStyleLegacy]; } else { [scroller setHasVerticalScroller:NO]; } rcDesired.right += maxIconWidth; rcDesired.right += 6; return rcDesired; } int ListBoxImpl::CaretFromEdge() { if ([colIcon isHidden]) return 3; else return 6 + static_cast([colIcon width]); } void ListBoxImpl::ReleaseViews() { [table setDataSource:nil]; [table release]; table = nil; [scroller release]; scroller = nil; [colIcon release]; colIcon = nil; [colText release ]; colText = nil; [ds release]; ds = nil; } void ListBoxImpl::Clear() { maxItemWidth = 0; maxIconWidth = 0; ld.Clear(); } void ListBoxImpl::Append(char* s, int type) { int count = Length(); ld.Add(count, type, s); Scintilla::SurfaceImpl surface; XYPOSITION width = surface.WidthText(font, s, static_cast(strlen(s))); if (width > maxItemWidth) { maxItemWidth = width; [colText setWidth: maxItemWidth]; } ImageMap::iterator it = images.find(type); if (it != images.end()) { NSImage* img = it->second; if (img) { XYPOSITION widthIcon = static_cast(img.size.width); if (widthIcon > maxIconWidth) { [colIcon setHidden: NO]; maxIconWidth = widthIcon; [colIcon setWidth: maxIconWidth]; } } } } void ListBoxImpl::SetList(const char* list, char separator, char typesep) { Clear(); size_t count = strlen(list) + 1; std::vector words(list, list+count); char* startword = words.data(); char* numword = NULL; int i = 0; for (; words[i]; i++) { if (words[i] == separator) { words[i] = '\0'; if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); startword = words.data() + i + 1; numword = NULL; } else if (words[i] == typesep) { numword = words.data() + i; } } if (startword) { if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); } [table reloadData]; } int ListBoxImpl::Length() { return ld.Length(); } void ListBoxImpl::Select(int n) { [table selectRowIndexes:[NSIndexSet indexSetWithIndex:n] byExtendingSelection:NO]; [table scrollRowToVisible:n]; } int ListBoxImpl::GetSelection() { return static_cast([table selectedRow]); } int ListBoxImpl::Find(const char* prefix) { int count = Length(); for (int i = 0; i < count; i++) { const char* s = ld.GetString(i); if (s && (s[0] != '\0') && (0 == strncmp(prefix, s, strlen(prefix)))) { return i; } } return - 1; } void ListBoxImpl::GetValue(int n, char* value, int len) { const char* textString = ld.GetString(n); if (textString == NULL) { value[0] = '\0'; return; } strlcpy(value, textString, len); } void ListBoxImpl::RegisterImage(int type, const char* xpm_data) { XPM xpm(xpm_data); NSImage* img = ImageFromXPM(&xpm); [img retain]; ImageMap::iterator it=images.find(type); if (it == images.end()) { images[type] = img; } else { [it->second release]; it->second = img; } } void ListBoxImpl::RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) { CGImageRef imageRef = ImageCreateFromRGBA(width, height, pixelsImage, false); NSSize sz = {static_cast(width), static_cast(height)}; NSImage *img = [[[NSImage alloc] initWithSize: sz] autorelease]; NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef]; [img addRepresentation: bitmapRep]; [bitmapRep release]; CGImageRelease(imageRef); [img retain]; ImageMap::iterator it=images.find(type); if (it == images.end()) { images[type] = img; } else { [it->second release]; it->second = img; } } void ListBoxImpl::ClearRegisteredImages() { for (ImageMap::iterator it=images.begin(); it != images.end(); ++it) { [it->second release]; it->second = nil; } images.clear(); } int ListBoxImpl::Rows() { return ld.Length(); } NSImage* ListBoxImpl::ImageForRow(NSInteger row) { ImageMap::iterator it = images.find(ld.GetType(row)); if (it != images.end()) { NSImage* img = it->second; return img; } else { return nil; } } NSString* ListBoxImpl::TextForRow(NSInteger row) { const char* textString = ld.GetString(row); NSString* sTitle; if (unicodeMode) sTitle = [NSString stringWithUTF8String:textString]; else sTitle = [NSString stringWithCString:textString encoding:NSWindowsCP1252StringEncoding]; return sTitle; } void ListBoxImpl::DoubleClick() { if (doubleClickAction) { doubleClickAction(doubleClickActionData); } } } // unnamed namespace //----------------- ListBox ------------------------------------------------------------------------ ListBox::ListBox() { } ListBox::~ListBox() { } ListBox* ListBox::Allocate() { ListBoxImpl* lb = new ListBoxImpl(); return lb; } //-------------------------------------------------------------------------------------------------- void Window::Destroy() { ListBoxImpl *listbox = dynamic_cast(this); if (listbox) { listbox->ReleaseViews(); } if (wid) { id idWin = static_cast(wid); if ([idWin isKindOfClass: [NSWindow class]]) { NSWindow* win = static_cast(idWin); [win release]; } } wid = 0; } //----------------- ScintillaContextMenu ----------------------------------------------------------- @implementation ScintillaContextMenu : NSMenu // This NSMenu subclass serves also as target for menu commands and forwards them as // notification messages to the front end. - (void) handleCommand: (NSMenuItem*) sender { owner->HandleCommand([sender tag]); } //-------------------------------------------------------------------------------------------------- - (void) setOwner: (Scintilla::ScintillaCocoa*) newOwner { owner = newOwner; } @end //----------------- Menu --------------------------------------------------------------------------- Menu::Menu() : mid(0) { } //-------------------------------------------------------------------------------------------------- void Menu::CreatePopUp() { Destroy(); mid = [[ScintillaContextMenu alloc] initWithTitle: @""]; } //-------------------------------------------------------------------------------------------------- void Menu::Destroy() { ScintillaContextMenu* menu = static_cast(mid); [menu release]; mid = NULL; } //-------------------------------------------------------------------------------------------------- void Menu::Show(Point, Window &) { // Cocoa menus are handled a bit differently. We only create the menu. The framework // takes care to show it properly. } //----------------- ElapsedTime -------------------------------------------------------------------- // ElapsedTime is used for precise performance measurements during development // and not for anything a user sees. ElapsedTime::ElapsedTime() { struct timeval curTime; gettimeofday( &curTime, NULL ); bigBit = curTime.tv_sec; littleBit = curTime.tv_usec; } double ElapsedTime::Duration(bool reset) { struct timeval curTime; gettimeofday( &curTime, NULL ); long endBigBit = curTime.tv_sec; long endLittleBit = curTime.tv_usec; double result = 1000000.0 * (endBigBit - bigBit); result += endLittleBit - littleBit; result /= 1000000.0; if (reset) { bigBit = endBigBit; littleBit = endLittleBit; } return result; } //----------------- Platform ----------------------------------------------------------------------- ColourDesired Platform::Chrome() { return ColourDesired(0xE0, 0xE0, 0xE0); } //-------------------------------------------------------------------------------------------------- ColourDesired Platform::ChromeHighlight() { return ColourDesired(0xFF, 0xFF, 0xFF); } //-------------------------------------------------------------------------------------------------- /** * Returns the currently set system font for the user. */ const char *Platform::DefaultFont() { NSString* name = [[NSUserDefaults standardUserDefaults] stringForKey: @"NSFixedPitchFont"]; return [name UTF8String]; } //-------------------------------------------------------------------------------------------------- /** * Returns the currently set system font size for the user. */ int Platform::DefaultFontSize() { return static_cast([[NSUserDefaults standardUserDefaults] integerForKey: @"NSFixedPitchFontSize"]); } //-------------------------------------------------------------------------------------------------- /** * Returns the time span in which two consecutive mouse clicks must occur to be considered as * double click. * * @return time span in milliseconds */ unsigned int Platform::DoubleClickTime() { float threshold = [[NSUserDefaults standardUserDefaults] floatForKey: @"com.apple.mouse.doubleClickThreshold"]; if (threshold == 0) threshold = 0.5; return static_cast(threshold * 1000.0); } //-------------------------------------------------------------------------------------------------- bool Platform::MouseButtonBounce() { return false; } //-------------------------------------------------------------------------------------------------- /** * Helper method for the backend to reach through to the scintilla window. */ long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam, long lParam) { return scintilla_send_message(w, msg, wParam, lParam); } //-------------------------------------------------------------------------------------------------- /** * Helper method for the backend to reach through to the scintilla window. */ long Platform::SendScintillaPointer(WindowID w, unsigned int msg, unsigned long wParam, void *lParam) { return scintilla_send_message(w, msg, wParam, (long) lParam); } //-------------------------------------------------------------------------------------------------- bool Platform::IsDBCSLeadByte(int codePage, char ch) { // Byte ranges found in Wikipedia articles with relevant search strings in each case unsigned char uch = static_cast(ch); switch (codePage) { case 932: // Shift_jis return ((uch >= 0x81) && (uch <= 0x9F)) || ((uch >= 0xE0) && (uch <= 0xFC)); // Lead bytes F0 to FC may be a Microsoft addition. case 936: // GBK return (uch >= 0x81) && (uch <= 0xFE); case 949: // Korean Wansung KS C-5601-1987 return (uch >= 0x81) && (uch <= 0xFE); case 950: // Big5 return (uch >= 0x81) && (uch <= 0xFE); case 1361: // Korean Johab KS C-5601-1992 return ((uch >= 0x84) && (uch <= 0xD3)) || ((uch >= 0xD8) && (uch <= 0xDE)) || ((uch >= 0xE0) && (uch <= 0xF9)); } return false; } //-------------------------------------------------------------------------------------------------- int Platform::DBCSCharLength(int /* codePage */, const char* /* s */) { // DBCS no longer uses this. return 1; } //-------------------------------------------------------------------------------------------------- int Platform::DBCSCharMaxLength() { return 2; } //-------------------------------------------------------------------------------------------------- int Platform::Minimum(int a, int b) { return (a < b) ? a : b; } //-------------------------------------------------------------------------------------------------- int Platform::Maximum(int a, int b) { return (a > b) ? a : b; } //-------------------------------------------------------------------------------------------------- //#define TRACE #ifdef TRACE void Platform::DebugDisplay(const char *s) { fprintf( stderr, "%s", s ); } //-------------------------------------------------------------------------------------------------- void Platform::DebugPrintf(const char *format, ...) { const int BUF_SIZE = 2000; char buffer[BUF_SIZE]; va_list pArguments; va_start(pArguments, format); vsnprintf(buffer, BUF_SIZE, format, pArguments); va_end(pArguments); Platform::DebugDisplay(buffer); } #else void Platform::DebugDisplay(const char *) {} void Platform::DebugPrintf(const char *, ...) {} #endif //-------------------------------------------------------------------------------------------------- static bool assertionPopUps = true; bool Platform::ShowAssertionPopUps(bool assertionPopUps_) { bool ret = assertionPopUps; assertionPopUps = assertionPopUps_; return ret; } //-------------------------------------------------------------------------------------------------- void Platform::Assert(const char *c, const char *file, int line) { char buffer[2000]; snprintf(buffer, sizeof(buffer), "Assertion [%s] failed at %s %d\r\n", c, file, line); Platform::DebugDisplay(buffer); #ifdef DEBUG // Jump into debugger in assert on Mac (CL269835) ::Debugger(); #endif } //-------------------------------------------------------------------------------------------------- int Platform::Clamp(int val, int minVal, int maxVal) { if (val > maxVal) val = maxVal; if (val < minVal) val = minVal; return val; } //----------------- DynamicLibrary ----------------------------------------------------------------- /** * Implements the platform specific part of library loading. * * @param modulePath The path to the module to load. * @return A library instance or NULL if the module could not be found or another problem occurred. */ DynamicLibrary* DynamicLibrary::Load(const char* /* modulePath */) { // Not implemented. return NULL; } //-------------------------------------------------------------------------------------------------- codequery-0.21.0/scintilla/cocoa/QuartzTextLayout.h000066400000000000000000000044231310136352400223430ustar00rootroot00000000000000/* * QuartzTextLayout.h * * Original Code by Evan Jones on Wed Oct 02 2002. * Contributors: * Shane Caraveo, ActiveState * Bernd Paradies, Adobe * */ #ifndef _QUARTZ_TEXT_LAYOUT_H #define _QUARTZ_TEXT_LAYOUT_H #include #include "QuartzTextStyle.h" class QuartzTextLayout { public: /** Create a text layout for drawing on the specified context. */ explicit QuartzTextLayout( CGContextRef context ) { mString = NULL; mLine = NULL; stringLength = 0; setContext(context); } ~QuartzTextLayout() { if ( mString != NULL ) { CFRelease(mString); mString = NULL; } if ( mLine != NULL ) { CFRelease(mLine); mLine = NULL; } } inline void setText( const UInt8* buffer, size_t byteLength, CFStringEncoding encoding, const QuartzTextStyle& r ) { CFStringRef str = CFStringCreateWithBytes( NULL, buffer, byteLength, encoding, false ); if (!str) return; stringLength = CFStringGetLength(str); CFMutableDictionaryRef stringAttribs = r.getCTStyle(); if (mString != NULL) CFRelease(mString); mString = ::CFAttributedStringCreate(NULL, str, stringAttribs); if (mLine != NULL) CFRelease(mLine); mLine = ::CTLineCreateWithAttributedString(mString); CFRelease( str ); } /** Draw the text layout into the current CGContext at the specified position. * @param x The x axis position to draw the baseline in the current CGContext. * @param y The y axis position to draw the baseline in the current CGContext. */ void draw( float x, float y ) { if (mLine == NULL) return; ::CGContextSetTextMatrix(gc, CGAffineTransformMakeScale(1.0, -1.0)); // Set the text drawing position. ::CGContextSetTextPosition(gc, x, y); // And finally, draw! ::CTLineDraw(mLine, gc); } float MeasureStringWidth() { if (mLine == NULL) return 0.0f; return static_cast(::CTLineGetTypographicBounds(mLine, NULL, NULL, NULL)); } CTLineRef getCTLine() { return mLine; } CFIndex getStringLength() { return stringLength; } inline void setContext (CGContextRef context) { gc = context; } private: CGContextRef gc; CFAttributedStringRef mString; CTLineRef mLine; CFIndex stringLength; }; #endif codequery-0.21.0/scintilla/cocoa/QuartzTextStyle.h000066400000000000000000000040051310136352400221620ustar00rootroot00000000000000/* * QuartzTextStyle.h * * Created by Evan Jones on Wed Oct 02 2002. * */ #ifndef _QUARTZ_TEXT_STYLE_H #define _QUARTZ_TEXT_STYLE_H #include "QuartzTextStyleAttribute.h" class QuartzTextStyle { public: QuartzTextStyle() { fontRef = NULL; styleDict = CFDictionaryCreateMutable(kCFAllocatorDefault, 2, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); characterSet = 0; } QuartzTextStyle(const QuartzTextStyle &other) { // Does not copy font colour attribute fontRef = static_cast(CFRetain(other.fontRef)); styleDict = CFDictionaryCreateMutable(kCFAllocatorDefault, 2, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFDictionaryAddValue(styleDict, kCTFontAttributeName, fontRef); characterSet = other.characterSet; } ~QuartzTextStyle() { if (styleDict != NULL) { CFRelease(styleDict); styleDict = NULL; } if (fontRef) { CFRelease(fontRef); fontRef = NULL; } } CFMutableDictionaryRef getCTStyle() const { return styleDict; } void setCTStyleColor(CGColor *inColor) { CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, inColor); } float getAscent() const { return static_cast(::CTFontGetAscent(fontRef)); } float getDescent() const { return static_cast(::CTFontGetDescent(fontRef)); } float getLeading() const { return static_cast(::CTFontGetLeading(fontRef)); } void setFontRef(CTFontRef inRef, int characterSet_) { fontRef = inRef; characterSet = characterSet_; if (styleDict != NULL) CFRelease(styleDict); styleDict = CFDictionaryCreateMutable(kCFAllocatorDefault, 2, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFDictionaryAddValue(styleDict, kCTFontAttributeName, fontRef); } CTFontRef getFontRef() { return fontRef; } int getCharacterSet() { return characterSet; } private: CFMutableDictionaryRef styleDict; CTFontRef fontRef; int characterSet; }; #endif codequery-0.21.0/scintilla/cocoa/QuartzTextStyleAttribute.h000066400000000000000000000034151310136352400240520ustar00rootroot00000000000000/** * QuartzTextStyleAttribute.h * * Original Code by Evan Jones on Wed Oct 02 2002. * Contributors: * Shane Caraveo, ActiveState * Bernd Paradies, Adobe * */ #ifndef _QUARTZ_TEXT_STYLE_ATTRIBUTE_H #define _QUARTZ_TEXT_STYLE_ATTRIBUTE_H class QuartzFont { public: /** Create a font style from a name. */ QuartzFont( const char* name, size_t length, float size, int weight, bool italic ) { assert( name != NULL && length > 0 && name[length] == '\0' ); CFStringRef fontName = CFStringCreateWithCString(kCFAllocatorDefault, name, kCFStringEncodingMacRoman); assert(fontName != NULL); bool bold = weight > SC_WEIGHT_NORMAL; if (bold || italic) { CTFontSymbolicTraits desiredTrait = 0; CTFontSymbolicTraits traitMask = 0; // if bold was specified, add the trait if (bold) { desiredTrait |= kCTFontBoldTrait; traitMask |= kCTFontBoldTrait; } // if italic was specified, add the trait if (italic) { desiredTrait |= kCTFontItalicTrait; traitMask |= kCTFontItalicTrait; } // create a font and then a copy of it with the sym traits CTFontRef iFont = ::CTFontCreateWithName(fontName, size, NULL); fontid = ::CTFontCreateCopyWithSymbolicTraits(iFont, size, NULL, desiredTrait, traitMask); if (fontid) { CFRelease(iFont); } else { // Traits failed so use base font fontid = iFont; } } else { // create the font, no traits fontid = ::CTFontCreateWithName(fontName, size, NULL); } if (!fontid) { // Failed to create requested font so use font always present fontid = ::CTFontCreateWithName((CFStringRef)@"Monaco", size, NULL); } CFRelease(fontName); } CTFontRef getFontID() { return fontid; } private: CTFontRef fontid; }; #endif codequery-0.21.0/scintilla/cocoa/ScintillaCocoa.h000066400000000000000000000166121310136352400217040ustar00rootroot00000000000000/* * ScintillaCocoa.h * * Mike Lischke * * Based on ScintillaMacOSX.h * Original code by Evan Jones on Sun Sep 01 2002. * Contributors: * Shane Caraveo, ActiveState * Bernd Paradies, Adobe * * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #include #include #include #include #include #include #include #include #include #include "ILexer.h" #ifdef SCI_LEXER #include "SciLexer.h" #include "PropSetSimple.h" #endif #include "Position.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" #include "ContractionState.h" #include "CellBuffer.h" #include "CallTip.h" #include "KeyMap.h" #include "Indicator.h" #include "XPM.h" #include "LineMarker.h" #include "Style.h" #include "ViewStyle.h" #include "CharClassify.h" #include "Decoration.h" #include "CaseFolder.h" #include "Document.h" #include "CaseConvert.h" #include "UniConversion.h" #include "Selection.h" #include "PositionCache.h" #include "EditModel.h" #include "MarginView.h" #include "EditView.h" #include "Editor.h" #include "AutoComplete.h" #include "ScintillaBase.h" extern "C" NSString* ScintillaRecPboardType; @class SCIContentView; @class SCIMarginView; @class ScintillaView; @class FindHighlightLayer; /** * Helper class to be used as timer target (NSTimer). */ @interface TimerTarget : NSObject { void* mTarget; NSNotificationQueue* notificationQueue; } - (id) init: (void*) target; - (void) timerFired: (NSTimer*) timer; - (void) idleTimerFired: (NSTimer*) timer; - (void) idleTriggered: (NSNotification*) notification; @end namespace Scintilla { /** * Main scintilla class, implemented for OS X (Cocoa). */ class ScintillaCocoa : public ScintillaBase { private: ScintillaView* sciView; TimerTarget* timerTarget; NSEvent* lastMouseEvent; id delegate; SciNotifyFunc notifyProc; intptr_t notifyObj; bool capturedMouse; bool enteredSetScrollingSize; // Private so ScintillaCocoa objects can not be copied ScintillaCocoa(const ScintillaCocoa &) : ScintillaBase() {} ScintillaCocoa &operator=(const ScintillaCocoa &) { return * this; } bool GetPasteboardData(NSPasteboard* board, SelectionText* selectedText); void SetPasteboardData(NSPasteboard* board, const SelectionText& selectedText); int TargetAsUTF8(char *text); int EncodedFromUTF8(char *utf8, char *encoded) const; int scrollSpeed; int scrollTicks; CFRunLoopObserverRef observer; FindHighlightLayer *layerFindIndicator; protected: Point GetVisibleOriginInMain() const override; PRectangle GetClientRectangle() const override; PRectangle GetClientDrawingRectangle() override; Point ConvertPoint(NSPoint point); void RedrawRect(PRectangle rc) override; void DiscardOverdraw() override; void Redraw() override; void Initialise() override; void Finalise() override; CaseFolder *CaseFolderForEncoding() override; std::string CaseMapString(const std::string &s, int caseMapping) override; void CancelModes() override; public: ScintillaCocoa(ScintillaView* sciView_, SCIContentView* viewContent, SCIMarginView* viewMargin); ~ScintillaCocoa() override; void SetDelegate(id delegate_); void RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc callback); sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) override; NSScrollView* ScrollContainer() const; SCIContentView* ContentView(); bool SyncPaint(void* gc, PRectangle rc); bool Draw(NSRect rect, CGContextRef gc); void PaintMargin(NSRect aRect); sptr_t DefWndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) override; void TickFor(TickReason reason) override; bool FineTickerAvailable() override; bool FineTickerRunning(TickReason reason) override; void FineTickerStart(TickReason reason, int millis, int tolerance) override; void FineTickerCancel(TickReason reason) override; bool SetIdle(bool on) override; void SetMouseCapture(bool on) override; bool HaveMouseCapture() override; void WillDraw(NSRect rect); void ScrollText(int linesToMove) override; void SetVerticalScrollPos() override; void SetHorizontalScrollPos() override; bool ModifyScrollBars(int nMax, int nPage) override; bool SetScrollingSize(void); void Resize(); void UpdateForScroll(); // Notifications for the owner. void NotifyChange() override; void NotifyFocus(bool focus) override; void NotifyParent(SCNotification scn) override; void NotifyURIDropped(const char *uri); bool HasSelection(); bool CanUndo(); bool CanRedo(); void CopyToClipboard(const SelectionText &selectedText) override; void Copy() override; bool CanPaste() override; void Paste() override; void Paste(bool rectangular); void CTPaint(void* gc, NSRect rc); void CallTipMouseDown(NSPoint pt); void CreateCallTipWindow(PRectangle rc) override; void AddToPopUp(const char *label, int cmd = 0, bool enabled = true) override; void ClaimSelection() override; NSPoint GetCaretPosition(); static sptr_t DirectFunction(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); NSTimer *timers[tickPlatform+1]; void TimerFired(NSTimer* timer); void IdleTimerFired(); static void UpdateObserver(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *sci); void ObserverAdd(); void ObserverRemove(); void IdleWork() override; void QueueIdleWork(WorkNeeded::workItems items, int upTo) override; int InsertText(NSString* input); NSRange PositionsFromCharacters(NSRange rangeCharacters) const; NSRange CharactersFromPositions(NSRange rangePositions) const; NSString *RangeTextAsString(NSRange rangePositions) const; NSInteger VisibleLineForIndex(NSInteger index); NSRange RangeForVisibleLine(NSInteger lineVisible); NSRect FrameForRange(NSRange rangeCharacters); void SelectOnlyMainSelection(); void ConvertSelectionVirtualSpace(); bool ClearAllSelections(); void CompositionStart(); void CompositionCommit(); void CompositionUndo(); void SetDocPointer(Document *document) override; bool KeyboardInput(NSEvent* event); void MouseDown(NSEvent* event); void RightMouseDown(NSEvent* event); void MouseMove(NSEvent* event); void MouseUp(NSEvent* event); void MouseEntered(NSEvent* event); void MouseExited(NSEvent* event); void MouseWheel(NSEvent* event); // Drag and drop void StartDrag() override; bool GetDragData(id info, NSPasteboard &pasteBoard, SelectionText* selectedText); NSDragOperation DraggingEntered(id info); NSDragOperation DraggingUpdated(id info); void DraggingExited(id info); bool PerformDragOperation(id info); void DragScroll(); // Promote some methods needed for NSResponder actions. void SelectAll() override; void DeleteBackward(); void Cut() override; void Undo() override; void Redo() override; bool ShouldDisplayPopupOnMargin(); bool ShouldDisplayPopupOnText(); NSMenu* CreateContextMenu(NSEvent* event); void HandleCommand(NSInteger command); void ActiveStateChanged(bool isActive); void WindowWillMove(); // Find indicator void ShowFindIndicatorForRange(NSRange charRange, BOOL retaining); void MoveFindIndicatorWithBounce(BOOL bounce); void HideFindIndicator(); }; } codequery-0.21.0/scintilla/cocoa/ScintillaCocoa.mm000066400000000000000000002554151310136352400220740ustar00rootroot00000000000000 /** * Scintilla source code edit control * ScintillaCocoa.mm - Cocoa subclass of ScintillaBase * * Written by Mike Lischke * * Loosely based on ScintillaMacOSX.cxx. * Copyright 2003 by Evan Jones * Based on ScintillaGTK.cxx Copyright 1998-2002 by Neil Hodgson * The License.txt file describes the conditions under which this software may be distributed. * * Copyright (c) 2009, 2010 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 #import #endif #import #import #import "Platform.h" #import "ScintillaView.h" #import "ScintillaCocoa.h" #import "PlatCocoa.h" using namespace Scintilla; NSString* ScintillaRecPboardType = @"com.scintilla.utf16-plain-text.rectangular"; //-------------------------------------------------------------------------------------------------- // Define keyboard shortcuts (equivalents) the Mac way. #define SCI_CMD ( SCI_CTRL) #define SCI_SCMD ( SCI_CMD | SCI_SHIFT) #define SCI_SMETA ( SCI_META | SCI_SHIFT) static const KeyToCommand macMapDefault[] = { // OS X specific {SCK_DOWN, SCI_CTRL, SCI_DOCUMENTEND}, {SCK_DOWN, SCI_CSHIFT, SCI_DOCUMENTENDEXTEND}, {SCK_UP, SCI_CTRL, SCI_DOCUMENTSTART}, {SCK_UP, SCI_CSHIFT, SCI_DOCUMENTSTARTEXTEND}, {SCK_LEFT, SCI_CTRL, SCI_VCHOME}, {SCK_LEFT, SCI_CSHIFT, SCI_VCHOMEEXTEND}, {SCK_RIGHT, SCI_CTRL, SCI_LINEEND}, {SCK_RIGHT, SCI_CSHIFT, SCI_LINEENDEXTEND}, // Similar to Windows and GTK+ // Where equivalent clashes with OS X standard, use Meta instead {SCK_DOWN, SCI_NORM, SCI_LINEDOWN}, {SCK_DOWN, SCI_SHIFT, SCI_LINEDOWNEXTEND}, {SCK_DOWN, SCI_META, SCI_LINESCROLLDOWN}, {SCK_DOWN, SCI_ASHIFT, SCI_LINEDOWNRECTEXTEND}, {SCK_UP, SCI_NORM, SCI_LINEUP}, {SCK_UP, SCI_SHIFT, SCI_LINEUPEXTEND}, {SCK_UP, SCI_META, SCI_LINESCROLLUP}, {SCK_UP, SCI_ASHIFT, SCI_LINEUPRECTEXTEND}, {'[', SCI_CTRL, SCI_PARAUP}, {'[', SCI_CSHIFT, SCI_PARAUPEXTEND}, {']', SCI_CTRL, SCI_PARADOWN}, {']', SCI_CSHIFT, SCI_PARADOWNEXTEND}, {SCK_LEFT, SCI_NORM, SCI_CHARLEFT}, {SCK_LEFT, SCI_SHIFT, SCI_CHARLEFTEXTEND}, {SCK_LEFT, SCI_ALT, SCI_WORDLEFT}, {SCK_LEFT, SCI_META, SCI_WORDLEFT}, {SCK_LEFT, SCI_SMETA, SCI_WORDLEFTEXTEND}, {SCK_LEFT, SCI_ASHIFT, SCI_CHARLEFTRECTEXTEND}, {SCK_RIGHT, SCI_NORM, SCI_CHARRIGHT}, {SCK_RIGHT, SCI_SHIFT, SCI_CHARRIGHTEXTEND}, {SCK_RIGHT, SCI_ALT, SCI_WORDRIGHT}, {SCK_RIGHT, SCI_META, SCI_WORDRIGHT}, {SCK_RIGHT, SCI_SMETA, SCI_WORDRIGHTEXTEND}, {SCK_RIGHT, SCI_ASHIFT, SCI_CHARRIGHTRECTEXTEND}, {'/', SCI_CTRL, SCI_WORDPARTLEFT}, {'/', SCI_CSHIFT, SCI_WORDPARTLEFTEXTEND}, {'\\', SCI_CTRL, SCI_WORDPARTRIGHT}, {'\\', SCI_CSHIFT, SCI_WORDPARTRIGHTEXTEND}, {SCK_HOME, SCI_NORM, SCI_VCHOME}, {SCK_HOME, SCI_SHIFT, SCI_VCHOMEEXTEND}, {SCK_HOME, SCI_CTRL, SCI_DOCUMENTSTART}, {SCK_HOME, SCI_CSHIFT, SCI_DOCUMENTSTARTEXTEND}, {SCK_HOME, SCI_ALT, SCI_HOMEDISPLAY}, {SCK_HOME, SCI_ASHIFT, SCI_VCHOMERECTEXTEND}, {SCK_END, SCI_NORM, SCI_LINEEND}, {SCK_END, SCI_SHIFT, SCI_LINEENDEXTEND}, {SCK_END, SCI_CTRL, SCI_DOCUMENTEND}, {SCK_END, SCI_CSHIFT, SCI_DOCUMENTENDEXTEND}, {SCK_END, SCI_ALT, SCI_LINEENDDISPLAY}, {SCK_END, SCI_ASHIFT, SCI_LINEENDRECTEXTEND}, {SCK_PRIOR, SCI_NORM, SCI_PAGEUP}, {SCK_PRIOR, SCI_SHIFT, SCI_PAGEUPEXTEND}, {SCK_PRIOR, SCI_ASHIFT, SCI_PAGEUPRECTEXTEND}, {SCK_NEXT, SCI_NORM, SCI_PAGEDOWN}, {SCK_NEXT, SCI_SHIFT, SCI_PAGEDOWNEXTEND}, {SCK_NEXT, SCI_ASHIFT, SCI_PAGEDOWNRECTEXTEND}, {SCK_DELETE, SCI_NORM, SCI_CLEAR}, {SCK_DELETE, SCI_SHIFT, SCI_CUT}, {SCK_DELETE, SCI_CTRL, SCI_DELWORDRIGHT}, {SCK_DELETE, SCI_CSHIFT, SCI_DELLINERIGHT}, {SCK_INSERT, SCI_NORM, SCI_EDITTOGGLEOVERTYPE}, {SCK_INSERT, SCI_SHIFT, SCI_PASTE}, {SCK_INSERT, SCI_CTRL, SCI_COPY}, {SCK_ESCAPE, SCI_NORM, SCI_CANCEL}, {SCK_BACK, SCI_NORM, SCI_DELETEBACK}, {SCK_BACK, SCI_SHIFT, SCI_DELETEBACK}, {SCK_BACK, SCI_CTRL, SCI_DELWORDLEFT}, {SCK_BACK, SCI_ALT, SCI_DELWORDLEFT}, {SCK_BACK, SCI_CSHIFT, SCI_DELLINELEFT}, {'z', SCI_CMD, SCI_UNDO}, {'z', SCI_SCMD, SCI_REDO}, {'x', SCI_CMD, SCI_CUT}, {'c', SCI_CMD, SCI_COPY}, {'v', SCI_CMD, SCI_PASTE}, {'a', SCI_CMD, SCI_SELECTALL}, {SCK_TAB, SCI_NORM, SCI_TAB}, {SCK_TAB, SCI_SHIFT, SCI_BACKTAB}, {SCK_RETURN, SCI_NORM, SCI_NEWLINE}, {SCK_RETURN, SCI_SHIFT, SCI_NEWLINE}, {SCK_ADD, SCI_CMD, SCI_ZOOMIN}, {SCK_SUBTRACT, SCI_CMD, SCI_ZOOMOUT}, {SCK_DIVIDE, SCI_CMD, SCI_SETZOOM}, {'l', SCI_CMD, SCI_LINECUT}, {'l', SCI_CSHIFT, SCI_LINEDELETE}, {'t', SCI_CSHIFT, SCI_LINECOPY}, {'t', SCI_CTRL, SCI_LINETRANSPOSE}, {'d', SCI_CTRL, SCI_SELECTIONDUPLICATE}, {'u', SCI_CTRL, SCI_LOWERCASE}, {'u', SCI_CSHIFT, SCI_UPPERCASE}, {0, 0, 0}, }; //-------------------------------------------------------------------------------------------------- #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 // Only implement FindHighlightLayer on OS X 10.6+ /** * Class to display the animated gold roundrect used on OS X for matches. */ @interface FindHighlightLayer : CAGradientLayer { @private NSString *sFind; int positionFind; BOOL retaining; CGFloat widthText; CGFloat heightLine; NSString *sFont; CGFloat fontSize; } @property (copy) NSString *sFind; @property (assign) int positionFind; @property (assign) BOOL retaining; @property (assign) CGFloat widthText; @property (assign) CGFloat heightLine; @property (copy) NSString *sFont; @property (assign) CGFloat fontSize; - (void) animateMatch: (CGPoint)ptText bounce:(BOOL)bounce; - (void) hideMatch; @end //-------------------------------------------------------------------------------------------------- @implementation FindHighlightLayer @synthesize sFind, positionFind, retaining, widthText, heightLine, sFont, fontSize; -(id) init { if (self = [super init]) { [self setNeedsDisplayOnBoundsChange: YES]; // A gold to slightly redder gradient to match other applications CGColorRef colGold = CGColorCreateGenericRGB(1.0, 1.0, 0, 1.0); CGColorRef colGoldRed = CGColorCreateGenericRGB(1.0, 0.8, 0, 1.0); self.colors = [NSArray arrayWithObjects:(id)colGoldRed, (id)colGold, nil]; CGColorRelease(colGoldRed); CGColorRelease(colGold); CGColorRef colGreyBorder = CGColorCreateGenericGray(0.756f, 0.5f); self.borderColor = colGreyBorder; CGColorRelease(colGreyBorder); self.borderWidth = 1.0; self.cornerRadius = 5.0f; self.shadowRadius = 1.0f; self.shadowOpacity = 0.9f; self.shadowOffset = CGSizeMake(0.0f, -2.0f); self.anchorPoint = CGPointMake(0.5, 0.5); } return self; } - (void) dealloc { [sFind release]; [sFont release]; [super dealloc]; } const CGFloat paddingHighlightX = 4; const CGFloat paddingHighlightY = 2; -(void) drawInContext:(CGContextRef)context { if (!sFind || !sFont) return; CFStringRef str = CFStringRef(sFind); CFMutableDictionaryRef styleDict = CFDictionaryCreateMutable(kCFAllocatorDefault, 2, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CGColorRef color = CGColorCreateGenericRGB(0.0, 0.0, 0.0, 1.0); CFDictionarySetValue(styleDict, kCTForegroundColorAttributeName, color); CTFontRef fontRef = ::CTFontCreateWithName((CFStringRef)sFont, fontSize, NULL); CFDictionaryAddValue(styleDict, kCTFontAttributeName, fontRef); CFAttributedStringRef attrString = ::CFAttributedStringCreate(NULL, str, styleDict); CTLineRef textLine = ::CTLineCreateWithAttributedString(attrString); // Indent from corner of bounds CGContextSetTextPosition(context, paddingHighlightX, 3 + paddingHighlightY); CTLineDraw(textLine, context); CFRelease(textLine); CFRelease(attrString); CFRelease(fontRef); CGColorRelease(color); CFRelease(styleDict); } - (void) animateMatch: (CGPoint)ptText bounce:(BOOL)bounce { if (!self.sFind || ![self.sFind length]) { [self hideMatch]; return; } CGFloat width = self.widthText + paddingHighlightX * 2; CGFloat height = self.heightLine + paddingHighlightY * 2; CGFloat flipper = self.geometryFlipped ? -1.0 : 1.0; // Adjust for padding ptText.x -= paddingHighlightX; ptText.y += flipper * paddingHighlightY; // Shift point to centre as expanding about centre ptText.x += width / 2.0; ptText.y -= flipper * height / 2.0; [CATransaction begin]; [CATransaction setValue:[NSNumber numberWithFloat:0.0] forKey:kCATransactionAnimationDuration]; self.bounds = CGRectMake(0,0, width, height); self.position = ptText; if (bounce) { // Do not reset visibility when just moving self.hidden = NO; self.opacity = 1.0; } [self setNeedsDisplay]; [CATransaction commit]; if (bounce) { CABasicAnimation *animBounce = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; animBounce.duration = 0.15; animBounce.autoreverses = YES; animBounce.removedOnCompletion = NO; animBounce.fromValue = [NSNumber numberWithFloat: 1.0]; animBounce.toValue = [NSNumber numberWithFloat: 1.25]; if (self.retaining) { [self addAnimation: animBounce forKey:@"animateFound"]; } else { CABasicAnimation *animFade = [CABasicAnimation animationWithKeyPath:@"opacity"]; animFade.duration = 0.1; animFade.beginTime = 0.4; animFade.removedOnCompletion = NO; animFade.fromValue = [NSNumber numberWithFloat: 1.0]; animFade.toValue = [NSNumber numberWithFloat: 0.0]; CAAnimationGroup *group = [CAAnimationGroup animation]; [group setDuration:0.5]; group.removedOnCompletion = NO; group.fillMode = kCAFillModeForwards; [group setAnimations:[NSArray arrayWithObjects:animBounce, animFade, nil]]; [self addAnimation:group forKey:@"animateFound"]; } } } - (void) hideMatch { self.sFind = @""; self.positionFind = INVALID_POSITION; self.hidden = YES; } @end #endif //-------------------------------------------------------------------------------------------------- @implementation TimerTarget - (id) init: (void*) target { self = [super init]; if (self != nil) { mTarget = target; // Get the default notification queue for the thread which created the instance (usually the // main thread). We need that later for idle event processing. NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; notificationQueue = [[NSNotificationQueue alloc] initWithNotificationCenter: center]; [center addObserver: self selector: @selector(idleTriggered:) name: @"Idle" object: nil]; } return self; } //-------------------------------------------------------------------------------------------------- - (void) dealloc { NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; [center removeObserver:self]; [notificationQueue release]; [super dealloc]; } //-------------------------------------------------------------------------------------------------- /** * Method called by owning ScintillaCocoa object when it is destroyed. */ - (void) ownerDestroyed { mTarget = NULL; [notificationQueue release]; notificationQueue = nil; } //-------------------------------------------------------------------------------------------------- /** * Method called by a timer installed by ScintillaCocoa. This two step approach is needed because * a native Obj-C class is required as target for the timer. */ - (void) timerFired: (NSTimer*) timer { if (mTarget) static_cast(mTarget)->TimerFired(timer); } //-------------------------------------------------------------------------------------------------- /** * Another timer callback for the idle timer. */ - (void) idleTimerFired: (NSTimer*) timer { #pragma unused(timer) // Idle timer event. // Post a new idle notification, which gets executed when the run loop is idle. // Since we are coalescing on name and sender there will always be only one actual notification // even for multiple requests. NSNotification *notification = [NSNotification notificationWithName: @"Idle" object: self]; [notificationQueue enqueueNotification: notification postingStyle: NSPostWhenIdle coalesceMask: (NSNotificationCoalescingOnName | NSNotificationCoalescingOnSender) forModes: @[NSDefaultRunLoopMode, NSModalPanelRunLoopMode]]; } //-------------------------------------------------------------------------------------------------- /** * Another step for idle events. The timer (for idle events) simply requests a notification on * idle time. Only when this notification is send we actually call back the editor. */ - (void) idleTriggered: (NSNotification*) notification { #pragma unused(notification) if (mTarget) static_cast(mTarget)->IdleTimerFired(); } @end //----------------- ScintillaCocoa ----------------------------------------------------------------- ScintillaCocoa::ScintillaCocoa(ScintillaView* sciView_, SCIContentView* viewContent, SCIMarginView* viewMargin) { vs.marginInside = false; // Don't retain since we're owned by view, which would cause a cycle sciView = sciView_; wMain = viewContent; wMargin = viewMargin; timerTarget = [[TimerTarget alloc] init: this]; lastMouseEvent = NULL; delegate = NULL; notifyObj = NULL; notifyProc = NULL; capturedMouse = false; enteredSetScrollingSize = false; scrollSpeed = 1; scrollTicks = 2000; observer = NULL; layerFindIndicator = NULL; imeInteraction = imeInline; for (TickReason tr=tickCaret; tr<=tickPlatform; tr = static_cast(tr+1)) { timers[tr] = nil; } Initialise(); } //-------------------------------------------------------------------------------------------------- ScintillaCocoa::~ScintillaCocoa() { Finalise(); [timerTarget ownerDestroyed]; [timerTarget release]; } //-------------------------------------------------------------------------------------------------- /** * Core initialization of the control. Everything that needs to be set up happens here. */ void ScintillaCocoa::Initialise() { Scintilla_LinkLexers(); // Tell Scintilla not to buffer: Quartz buffers drawing for us. WndProc(SCI_SETBUFFEREDDRAW, 0, 0); // We are working with Unicode exclusively. WndProc(SCI_SETCODEPAGE, SC_CP_UTF8, 0); // Add Mac specific key bindings. for (int i = 0; macMapDefault[i].key; i++) kmap.AssignCmdKey(macMapDefault[i].key, macMapDefault[i].modifiers, macMapDefault[i].msg); } //-------------------------------------------------------------------------------------------------- /** * We need some clean up. Do it here. */ void ScintillaCocoa::Finalise() { ObserverRemove(); for (TickReason tr=tickCaret; tr<=tickPlatform; tr = static_cast(tr+1)) { FineTickerCancel(tr); } ScintillaBase::Finalise(); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::UpdateObserver(CFRunLoopObserverRef /* observer */, CFRunLoopActivity /* activity */, void *info) { ScintillaCocoa* sci = static_cast(info); sci->IdleWork(); } //-------------------------------------------------------------------------------------------------- /** * Add an observer to the run loop to perform styling as high-priority idle task. */ void ScintillaCocoa::ObserverAdd() { if (!observer) { CFRunLoopObserverContext context; context.version = 0; context.info = this; context.retain = NULL; context.release = NULL; context.copyDescription = NULL; CFRunLoopRef mainRunLoop = CFRunLoopGetMain(); observer = CFRunLoopObserverCreate(NULL, kCFRunLoopEntry | kCFRunLoopBeforeWaiting, true, 0, UpdateObserver, &context); CFRunLoopAddObserver(mainRunLoop, observer, kCFRunLoopCommonModes); } } //-------------------------------------------------------------------------------------------------- /** * Remove the run loop observer. */ void ScintillaCocoa::ObserverRemove() { if (observer) { CFRunLoopRef mainRunLoop = CFRunLoopGetMain(); CFRunLoopRemoveObserver(mainRunLoop, observer, kCFRunLoopCommonModes); CFRelease(observer); } observer = NULL; } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::IdleWork() { Editor::IdleWork(); ObserverRemove(); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::QueueIdleWork(WorkNeeded::workItems items, int upTo) { Editor::QueueIdleWork(items, upTo); ObserverAdd(); } //-------------------------------------------------------------------------------------------------- /** * Convert a core foundation string into an array of bytes in a particular encoding */ static char *EncodedBytes(CFStringRef cfsRef, CFStringEncoding encoding) { CFRange rangeAll = {0, CFStringGetLength(cfsRef)}; CFIndex usedLen = 0; CFStringGetBytes(cfsRef, rangeAll, encoding, '?', false, NULL, 0, &usedLen); char *buffer = new char[usedLen+1]; CFStringGetBytes(cfsRef, rangeAll, encoding, '?', false, (UInt8 *)buffer,usedLen, NULL); buffer[usedLen] = '\0'; return buffer; } //-------------------------------------------------------------------------------------------------- /** * Convert a core foundation string into a std::string in a particular encoding */ static std::string EncodedBytesString(CFStringRef cfsRef, CFStringEncoding encoding) { const CFRange rangeAll = {0, CFStringGetLength(cfsRef)}; CFIndex usedLen = 0; CFStringGetBytes(cfsRef, rangeAll, encoding, '?', false, NULL, 0, &usedLen); std::string buffer(usedLen, '\0'); if (usedLen > 0) { CFStringGetBytes(cfsRef, rangeAll, encoding, '?', false, reinterpret_cast(&buffer[0]), usedLen, NULL); } return buffer; } //-------------------------------------------------------------------------------------------------- /** * Case folders. */ class CaseFolderDBCS : public CaseFolderTable { CFStringEncoding encoding; public: explicit CaseFolderDBCS(CFStringEncoding encoding_) : encoding(encoding_) { StandardASCII(); } virtual size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) { if ((lenMixed == 1) && (sizeFolded > 0)) { folded[0] = mapping[static_cast(mixed[0])]; return 1; } else { CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(mixed), lenMixed, encoding, false); NSString *sMapped = [(NSString *)cfsVal stringByFoldingWithOptions:NSCaseInsensitiveSearch locale:[NSLocale currentLocale]]; char *encoded = EncodedBytes((CFStringRef)sMapped, encoding); size_t lenMapped = strlen(encoded); if (lenMapped < sizeFolded) { memcpy(folded, encoded, lenMapped); } else { folded[0] = '\0'; lenMapped = 1; } delete []encoded; CFRelease(cfsVal); return lenMapped; } } }; CaseFolder *ScintillaCocoa::CaseFolderForEncoding() { if (pdoc->dbcsCodePage == SC_CP_UTF8) { return new CaseFolderUnicode(); } else { CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); if (pdoc->dbcsCodePage == 0) { CaseFolderTable *pcf = new CaseFolderTable(); pcf->StandardASCII(); // Only for single byte encodings for (int i=0x80; i<0x100; i++) { char sCharacter[2] = "A"; sCharacter[0] = static_cast(i); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(sCharacter), 1, encoding, false); if (!cfsVal) continue; NSString *sMapped = [(NSString *)cfsVal stringByFoldingWithOptions:NSCaseInsensitiveSearch locale:[NSLocale currentLocale]]; char *encoded = EncodedBytes((CFStringRef)sMapped, encoding); if (strlen(encoded) == 1) { pcf->SetTranslation(sCharacter[0], encoded[0]); } delete []encoded; CFRelease(cfsVal); } return pcf; } else { return new CaseFolderDBCS(encoding); } } } //-------------------------------------------------------------------------------------------------- /** * Case-fold the given string depending on the specified case mapping type. */ std::string ScintillaCocoa::CaseMapString(const std::string &s, int caseMapping) { if ((s.size() == 0) || (caseMapping == cmSame)) return s; if (IsUnicodeMode()) { std::string retMapped(s.length() * maxExpansionCaseConversion, 0); size_t lenMapped = CaseConvertString(&retMapped[0], retMapped.length(), s.c_str(), s.length(), (caseMapping == cmUpper) ? CaseConversionUpper : CaseConversionLower); retMapped.resize(lenMapped); return retMapped; } CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(s.c_str()), s.length(), encoding, false); NSString *sMapped; switch (caseMapping) { case cmUpper: sMapped = [(NSString *)cfsVal uppercaseString]; break; case cmLower: sMapped = [(NSString *)cfsVal lowercaseString]; break; default: sMapped = (NSString *)cfsVal; } // Back to encoding char *encoded = EncodedBytes((CFStringRef)sMapped, encoding); std::string result(encoded); delete []encoded; CFRelease(cfsVal); return result; } //-------------------------------------------------------------------------------------------------- /** * Cancel all modes, both for base class and any find indicator. */ void ScintillaCocoa::CancelModes() { ScintillaBase::CancelModes(); HideFindIndicator(); } //-------------------------------------------------------------------------------------------------- /** * Helper function to get the scrolling view. */ NSScrollView* ScintillaCocoa::ScrollContainer() const { NSView* container = static_cast(wMain.GetID()); return static_cast([[container superview] superview]); } //-------------------------------------------------------------------------------------------------- /** * Helper function to get the inner container which represents the actual "canvas" we work with. */ SCIContentView* ScintillaCocoa::ContentView() { return static_cast(wMain.GetID()); } //-------------------------------------------------------------------------------------------------- /** * Return the top left visible point relative to the origin point of the whole document. */ Scintilla::Point ScintillaCocoa::GetVisibleOriginInMain() const { NSScrollView *scrollView = ScrollContainer(); NSRect contentRect = [[scrollView contentView] bounds]; return Point(static_cast(contentRect.origin.x), static_cast(contentRect.origin.y)); } //-------------------------------------------------------------------------------------------------- /** * Instead of returning the size of the inner view we have to return the visible part of it * in order to make scrolling working properly. * The returned value is in document coordinates. */ PRectangle ScintillaCocoa::GetClientRectangle() const { NSScrollView *scrollView = ScrollContainer(); NSSize size = [[scrollView contentView] bounds].size; Point origin = GetVisibleOriginInMain(); return PRectangle(origin.x, origin.y, static_cast(origin.x+size.width), static_cast(origin.y + size.height)); } //-------------------------------------------------------------------------------------------------- /** * Allow for prepared rectangle */ PRectangle ScintillaCocoa::GetClientDrawingRectangle() { #if MAC_OS_X_VERSION_MAX_ALLOWED > 1080 NSView *content = ContentView(); if ([content respondsToSelector: @selector(setPreparedContentRect:)]) { NSRect rcPrepared = [content preparedContentRect]; if (!NSIsEmptyRect(rcPrepared)) return NSRectToPRectangle(rcPrepared); } #endif return ScintillaCocoa::GetClientRectangle(); } //-------------------------------------------------------------------------------------------------- /** * Converts the given point from base coordinates to local coordinates and at the same time into * a native Point structure. Base coordinates are used for the top window used in the view hierarchy. * Returned value is in view coordinates. */ Scintilla::Point ScintillaCocoa::ConvertPoint(NSPoint point) { NSView* container = ContentView(); NSPoint result = [container convertPoint: point fromView: nil]; Scintilla::Point ptOrigin = GetVisibleOriginInMain(); return Point(static_cast(result.x - ptOrigin.x), static_cast(result.y - ptOrigin.y)); } //-------------------------------------------------------------------------------------------------- /** * Do not clip like superclass as Cocoa is not reporting all of prepared area. */ void ScintillaCocoa::RedrawRect(PRectangle rc) { if (!rc.Empty()) wMain.InvalidateRectangle(rc); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::DiscardOverdraw() { #if MAC_OS_X_VERSION_MAX_ALLOWED > 1080 // If running on 10.9, reset prepared area to visible area NSView *content = ContentView(); if ([content respondsToSelector: @selector(setPreparedContentRect:)]) { content.preparedContentRect = [content visibleRect]; } #endif } //-------------------------------------------------------------------------------------------------- /** * Ensure all of prepared content is also redrawn. */ void ScintillaCocoa::Redraw() { wMargin.InvalidateAll(); DiscardOverdraw(); wMain.InvalidateAll(); } //-------------------------------------------------------------------------------------------------- /** * A function to directly execute code that would usually go the long way via window messages. * However this is a Windows metaphor and not used here, hence we just call our fake * window proc. The given parameters directly reflect the message parameters used on Windows. * * @param ptr The target which is to be called. * @param iMessage A code that indicates which message was sent. * @param wParam One of the two free parameters for the message. Traditionally a word sized parameter * (hence the w prefix). * @param lParam The other of the two free parameters. A signed long. */ sptr_t ScintillaCocoa::DirectFunction(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return reinterpret_cast(ptr)->WndProc(iMessage, wParam, lParam); } //-------------------------------------------------------------------------------------------------- /** * This method is very similar to DirectFunction. On Windows it sends a message (not in the Obj-C sense) * to the target window. Here we simply call our fake window proc. */ sptr_t scintilla_send_message(void* sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) { ScintillaView *control = static_cast(sci); return [control message:iMessage wParam:wParam lParam:lParam]; } //-------------------------------------------------------------------------------------------------- /** * That's our fake window procedure. On Windows each window has a dedicated procedure to handle * commands (also used to synchronize UI and background threads), which is not the case in Cocoa. * * Messages handled here are almost solely for special commands of the backend. Everything which * would be system messages on Windows (e.g. for key down, mouse move etc.) are handled by * directly calling appropriate handlers. */ sptr_t ScintillaCocoa::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { try { switch (iMessage) { case SCI_GETDIRECTFUNCTION: return reinterpret_cast(DirectFunction); case SCI_GETDIRECTPOINTER: return reinterpret_cast(this); case SCI_TARGETASUTF8: return TargetAsUTF8(reinterpret_cast(lParam)); case SCI_ENCODEDFROMUTF8: return EncodedFromUTF8(reinterpret_cast(wParam), reinterpret_cast(lParam)); case SCI_SETIMEINTERACTION: // Only inline IME supported on Cocoa break; case SCI_GRABFOCUS: [[ContentView() window] makeFirstResponder:ContentView()]; break; case SCI_SETBUFFEREDDRAW: // Buffered drawing not supported on Cocoa view.bufferedDraw = false; break; case SCI_FINDINDICATORSHOW: ShowFindIndicatorForRange(NSMakeRange(wParam, lParam-wParam), YES); return 0; case SCI_FINDINDICATORFLASH: ShowFindIndicatorForRange(NSMakeRange(wParam, lParam-wParam), NO); return 0; case SCI_FINDINDICATORHIDE: HideFindIndicator(); return 0; case SCI_SETPHASESDRAW: { sptr_t r = ScintillaBase::WndProc(iMessage, wParam, lParam); [sciView updateIndicatorIME]; return r; } case SCI_GETACCESSIBILITY: return SC_ACCESSIBILITY_ENABLED; default: sptr_t r = ScintillaBase::WndProc(iMessage, wParam, lParam); return r; } } catch (std::bad_alloc &) { errorStatus = SC_STATUS_BADALLOC; } catch (...) { errorStatus = SC_STATUS_FAILURE; } return 0l; } //-------------------------------------------------------------------------------------------------- /** * In Windows lingo this is the handler which handles anything that wasn't handled in the normal * window proc which would usually send the message back to generic window proc that Windows uses. */ sptr_t ScintillaCocoa::DefWndProc(unsigned int, uptr_t, sptr_t) { return 0; } //-------------------------------------------------------------------------------------------------- /** * Handle any ScintillaCocoa-specific ticking or call superclass. */ void ScintillaCocoa::TickFor(TickReason reason) { if (reason == tickPlatform) { DragScroll(); } else { Editor::TickFor(reason); } } //-------------------------------------------------------------------------------------------------- /** * Report that this Editor subclass has a working implementation of FineTickerStart. */ bool ScintillaCocoa::FineTickerAvailable() { return true; } //-------------------------------------------------------------------------------------------------- /** * Is a particular timer currently running? */ bool ScintillaCocoa::FineTickerRunning(TickReason reason) { return timers[reason] != nil; } //-------------------------------------------------------------------------------------------------- /** * Start a fine-grained timer. */ void ScintillaCocoa::FineTickerStart(TickReason reason, int millis, int tolerance) { FineTickerCancel(reason); NSTimer *fineTimer = [NSTimer timerWithTimeInterval: millis / 1000.0 target: timerTarget selector: @selector(timerFired:) userInfo: nil repeats: YES]; if (tolerance && [fineTimer respondsToSelector: @selector(setTolerance:)]) { [fineTimer setTolerance: tolerance / 1000.0]; } timers[reason] = fineTimer; [NSRunLoop.currentRunLoop addTimer: fineTimer forMode: NSDefaultRunLoopMode]; [NSRunLoop.currentRunLoop addTimer: fineTimer forMode: NSModalPanelRunLoopMode]; } //-------------------------------------------------------------------------------------------------- /** * Cancel a fine-grained timer. */ void ScintillaCocoa::FineTickerCancel(TickReason reason) { if (timers[reason]) { [timers[reason] invalidate]; timers[reason] = nil; } } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::SetIdle(bool on) { if (idler.state != on) { idler.state = on; if (idler.state) { // Scintilla ticks = milliseconds NSTimer *idleTimer = [NSTimer scheduledTimerWithTimeInterval: timer.tickSize / 1000.0 target: timerTarget selector: @selector(idleTimerFired:) userInfo: nil repeats: YES]; [NSRunLoop.currentRunLoop addTimer: idleTimer forMode: NSModalPanelRunLoopMode]; idler.idlerID = idleTimer; } else if (idler.idlerID != NULL) { [static_cast(idler.idlerID) invalidate]; idler.idlerID = 0; } } return true; } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::CopyToClipboard(const SelectionText &selectedText) { SetPasteboardData([NSPasteboard generalPasteboard], selectedText); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::Copy() { if (!sel.Empty()) { SelectionText selectedText; CopySelectionRange(&selectedText); CopyToClipboard(selectedText); } } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::CanPaste() { if (!Editor::CanPaste()) return false; return GetPasteboardData([NSPasteboard generalPasteboard], NULL); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::Paste() { Paste(false); } //-------------------------------------------------------------------------------------------------- /** * Pastes data from the paste board into the editor. */ void ScintillaCocoa::Paste(bool forceRectangular) { SelectionText selectedText; bool ok = GetPasteboardData([NSPasteboard generalPasteboard], &selectedText); if (forceRectangular) selectedText.rectangular = forceRectangular; if (!ok || selectedText.Empty()) // No data or no flavor we support. return; pdoc->BeginUndoAction(); ClearSelection(false); InsertPasteShape(selectedText.Data(), static_cast(selectedText.Length()), selectedText.rectangular ? pasteRectangular : pasteStream); pdoc->EndUndoAction(); Redraw(); EnsureCaretVisible(); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::CTPaint(void* gc, NSRect rc) { #pragma unused(rc) Surface *surfaceWindow = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceWindow) { surfaceWindow->Init(gc, wMain.GetID()); surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == ct.codePage); surfaceWindow->SetDBCSMode(ct.codePage); ct.PaintCT(surfaceWindow); surfaceWindow->Release(); delete surfaceWindow; } } @interface CallTipView : NSControl { ScintillaCocoa *sci; } @end @implementation CallTipView - (NSView*) initWithFrame: (NSRect) frame { self = [super initWithFrame: frame]; if (self) { sci = NULL; } return self; } - (void) dealloc { [super dealloc]; } - (BOOL) isFlipped { return YES; } - (void) setSci: (ScintillaCocoa *) sci_ { sci = sci_; } - (void) drawRect: (NSRect) needsDisplayInRect { if (sci) { CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]; sci->CTPaint(context, needsDisplayInRect); } } - (void) mouseDown: (NSEvent *) event { if (sci) { sci->CallTipMouseDown([event locationInWindow]); } } // On OS X, only the key view should modify the cursor so the calltip can't. // This view does not become key so resetCursorRects never called. - (void) resetCursorRects { //[super resetCursorRects]; //[self addCursorRect: [self bounds] cursor: [NSCursor arrowCursor]]; } @end void ScintillaCocoa::CallTipMouseDown(NSPoint pt) { NSRect rectBounds = [(NSView *)(ct.wDraw.GetID()) bounds]; Point location(static_cast(pt.x), static_cast(rectBounds.size.height - pt.y)); ct.MouseClick(location); CallTipClick(); } static bool HeightDifferent(WindowID wCallTip, PRectangle rc) { NSWindow *callTip = (NSWindow *)wCallTip; CGFloat height = NSHeight([callTip frame]); return height != rc.Height(); } void ScintillaCocoa::CreateCallTipWindow(PRectangle rc) { if (ct.wCallTip.Created() && HeightDifferent(ct.wCallTip.GetID(), rc)) { ct.wCallTip.Destroy(); } if (!ct.wCallTip.Created()) { NSRect ctRect = NSMakeRect(rc.top,rc.bottom, rc.Width(), rc.Height()); NSWindow *callTip = [[NSWindow alloc] initWithContentRect: ctRect styleMask: NSBorderlessWindowMask backing: NSBackingStoreBuffered defer: NO]; [callTip setLevel:NSFloatingWindowLevel]; [callTip setHasShadow:YES]; NSRect ctContent = NSMakeRect(0,0, rc.Width(), rc.Height()); CallTipView *caption = [[CallTipView alloc] initWithFrame: ctContent]; [caption setAutoresizingMask: NSViewWidthSizable | NSViewMaxYMargin]; [caption setSci: this]; [[callTip contentView] addSubview: caption]; [callTip orderFront:caption]; ct.wCallTip = callTip; ct.wDraw = caption; } } void ScintillaCocoa::AddToPopUp(const char *label, int cmd, bool enabled) { NSMenuItem* item; ScintillaContextMenu *menu = static_cast(popup.GetID()); [menu setOwner: this]; [menu setAutoenablesItems: NO]; if (cmd == 0) { item = [NSMenuItem separatorItem]; } else { item = [[[NSMenuItem alloc] init] autorelease]; [item setTitle: [NSString stringWithUTF8String: label]]; } [item setTarget: menu]; [item setAction: @selector(handleCommand:)]; [item setTag: cmd]; [item setEnabled: enabled]; [menu addItem: item]; } // ------------------------------------------------------------------------------------------------- void ScintillaCocoa::ClaimSelection() { // Mac OS X does not have a primary selection. } // ------------------------------------------------------------------------------------------------- /** * Returns the current caret position (which is tracked as an offset into the entire text string) * as a row:column pair. The result is zero-based. */ NSPoint ScintillaCocoa::GetCaretPosition() { const int line = pdoc->LineFromPosition(sel.RangeMain().caret.Position()); NSPoint result; result.y = line; result.x = sel.RangeMain().caret.Position() - pdoc->LineStart(line); return result; } // ------------------------------------------------------------------------------------------------- #pragma mark Drag /** * Triggered by the tick timer on a regular basis to scroll the content during a drag operation. */ void ScintillaCocoa::DragScroll() { if (!posDrag.IsValid()) { scrollSpeed = 1; scrollTicks = 2000; return; } // TODO: does not work for wrapped lines, fix it. int line = pdoc->LineFromPosition(posDrag.Position()); int currentVisibleLine = cs.DisplayFromDoc(line); int lastVisibleLine = Platform::Minimum(topLine + LinesOnScreen(), cs.LinesDisplayed()) - 2; if (currentVisibleLine <= topLine && topLine > 0) ScrollTo(topLine - scrollSpeed); else if (currentVisibleLine >= lastVisibleLine) ScrollTo(topLine + scrollSpeed); else { scrollSpeed = 1; scrollTicks = 2000; return; } // TODO: also handle horizontal scrolling. if (scrollSpeed == 1) { scrollTicks -= timer.tickSize; if (scrollTicks <= 0) { scrollSpeed = 5; scrollTicks = 2000; } } } //----------------- DragProviderSource ------------------------------------------------------- @interface DragProviderSource : NSObject { SelectionText selectedText; } @end @implementation DragProviderSource - (id)initWithSelectedText:(const SelectionText *)other { self = [super init]; if (self) { selectedText.Copy(*other); } return self; } - (void)pasteboard:(NSPasteboard *)pasteboard item:(NSPasteboardItem *)item provideDataForType:(NSString *)type { #pragma unused(item) if (selectedText.Length() == 0) return; if (([type compare: NSPasteboardTypeString] != NSOrderedSame) && ([type compare: ScintillaRecPboardType] != NSOrderedSame)) return; CFStringEncoding encoding = EncodingFromCharacterSet(selectedText.codePage == SC_CP_UTF8, selectedText.characterSet); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(selectedText.Data()), selectedText.Length(), encoding, false); if ([type compare: NSPasteboardTypeString] == NSOrderedSame) { [pasteboard setString:(NSString *)cfsVal forType: NSStringPboardType]; } else if ([type compare: ScintillaRecPboardType] == NSOrderedSame) { // This is specific to scintilla, allows us to drag rectangular selections around the document. if (selectedText.rectangular) [pasteboard setString:(NSString *)cfsVal forType: ScintillaRecPboardType]; } if (cfsVal) CFRelease(cfsVal); } @end //-------------------------------------------------------------------------------------------------- /** * Called when a drag operation was initiated from within Scintilla. */ void ScintillaCocoa::StartDrag() { if (sel.Empty()) return; inDragDrop = ddDragging; FineTickerStart(tickPlatform, timer.tickSize, 0); // Put the data to be dragged on the drag pasteboard. SelectionText selectedText; NSPasteboard* pasteboard = [NSPasteboard pasteboardWithName: NSDragPboard]; CopySelectionRange(&selectedText); SetPasteboardData(pasteboard, selectedText); // calculate the bounds of the selection PRectangle client = GetTextRectangle(); int selStart = sel.RangeMain().Start().Position(); int selEnd = sel.RangeMain().End().Position(); int startLine = pdoc->LineFromPosition(selStart); int endLine = pdoc->LineFromPosition(selEnd); Point pt; long startPos, endPos, ep; PRectangle rcSel; if (startLine==endLine && WndProc(SCI_GETWRAPMODE, 0, 0) != SC_WRAP_NONE) { // Komodo bug http://bugs.activestate.com/show_bug.cgi?id=87571 // Scintilla bug https://sourceforge.net/tracker/?func=detail&atid=102439&aid=3040200&group_id=2439 // If the width on a wrapped-line selection is negative, // find a better bounding rectangle. Point ptStart, ptEnd; startPos = WndProc(SCI_GETLINESELSTARTPOSITION, startLine, 0); endPos = WndProc(SCI_GETLINESELENDPOSITION, startLine, 0); // step back a position if we're counting the newline ep = WndProc(SCI_GETLINEENDPOSITION, startLine, 0); if (endPos > ep) endPos = ep; ptStart = LocationFromPosition(static_cast(startPos)); ptEnd = LocationFromPosition(static_cast(endPos)); if (ptStart.y == ptEnd.y) { // We're just selecting part of one visible line rcSel.left = ptStart.x; rcSel.right = ptEnd.x < client.right ? ptEnd.x : client.right; } else { // Find the bounding box. startPos = WndProc(SCI_POSITIONFROMLINE, startLine, 0); rcSel.left = LocationFromPosition(static_cast(startPos)).x; rcSel.right = client.right; } rcSel.top = ptStart.y; rcSel.bottom = ptEnd.y + vs.lineHeight; if (rcSel.bottom > client.bottom) { rcSel.bottom = client.bottom; } } else { rcSel.top = rcSel.bottom = rcSel.right = rcSel.left = -1; for (int l = startLine; l <= endLine; l++) { startPos = WndProc(SCI_GETLINESELSTARTPOSITION, l, 0); endPos = WndProc(SCI_GETLINESELENDPOSITION, l, 0); if (endPos == startPos) continue; // step back a position if we're counting the newline ep = WndProc(SCI_GETLINEENDPOSITION, l, 0); if (endPos > ep) endPos = ep; pt = LocationFromPosition(static_cast(startPos)); // top left of line selection if (pt.x < rcSel.left || rcSel.left < 0) rcSel.left = pt.x; if (pt.y < rcSel.top || rcSel.top < 0) rcSel.top = pt.y; pt = LocationFromPosition(static_cast(endPos)); // top right of line selection pt.y += vs.lineHeight; // get to the bottom of the line if (pt.x > rcSel.right || rcSel.right < 0) { if (pt.x > client.right) rcSel.right = client.right; else rcSel.right = pt.x; } if (pt.y > rcSel.bottom || rcSel.bottom < 0) { if (pt.y > client.bottom) rcSel.bottom = client.bottom; else rcSel.bottom = pt.y; } } } // must convert to global coordinates for drag regions, but also save the // image rectangle for further calculations and copy operations // Prepare drag image. NSRect selectionRectangle = PRectangleToNSRect(rcSel); SCIContentView* content = ContentView(); // To get a bitmap of the text we're dragging, we just use Paint on a pixmap surface. SurfaceImpl sw; sw.InitPixMap(static_cast(client.Width()), static_cast(client.Height()), NULL, NULL); const bool lastHideSelection = view.hideSelection; view.hideSelection = true; PRectangle imageRect = rcSel; paintState = painting; paintingAllText = true; CGContextRef gcsw = sw.GetContext(); CGContextTranslateCTM(gcsw, -client.left, -client.top); Paint(&sw, client); paintState = notPainting; view.hideSelection = lastHideSelection; SurfaceImpl pixmap; pixmap.InitPixMap(static_cast(imageRect.Width()), static_cast(imageRect.Height()), NULL, NULL); pixmap.SetUnicodeMode(IsUnicodeMode()); pixmap.SetDBCSMode(CodePage()); CGContextRef gc = pixmap.GetContext(); // To make Paint() work on a bitmap, we have to flip our coordinates and translate the origin CGContextTranslateCTM(gc, 0, imageRect.Height()); CGContextScaleCTM(gc, 1.0, -1.0); pixmap.CopyImageRectangle(sw, imageRect, PRectangle(0.0f, 0.0f, imageRect.Width(), imageRect.Height())); // XXX TODO: overwrite any part of the image that is not part of the // selection to make it transparent. right now we just use // the full rectangle which may include non-selected text. NSBitmapImageRep* bitmap = NULL; CGImageRef imagePixmap = pixmap.GetImage(); if (imagePixmap) bitmap = [[[NSBitmapImageRep alloc] initWithCGImage: imagePixmap] autorelease]; CGImageRelease(imagePixmap); NSImage* image = [[[NSImage alloc] initWithSize: selectionRectangle.size] autorelease]; [image addRepresentation: bitmap]; NSImage* dragImage = [[[NSImage alloc] initWithSize: selectionRectangle.size] autorelease]; [dragImage setBackgroundColor: [NSColor clearColor]]; [dragImage lockFocus]; [image drawAtPoint: NSZeroPoint fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 0.5]; [dragImage unlockFocus]; NSPoint startPoint; startPoint.x = selectionRectangle.origin.x + client.left; startPoint.y = selectionRectangle.origin.y + selectionRectangle.size.height + client.top; NSPasteboardItem *pbItem = [NSPasteboardItem new]; DragProviderSource *dps = [[[DragProviderSource alloc] initWithSelectedText:&selectedText] autorelease]; NSArray *pbTypes = selectedText.rectangular ? @[NSPasteboardTypeString, ScintillaRecPboardType] : @[NSPasteboardTypeString]; [pbItem setDataProvider:dps forTypes:pbTypes]; NSDraggingItem *dragItem = [[NSDraggingItem alloc ]initWithPasteboardWriter:pbItem]; [pbItem release]; NSScrollView *scrollContainer = ScrollContainer(); NSRect contentRect = [[scrollContainer contentView] bounds]; NSRect draggingRect = NSOffsetRect(selectionRectangle, contentRect.origin.x, contentRect.origin.y); [dragItem setDraggingFrame:draggingRect contents:dragImage]; NSDraggingSession *dragSession = [content beginDraggingSessionWithItems:@[[dragItem autorelease]] event:lastMouseEvent source:content]; dragSession.animatesToStartingPositionsOnCancelOrFail = YES; dragSession.draggingFormation = NSDraggingFormationNone; } //-------------------------------------------------------------------------------------------------- /** * Called when a drag operation reaches the control which was initiated outside. */ NSDragOperation ScintillaCocoa::DraggingEntered(id info) { FineTickerStart(tickPlatform, timer.tickSize, 0); return DraggingUpdated(info); } //-------------------------------------------------------------------------------------------------- /** * Called frequently during a drag operation if we are the target. Keep telling the caller * what drag operation we accept and update the drop caret position to indicate the * potential insertion point of the dragged data. */ NSDragOperation ScintillaCocoa::DraggingUpdated(id info) { // Convert the drag location from window coordinates to view coordinates and // from there to a text position to finally set the drag position. Point location = ConvertPoint([info draggingLocation]); SetDragPosition(SPositionFromLocation(location)); NSDragOperation sourceDragMask = [info draggingSourceOperationMask]; if (sourceDragMask == NSDragOperationNone) return sourceDragMask; NSPasteboard* pasteboard = [info draggingPasteboard]; // Return what type of operation we will perform. Prefer move over copy. if ([[pasteboard types] containsObject: NSStringPboardType] || [[pasteboard types] containsObject: ScintillaRecPboardType]) return (sourceDragMask & NSDragOperationMove) ? NSDragOperationMove : NSDragOperationCopy; if ([[pasteboard types] containsObject: NSFilenamesPboardType]) return (sourceDragMask & NSDragOperationGeneric); return NSDragOperationNone; } //-------------------------------------------------------------------------------------------------- /** * Resets the current drag position as we are no longer the drag target. */ void ScintillaCocoa::DraggingExited(id info) { #pragma unused(info) SetDragPosition(SelectionPosition(invalidPosition)); FineTickerCancel(tickPlatform); inDragDrop = ddNone; } //-------------------------------------------------------------------------------------------------- /** * Here is where the real work is done. Insert the text from the pasteboard. */ bool ScintillaCocoa::PerformDragOperation(id info) { NSPasteboard* pasteboard = [info draggingPasteboard]; if ([[pasteboard types] containsObject: NSFilenamesPboardType]) { NSArray* files = [pasteboard propertyListForType: NSFilenamesPboardType]; for (NSString* uri in files) NotifyURIDropped([uri UTF8String]); } else { SelectionText text; GetPasteboardData(pasteboard, &text); if (text.Length() > 0) { NSDragOperation operation = [info draggingSourceOperationMask]; bool moving = (operation & NSDragOperationMove) != 0; DropAt(posDrag, text.Data(), text.Length(), moving, text.rectangular); }; } return true; } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::SetPasteboardData(NSPasteboard* board, const SelectionText &selectedText) { if (selectedText.Length() == 0) return; CFStringEncoding encoding = EncodingFromCharacterSet(selectedText.codePage == SC_CP_UTF8, selectedText.characterSet); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(selectedText.Data()), selectedText.Length(), encoding, false); NSArray *pbTypes = selectedText.rectangular ? [NSArray arrayWithObjects: NSStringPboardType, ScintillaRecPboardType, nil] : [NSArray arrayWithObjects: NSStringPboardType, nil]; [board declareTypes:pbTypes owner:nil]; if (selectedText.rectangular) { // This is specific to scintilla, allows us to drag rectangular selections around the document. [board setString: (NSString *)cfsVal forType: ScintillaRecPboardType]; } [board setString: (NSString *)cfsVal forType: NSStringPboardType]; if (cfsVal) CFRelease(cfsVal); } //-------------------------------------------------------------------------------------------------- /** * Helper method to retrieve the best fitting alternative from the general pasteboard. */ bool ScintillaCocoa::GetPasteboardData(NSPasteboard* board, SelectionText* selectedText) { NSArray* supportedTypes = [NSArray arrayWithObjects: ScintillaRecPboardType, NSStringPboardType, nil]; NSString *bestType = [board availableTypeFromArray: supportedTypes]; NSString* data = [board stringForType: bestType]; if (data != nil) { if (selectedText != nil) { CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); CFRange rangeAll = {0, static_cast([data length])}; CFIndex usedLen = 0; CFStringGetBytes((CFStringRef)data, rangeAll, encoding, '?', false, NULL, 0, &usedLen); std::vector buffer(usedLen); CFStringGetBytes((CFStringRef)data, rangeAll, encoding, '?', false, buffer.data(),usedLen, NULL); bool rectangular = bestType == ScintillaRecPboardType; std::string dest(reinterpret_cast(buffer.data()), usedLen); selectedText->Copy(dest, pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet , rectangular, false); } return true; } return false; } //-------------------------------------------------------------------------------------------------- // Returns the target converted to UTF8. // Return the length in bytes. int ScintillaCocoa::TargetAsUTF8(char *text) { const int targetLength = targetEnd - targetStart; if (IsUnicodeMode()) { if (text) pdoc->GetCharRange(text, targetStart, targetLength); } else { // Need to convert const CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); const std::string s = RangeText(targetStart, targetEnd); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(s.c_str()), s.length(), encoding, false); const std::string tmputf = EncodedBytesString(cfsVal, kCFStringEncodingUTF8); if (text) memcpy(text, tmputf.c_str(), tmputf.length()); CFRelease(cfsVal); return static_cast(tmputf.length()); } return targetLength; } //-------------------------------------------------------------------------------------------------- // Returns the text in the range converted to an NSString. NSString *ScintillaCocoa::RangeTextAsString(NSRange rangePositions) const { const std::string text = RangeText(static_cast(rangePositions.location), static_cast(NSMaxRange(rangePositions))); if (IsUnicodeMode()) { return [NSString stringWithUTF8String: text.c_str()]; } else { // Need to convert const CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(text.c_str()), text.length(), encoding, false); return (NSString *)cfsVal; } } //-------------------------------------------------------------------------------------------------- // Return character range of a line. NSRange ScintillaCocoa::RangeForVisibleLine(NSInteger lineVisible) { const Range posRangeLine = RangeDisplayLine(static_cast(lineVisible)); return CharactersFromPositions(NSMakeRange(posRangeLine.First(), posRangeLine.Last() - posRangeLine.First())); } //-------------------------------------------------------------------------------------------------- // Returns visible line number of a text position in characters. NSInteger ScintillaCocoa::VisibleLineForIndex(NSInteger index) { const NSRange rangePosition = PositionsFromCharacters(NSMakeRange(index, 0)); const int lineVisible = DisplayFromPosition(static_cast(rangePosition.location)); return lineVisible; } //-------------------------------------------------------------------------------------------------- // Returns a rectangle that frames the range for use by the VoiceOver cursor. NSRect ScintillaCocoa::FrameForRange(NSRange rangeCharacters) { const NSRange posRange = PositionsFromCharacters(rangeCharacters); NSUInteger rangeEnd = NSMaxRange(posRange); const bool endsWithLineEnd = rangeCharacters.length && (pdoc->GetColumn(static_cast(rangeEnd)) == 0); Point ptStart = LocationFromPosition(static_cast(posRange.location)); const PointEnd peEndRange = static_cast(peSubLineEnd|peLineEnd); Point ptEnd = LocationFromPosition(static_cast(rangeEnd), peEndRange); NSRect rect = NSMakeRect(ptStart.x, ptStart.y, ptEnd.x - ptStart.x, ptEnd.y - ptStart.y); rect.size.width += 2; // Shows the last character better if (endsWithLineEnd) { // Add a block to the right to indicate a line end is selected rect.size.width += 20; } rect.size.height += vs.lineHeight; // Adjust for margin and scroll rect.origin.x = rect.origin.x - vs.textStart + vs.fixedColumnWidth; return rect; } //-------------------------------------------------------------------------------------------------- // Translates a UTF8 string into the document encoding. // Return the length of the result in bytes. int ScintillaCocoa::EncodedFromUTF8(char *utf8, char *encoded) const { const int inputLength = (lengthForEncode >= 0) ? lengthForEncode : static_cast(strlen(utf8)); if (IsUnicodeMode()) { if (encoded) memcpy(encoded, utf8, inputLength); return inputLength; } else { // Need to convert const CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); CFStringRef cfsVal = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(utf8), inputLength, kCFStringEncodingUTF8, false); const std::string sEncoded = EncodedBytesString(cfsVal, encoding); if (encoded) memcpy(encoded, sEncoded.c_str(), sEncoded.length()); CFRelease(cfsVal); return static_cast(sEncoded.length()); } } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::SetMouseCapture(bool on) { capturedMouse = on; } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::HaveMouseCapture() { return capturedMouse; } //-------------------------------------------------------------------------------------------------- /** * Synchronously paint a rectangle of the window. */ bool ScintillaCocoa::SyncPaint(void* gc, PRectangle rc) { paintState = painting; rcPaint = rc; PRectangle rcText = GetTextRectangle(); paintingAllText = rcPaint.Contains(rcText); bool succeeded = true; Surface *sw = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (sw) { CGContextSetAllowsAntialiasing((CGContextRef)gc, vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED); CGContextSetAllowsFontSmoothing((CGContextRef)gc, vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); CGContextSetAllowsFontSubpixelPositioning((CGContextRef)gc, vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT || vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); sw->Init(gc, wMain.GetID()); Paint(sw, rc); succeeded = paintState != paintAbandoned; sw->Release(); delete sw; } paintState = notPainting; if (!succeeded) { NSView *marginView = static_cast(wMargin.GetID()); [marginView setNeedsDisplay:YES]; } return succeeded; } //-------------------------------------------------------------------------------------------------- /** * Paint the margin into the SCIMarginView space. */ void ScintillaCocoa::PaintMargin(NSRect aRect) { CGContextRef gc = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]; PRectangle rc = NSRectToPRectangle(aRect); rcPaint = rc; Surface *sw = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (sw) { CGContextSetAllowsAntialiasing(gc, vs.extraFontFlag != SC_EFF_QUALITY_NON_ANTIALIASED); CGContextSetAllowsFontSmoothing(gc, vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); CGContextSetAllowsFontSubpixelPositioning(gc, vs.extraFontFlag == SC_EFF_QUALITY_DEFAULT || vs.extraFontFlag == SC_EFF_QUALITY_LCD_OPTIMIZED); sw->Init(gc, wMargin.GetID()); PaintSelMargin(sw, rc); sw->Release(); delete sw; } } //-------------------------------------------------------------------------------------------------- /** * Prepare for drawing. * * @param rect The area that will be drawn, given in the sender's coordinate system. */ void ScintillaCocoa::WillDraw(NSRect rect) { RefreshStyleData(); PRectangle rcWillDraw = NSRectToPRectangle(rect); const int posAfterArea = PositionAfterArea(rcWillDraw); const int posAfterMax = PositionAfterMaxStyling(posAfterArea, true); pdoc->StyleToAdjustingLineDuration(posAfterMax); StartIdleStyling(posAfterMax < posAfterArea); NotifyUpdateUI(); if (WrapLines(WrapScope::wsVisible)) { // Wrap may have reduced number of lines so more lines may need to be styled const int posAfterAreaWrapped = PositionAfterArea(rcWillDraw); pdoc->EnsureStyledTo(posAfterAreaWrapped); // The wrapping process has changed the height of some lines so redraw all. Redraw(); } } //-------------------------------------------------------------------------------------------------- /** * ScrollText is empty because scrolling is handled by the NSScrollView. */ void ScintillaCocoa::ScrollText(int) { } //-------------------------------------------------------------------------------------------------- /** * Modifies the vertical scroll position to make the current top line show up as such. */ void ScintillaCocoa::SetVerticalScrollPos() { NSScrollView *scrollView = ScrollContainer(); if (scrollView) { NSClipView *clipView = [scrollView contentView]; NSRect contentRect = [clipView bounds]; [clipView scrollToPoint: NSMakePoint(contentRect.origin.x, topLine * vs.lineHeight)]; [scrollView reflectScrolledClipView:clipView]; } } //-------------------------------------------------------------------------------------------------- /** * Modifies the horizontal scroll position to match xOffset. */ void ScintillaCocoa::SetHorizontalScrollPos() { PRectangle textRect = GetTextRectangle(); int maxXOffset = scrollWidth - static_cast(textRect.Width()); if (maxXOffset < 0) maxXOffset = 0; if (xOffset > maxXOffset) xOffset = maxXOffset; NSScrollView *scrollView = ScrollContainer(); if (scrollView) { NSClipView * clipView = [scrollView contentView]; NSRect contentRect = [clipView bounds]; [clipView scrollToPoint: NSMakePoint(xOffset, contentRect.origin.y)]; [scrollView reflectScrolledClipView:clipView]; } MoveFindIndicatorWithBounce(NO); } //-------------------------------------------------------------------------------------------------- /** * Used to adjust both scrollers to reflect the current scroll range and position in the editor. * Arguments no longer used as NSScrollView handles details of scroll bar sizes. * * @param nMax Number of lines in the editor. * @param nPage Number of lines per scroll page. * @return True if there was a change, otherwise false. */ bool ScintillaCocoa::ModifyScrollBars(int nMax, int nPage) { #pragma unused(nMax, nPage) return SetScrollingSize(); } bool ScintillaCocoa::SetScrollingSize(void) { bool changes = false; SCIContentView *inner = ContentView(); if (!enteredSetScrollingSize) { enteredSetScrollingSize = true; NSScrollView *scrollView = ScrollContainer(); NSClipView *clipView = [ScrollContainer() contentView]; NSRect clipRect = [clipView bounds]; CGFloat docHeight = cs.LinesDisplayed() * vs.lineHeight; if (!endAtLastLine) docHeight += (int([scrollView bounds].size.height / vs.lineHeight)-3) * vs.lineHeight; // Allow extra space so that last scroll position places whole line at top int clipExtra = int(clipRect.size.height) % vs.lineHeight; docHeight += clipExtra; // Ensure all of clipRect covered by Scintilla drawing if (docHeight < clipRect.size.height) docHeight = clipRect.size.height; CGFloat docWidth = scrollWidth; bool showHorizontalScroll = horizontalScrollBarVisible && !Wrapping(); if (!showHorizontalScroll) docWidth = clipRect.size.width; NSRect contentRect = {{0, 0}, {docWidth, docHeight}}; NSRect contentRectNow = [inner frame]; changes = (contentRect.size.width != contentRectNow.size.width) || (contentRect.size.height != contentRectNow.size.height); if (changes) { [inner setFrame: contentRect]; } [scrollView setHasVerticalScroller: verticalScrollBarVisible]; [scrollView setHasHorizontalScroller: showHorizontalScroll]; SetVerticalScrollPos(); enteredSetScrollingSize = false; } [sciView setMarginWidth: vs.fixedColumnWidth]; return changes; } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::Resize() { SetScrollingSize(); ChangeSize(); } //-------------------------------------------------------------------------------------------------- /** * Update fields to match scroll position after receiving a notification that the user has scrolled. */ void ScintillaCocoa::UpdateForScroll() { Point ptOrigin = GetVisibleOriginInMain(); xOffset = static_cast(ptOrigin.x); int newTop = Platform::Minimum(static_cast(ptOrigin.y / vs.lineHeight), MaxScrollPos()); SetTopLine(newTop); } //-------------------------------------------------------------------------------------------------- /** * Register a delegate that will be called for notifications and commands. * This provides similar functionality to RegisterNotifyCallback but in an * Objective C way. * * @param delegate_ A pointer to an object that implements ScintillaNotificationProtocol. */ void ScintillaCocoa::SetDelegate(id delegate_) { delegate = delegate_; } //-------------------------------------------------------------------------------------------------- /** * Used to register a callback function for a given window. This is used to emulate the way * Windows notifies other controls (mainly up in the view hierarchy) about certain events. * * @param windowid A handle to a window. That value is generic and can be anything. It is passed * through to the callback. * @param callback The callback function to be used for future notifications. If NULL then no * notifications will be sent anymore. */ void ScintillaCocoa::RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc callback) { notifyObj = windowid; notifyProc = callback; } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::NotifyChange() { if (notifyProc != NULL) notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(static_cast(GetCtrlID()), SCEN_CHANGE), (uintptr_t) this); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::NotifyFocus(bool focus) { if (notifyProc != NULL) notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(static_cast(GetCtrlID()), (focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS)), (uintptr_t) this); Editor::NotifyFocus(focus); } //-------------------------------------------------------------------------------------------------- /** * Used to send a notification (as WM_NOTIFY call) to the procedure, which has been set by the call * to RegisterNotifyCallback (so it is not necessarily the parent window). * * @param scn The notification to send. */ void ScintillaCocoa::NotifyParent(SCNotification scn) { scn.nmhdr.hwndFrom = (void*) this; scn.nmhdr.idFrom = GetCtrlID(); if (notifyProc != NULL) notifyProc(notifyObj, WM_NOTIFY, GetCtrlID(), (uintptr_t) &scn); if (delegate) [delegate notification:&scn]; if (scn.nmhdr.code == SCN_UPDATEUI) { NSView *content = ContentView(); if (scn.updated & SC_UPDATE_CONTENT) { NSAccessibilityPostNotification(content, NSAccessibilityValueChangedNotification); } if (scn.updated & SC_UPDATE_SELECTION) { NSAccessibilityPostNotification(content, NSAccessibilitySelectedTextChangedNotification); } } } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::NotifyURIDropped(const char *uri) { SCNotification scn; scn.nmhdr.code = SCN_URIDROPPED; scn.text = uri; NotifyParent(scn); } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::HasSelection() { return !sel.Empty(); } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::CanUndo() { return pdoc->CanUndo(); } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::CanRedo() { return pdoc->CanRedo(); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::TimerFired(NSTimer* timer) { for (TickReason tr=tickCaret; tr<=tickPlatform; tr = static_cast(tr+1)) { if (timers[tr] == timer) { TickFor(tr); } } } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::IdleTimerFired() { bool more = Idle(); if (!more) SetIdle(false); } //-------------------------------------------------------------------------------------------------- /** * Main entry point for drawing the control. * * @param rect The area to paint, given in the sender's coordinate system. * @param gc The context we can use to paint. */ bool ScintillaCocoa::Draw(NSRect rect, CGContextRef gc) { return SyncPaint(gc, NSRectToPRectangle(rect)); } //-------------------------------------------------------------------------------------------------- /** * Helper function to translate OS X key codes to Scintilla key codes. */ static inline UniChar KeyTranslate(UniChar unicodeChar, NSEventModifierFlags modifierFlags) { switch (unicodeChar) { case NSDownArrowFunctionKey: return SCK_DOWN; case NSUpArrowFunctionKey: return SCK_UP; case NSLeftArrowFunctionKey: return SCK_LEFT; case NSRightArrowFunctionKey: return SCK_RIGHT; case NSHomeFunctionKey: return SCK_HOME; case NSEndFunctionKey: return SCK_END; case NSPageUpFunctionKey: return SCK_PRIOR; case NSPageDownFunctionKey: return SCK_NEXT; case NSDeleteFunctionKey: return SCK_DELETE; case NSInsertFunctionKey: return SCK_INSERT; case '\n': case 3: return SCK_RETURN; case 27: return SCK_ESCAPE; case '+': if (modifierFlags & NSNumericPadKeyMask) return SCK_ADD; else return unicodeChar; case '-': if (modifierFlags & NSNumericPadKeyMask) return SCK_SUBTRACT; else return unicodeChar; case '/': if (modifierFlags & NSNumericPadKeyMask) return SCK_DIVIDE; else return unicodeChar; case 127: return SCK_BACK; case '\t': case 25: // Shift tab, return to unmodified tab and handle that via modifiers. return SCK_TAB; default: return unicodeChar; } } //-------------------------------------------------------------------------------------------------- /** * Translate NSEvent modifier flags into SCI_* modifier flags. * * @param modifiers An integer bit set of NSSEvent modifier flags. * @return A set of SCI_* modifier flags. */ static int TranslateModifierFlags(NSUInteger modifiers) { // Signal Control as SCI_META return (((modifiers & NSShiftKeyMask) != 0) ? SCI_SHIFT : 0) | (((modifiers & NSCommandKeyMask) != 0) ? SCI_CTRL : 0) | (((modifiers & NSAlternateKeyMask) != 0) ? SCI_ALT : 0) | (((modifiers & NSControlKeyMask) != 0) ? SCI_META : 0); } //-------------------------------------------------------------------------------------------------- /** * Main keyboard input handling method. It is called for any key down event, including function keys, * numeric keypad input and whatnot. * * @param event The event instance associated with the key down event. * @return True if the input was handled, false otherwise. */ bool ScintillaCocoa::KeyboardInput(NSEvent* event) { // For now filter out function keys. NSString* input = [event charactersIgnoringModifiers]; bool handled = false; // Handle each entry individually. Usually we only have one entry anyway. for (size_t i = 0; i < input.length; i++) { const UniChar originalKey = [input characterAtIndex: i]; NSEventModifierFlags modifierFlags = [event modifierFlags]; UniChar key = KeyTranslate(originalKey, modifierFlags); bool consumed = false; // Consumed as command? if (KeyDownWithModifiers(key, TranslateModifierFlags(modifierFlags), &consumed)) handled = true; if (consumed) handled = true; } return handled; } //-------------------------------------------------------------------------------------------------- /** * Used to insert already processed text provided by the Cocoa text input system. */ int ScintillaCocoa::InsertText(NSString* input) { CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); std::string encoded = EncodedBytesString((CFStringRef)input, encoding); if (encoded.length() > 0) { AddCharUTF((char*) encoded.c_str(), static_cast(encoded.length()), false); } return static_cast(encoded.length()); } //-------------------------------------------------------------------------------------------------- /** * Convert from a range of characters to a range of bytes. */ NSRange ScintillaCocoa::PositionsFromCharacters(NSRange rangeCharacters) const { long start = pdoc->GetRelativePositionUTF16(0, static_cast(rangeCharacters.location)); if (start == INVALID_POSITION) start = pdoc->Length(); long end = pdoc->GetRelativePositionUTF16(static_cast(start), static_cast(rangeCharacters.length)); if (end == INVALID_POSITION) end = pdoc->Length(); return NSMakeRange(start, end - start); } //-------------------------------------------------------------------------------------------------- /** * Convert from a range of characters from a range of bytes. */ NSRange ScintillaCocoa::CharactersFromPositions(NSRange rangePositions) const { const long start = pdoc->CountUTF16(0, static_cast(rangePositions.location)); const long len = pdoc->CountUTF16(static_cast(rangePositions.location), static_cast(NSMaxRange(rangePositions))); return NSMakeRange(start, len); } //-------------------------------------------------------------------------------------------------- /** * Used to ensure that only one selection is active for input composition as composition * does not support multi-typing. */ void ScintillaCocoa::SelectOnlyMainSelection() { sel.SetSelection(sel.RangeMain()); Redraw(); } //-------------------------------------------------------------------------------------------------- /** * Convert virtual space before selection into real space. */ void ScintillaCocoa::ConvertSelectionVirtualSpace() { ClearBeforeTentativeStart(); } //-------------------------------------------------------------------------------------------------- /** * Erase all selected text and return whether the selection is now empty. * The selection may not be empty if the selection contained protected text. */ bool ScintillaCocoa::ClearAllSelections() { ClearSelection(true); return sel.Empty(); } //-------------------------------------------------------------------------------------------------- /** * Start composing for IME. */ void ScintillaCocoa::CompositionStart() { if (!sel.Empty()) { NSLog(@"Selection not empty when starting composition"); } pdoc->TentativeStart(); } //-------------------------------------------------------------------------------------------------- /** * Commit the IME text. */ void ScintillaCocoa::CompositionCommit() { pdoc->TentativeCommit(); pdoc->decorations.SetCurrentIndicator(INDIC_IME); pdoc->DecorationFillRange(0, 0, pdoc->Length()); } //-------------------------------------------------------------------------------------------------- /** * Remove the IME text. */ void ScintillaCocoa::CompositionUndo() { pdoc->TentativeUndo(); } //-------------------------------------------------------------------------------------------------- /** * When switching documents discard any incomplete character composition state as otherwise tries to * act on the new document. */ void ScintillaCocoa::SetDocPointer(Document *document) { // Drop input composition. NSTextInputContext *inctxt = [NSTextInputContext currentInputContext]; [inctxt discardMarkedText]; SCIContentView *inner = ContentView(); [inner unmarkText]; Editor::SetDocPointer(document); } //-------------------------------------------------------------------------------------------------- /** * Called by the owning view when the mouse pointer enters the control. */ void ScintillaCocoa::MouseEntered(NSEvent* event) { if (!HaveMouseCapture()) { WndProc(SCI_SETCURSOR, (long int)SC_CURSORNORMAL, 0); // Mouse location is given in screen coordinates and might also be outside of our bounds. Point location = ConvertPoint([event locationInWindow]); ButtonMove(location); } } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::MouseExited(NSEvent* /* event */) { // Nothing to do here. } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::MouseDown(NSEvent* event) { Point location = ConvertPoint([event locationInWindow]); NSTimeInterval time = [event timestamp]; bool command = ([event modifierFlags] & NSCommandKeyMask) != 0; bool shift = ([event modifierFlags] & NSShiftKeyMask) != 0; bool alt = ([event modifierFlags] & NSAlternateKeyMask) != 0; ButtonDown(Point(location.x, location.y), (int) (time * 1000), shift, command, alt); } void ScintillaCocoa::RightMouseDown(NSEvent *event) { Point location = ConvertPoint([event locationInWindow]); NSTimeInterval time = [event timestamp]; bool command = ([event modifierFlags] & NSCommandKeyMask) != 0; bool shift = ([event modifierFlags] & NSShiftKeyMask) != 0; bool alt = ([event modifierFlags] & NSAlternateKeyMask) != 0; RightButtonDownWithModifiers(Point(location.x, location.y), (int) (time * 1000), ModifierFlags(shift, command, alt)); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::MouseMove(NSEvent* event) { lastMouseEvent = event; ButtonMoveWithModifiers(ConvertPoint([event locationInWindow]), TranslateModifierFlags([event modifierFlags])); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::MouseUp(NSEvent* event) { NSTimeInterval time = [event timestamp]; bool control = ([event modifierFlags] & NSControlKeyMask) != 0; ButtonUp(ConvertPoint([event locationInWindow]), (int) (time * 1000), control); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::MouseWheel(NSEvent* event) { bool command = ([event modifierFlags] & NSCommandKeyMask) != 0; int dY = 0; // In order to make scrolling with larger offset smoother we scroll less lines the larger the // delta value is. if ([event deltaY] < 0) dY = -(int) sqrt(-10.0 * [event deltaY]); else dY = (int) sqrt(10.0 * [event deltaY]); if (command) { // Zoom! We play with the font sizes in the styles. // Number of steps/line is ignored, we just care if sizing up or down. if (dY > 0.5) KeyCommand(SCI_ZOOMIN); else if (dY < -0.5) KeyCommand(SCI_ZOOMOUT); } else { } } //-------------------------------------------------------------------------------------------------- // Helper methods for NSResponder actions. void ScintillaCocoa::SelectAll() { Editor::SelectAll(); } void ScintillaCocoa::DeleteBackward() { KeyDown(SCK_BACK, false, false, false, nil); } void ScintillaCocoa::Cut() { Editor::Cut(); } void ScintillaCocoa::Undo() { Editor::Undo(); } void ScintillaCocoa::Redo() { Editor::Redo(); } //-------------------------------------------------------------------------------------------------- bool ScintillaCocoa::ShouldDisplayPopupOnMargin() { return displayPopupMenu == SC_POPUP_ALL; } bool ScintillaCocoa::ShouldDisplayPopupOnText() { return displayPopupMenu == SC_POPUP_ALL || displayPopupMenu == SC_POPUP_TEXT; } /** * Creates and returns a popup menu, which is then displayed by the Cocoa framework. */ NSMenu* ScintillaCocoa::CreateContextMenu(NSEvent* /* event */) { // Call ScintillaBase to create the context menu. ContextMenu(Point(0, 0)); return static_cast(popup.GetID()); } //-------------------------------------------------------------------------------------------------- /** * An intermediate function to forward context menu commands from the menu action handler to * scintilla. */ void ScintillaCocoa::HandleCommand(NSInteger command) { Command(static_cast(command)); } //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::ActiveStateChanged(bool isActive) { // If the window is being deactivated, lose the focus and turn off the ticking if (!isActive) { DropCaret(); //SetFocusState( false ); FineTickerCancel(tickCaret); } else { ShowCaretAtCurrentPosition(); } } //-------------------------------------------------------------------------------------------------- /** * When the window is about to move, the calltip and autcoimpletion stay in the same spot, * so cancel them. */ void ScintillaCocoa::WindowWillMove() { AutoCompleteCancel(); ct.CallTipCancel(); } // If building with old SDK, need to define version number for 10.8 #ifndef NSAppKitVersionNumber10_8 #define NSAppKitVersionNumber10_8 1187 #endif //-------------------------------------------------------------------------------------------------- void ScintillaCocoa::ShowFindIndicatorForRange(NSRange charRange, BOOL retaining) { #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 NSView *content = ContentView(); if (!layerFindIndicator) { layerFindIndicator = [[FindHighlightLayer alloc] init]; [content setWantsLayer: YES]; layerFindIndicator.geometryFlipped = content.layer.geometryFlipped; if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_8) { // Content layer is unflipped on 10.9, but the indicator shows wrong unless flipped layerFindIndicator.geometryFlipped = YES; } [[content layer] addSublayer:layerFindIndicator]; } [layerFindIndicator removeAnimationForKey:@"animateFound"]; if (charRange.length) { CFStringEncoding encoding = EncodingFromCharacterSet(IsUnicodeMode(), vs.styles[STYLE_DEFAULT].characterSet); std::vector buffer(charRange.length); pdoc->GetCharRange(&buffer[0], static_cast(charRange.location), static_cast(charRange.length)); CFStringRef cfsFind = CFStringCreateWithBytes(kCFAllocatorDefault, reinterpret_cast(&buffer[0]), charRange.length, encoding, false); layerFindIndicator.sFind = (NSString *)cfsFind; if (cfsFind) CFRelease(cfsFind); layerFindIndicator.retaining = retaining; layerFindIndicator.positionFind = static_cast(charRange.location); // SCI_GETSTYLEAT reports a signed byte but want an unsigned to index into styles const char styleByte = static_cast(WndProc(SCI_GETSTYLEAT, charRange.location, 0)); const long style = static_cast(styleByte); std::vector bufferFontName(WndProc(SCI_STYLEGETFONT, style, 0) + 1); WndProc(SCI_STYLEGETFONT, style, (sptr_t)&bufferFontName[0]); layerFindIndicator.sFont = [NSString stringWithUTF8String: &bufferFontName[0]]; layerFindIndicator.fontSize = WndProc(SCI_STYLEGETSIZEFRACTIONAL, style, 0) / (float)SC_FONT_SIZE_MULTIPLIER; layerFindIndicator.widthText = WndProc(SCI_POINTXFROMPOSITION, 0, charRange.location + charRange.length) - WndProc(SCI_POINTXFROMPOSITION, 0, charRange.location); layerFindIndicator.heightLine = WndProc(SCI_TEXTHEIGHT, 0, 0); MoveFindIndicatorWithBounce(YES); } else { [layerFindIndicator hideMatch]; } #endif } void ScintillaCocoa::MoveFindIndicatorWithBounce(BOOL bounce) { #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 if (layerFindIndicator) { CGPoint ptText = CGPointMake( WndProc(SCI_POINTXFROMPOSITION, 0, layerFindIndicator.positionFind), WndProc(SCI_POINTYFROMPOSITION, 0, layerFindIndicator.positionFind)); ptText.x = ptText.x - vs.fixedColumnWidth + xOffset; ptText.y += topLine * vs.lineHeight; if (!layerFindIndicator.geometryFlipped) { NSView *content = ContentView(); ptText.y = content.bounds.size.height - ptText.y; } [layerFindIndicator animateMatch:ptText bounce:bounce]; } #endif } void ScintillaCocoa::HideFindIndicator() { #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 if (layerFindIndicator) { [layerFindIndicator hideMatch]; } #endif } codequery-0.21.0/scintilla/cocoa/ScintillaFramework/000077500000000000000000000000001310136352400224365ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/English.lproj/000077500000000000000000000000001310136352400251545ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/English.lproj/InfoPlist.strings000066400000000000000000000001341310136352400304740ustar00rootroot00000000000000ÿþ/* Localized versions of Info.plist keys */ codequery-0.21.0/scintilla/cocoa/ScintillaFramework/Info.plist000066400000000000000000000015101310136352400244030ustar00rootroot00000000000000 CFBundleDevelopmentRegion English CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIconFile CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType FMWK CFBundleShortVersionString 3.7.4 CFBundleSignature ???? CFBundleVersion 3.7.4 NSPrincipalClass codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/000077500000000000000000000000001310136352400302325ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/project.pbxproj000066400000000000000000003356641310136352400333270ustar00rootroot00000000000000// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1100F1EB178E393200105727 /* CaseConvert.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 1100F1E6178E393200105727 /* CaseConvert.cxx */; }; 1100F1EC178E393200105727 /* CaseConvert.h in Headers */ = {isa = PBXBuildFile; fileRef = 1100F1E7178E393200105727 /* CaseConvert.h */; }; 1100F1ED178E393200105727 /* CaseFolder.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 1100F1E8178E393200105727 /* CaseFolder.cxx */; }; 1100F1EE178E393200105727 /* CaseFolder.h in Headers */ = {isa = PBXBuildFile; fileRef = 1100F1E9178E393200105727 /* CaseFolder.h */; }; 1100F1EF178E393200105727 /* UnicodeFromUTF8.h in Headers */ = {isa = PBXBuildFile; fileRef = 1100F1EA178E393200105727 /* UnicodeFromUTF8.h */; }; 1102C31C169FB49300DC16AB /* LexLaTeX.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 1102C31B169FB49300DC16AB /* LexLaTeX.cxx */; }; 11126B8214CD3A6200803C49 /* LexAVS.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11126B8114CD3A6200803C49 /* LexAVS.cxx */; }; 1114D6CB1602A951001DC345 /* LexPO.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 1114D6CA1602A951001DC345 /* LexPO.cxx */; }; 114B6F0D11FA7526004FB6AB /* LexAbaqus.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EBE11FA7526004FB6AB /* LexAbaqus.cxx */; }; 114B6F0E11FA7526004FB6AB /* LexAda.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EBF11FA7526004FB6AB /* LexAda.cxx */; }; 114B6F0F11FA7526004FB6AB /* LexAPDL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC011FA7526004FB6AB /* LexAPDL.cxx */; }; 114B6F1011FA7526004FB6AB /* LexAsm.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC111FA7526004FB6AB /* LexAsm.cxx */; }; 114B6F1111FA7526004FB6AB /* LexAsn1.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC211FA7526004FB6AB /* LexAsn1.cxx */; }; 114B6F1211FA7526004FB6AB /* LexASY.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC311FA7526004FB6AB /* LexASY.cxx */; }; 114B6F1311FA7526004FB6AB /* LexAU3.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC411FA7526004FB6AB /* LexAU3.cxx */; }; 114B6F1411FA7526004FB6AB /* LexAVE.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC511FA7526004FB6AB /* LexAVE.cxx */; }; 114B6F1511FA7526004FB6AB /* LexBaan.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC611FA7526004FB6AB /* LexBaan.cxx */; }; 114B6F1611FA7526004FB6AB /* LexBash.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC711FA7526004FB6AB /* LexBash.cxx */; }; 114B6F1711FA7526004FB6AB /* LexBasic.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC811FA7526004FB6AB /* LexBasic.cxx */; }; 114B6F1811FA7526004FB6AB /* LexBullant.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EC911FA7526004FB6AB /* LexBullant.cxx */; }; 114B6F1911FA7526004FB6AB /* LexCaml.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECA11FA7526004FB6AB /* LexCaml.cxx */; }; 114B6F1A11FA7526004FB6AB /* LexCLW.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECB11FA7526004FB6AB /* LexCLW.cxx */; }; 114B6F1B11FA7526004FB6AB /* LexCmake.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECC11FA7526004FB6AB /* LexCmake.cxx */; }; 114B6F1C11FA7526004FB6AB /* LexCOBOL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECD11FA7526004FB6AB /* LexCOBOL.cxx */; }; 114B6F1D11FA7526004FB6AB /* LexConf.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECE11FA7526004FB6AB /* LexConf.cxx */; }; 114B6F1E11FA7526004FB6AB /* LexCPP.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ECF11FA7526004FB6AB /* LexCPP.cxx */; }; 114B6F1F11FA7526004FB6AB /* LexCrontab.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED011FA7526004FB6AB /* LexCrontab.cxx */; }; 114B6F2011FA7526004FB6AB /* LexCsound.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED111FA7526004FB6AB /* LexCsound.cxx */; }; 114B6F2111FA7526004FB6AB /* LexCSS.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED211FA7526004FB6AB /* LexCSS.cxx */; }; 114B6F2211FA7526004FB6AB /* LexD.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED311FA7526004FB6AB /* LexD.cxx */; }; 114B6F2311FA7526004FB6AB /* LexEiffel.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED411FA7526004FB6AB /* LexEiffel.cxx */; }; 114B6F2411FA7526004FB6AB /* LexErlang.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED511FA7526004FB6AB /* LexErlang.cxx */; }; 114B6F2511FA7526004FB6AB /* LexEScript.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED611FA7526004FB6AB /* LexEScript.cxx */; }; 114B6F2611FA7526004FB6AB /* LexFlagship.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED711FA7526004FB6AB /* LexFlagship.cxx */; }; 114B6F2711FA7526004FB6AB /* LexForth.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED811FA7526004FB6AB /* LexForth.cxx */; }; 114B6F2811FA7526004FB6AB /* LexFortran.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6ED911FA7526004FB6AB /* LexFortran.cxx */; }; 114B6F2911FA7526004FB6AB /* LexGAP.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDA11FA7526004FB6AB /* LexGAP.cxx */; }; 114B6F2A11FA7526004FB6AB /* LexGui4Cli.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDB11FA7526004FB6AB /* LexGui4Cli.cxx */; }; 114B6F2B11FA7526004FB6AB /* LexHaskell.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDC11FA7526004FB6AB /* LexHaskell.cxx */; }; 114B6F2C11FA7526004FB6AB /* LexHTML.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDD11FA7526004FB6AB /* LexHTML.cxx */; }; 114B6F2D11FA7526004FB6AB /* LexInno.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDE11FA7526004FB6AB /* LexInno.cxx */; }; 114B6F2E11FA7526004FB6AB /* LexKix.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EDF11FA7526004FB6AB /* LexKix.cxx */; }; 114B6F2F11FA7526004FB6AB /* LexLisp.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE011FA7526004FB6AB /* LexLisp.cxx */; }; 114B6F3011FA7526004FB6AB /* LexLout.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE111FA7526004FB6AB /* LexLout.cxx */; }; 114B6F3111FA7526004FB6AB /* LexLua.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE211FA7526004FB6AB /* LexLua.cxx */; }; 114B6F3211FA7526004FB6AB /* LexMagik.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE311FA7526004FB6AB /* LexMagik.cxx */; }; 114B6F3311FA7526004FB6AB /* LexMarkdown.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE411FA7526004FB6AB /* LexMarkdown.cxx */; }; 114B6F3411FA7526004FB6AB /* LexMatlab.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE511FA7526004FB6AB /* LexMatlab.cxx */; }; 114B6F3511FA7526004FB6AB /* LexMetapost.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE611FA7526004FB6AB /* LexMetapost.cxx */; }; 114B6F3611FA7526004FB6AB /* LexMMIXAL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE711FA7526004FB6AB /* LexMMIXAL.cxx */; }; 114B6F3711FA7526004FB6AB /* LexMPT.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE811FA7526004FB6AB /* LexMPT.cxx */; }; 114B6F3811FA7526004FB6AB /* LexMSSQL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EE911FA7526004FB6AB /* LexMSSQL.cxx */; }; 114B6F3911FA7526004FB6AB /* LexMySQL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EEA11FA7526004FB6AB /* LexMySQL.cxx */; }; 114B6F3A11FA7526004FB6AB /* LexNimrod.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EEB11FA7526004FB6AB /* LexNimrod.cxx */; }; 114B6F3B11FA7526004FB6AB /* LexNsis.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EEC11FA7526004FB6AB /* LexNsis.cxx */; }; 114B6F3C11FA7526004FB6AB /* LexOpal.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EED11FA7526004FB6AB /* LexOpal.cxx */; }; 114B6F3E11FA7526004FB6AB /* LexPascal.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EEF11FA7526004FB6AB /* LexPascal.cxx */; }; 114B6F3F11FA7526004FB6AB /* LexPB.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF011FA7526004FB6AB /* LexPB.cxx */; }; 114B6F4011FA7526004FB6AB /* LexPerl.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF111FA7526004FB6AB /* LexPerl.cxx */; }; 114B6F4111FA7526004FB6AB /* LexPLM.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF211FA7526004FB6AB /* LexPLM.cxx */; }; 114B6F4211FA7526004FB6AB /* LexPOV.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF311FA7526004FB6AB /* LexPOV.cxx */; }; 114B6F4311FA7526004FB6AB /* LexPowerPro.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF411FA7526004FB6AB /* LexPowerPro.cxx */; }; 114B6F4411FA7526004FB6AB /* LexPowerShell.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF511FA7526004FB6AB /* LexPowerShell.cxx */; }; 114B6F4511FA7526004FB6AB /* LexProgress.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF611FA7526004FB6AB /* LexProgress.cxx */; }; 114B6F4611FA7526004FB6AB /* LexPS.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF711FA7526004FB6AB /* LexPS.cxx */; }; 114B6F4711FA7526004FB6AB /* LexPython.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF811FA7526004FB6AB /* LexPython.cxx */; }; 114B6F4811FA7526004FB6AB /* LexR.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EF911FA7526004FB6AB /* LexR.cxx */; }; 114B6F4911FA7526004FB6AB /* LexRebol.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFA11FA7526004FB6AB /* LexRebol.cxx */; }; 114B6F4A11FA7526004FB6AB /* LexRuby.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFB11FA7526004FB6AB /* LexRuby.cxx */; }; 114B6F4B11FA7526004FB6AB /* LexScriptol.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFC11FA7526004FB6AB /* LexScriptol.cxx */; }; 114B6F4C11FA7526004FB6AB /* LexSmalltalk.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFD11FA7526004FB6AB /* LexSmalltalk.cxx */; }; 114B6F4D11FA7526004FB6AB /* LexSML.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFE11FA7526004FB6AB /* LexSML.cxx */; }; 114B6F4E11FA7526004FB6AB /* LexSorcus.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6EFF11FA7526004FB6AB /* LexSorcus.cxx */; }; 114B6F4F11FA7526004FB6AB /* LexSpecman.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0011FA7526004FB6AB /* LexSpecman.cxx */; }; 114B6F5011FA7526004FB6AB /* LexSpice.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0111FA7526004FB6AB /* LexSpice.cxx */; }; 114B6F5111FA7526004FB6AB /* LexSQL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0211FA7526004FB6AB /* LexSQL.cxx */; }; 114B6F5211FA7526004FB6AB /* LexTACL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0311FA7526004FB6AB /* LexTACL.cxx */; }; 114B6F5311FA7526004FB6AB /* LexTADS3.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0411FA7526004FB6AB /* LexTADS3.cxx */; }; 114B6F5411FA7526004FB6AB /* LexTAL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0511FA7526004FB6AB /* LexTAL.cxx */; }; 114B6F5511FA7526004FB6AB /* LexTCL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0611FA7526004FB6AB /* LexTCL.cxx */; }; 114B6F5611FA7526004FB6AB /* LexTeX.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0711FA7526004FB6AB /* LexTeX.cxx */; }; 114B6F5711FA7526004FB6AB /* LexTxt2tags.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0811FA7526004FB6AB /* LexTxt2tags.cxx */; }; 114B6F5811FA7526004FB6AB /* LexVB.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0911FA7526004FB6AB /* LexVB.cxx */; }; 114B6F5911FA7526004FB6AB /* LexVerilog.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0A11FA7526004FB6AB /* LexVerilog.cxx */; }; 114B6F5A11FA7526004FB6AB /* LexVHDL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0B11FA7526004FB6AB /* LexVHDL.cxx */; }; 114B6F5B11FA7526004FB6AB /* LexYAML.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F0C11FA7526004FB6AB /* LexYAML.cxx */; }; 114B6F7711FA7598004FB6AB /* AutoComplete.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6011FA7597004FB6AB /* AutoComplete.cxx */; }; 114B6F7811FA7598004FB6AB /* CallTip.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6111FA7597004FB6AB /* CallTip.cxx */; }; 114B6F7911FA7598004FB6AB /* Catalogue.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6211FA7597004FB6AB /* Catalogue.cxx */; }; 114B6F7A11FA7598004FB6AB /* CellBuffer.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6311FA7597004FB6AB /* CellBuffer.cxx */; }; 114B6F7B11FA7598004FB6AB /* CharClassify.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6411FA7597004FB6AB /* CharClassify.cxx */; }; 114B6F7C11FA7598004FB6AB /* ContractionState.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6511FA7597004FB6AB /* ContractionState.cxx */; }; 114B6F7D11FA7598004FB6AB /* Decoration.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6611FA7597004FB6AB /* Decoration.cxx */; }; 114B6F7E11FA7598004FB6AB /* Document.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6711FA7597004FB6AB /* Document.cxx */; }; 114B6F7F11FA7598004FB6AB /* Editor.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6811FA7597004FB6AB /* Editor.cxx */; }; 114B6F8011FA7598004FB6AB /* ExternalLexer.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6911FA7598004FB6AB /* ExternalLexer.cxx */; }; 114B6F8111FA7598004FB6AB /* Indicator.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6A11FA7598004FB6AB /* Indicator.cxx */; }; 114B6F8211FA7598004FB6AB /* KeyMap.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6B11FA7598004FB6AB /* KeyMap.cxx */; }; 114B6F8311FA7598004FB6AB /* LineMarker.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6C11FA7598004FB6AB /* LineMarker.cxx */; }; 114B6F8411FA7598004FB6AB /* PerLine.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6D11FA7598004FB6AB /* PerLine.cxx */; }; 114B6F8511FA7598004FB6AB /* PositionCache.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6E11FA7598004FB6AB /* PositionCache.cxx */; }; 114B6F8611FA7598004FB6AB /* RESearch.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F6F11FA7598004FB6AB /* RESearch.cxx */; }; 114B6F8711FA7598004FB6AB /* RunStyles.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7011FA7598004FB6AB /* RunStyles.cxx */; }; 114B6F8811FA7598004FB6AB /* ScintillaBase.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7111FA7598004FB6AB /* ScintillaBase.cxx */; }; 114B6F8911FA7598004FB6AB /* Selection.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7211FA7598004FB6AB /* Selection.cxx */; }; 114B6F8A11FA7598004FB6AB /* Style.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7311FA7598004FB6AB /* Style.cxx */; }; 114B6F8B11FA7598004FB6AB /* UniConversion.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7411FA7598004FB6AB /* UniConversion.cxx */; }; 114B6F8C11FA7598004FB6AB /* ViewStyle.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7511FA7598004FB6AB /* ViewStyle.cxx */; }; 114B6F8D11FA7598004FB6AB /* XPM.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F7611FA7598004FB6AB /* XPM.cxx */; }; 114B6F9711FA75BE004FB6AB /* Accessor.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F8E11FA75BE004FB6AB /* Accessor.cxx */; }; 114B6F9811FA75BE004FB6AB /* CharacterSet.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F8F11FA75BE004FB6AB /* CharacterSet.cxx */; }; 114B6F9911FA75BE004FB6AB /* LexerBase.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9011FA75BE004FB6AB /* LexerBase.cxx */; }; 114B6F9A11FA75BE004FB6AB /* LexerModule.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9111FA75BE004FB6AB /* LexerModule.cxx */; }; 114B6F9B11FA75BE004FB6AB /* LexerNoExceptions.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9211FA75BE004FB6AB /* LexerNoExceptions.cxx */; }; 114B6F9C11FA75BE004FB6AB /* LexerSimple.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9311FA75BE004FB6AB /* LexerSimple.cxx */; }; 114B6F9D11FA75BE004FB6AB /* PropSetSimple.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9411FA75BE004FB6AB /* PropSetSimple.cxx */; }; 114B6F9E11FA75BE004FB6AB /* StyleContext.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9511FA75BE004FB6AB /* StyleContext.cxx */; }; 114B6F9F11FA75BE004FB6AB /* WordList.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 114B6F9611FA75BE004FB6AB /* WordList.cxx */; }; 114B6FA111FA75DB004FB6AB /* ILexer.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA011FA75DB004FB6AB /* ILexer.h */; settings = {ATTRIBUTES = (Public, ); }; }; 114B6FBD11FA7623004FB6AB /* AutoComplete.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA211FA7623004FB6AB /* AutoComplete.h */; }; 114B6FBE11FA7623004FB6AB /* CallTip.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA311FA7623004FB6AB /* CallTip.h */; }; 114B6FBF11FA7623004FB6AB /* Catalogue.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA411FA7623004FB6AB /* Catalogue.h */; }; 114B6FC011FA7623004FB6AB /* CellBuffer.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA511FA7623004FB6AB /* CellBuffer.h */; }; 114B6FC111FA7623004FB6AB /* CharClassify.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA611FA7623004FB6AB /* CharClassify.h */; }; 114B6FC211FA7623004FB6AB /* ContractionState.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA711FA7623004FB6AB /* ContractionState.h */; }; 114B6FC311FA7623004FB6AB /* Decoration.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA811FA7623004FB6AB /* Decoration.h */; }; 114B6FC411FA7623004FB6AB /* Document.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FA911FA7623004FB6AB /* Document.h */; }; 114B6FC511FA7623004FB6AB /* Editor.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAA11FA7623004FB6AB /* Editor.h */; }; 114B6FC611FA7623004FB6AB /* ExternalLexer.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAB11FA7623004FB6AB /* ExternalLexer.h */; }; 114B6FC711FA7623004FB6AB /* FontQuality.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAC11FA7623004FB6AB /* FontQuality.h */; }; 114B6FC811FA7623004FB6AB /* Indicator.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAD11FA7623004FB6AB /* Indicator.h */; }; 114B6FC911FA7623004FB6AB /* KeyMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAE11FA7623004FB6AB /* KeyMap.h */; }; 114B6FCA11FA7623004FB6AB /* LineMarker.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FAF11FA7623004FB6AB /* LineMarker.h */; }; 114B6FCB11FA7623004FB6AB /* Partitioning.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB011FA7623004FB6AB /* Partitioning.h */; }; 114B6FCC11FA7623004FB6AB /* PerLine.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB111FA7623004FB6AB /* PerLine.h */; }; 114B6FCD11FA7623004FB6AB /* PositionCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB211FA7623004FB6AB /* PositionCache.h */; }; 114B6FCE11FA7623004FB6AB /* RESearch.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB311FA7623004FB6AB /* RESearch.h */; }; 114B6FCF11FA7623004FB6AB /* RunStyles.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB411FA7623004FB6AB /* RunStyles.h */; }; 114B6FD011FA7623004FB6AB /* ScintillaBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB511FA7623004FB6AB /* ScintillaBase.h */; }; 114B6FD111FA7623004FB6AB /* Selection.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB611FA7623004FB6AB /* Selection.h */; }; 114B6FD211FA7623004FB6AB /* SplitVector.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB711FA7623004FB6AB /* SplitVector.h */; }; 114B6FD311FA7623004FB6AB /* Style.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FB811FA7623004FB6AB /* Style.h */; }; 114B6FD511FA7623004FB6AB /* UniConversion.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FBA11FA7623004FB6AB /* UniConversion.h */; }; 114B6FD611FA7623004FB6AB /* ViewStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FBB11FA7623004FB6AB /* ViewStyle.h */; }; 114B6FD711FA7623004FB6AB /* XPM.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FBC11FA7623004FB6AB /* XPM.h */; }; 114B6FE311FA7645004FB6AB /* Accessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FD811FA7645004FB6AB /* Accessor.h */; }; 114B6FE411FA7645004FB6AB /* CharacterSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FD911FA7645004FB6AB /* CharacterSet.h */; }; 114B6FE511FA7645004FB6AB /* LexAccessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDA11FA7645004FB6AB /* LexAccessor.h */; }; 114B6FE611FA7645004FB6AB /* LexerBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDB11FA7645004FB6AB /* LexerBase.h */; }; 114B6FE711FA7645004FB6AB /* LexerModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDC11FA7645004FB6AB /* LexerModule.h */; }; 114B6FE811FA7645004FB6AB /* LexerNoExceptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDD11FA7645004FB6AB /* LexerNoExceptions.h */; }; 114B6FE911FA7645004FB6AB /* LexerSimple.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDE11FA7645004FB6AB /* LexerSimple.h */; }; 114B6FEA11FA7645004FB6AB /* OptionSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FDF11FA7645004FB6AB /* OptionSet.h */; }; 114B6FEB11FA7645004FB6AB /* PropSetSimple.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FE011FA7645004FB6AB /* PropSetSimple.h */; }; 114B6FEC11FA7645004FB6AB /* StyleContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FE111FA7645004FB6AB /* StyleContext.h */; }; 114B6FED11FA7645004FB6AB /* WordList.h in Headers */ = {isa = PBXBuildFile; fileRef = 114B6FE211FA7645004FB6AB /* WordList.h */; }; 1152A77315313E58000D4E1A /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1152A77215313E58000D4E1A /* QuartzCore.framework */; }; 11594BE9155B91DF0099E1FA /* LexOScript.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11594BE7155B91DF0099E1FA /* LexOScript.cxx */; }; 11594BEA155B91DF0099E1FA /* LexVisualProlog.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11594BE8155B91DF0099E1FA /* LexVisualProlog.cxx */; }; 1160E0381803651C00BCEBCB /* LexRust.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 1160E0371803651C00BCEBCB /* LexRust.cxx */; }; 117ACE9114A29A1E002876F9 /* LexTCMD.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 117ACE9014A29A1E002876F9 /* LexTCMD.cxx */; }; 119FF1BF13C9D1820007CE42 /* QuartzTextStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = 119FF1BE13C9D1820007CE42 /* QuartzTextStyle.h */; }; 11A0A8A1148602DF0018D143 /* LexCoffeeScript.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11A0A8A0148602DF0018D143 /* LexCoffeeScript.cxx */; }; 11BB124D12FF9C1300F6BCF7 /* LexModula.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11BB124C12FF9C1300F6BCF7 /* LexModula.cxx */; }; 11BEB6A214EF189600BDE92A /* LexECL.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11BEB6A114EF189600BDE92A /* LexECL.cxx */; }; 11F35FDB12AEFAF100F0236D /* LexA68k.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11F35FDA12AEFAF100F0236D /* LexA68k.cxx */; }; 11FBA39D17817DA00048C071 /* CharacterCategory.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11FBA39B17817DA00048C071 /* CharacterCategory.cxx */; }; 11FBA39E17817DA00048C071 /* CharacterCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 11FBA39C17817DA00048C071 /* CharacterCategory.h */; }; 11FDAEB7174E1A9800FA161B /* LexSTTXT.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11FDAEB6174E1A9700FA161B /* LexSTTXT.cxx */; }; 11FDD0E017C480D4001541B9 /* LexKVIrc.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11FDD0DF17C480D4001541B9 /* LexKVIrc.cxx */; }; 11FF3FE21810EB3900E13F13 /* LexDMAP.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 11FF3FE11810EB3900E13F13 /* LexDMAP.cxx */; }; 2744E5A40FC168A100E85C33 /* InfoBar.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E59D0FC168A100E85C33 /* InfoBar.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2744E5AA0FC168A100E85C33 /* ScintillaView.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E5A30FC168A100E85C33 /* ScintillaView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2744E5AC0FC168B200E85C33 /* InfoBarCommunicator.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E5AB0FC168B200E85C33 /* InfoBarCommunicator.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2744E5B20FC168C500E85C33 /* InfoBar.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2744E5AD0FC168C500E85C33 /* InfoBar.mm */; }; 2744E5B30FC168C500E85C33 /* PlatCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2744E5AE0FC168C500E85C33 /* PlatCocoa.mm */; }; 2744E5B50FC168C500E85C33 /* ScintillaCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2744E5B00FC168C500E85C33 /* ScintillaCocoa.mm */; }; 2744E5B60FC168C500E85C33 /* ScintillaView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2744E5B10FC168C500E85C33 /* ScintillaView.mm */; }; 2791F3C60FC19F71009DBCF9 /* PlatCocoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E59E0FC168A100E85C33 /* PlatCocoa.h */; }; 2791F3C70FC19F71009DBCF9 /* Platform.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E4850FC1678600E85C33 /* Platform.h */; }; 2791F3C80FC19F71009DBCF9 /* SciLexer.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E4870FC1678600E85C33 /* SciLexer.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2791F3C90FC19F71009DBCF9 /* Scintilla.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E4880FC1678600E85C33 /* Scintilla.h */; settings = {ATTRIBUTES = (Public, ); }; }; 2791F3E00FC1A390009DBCF9 /* ScintillaCocoa.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E5A20FC168A100E85C33 /* ScintillaCocoa.h */; }; 2791F3E30FC1A3AE009DBCF9 /* QuartzTextLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E59F0FC168A100E85C33 /* QuartzTextLayout.h */; }; 2791F3E40FC1A3AE009DBCF9 /* QuartzTextStyleAttribute.h in Headers */ = {isa = PBXBuildFile; fileRef = 2744E5A00FC168A100E85C33 /* QuartzTextStyleAttribute.h */; }; 27FEF4540FC1B413005E115A /* info_bar_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = 27FEF4510FC1B413005E115A /* info_bar_bg.png */; }; 27FEF4550FC1B413005E115A /* mac_cursor_busy.png in Resources */ = {isa = PBXBuildFile; fileRef = 27FEF4520FC1B413005E115A /* mac_cursor_busy.png */; }; 27FEF4560FC1B413005E115A /* mac_cursor_flipped.png in Resources */ = {isa = PBXBuildFile; fileRef = 27FEF4530FC1B413005E115A /* mac_cursor_flipped.png */; }; 280056FB188DDD2C00F200AE /* SparseState.h in Headers */ = {isa = PBXBuildFile; fileRef = 280056F8188DDD2C00F200AE /* SparseState.h */; }; 280056FC188DDD2C00F200AE /* StringCopy.h in Headers */ = {isa = PBXBuildFile; fileRef = 280056F9188DDD2C00F200AE /* StringCopy.h */; }; 280056FD188DDD2C00F200AE /* SubStyles.h in Headers */ = {isa = PBXBuildFile; fileRef = 280056FA188DDD2C00F200AE /* SubStyles.h */; }; 28064A05190F12E100E6E47F /* LexDMIS.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28064A04190F12E100E6E47F /* LexDMIS.cxx */; }; 28A067111A36B42600B4966A /* LexHex.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28A067101A36B42600B4966A /* LexHex.cxx */; }; 28A1DD51196BE0CA006EFCDD /* EditModel.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28A1DD4E196BE0CA006EFCDD /* EditModel.cxx */; }; 28A1DD52196BE0CA006EFCDD /* EditView.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28A1DD4F196BE0CA006EFCDD /* EditView.cxx */; }; 28A1DD53196BE0CA006EFCDD /* MarginView.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28A1DD50196BE0CA006EFCDD /* MarginView.cxx */; }; 28A1DD57196BE0ED006EFCDD /* EditModel.h in Headers */ = {isa = PBXBuildFile; fileRef = 28A1DD54196BE0ED006EFCDD /* EditModel.h */; }; 28A1DD58196BE0ED006EFCDD /* EditView.h in Headers */ = {isa = PBXBuildFile; fileRef = 28A1DD55196BE0ED006EFCDD /* EditView.h */; }; 28A1DD59196BE0ED006EFCDD /* MarginView.h in Headers */ = {isa = PBXBuildFile; fileRef = 28A1DD56196BE0ED006EFCDD /* MarginView.h */; }; 28A7D6051995E47D0062D204 /* LexRegistry.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28A7D6041995E47D0062D204 /* LexRegistry.cxx */; }; 28B6470C1B54C0720009DC49 /* LexBatch.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B647061B54C0720009DC49 /* LexBatch.cxx */; }; 28B6470D1B54C0720009DC49 /* LexDiff.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B647071B54C0720009DC49 /* LexDiff.cxx */; }; 28B6470E1B54C0720009DC49 /* LexErrorList.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B647081B54C0720009DC49 /* LexErrorList.cxx */; }; 28B6470F1B54C0720009DC49 /* LexMake.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B647091B54C0720009DC49 /* LexMake.cxx */; }; 28B647101B54C0720009DC49 /* LexNull.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B6470A1B54C0720009DC49 /* LexNull.cxx */; }; 28B647111B54C0720009DC49 /* LexProps.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28B6470B1B54C0720009DC49 /* LexProps.cxx */; }; 28BC38EC1B74C6AD008BF9EB /* Sci_Position.h in Headers */ = {isa = PBXBuildFile; fileRef = 28BC38EB1B74C6AD008BF9EB /* Sci_Position.h */; settings = {ATTRIBUTES = (Public, ); }; }; 28C40CA81CB7321200B089F2 /* LexJSON.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28C40CA71CB7321200B089F2 /* LexJSON.cxx */; }; 28D191A21DEA72C800159938 /* LexEDIFACT.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28D191A11DEA72C800159938 /* LexEDIFACT.cxx */; }; 28D1919E1DE69FC100159938 /* module.modulemap */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = ""; }; 28D516D81830FFCA0047C93D /* info_bar_bg@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 28D516D51830FFCA0047C93D /* info_bar_bg@2x.png */; }; 28D516D91830FFCA0047C93D /* mac_cursor_busy@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 28D516D61830FFCA0047C93D /* mac_cursor_busy@2x.png */; }; 28D516DA1830FFCA0047C93D /* mac_cursor_flipped@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 28D516D71830FFCA0047C93D /* mac_cursor_flipped@2x.png */; }; 28FDA42119B6967B00BE27D7 /* LexBibTeX.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 28FDA42019B6967B00BE27D7 /* LexBibTeX.cxx */; }; 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; }; 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */; }; F437405F9F32C7DEFCA38C11 /* LexIndent.cxx in Sources */ = {isa = PBXBuildFile; fileRef = 282E41F3B9E2BFEDD6A05BE7 /* LexIndent.cxx */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 1100F1E6178E393200105727 /* CaseConvert.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CaseConvert.cxx; path = ../../src/CaseConvert.cxx; sourceTree = ""; }; 1100F1E7178E393200105727 /* CaseConvert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CaseConvert.h; path = ../../src/CaseConvert.h; sourceTree = ""; }; 1100F1E8178E393200105727 /* CaseFolder.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CaseFolder.cxx; path = ../../src/CaseFolder.cxx; sourceTree = ""; }; 1100F1E9178E393200105727 /* CaseFolder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CaseFolder.h; path = ../../src/CaseFolder.h; sourceTree = ""; }; 1100F1EA178E393200105727 /* UnicodeFromUTF8.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UnicodeFromUTF8.h; path = ../../src/UnicodeFromUTF8.h; sourceTree = ""; }; 1102C31B169FB49300DC16AB /* LexLaTeX.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexLaTeX.cxx; path = ../../lexers/LexLaTeX.cxx; sourceTree = ""; }; 11126B8114CD3A6200803C49 /* LexAVS.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAVS.cxx; path = ../../lexers/LexAVS.cxx; sourceTree = ""; }; 1114D6CA1602A951001DC345 /* LexPO.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPO.cxx; path = ../../lexers/LexPO.cxx; sourceTree = ""; }; 114B6EBE11FA7526004FB6AB /* LexAbaqus.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAbaqus.cxx; path = ../../lexers/LexAbaqus.cxx; sourceTree = SOURCE_ROOT; }; 114B6EBF11FA7526004FB6AB /* LexAda.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAda.cxx; path = ../../lexers/LexAda.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC011FA7526004FB6AB /* LexAPDL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAPDL.cxx; path = ../../lexers/LexAPDL.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC111FA7526004FB6AB /* LexAsm.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAsm.cxx; path = ../../lexers/LexAsm.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC211FA7526004FB6AB /* LexAsn1.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAsn1.cxx; path = ../../lexers/LexAsn1.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC311FA7526004FB6AB /* LexASY.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexASY.cxx; path = ../../lexers/LexASY.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC411FA7526004FB6AB /* LexAU3.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAU3.cxx; path = ../../lexers/LexAU3.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC511FA7526004FB6AB /* LexAVE.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexAVE.cxx; path = ../../lexers/LexAVE.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC611FA7526004FB6AB /* LexBaan.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBaan.cxx; path = ../../lexers/LexBaan.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC711FA7526004FB6AB /* LexBash.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBash.cxx; path = ../../lexers/LexBash.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC811FA7526004FB6AB /* LexBasic.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBasic.cxx; path = ../../lexers/LexBasic.cxx; sourceTree = SOURCE_ROOT; }; 114B6EC911FA7526004FB6AB /* LexBullant.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBullant.cxx; path = ../../lexers/LexBullant.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECA11FA7526004FB6AB /* LexCaml.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCaml.cxx; path = ../../lexers/LexCaml.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECB11FA7526004FB6AB /* LexCLW.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCLW.cxx; path = ../../lexers/LexCLW.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECC11FA7526004FB6AB /* LexCmake.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCmake.cxx; path = ../../lexers/LexCmake.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECD11FA7526004FB6AB /* LexCOBOL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCOBOL.cxx; path = ../../lexers/LexCOBOL.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECE11FA7526004FB6AB /* LexConf.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexConf.cxx; path = ../../lexers/LexConf.cxx; sourceTree = SOURCE_ROOT; }; 114B6ECF11FA7526004FB6AB /* LexCPP.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCPP.cxx; path = ../../lexers/LexCPP.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED011FA7526004FB6AB /* LexCrontab.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCrontab.cxx; path = ../../lexers/LexCrontab.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED111FA7526004FB6AB /* LexCsound.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCsound.cxx; path = ../../lexers/LexCsound.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED211FA7526004FB6AB /* LexCSS.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCSS.cxx; path = ../../lexers/LexCSS.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED311FA7526004FB6AB /* LexD.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexD.cxx; path = ../../lexers/LexD.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED411FA7526004FB6AB /* LexEiffel.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexEiffel.cxx; path = ../../lexers/LexEiffel.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED511FA7526004FB6AB /* LexErlang.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexErlang.cxx; path = ../../lexers/LexErlang.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED611FA7526004FB6AB /* LexEScript.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexEScript.cxx; path = ../../lexers/LexEScript.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED711FA7526004FB6AB /* LexFlagship.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexFlagship.cxx; path = ../../lexers/LexFlagship.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED811FA7526004FB6AB /* LexForth.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexForth.cxx; path = ../../lexers/LexForth.cxx; sourceTree = SOURCE_ROOT; }; 114B6ED911FA7526004FB6AB /* LexFortran.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexFortran.cxx; path = ../../lexers/LexFortran.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDA11FA7526004FB6AB /* LexGAP.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexGAP.cxx; path = ../../lexers/LexGAP.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDB11FA7526004FB6AB /* LexGui4Cli.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexGui4Cli.cxx; path = ../../lexers/LexGui4Cli.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDC11FA7526004FB6AB /* LexHaskell.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexHaskell.cxx; path = ../../lexers/LexHaskell.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDD11FA7526004FB6AB /* LexHTML.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexHTML.cxx; path = ../../lexers/LexHTML.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDE11FA7526004FB6AB /* LexInno.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexInno.cxx; path = ../../lexers/LexInno.cxx; sourceTree = SOURCE_ROOT; }; 114B6EDF11FA7526004FB6AB /* LexKix.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexKix.cxx; path = ../../lexers/LexKix.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE011FA7526004FB6AB /* LexLisp.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexLisp.cxx; path = ../../lexers/LexLisp.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE111FA7526004FB6AB /* LexLout.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexLout.cxx; path = ../../lexers/LexLout.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE211FA7526004FB6AB /* LexLua.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexLua.cxx; path = ../../lexers/LexLua.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE311FA7526004FB6AB /* LexMagik.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMagik.cxx; path = ../../lexers/LexMagik.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE411FA7526004FB6AB /* LexMarkdown.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMarkdown.cxx; path = ../../lexers/LexMarkdown.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE511FA7526004FB6AB /* LexMatlab.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMatlab.cxx; path = ../../lexers/LexMatlab.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE611FA7526004FB6AB /* LexMetapost.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMetapost.cxx; path = ../../lexers/LexMetapost.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE711FA7526004FB6AB /* LexMMIXAL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMMIXAL.cxx; path = ../../lexers/LexMMIXAL.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE811FA7526004FB6AB /* LexMPT.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMPT.cxx; path = ../../lexers/LexMPT.cxx; sourceTree = SOURCE_ROOT; }; 114B6EE911FA7526004FB6AB /* LexMSSQL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMSSQL.cxx; path = ../../lexers/LexMSSQL.cxx; sourceTree = SOURCE_ROOT; }; 114B6EEA11FA7526004FB6AB /* LexMySQL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMySQL.cxx; path = ../../lexers/LexMySQL.cxx; sourceTree = SOURCE_ROOT; }; 114B6EEB11FA7526004FB6AB /* LexNimrod.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexNimrod.cxx; path = ../../lexers/LexNimrod.cxx; sourceTree = SOURCE_ROOT; }; 114B6EEC11FA7526004FB6AB /* LexNsis.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexNsis.cxx; path = ../../lexers/LexNsis.cxx; sourceTree = SOURCE_ROOT; }; 114B6EED11FA7526004FB6AB /* LexOpal.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexOpal.cxx; path = ../../lexers/LexOpal.cxx; sourceTree = SOURCE_ROOT; }; 114B6EEF11FA7526004FB6AB /* LexPascal.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPascal.cxx; path = ../../lexers/LexPascal.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF011FA7526004FB6AB /* LexPB.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPB.cxx; path = ../../lexers/LexPB.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF111FA7526004FB6AB /* LexPerl.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPerl.cxx; path = ../../lexers/LexPerl.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF211FA7526004FB6AB /* LexPLM.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPLM.cxx; path = ../../lexers/LexPLM.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF311FA7526004FB6AB /* LexPOV.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPOV.cxx; path = ../../lexers/LexPOV.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF411FA7526004FB6AB /* LexPowerPro.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPowerPro.cxx; path = ../../lexers/LexPowerPro.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF511FA7526004FB6AB /* LexPowerShell.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPowerShell.cxx; path = ../../lexers/LexPowerShell.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF611FA7526004FB6AB /* LexProgress.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexProgress.cxx; path = ../../lexers/LexProgress.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF711FA7526004FB6AB /* LexPS.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPS.cxx; path = ../../lexers/LexPS.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF811FA7526004FB6AB /* LexPython.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexPython.cxx; path = ../../lexers/LexPython.cxx; sourceTree = SOURCE_ROOT; }; 114B6EF911FA7526004FB6AB /* LexR.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexR.cxx; path = ../../lexers/LexR.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFA11FA7526004FB6AB /* LexRebol.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexRebol.cxx; path = ../../lexers/LexRebol.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFB11FA7526004FB6AB /* LexRuby.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexRuby.cxx; path = ../../lexers/LexRuby.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFC11FA7526004FB6AB /* LexScriptol.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexScriptol.cxx; path = ../../lexers/LexScriptol.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFD11FA7526004FB6AB /* LexSmalltalk.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSmalltalk.cxx; path = ../../lexers/LexSmalltalk.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFE11FA7526004FB6AB /* LexSML.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSML.cxx; path = ../../lexers/LexSML.cxx; sourceTree = SOURCE_ROOT; }; 114B6EFF11FA7526004FB6AB /* LexSorcus.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSorcus.cxx; path = ../../lexers/LexSorcus.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0011FA7526004FB6AB /* LexSpecman.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSpecman.cxx; path = ../../lexers/LexSpecman.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0111FA7526004FB6AB /* LexSpice.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSpice.cxx; path = ../../lexers/LexSpice.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0211FA7526004FB6AB /* LexSQL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSQL.cxx; path = ../../lexers/LexSQL.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0311FA7526004FB6AB /* LexTACL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTACL.cxx; path = ../../lexers/LexTACL.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0411FA7526004FB6AB /* LexTADS3.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTADS3.cxx; path = ../../lexers/LexTADS3.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0511FA7526004FB6AB /* LexTAL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTAL.cxx; path = ../../lexers/LexTAL.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0611FA7526004FB6AB /* LexTCL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTCL.cxx; path = ../../lexers/LexTCL.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0711FA7526004FB6AB /* LexTeX.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTeX.cxx; path = ../../lexers/LexTeX.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0811FA7526004FB6AB /* LexTxt2tags.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTxt2tags.cxx; path = ../../lexers/LexTxt2tags.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0911FA7526004FB6AB /* LexVB.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexVB.cxx; path = ../../lexers/LexVB.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0A11FA7526004FB6AB /* LexVerilog.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexVerilog.cxx; path = ../../lexers/LexVerilog.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0B11FA7526004FB6AB /* LexVHDL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexVHDL.cxx; path = ../../lexers/LexVHDL.cxx; sourceTree = SOURCE_ROOT; }; 114B6F0C11FA7526004FB6AB /* LexYAML.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexYAML.cxx; path = ../../lexers/LexYAML.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6011FA7597004FB6AB /* AutoComplete.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AutoComplete.cxx; path = ../../src/AutoComplete.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6111FA7597004FB6AB /* CallTip.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CallTip.cxx; path = ../../src/CallTip.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6211FA7597004FB6AB /* Catalogue.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Catalogue.cxx; path = ../../src/Catalogue.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6311FA7597004FB6AB /* CellBuffer.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CellBuffer.cxx; path = ../../src/CellBuffer.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6411FA7597004FB6AB /* CharClassify.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CharClassify.cxx; path = ../../src/CharClassify.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6511FA7597004FB6AB /* ContractionState.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ContractionState.cxx; path = ../../src/ContractionState.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6611FA7597004FB6AB /* Decoration.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Decoration.cxx; path = ../../src/Decoration.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6711FA7597004FB6AB /* Document.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Document.cxx; path = ../../src/Document.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6811FA7597004FB6AB /* Editor.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Editor.cxx; path = ../../src/Editor.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6911FA7598004FB6AB /* ExternalLexer.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ExternalLexer.cxx; path = ../../src/ExternalLexer.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6A11FA7598004FB6AB /* Indicator.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Indicator.cxx; path = ../../src/Indicator.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6B11FA7598004FB6AB /* KeyMap.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KeyMap.cxx; path = ../../src/KeyMap.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6C11FA7598004FB6AB /* LineMarker.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LineMarker.cxx; path = ../../src/LineMarker.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6D11FA7598004FB6AB /* PerLine.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PerLine.cxx; path = ../../src/PerLine.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6E11FA7598004FB6AB /* PositionCache.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PositionCache.cxx; path = ../../src/PositionCache.cxx; sourceTree = SOURCE_ROOT; }; 114B6F6F11FA7598004FB6AB /* RESearch.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RESearch.cxx; path = ../../src/RESearch.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7011FA7598004FB6AB /* RunStyles.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RunStyles.cxx; path = ../../src/RunStyles.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7111FA7598004FB6AB /* ScintillaBase.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ScintillaBase.cxx; path = ../../src/ScintillaBase.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7211FA7598004FB6AB /* Selection.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Selection.cxx; path = ../../src/Selection.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7311FA7598004FB6AB /* Style.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Style.cxx; path = ../../src/Style.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7411FA7598004FB6AB /* UniConversion.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = UniConversion.cxx; path = ../../src/UniConversion.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7511FA7598004FB6AB /* ViewStyle.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ViewStyle.cxx; path = ../../src/ViewStyle.cxx; sourceTree = SOURCE_ROOT; }; 114B6F7611FA7598004FB6AB /* XPM.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = XPM.cxx; path = ../../src/XPM.cxx; sourceTree = SOURCE_ROOT; }; 114B6F8E11FA75BE004FB6AB /* Accessor.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Accessor.cxx; path = ../../lexlib/Accessor.cxx; sourceTree = SOURCE_ROOT; }; 114B6F8F11FA75BE004FB6AB /* CharacterSet.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CharacterSet.cxx; path = ../../lexlib/CharacterSet.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9011FA75BE004FB6AB /* LexerBase.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexerBase.cxx; path = ../../lexlib/LexerBase.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9111FA75BE004FB6AB /* LexerModule.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexerModule.cxx; path = ../../lexlib/LexerModule.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9211FA75BE004FB6AB /* LexerNoExceptions.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexerNoExceptions.cxx; path = ../../lexlib/LexerNoExceptions.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9311FA75BE004FB6AB /* LexerSimple.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexerSimple.cxx; path = ../../lexlib/LexerSimple.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9411FA75BE004FB6AB /* PropSetSimple.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PropSetSimple.cxx; path = ../../lexlib/PropSetSimple.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9511FA75BE004FB6AB /* StyleContext.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StyleContext.cxx; path = ../../lexlib/StyleContext.cxx; sourceTree = SOURCE_ROOT; }; 114B6F9611FA75BE004FB6AB /* WordList.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = WordList.cxx; path = ../../lexlib/WordList.cxx; sourceTree = SOURCE_ROOT; }; 114B6FA011FA75DB004FB6AB /* ILexer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ILexer.h; path = ../../include/ILexer.h; sourceTree = SOURCE_ROOT; }; 114B6FA211FA7623004FB6AB /* AutoComplete.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AutoComplete.h; path = ../../src/AutoComplete.h; sourceTree = SOURCE_ROOT; }; 114B6FA311FA7623004FB6AB /* CallTip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CallTip.h; path = ../../src/CallTip.h; sourceTree = SOURCE_ROOT; }; 114B6FA411FA7623004FB6AB /* Catalogue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Catalogue.h; path = ../../src/Catalogue.h; sourceTree = SOURCE_ROOT; }; 114B6FA511FA7623004FB6AB /* CellBuffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CellBuffer.h; path = ../../src/CellBuffer.h; sourceTree = SOURCE_ROOT; }; 114B6FA611FA7623004FB6AB /* CharClassify.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CharClassify.h; path = ../../src/CharClassify.h; sourceTree = SOURCE_ROOT; }; 114B6FA711FA7623004FB6AB /* ContractionState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ContractionState.h; path = ../../src/ContractionState.h; sourceTree = SOURCE_ROOT; }; 114B6FA811FA7623004FB6AB /* Decoration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Decoration.h; path = ../../src/Decoration.h; sourceTree = SOURCE_ROOT; }; 114B6FA911FA7623004FB6AB /* Document.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Document.h; path = ../../src/Document.h; sourceTree = SOURCE_ROOT; }; 114B6FAA11FA7623004FB6AB /* Editor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Editor.h; path = ../../src/Editor.h; sourceTree = SOURCE_ROOT; }; 114B6FAB11FA7623004FB6AB /* ExternalLexer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ExternalLexer.h; path = ../../src/ExternalLexer.h; sourceTree = SOURCE_ROOT; }; 114B6FAC11FA7623004FB6AB /* FontQuality.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FontQuality.h; path = ../../src/FontQuality.h; sourceTree = SOURCE_ROOT; }; 114B6FAD11FA7623004FB6AB /* Indicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Indicator.h; path = ../../src/Indicator.h; sourceTree = SOURCE_ROOT; }; 114B6FAE11FA7623004FB6AB /* KeyMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KeyMap.h; path = ../../src/KeyMap.h; sourceTree = SOURCE_ROOT; }; 114B6FAF11FA7623004FB6AB /* LineMarker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LineMarker.h; path = ../../src/LineMarker.h; sourceTree = SOURCE_ROOT; }; 114B6FB011FA7623004FB6AB /* Partitioning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Partitioning.h; path = ../../src/Partitioning.h; sourceTree = SOURCE_ROOT; }; 114B6FB111FA7623004FB6AB /* PerLine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PerLine.h; path = ../../src/PerLine.h; sourceTree = SOURCE_ROOT; }; 114B6FB211FA7623004FB6AB /* PositionCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PositionCache.h; path = ../../src/PositionCache.h; sourceTree = SOURCE_ROOT; }; 114B6FB311FA7623004FB6AB /* RESearch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RESearch.h; path = ../../src/RESearch.h; sourceTree = SOURCE_ROOT; }; 114B6FB411FA7623004FB6AB /* RunStyles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RunStyles.h; path = ../../src/RunStyles.h; sourceTree = SOURCE_ROOT; }; 114B6FB511FA7623004FB6AB /* ScintillaBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ScintillaBase.h; path = ../../src/ScintillaBase.h; sourceTree = SOURCE_ROOT; }; 114B6FB611FA7623004FB6AB /* Selection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Selection.h; path = ../../src/Selection.h; sourceTree = SOURCE_ROOT; }; 114B6FB711FA7623004FB6AB /* SplitVector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SplitVector.h; path = ../../src/SplitVector.h; sourceTree = SOURCE_ROOT; }; 114B6FB811FA7623004FB6AB /* Style.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Style.h; path = ../../src/Style.h; sourceTree = SOURCE_ROOT; }; 114B6FBA11FA7623004FB6AB /* UniConversion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UniConversion.h; path = ../../src/UniConversion.h; sourceTree = SOURCE_ROOT; }; 114B6FBB11FA7623004FB6AB /* ViewStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ViewStyle.h; path = ../../src/ViewStyle.h; sourceTree = SOURCE_ROOT; }; 114B6FBC11FA7623004FB6AB /* XPM.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XPM.h; path = ../../src/XPM.h; sourceTree = SOURCE_ROOT; }; 114B6FD811FA7645004FB6AB /* Accessor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Accessor.h; path = ../../lexlib/Accessor.h; sourceTree = SOURCE_ROOT; }; 114B6FD911FA7645004FB6AB /* CharacterSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CharacterSet.h; path = ../../lexlib/CharacterSet.h; sourceTree = SOURCE_ROOT; }; 114B6FDA11FA7645004FB6AB /* LexAccessor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LexAccessor.h; path = ../../lexlib/LexAccessor.h; sourceTree = SOURCE_ROOT; }; 114B6FDB11FA7645004FB6AB /* LexerBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LexerBase.h; path = ../../lexlib/LexerBase.h; sourceTree = SOURCE_ROOT; }; 114B6FDC11FA7645004FB6AB /* LexerModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LexerModule.h; path = ../../lexlib/LexerModule.h; sourceTree = SOURCE_ROOT; }; 114B6FDD11FA7645004FB6AB /* LexerNoExceptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LexerNoExceptions.h; path = ../../lexlib/LexerNoExceptions.h; sourceTree = SOURCE_ROOT; }; 114B6FDE11FA7645004FB6AB /* LexerSimple.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LexerSimple.h; path = ../../lexlib/LexerSimple.h; sourceTree = SOURCE_ROOT; }; 114B6FDF11FA7645004FB6AB /* OptionSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OptionSet.h; path = ../../lexlib/OptionSet.h; sourceTree = SOURCE_ROOT; }; 114B6FE011FA7645004FB6AB /* PropSetSimple.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PropSetSimple.h; path = ../../lexlib/PropSetSimple.h; sourceTree = SOURCE_ROOT; }; 114B6FE111FA7645004FB6AB /* StyleContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StyleContext.h; path = ../../lexlib/StyleContext.h; sourceTree = SOURCE_ROOT; }; 114B6FE211FA7645004FB6AB /* WordList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WordList.h; path = ../../lexlib/WordList.h; sourceTree = SOURCE_ROOT; }; 1152A77215313E58000D4E1A /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = ../../../../../../../../System/Library/Frameworks/QuartzCore.framework; sourceTree = ""; }; 11594BE7155B91DF0099E1FA /* LexOScript.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexOScript.cxx; path = ../../lexers/LexOScript.cxx; sourceTree = ""; }; 11594BE8155B91DF0099E1FA /* LexVisualProlog.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexVisualProlog.cxx; path = ../../lexers/LexVisualProlog.cxx; sourceTree = ""; }; 1160E0371803651C00BCEBCB /* LexRust.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexRust.cxx; path = ../../lexers/LexRust.cxx; sourceTree = ""; }; 117ACE9014A29A1E002876F9 /* LexTCMD.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexTCMD.cxx; path = ../../lexers/LexTCMD.cxx; sourceTree = ""; }; 119FF1BE13C9D1820007CE42 /* QuartzTextStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = QuartzTextStyle.h; path = ../QuartzTextStyle.h; sourceTree = ""; }; 11A0A8A0148602DF0018D143 /* LexCoffeeScript.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexCoffeeScript.cxx; path = ../../lexers/LexCoffeeScript.cxx; sourceTree = ""; }; 11BB124C12FF9C1300F6BCF7 /* LexModula.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexModula.cxx; path = ../../lexers/LexModula.cxx; sourceTree = SOURCE_ROOT; }; 11BEB6A114EF189600BDE92A /* LexECL.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexECL.cxx; path = ../../lexers/LexECL.cxx; sourceTree = ""; }; 11F35FDA12AEFAF100F0236D /* LexA68k.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexA68k.cxx; path = ../../lexers/LexA68k.cxx; sourceTree = SOURCE_ROOT; }; 11FBA39B17817DA00048C071 /* CharacterCategory.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CharacterCategory.cxx; path = ../../lexlib/CharacterCategory.cxx; sourceTree = ""; }; 11FBA39C17817DA00048C071 /* CharacterCategory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CharacterCategory.h; path = ../../lexlib/CharacterCategory.h; sourceTree = ""; }; 11FDAEB6174E1A9700FA161B /* LexSTTXT.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexSTTXT.cxx; path = ../../lexers/LexSTTXT.cxx; sourceTree = ""; }; 11FDD0DF17C480D4001541B9 /* LexKVIrc.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexKVIrc.cxx; path = ../../lexers/LexKVIrc.cxx; sourceTree = ""; }; 11FF3FE11810EB3900E13F13 /* LexDMAP.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexDMAP.cxx; path = ../../lexers/LexDMAP.cxx; sourceTree = ""; }; 2744E4850FC1678600E85C33 /* Platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Platform.h; path = ../../include/Platform.h; sourceTree = SOURCE_ROOT; }; 2744E4870FC1678600E85C33 /* SciLexer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SciLexer.h; path = ../../include/SciLexer.h; sourceTree = SOURCE_ROOT; }; 2744E4880FC1678600E85C33 /* Scintilla.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Scintilla.h; path = ../../include/Scintilla.h; sourceTree = SOURCE_ROOT; }; 2744E59D0FC168A100E85C33 /* InfoBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoBar.h; path = ../InfoBar.h; sourceTree = SOURCE_ROOT; }; 2744E59E0FC168A100E85C33 /* PlatCocoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PlatCocoa.h; path = ../PlatCocoa.h; sourceTree = SOURCE_ROOT; }; 2744E59F0FC168A100E85C33 /* QuartzTextLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = QuartzTextLayout.h; path = ../QuartzTextLayout.h; sourceTree = SOURCE_ROOT; }; 2744E5A00FC168A100E85C33 /* QuartzTextStyleAttribute.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = QuartzTextStyleAttribute.h; path = ../QuartzTextStyleAttribute.h; sourceTree = SOURCE_ROOT; }; 2744E5A20FC168A100E85C33 /* ScintillaCocoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ScintillaCocoa.h; path = ../ScintillaCocoa.h; sourceTree = ""; }; 2744E5A30FC168A100E85C33 /* ScintillaView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ScintillaView.h; path = ../ScintillaView.h; sourceTree = ""; }; 2744E5AB0FC168B200E85C33 /* InfoBarCommunicator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoBarCommunicator.h; path = ../InfoBarCommunicator.h; sourceTree = SOURCE_ROOT; }; 2744E5AD0FC168C500E85C33 /* InfoBar.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = InfoBar.mm; path = ../InfoBar.mm; sourceTree = SOURCE_ROOT; }; 2744E5AE0FC168C500E85C33 /* PlatCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = PlatCocoa.mm; path = ../PlatCocoa.mm; sourceTree = SOURCE_ROOT; }; 2744E5B00FC168C500E85C33 /* ScintillaCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ScintillaCocoa.mm; path = ../ScintillaCocoa.mm; sourceTree = ""; }; 2744E5B10FC168C500E85C33 /* ScintillaView.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ScintillaView.mm; path = ../ScintillaView.mm; sourceTree = ""; }; 27FEF4510FC1B413005E115A /* info_bar_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = info_bar_bg.png; sourceTree = ""; }; 27FEF4520FC1B413005E115A /* mac_cursor_busy.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mac_cursor_busy.png; sourceTree = ""; }; 27FEF4530FC1B413005E115A /* mac_cursor_flipped.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = mac_cursor_flipped.png; sourceTree = ""; }; 280056F8188DDD2C00F200AE /* SparseState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SparseState.h; path = ../../lexlib/SparseState.h; sourceTree = ""; }; 280056F9188DDD2C00F200AE /* StringCopy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = StringCopy.h; path = ../../lexlib/StringCopy.h; sourceTree = ""; }; 280056FA188DDD2C00F200AE /* SubStyles.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SubStyles.h; path = ../../lexlib/SubStyles.h; sourceTree = ""; }; 28064A04190F12E100E6E47F /* LexDMIS.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexDMIS.cxx; path = ../../lexers/LexDMIS.cxx; sourceTree = ""; }; 28A067101A36B42600B4966A /* LexHex.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexHex.cxx; path = ../../lexers/LexHex.cxx; sourceTree = ""; }; 28A1DD4E196BE0CA006EFCDD /* EditModel.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = EditModel.cxx; path = ../../src/EditModel.cxx; sourceTree = ""; }; 28A1DD4F196BE0CA006EFCDD /* EditView.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = EditView.cxx; path = ../../src/EditView.cxx; sourceTree = ""; }; 28A1DD50196BE0CA006EFCDD /* MarginView.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = MarginView.cxx; path = ../../src/MarginView.cxx; sourceTree = ""; }; 28A1DD54196BE0ED006EFCDD /* EditModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EditModel.h; path = ../../src/EditModel.h; sourceTree = ""; }; 28A1DD55196BE0ED006EFCDD /* EditView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EditView.h; path = ../../src/EditView.h; sourceTree = ""; }; 28A1DD56196BE0ED006EFCDD /* MarginView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MarginView.h; path = ../../src/MarginView.h; sourceTree = ""; }; 28A7D6041995E47D0062D204 /* LexRegistry.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexRegistry.cxx; path = ../../lexers/LexRegistry.cxx; sourceTree = ""; }; 28B647061B54C0720009DC49 /* LexBatch.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBatch.cxx; path = ../../lexers/LexBatch.cxx; sourceTree = ""; }; 28B647071B54C0720009DC49 /* LexDiff.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexDiff.cxx; path = ../../lexers/LexDiff.cxx; sourceTree = ""; }; 28B647081B54C0720009DC49 /* LexErrorList.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexErrorList.cxx; path = ../../lexers/LexErrorList.cxx; sourceTree = ""; }; 28B647091B54C0720009DC49 /* LexMake.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexMake.cxx; path = ../../lexers/LexMake.cxx; sourceTree = ""; }; 28B6470A1B54C0720009DC49 /* LexNull.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexNull.cxx; path = ../../lexers/LexNull.cxx; sourceTree = ""; }; 28B6470B1B54C0720009DC49 /* LexProps.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexProps.cxx; path = ../../lexers/LexProps.cxx; sourceTree = ""; }; 28BC38EB1B74C6AD008BF9EB /* Sci_Position.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Sci_Position.h; path = ../../include/Sci_Position.h; sourceTree = ""; }; 28C40CA71CB7321200B089F2 /* LexJSON.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexJSON.cxx; path = ../../lexers/LexJSON.cxx; sourceTree = ""; }; 28D191A11DEA72C800159938 /* LexEDIFACT.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexEDIFACT.cxx; path = ../../lexers/LexEDIFACT.cxx; sourceTree = ""; }; 28D516D51830FFCA0047C93D /* info_bar_bg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "info_bar_bg@2x.png"; sourceTree = ""; }; 28D516D61830FFCA0047C93D /* mac_cursor_busy@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mac_cursor_busy@2x.png"; sourceTree = ""; }; 28D516D71830FFCA0047C93D /* mac_cursor_flipped@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mac_cursor_flipped@2x.png"; sourceTree = ""; }; 28FDA42019B6967B00BE27D7 /* LexBibTeX.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexBibTeX.cxx; path = ../../lexers/LexBibTeX.cxx; sourceTree = ""; }; 32DBCF5E0370ADEE00C91783 /* Scintilla_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Scintilla_Prefix.pch; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 /* Scintilla.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Scintilla.framework; sourceTree = BUILT_PRODUCTS_DIR; }; D2F7E79907B2D74100F64583 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; }; 282E41F3B9E2BFEDD6A05BE7 /* LexIndent.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = LexIndent.cxx; path = ../../lexers/LexIndent.cxx; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 8DC2EF560486A6940098B216 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */, 1152A77315313E58000D4E1A /* QuartzCore.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 034768DFFF38A50411DB9C8B /* Products */ = { isa = PBXGroup; children = ( 8DC2EF5B0486A6940098B216 /* Scintilla.framework */, ); name = Products; sourceTree = ""; }; 0867D691FE84028FC02AAC07 /* Scintilla */ = { isa = PBXGroup; children = ( 2744E47D0FC1674E00E85C33 /* Lexers */, 2744E47C0FC1674100E85C33 /* Backend */, 08FB77AEFE84172EC02AAC07 /* Classes */, 32C88DFF0371C24200C91783 /* Other Sources */, 089C1665FE841158C02AAC07 /* Resources */, 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */, 034768DFFF38A50411DB9C8B /* Products */, ); name = Scintilla; sourceTree = ""; }; 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */ = { isa = PBXGroup; children = ( 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */, 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */, ); name = "External Frameworks and Libraries"; sourceTree = ""; }; 089C1665FE841158C02AAC07 /* Resources */ = { isa = PBXGroup; children = ( 27FEF4500FC1B413005E115A /* res */, 8DC2EF5A0486A6940098B216 /* Info.plist */, 089C1666FE841158C02AAC07 /* InfoPlist.strings */, ); name = Resources; sourceTree = ""; }; 08FB77AEFE84172EC02AAC07 /* Classes */ = { isa = PBXGroup; children = ( 28D1919E1DE69FC100159938 /* module.modulemap */, 2744E4980FC167ED00E85C33 /* Source Files */, 2744E4970FC167E400E85C33 /* Header Files */, ); name = Classes; sourceTree = ""; }; 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */ = { isa = PBXGroup; children = ( 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */, ); name = "Linked Frameworks"; sourceTree = ""; }; 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */ = { isa = PBXGroup; children = ( 1152A77215313E58000D4E1A /* QuartzCore.framework */, 0867D6A5FE840307C02AAC07 /* AppKit.framework */, D2F7E79907B2D74100F64583 /* CoreData.framework */, 0867D69BFE84028FC02AAC07 /* Foundation.framework */, ); name = "Other Frameworks"; sourceTree = ""; }; 2744E47C0FC1674100E85C33 /* Backend */ = { isa = PBXGroup; children = ( 2744E47F0FC1676400E85C33 /* Source Files */, 2744E47E0FC1675800E85C33 /* Header Files */, ); name = Backend; sourceTree = ""; }; 2744E47D0FC1674E00E85C33 /* Lexers */ = { isa = PBXGroup; children = ( 11F35FDA12AEFAF100F0236D /* LexA68k.cxx */, 114B6EBE11FA7526004FB6AB /* LexAbaqus.cxx */, 114B6EBF11FA7526004FB6AB /* LexAda.cxx */, 114B6EC011FA7526004FB6AB /* LexAPDL.cxx */, 114B6EC111FA7526004FB6AB /* LexAsm.cxx */, 114B6EC211FA7526004FB6AB /* LexAsn1.cxx */, 114B6EC311FA7526004FB6AB /* LexASY.cxx */, 114B6EC411FA7526004FB6AB /* LexAU3.cxx */, 114B6EC511FA7526004FB6AB /* LexAVE.cxx */, 11126B8114CD3A6200803C49 /* LexAVS.cxx */, 114B6EC611FA7526004FB6AB /* LexBaan.cxx */, 114B6EC711FA7526004FB6AB /* LexBash.cxx */, 114B6EC811FA7526004FB6AB /* LexBasic.cxx */, 28B647061B54C0720009DC49 /* LexBatch.cxx */, 28FDA42019B6967B00BE27D7 /* LexBibTeX.cxx */, 114B6EC911FA7526004FB6AB /* LexBullant.cxx */, 114B6ECA11FA7526004FB6AB /* LexCaml.cxx */, 114B6ECB11FA7526004FB6AB /* LexCLW.cxx */, 114B6ECC11FA7526004FB6AB /* LexCmake.cxx */, 114B6ECD11FA7526004FB6AB /* LexCOBOL.cxx */, 11A0A8A0148602DF0018D143 /* LexCoffeeScript.cxx */, 114B6ECE11FA7526004FB6AB /* LexConf.cxx */, 114B6ECF11FA7526004FB6AB /* LexCPP.cxx */, 114B6ED011FA7526004FB6AB /* LexCrontab.cxx */, 114B6ED111FA7526004FB6AB /* LexCsound.cxx */, 114B6ED211FA7526004FB6AB /* LexCSS.cxx */, 114B6ED311FA7526004FB6AB /* LexD.cxx */, 28B647071B54C0720009DC49 /* LexDiff.cxx */, 11FF3FE11810EB3900E13F13 /* LexDMAP.cxx */, 28064A04190F12E100E6E47F /* LexDMIS.cxx */, 11BEB6A114EF189600BDE92A /* LexECL.cxx */, 28D191A11DEA72C800159938 /* LexEDIFACT.cxx */, 114B6ED411FA7526004FB6AB /* LexEiffel.cxx */, 114B6ED511FA7526004FB6AB /* LexErlang.cxx */, 28B647081B54C0720009DC49 /* LexErrorList.cxx */, 114B6ED611FA7526004FB6AB /* LexEScript.cxx */, 114B6ED711FA7526004FB6AB /* LexFlagship.cxx */, 114B6ED811FA7526004FB6AB /* LexForth.cxx */, 114B6ED911FA7526004FB6AB /* LexFortran.cxx */, 114B6EDA11FA7526004FB6AB /* LexGAP.cxx */, 114B6EDB11FA7526004FB6AB /* LexGui4Cli.cxx */, 114B6EDC11FA7526004FB6AB /* LexHaskell.cxx */, 28A067101A36B42600B4966A /* LexHex.cxx */, 114B6EDD11FA7526004FB6AB /* LexHTML.cxx */, 282E41F3B9E2BFEDD6A05BE7 /* LexIndent.cxx */, 114B6EDE11FA7526004FB6AB /* LexInno.cxx */, 28C40CA71CB7321200B089F2 /* LexJSON.cxx */, 114B6EDF11FA7526004FB6AB /* LexKix.cxx */, 11FDD0DF17C480D4001541B9 /* LexKVIrc.cxx */, 1102C31B169FB49300DC16AB /* LexLaTeX.cxx */, 114B6EE011FA7526004FB6AB /* LexLisp.cxx */, 114B6EE111FA7526004FB6AB /* LexLout.cxx */, 114B6EE211FA7526004FB6AB /* LexLua.cxx */, 114B6EE311FA7526004FB6AB /* LexMagik.cxx */, 28B647091B54C0720009DC49 /* LexMake.cxx */, 114B6EE411FA7526004FB6AB /* LexMarkdown.cxx */, 114B6EE511FA7526004FB6AB /* LexMatlab.cxx */, 114B6EE611FA7526004FB6AB /* LexMetapost.cxx */, 114B6EE711FA7526004FB6AB /* LexMMIXAL.cxx */, 11BB124C12FF9C1300F6BCF7 /* LexModula.cxx */, 114B6EE811FA7526004FB6AB /* LexMPT.cxx */, 114B6EE911FA7526004FB6AB /* LexMSSQL.cxx */, 114B6EEA11FA7526004FB6AB /* LexMySQL.cxx */, 114B6EEB11FA7526004FB6AB /* LexNimrod.cxx */, 114B6EEC11FA7526004FB6AB /* LexNsis.cxx */, 28B6470A1B54C0720009DC49 /* LexNull.cxx */, 114B6EED11FA7526004FB6AB /* LexOpal.cxx */, 11594BE7155B91DF0099E1FA /* LexOScript.cxx */, 114B6EEF11FA7526004FB6AB /* LexPascal.cxx */, 114B6EF011FA7526004FB6AB /* LexPB.cxx */, 114B6EF111FA7526004FB6AB /* LexPerl.cxx */, 114B6EF211FA7526004FB6AB /* LexPLM.cxx */, 1114D6CA1602A951001DC345 /* LexPO.cxx */, 114B6EF311FA7526004FB6AB /* LexPOV.cxx */, 114B6EF411FA7526004FB6AB /* LexPowerPro.cxx */, 114B6EF511FA7526004FB6AB /* LexPowerShell.cxx */, 114B6EF611FA7526004FB6AB /* LexProgress.cxx */, 28B6470B1B54C0720009DC49 /* LexProps.cxx */, 114B6EF711FA7526004FB6AB /* LexPS.cxx */, 114B6EF811FA7526004FB6AB /* LexPython.cxx */, 114B6EF911FA7526004FB6AB /* LexR.cxx */, 114B6EFA11FA7526004FB6AB /* LexRebol.cxx */, 28A7D6041995E47D0062D204 /* LexRegistry.cxx */, 114B6EFB11FA7526004FB6AB /* LexRuby.cxx */, 1160E0371803651C00BCEBCB /* LexRust.cxx */, 114B6EFC11FA7526004FB6AB /* LexScriptol.cxx */, 114B6EFD11FA7526004FB6AB /* LexSmalltalk.cxx */, 114B6EFE11FA7526004FB6AB /* LexSML.cxx */, 114B6EFF11FA7526004FB6AB /* LexSorcus.cxx */, 114B6F0011FA7526004FB6AB /* LexSpecman.cxx */, 114B6F0111FA7526004FB6AB /* LexSpice.cxx */, 114B6F0211FA7526004FB6AB /* LexSQL.cxx */, 11FDAEB6174E1A9700FA161B /* LexSTTXT.cxx */, 114B6F0311FA7526004FB6AB /* LexTACL.cxx */, 114B6F0411FA7526004FB6AB /* LexTADS3.cxx */, 114B6F0511FA7526004FB6AB /* LexTAL.cxx */, 114B6F0611FA7526004FB6AB /* LexTCL.cxx */, 117ACE9014A29A1E002876F9 /* LexTCMD.cxx */, 114B6F0711FA7526004FB6AB /* LexTeX.cxx */, 114B6F0811FA7526004FB6AB /* LexTxt2tags.cxx */, 114B6F0911FA7526004FB6AB /* LexVB.cxx */, 114B6F0A11FA7526004FB6AB /* LexVerilog.cxx */, 114B6F0B11FA7526004FB6AB /* LexVHDL.cxx */, 11594BE8155B91DF0099E1FA /* LexVisualProlog.cxx */, 114B6F0C11FA7526004FB6AB /* LexYAML.cxx */, ); name = Lexers; sourceTree = ""; }; 2744E47E0FC1675800E85C33 /* Header Files */ = { isa = PBXGroup; children = ( 114B6FD811FA7645004FB6AB /* Accessor.h */, 114B6FA211FA7623004FB6AB /* AutoComplete.h */, 114B6FA311FA7623004FB6AB /* CallTip.h */, 1100F1E7178E393200105727 /* CaseConvert.h */, 1100F1E9178E393200105727 /* CaseFolder.h */, 114B6FA411FA7623004FB6AB /* Catalogue.h */, 114B6FA511FA7623004FB6AB /* CellBuffer.h */, 11FBA39C17817DA00048C071 /* CharacterCategory.h */, 114B6FD911FA7645004FB6AB /* CharacterSet.h */, 114B6FA611FA7623004FB6AB /* CharClassify.h */, 114B6FA711FA7623004FB6AB /* ContractionState.h */, 114B6FA811FA7623004FB6AB /* Decoration.h */, 114B6FA911FA7623004FB6AB /* Document.h */, 28A1DD54196BE0ED006EFCDD /* EditModel.h */, 114B6FAA11FA7623004FB6AB /* Editor.h */, 28A1DD55196BE0ED006EFCDD /* EditView.h */, 114B6FAB11FA7623004FB6AB /* ExternalLexer.h */, 114B6FAC11FA7623004FB6AB /* FontQuality.h */, 114B6FA011FA75DB004FB6AB /* ILexer.h */, 114B6FAD11FA7623004FB6AB /* Indicator.h */, 114B6FAE11FA7623004FB6AB /* KeyMap.h */, 114B6FDA11FA7645004FB6AB /* LexAccessor.h */, 114B6FDB11FA7645004FB6AB /* LexerBase.h */, 114B6FDC11FA7645004FB6AB /* LexerModule.h */, 114B6FDD11FA7645004FB6AB /* LexerNoExceptions.h */, 114B6FDE11FA7645004FB6AB /* LexerSimple.h */, 114B6FAF11FA7623004FB6AB /* LineMarker.h */, 28A1DD56196BE0ED006EFCDD /* MarginView.h */, 114B6FDF11FA7645004FB6AB /* OptionSet.h */, 114B6FB011FA7623004FB6AB /* Partitioning.h */, 114B6FB111FA7623004FB6AB /* PerLine.h */, 114B6FB211FA7623004FB6AB /* PositionCache.h */, 114B6FE011FA7645004FB6AB /* PropSetSimple.h */, 114B6FB311FA7623004FB6AB /* RESearch.h */, 114B6FB411FA7623004FB6AB /* RunStyles.h */, 114B6FB511FA7623004FB6AB /* ScintillaBase.h */, 114B6FB611FA7623004FB6AB /* Selection.h */, 280056F8188DDD2C00F200AE /* SparseState.h */, 114B6FB711FA7623004FB6AB /* SplitVector.h */, 280056F9188DDD2C00F200AE /* StringCopy.h */, 114B6FB811FA7623004FB6AB /* Style.h */, 114B6FE111FA7645004FB6AB /* StyleContext.h */, 280056FA188DDD2C00F200AE /* SubStyles.h */, 1100F1EA178E393200105727 /* UnicodeFromUTF8.h */, 114B6FBA11FA7623004FB6AB /* UniConversion.h */, 114B6FBB11FA7623004FB6AB /* ViewStyle.h */, 114B6FE211FA7645004FB6AB /* WordList.h */, 114B6FBC11FA7623004FB6AB /* XPM.h */, ); name = "Header Files"; sourceTree = ""; }; 2744E47F0FC1676400E85C33 /* Source Files */ = { isa = PBXGroup; children = ( 114B6F8E11FA75BE004FB6AB /* Accessor.cxx */, 114B6F6011FA7597004FB6AB /* AutoComplete.cxx */, 114B6F6111FA7597004FB6AB /* CallTip.cxx */, 1100F1E6178E393200105727 /* CaseConvert.cxx */, 1100F1E8178E393200105727 /* CaseFolder.cxx */, 114B6F6211FA7597004FB6AB /* Catalogue.cxx */, 114B6F6311FA7597004FB6AB /* CellBuffer.cxx */, 11FBA39B17817DA00048C071 /* CharacterCategory.cxx */, 114B6F8F11FA75BE004FB6AB /* CharacterSet.cxx */, 114B6F6411FA7597004FB6AB /* CharClassify.cxx */, 114B6F6511FA7597004FB6AB /* ContractionState.cxx */, 114B6F6611FA7597004FB6AB /* Decoration.cxx */, 114B6F6711FA7597004FB6AB /* Document.cxx */, 28A1DD4E196BE0CA006EFCDD /* EditModel.cxx */, 114B6F6811FA7597004FB6AB /* Editor.cxx */, 28A1DD4F196BE0CA006EFCDD /* EditView.cxx */, 114B6F6911FA7598004FB6AB /* ExternalLexer.cxx */, 114B6F6A11FA7598004FB6AB /* Indicator.cxx */, 114B6F6B11FA7598004FB6AB /* KeyMap.cxx */, 114B6F9011FA75BE004FB6AB /* LexerBase.cxx */, 114B6F9111FA75BE004FB6AB /* LexerModule.cxx */, 114B6F9211FA75BE004FB6AB /* LexerNoExceptions.cxx */, 114B6F9311FA75BE004FB6AB /* LexerSimple.cxx */, 114B6F6C11FA7598004FB6AB /* LineMarker.cxx */, 28A1DD50196BE0CA006EFCDD /* MarginView.cxx */, 114B6F6D11FA7598004FB6AB /* PerLine.cxx */, 114B6F6E11FA7598004FB6AB /* PositionCache.cxx */, 114B6F9411FA75BE004FB6AB /* PropSetSimple.cxx */, 114B6F6F11FA7598004FB6AB /* RESearch.cxx */, 114B6F7011FA7598004FB6AB /* RunStyles.cxx */, 114B6F7111FA7598004FB6AB /* ScintillaBase.cxx */, 114B6F7211FA7598004FB6AB /* Selection.cxx */, 114B6F7311FA7598004FB6AB /* Style.cxx */, 114B6F9511FA75BE004FB6AB /* StyleContext.cxx */, 114B6F7411FA7598004FB6AB /* UniConversion.cxx */, 114B6F7511FA7598004FB6AB /* ViewStyle.cxx */, 114B6F9611FA75BE004FB6AB /* WordList.cxx */, 114B6F7611FA7598004FB6AB /* XPM.cxx */, ); name = "Source Files"; sourceTree = ""; }; 2744E4970FC167E400E85C33 /* Header Files */ = { isa = PBXGroup; children = ( 2744E59D0FC168A100E85C33 /* InfoBar.h */, 2744E5AB0FC168B200E85C33 /* InfoBarCommunicator.h */, 2744E59E0FC168A100E85C33 /* PlatCocoa.h */, 2744E4850FC1678600E85C33 /* Platform.h */, 2744E59F0FC168A100E85C33 /* QuartzTextLayout.h */, 119FF1BE13C9D1820007CE42 /* QuartzTextStyle.h */, 2744E5A00FC168A100E85C33 /* QuartzTextStyleAttribute.h */, 28BC38EB1B74C6AD008BF9EB /* Sci_Position.h */, 2744E4870FC1678600E85C33 /* SciLexer.h */, 2744E4880FC1678600E85C33 /* Scintilla.h */, 2744E5A20FC168A100E85C33 /* ScintillaCocoa.h */, 2744E5A30FC168A100E85C33 /* ScintillaView.h */, ); name = "Header Files"; sourceTree = ""; }; 2744E4980FC167ED00E85C33 /* Source Files */ = { isa = PBXGroup; children = ( 2744E5AD0FC168C500E85C33 /* InfoBar.mm */, 2744E5AE0FC168C500E85C33 /* PlatCocoa.mm */, 2744E5B00FC168C500E85C33 /* ScintillaCocoa.mm */, 2744E5B10FC168C500E85C33 /* ScintillaView.mm */, ); name = "Source Files"; sourceTree = ""; }; 27FEF4500FC1B413005E115A /* res */ = { isa = PBXGroup; children = ( 28D516D51830FFCA0047C93D /* info_bar_bg@2x.png */, 28D516D61830FFCA0047C93D /* mac_cursor_busy@2x.png */, 28D516D71830FFCA0047C93D /* mac_cursor_flipped@2x.png */, 27FEF4510FC1B413005E115A /* info_bar_bg.png */, 27FEF4520FC1B413005E115A /* mac_cursor_busy.png */, 27FEF4530FC1B413005E115A /* mac_cursor_flipped.png */, ); name = res; path = ../res; sourceTree = SOURCE_ROOT; }; 32C88DFF0371C24200C91783 /* Other Sources */ = { isa = PBXGroup; children = ( 32DBCF5E0370ADEE00C91783 /* Scintilla_Prefix.pch */, ); name = "Other Sources"; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ 8DC2EF500486A6940098B216 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( 28BC38EC1B74C6AD008BF9EB /* Sci_Position.h in Headers */, 114B6FA111FA75DB004FB6AB /* ILexer.h in Headers */, 2744E5A40FC168A100E85C33 /* InfoBar.h in Headers */, 2744E5AC0FC168B200E85C33 /* InfoBarCommunicator.h in Headers */, 2744E5AA0FC168A100E85C33 /* ScintillaView.h in Headers */, 280056FB188DDD2C00F200AE /* SparseState.h in Headers */, 2791F3C80FC19F71009DBCF9 /* SciLexer.h in Headers */, 2791F3C60FC19F71009DBCF9 /* PlatCocoa.h in Headers */, 2791F3E30FC1A3AE009DBCF9 /* QuartzTextLayout.h in Headers */, 2791F3E40FC1A3AE009DBCF9 /* QuartzTextStyleAttribute.h in Headers */, 2791F3E00FC1A390009DBCF9 /* ScintillaCocoa.h in Headers */, 2791F3C70FC19F71009DBCF9 /* Platform.h in Headers */, 2791F3C90FC19F71009DBCF9 /* Scintilla.h in Headers */, 114B6FBD11FA7623004FB6AB /* AutoComplete.h in Headers */, 114B6FBE11FA7623004FB6AB /* CallTip.h in Headers */, 114B6FBF11FA7623004FB6AB /* Catalogue.h in Headers */, 114B6FC011FA7623004FB6AB /* CellBuffer.h in Headers */, 114B6FC111FA7623004FB6AB /* CharClassify.h in Headers */, 114B6FC211FA7623004FB6AB /* ContractionState.h in Headers */, 114B6FC311FA7623004FB6AB /* Decoration.h in Headers */, 114B6FC411FA7623004FB6AB /* Document.h in Headers */, 114B6FC511FA7623004FB6AB /* Editor.h in Headers */, 114B6FC611FA7623004FB6AB /* ExternalLexer.h in Headers */, 114B6FC711FA7623004FB6AB /* FontQuality.h in Headers */, 28A1DD57196BE0ED006EFCDD /* EditModel.h in Headers */, 114B6FC811FA7623004FB6AB /* Indicator.h in Headers */, 114B6FC911FA7623004FB6AB /* KeyMap.h in Headers */, 114B6FCA11FA7623004FB6AB /* LineMarker.h in Headers */, 114B6FCB11FA7623004FB6AB /* Partitioning.h in Headers */, 114B6FCC11FA7623004FB6AB /* PerLine.h in Headers */, 114B6FCD11FA7623004FB6AB /* PositionCache.h in Headers */, 114B6FCE11FA7623004FB6AB /* RESearch.h in Headers */, 28A1DD58196BE0ED006EFCDD /* EditView.h in Headers */, 114B6FCF11FA7623004FB6AB /* RunStyles.h in Headers */, 280056FD188DDD2C00F200AE /* SubStyles.h in Headers */, 114B6FD011FA7623004FB6AB /* ScintillaBase.h in Headers */, 114B6FD111FA7623004FB6AB /* Selection.h in Headers */, 114B6FD211FA7623004FB6AB /* SplitVector.h in Headers */, 114B6FD311FA7623004FB6AB /* Style.h in Headers */, 280056FC188DDD2C00F200AE /* StringCopy.h in Headers */, 114B6FD511FA7623004FB6AB /* UniConversion.h in Headers */, 114B6FD611FA7623004FB6AB /* ViewStyle.h in Headers */, 114B6FD711FA7623004FB6AB /* XPM.h in Headers */, 114B6FE311FA7645004FB6AB /* Accessor.h in Headers */, 114B6FE411FA7645004FB6AB /* CharacterSet.h in Headers */, 114B6FE511FA7645004FB6AB /* LexAccessor.h in Headers */, 114B6FE611FA7645004FB6AB /* LexerBase.h in Headers */, 114B6FE711FA7645004FB6AB /* LexerModule.h in Headers */, 114B6FE811FA7645004FB6AB /* LexerNoExceptions.h in Headers */, 114B6FE911FA7645004FB6AB /* LexerSimple.h in Headers */, 114B6FEA11FA7645004FB6AB /* OptionSet.h in Headers */, 28A1DD59196BE0ED006EFCDD /* MarginView.h in Headers */, 114B6FEB11FA7645004FB6AB /* PropSetSimple.h in Headers */, 114B6FEC11FA7645004FB6AB /* StyleContext.h in Headers */, 114B6FED11FA7645004FB6AB /* WordList.h in Headers */, 119FF1BF13C9D1820007CE42 /* QuartzTextStyle.h in Headers */, 11FBA39E17817DA00048C071 /* CharacterCategory.h in Headers */, 1100F1EC178E393200105727 /* CaseConvert.h in Headers */, 1100F1EE178E393200105727 /* CaseFolder.h in Headers */, 1100F1EF178E393200105727 /* UnicodeFromUTF8.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ 8DC2EF4F0486A6940098B216 /* Scintilla */ = { isa = PBXNativeTarget; buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Scintilla" */; buildPhases = ( 8DC2EF500486A6940098B216 /* Headers */, 8DC2EF520486A6940098B216 /* Resources */, 8DC2EF540486A6940098B216 /* Sources */, 8DC2EF560486A6940098B216 /* Frameworks */, ); buildRules = ( ); dependencies = ( ); name = Scintilla; productInstallPath = "$(HOME)/Library/Frameworks"; productName = Scintilla; productReference = 8DC2EF5B0486A6940098B216 /* Scintilla.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0800; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "ScintillaFramework" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( English, Japanese, French, German, ); mainGroup = 0867D691FE84028FC02AAC07 /* Scintilla */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 8DC2EF4F0486A6940098B216 /* Scintilla */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 8DC2EF520486A6940098B216 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, 27FEF4540FC1B413005E115A /* info_bar_bg.png in Resources */, 28D516D81830FFCA0047C93D /* info_bar_bg@2x.png in Resources */, 28D516D91830FFCA0047C93D /* mac_cursor_busy@2x.png in Resources */, 27FEF4550FC1B413005E115A /* mac_cursor_busy.png in Resources */, 27FEF4560FC1B413005E115A /* mac_cursor_flipped.png in Resources */, 28D516DA1830FFCA0047C93D /* mac_cursor_flipped@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 8DC2EF540486A6940098B216 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2744E5B20FC168C500E85C33 /* InfoBar.mm in Sources */, 2744E5B30FC168C500E85C33 /* PlatCocoa.mm in Sources */, 2744E5B50FC168C500E85C33 /* ScintillaCocoa.mm in Sources */, 2744E5B60FC168C500E85C33 /* ScintillaView.mm in Sources */, 28D191A21DEA72C800159938 /* LexEDIFACT.cxx in Sources */, 114B6F0D11FA7526004FB6AB /* LexAbaqus.cxx in Sources */, 114B6F0E11FA7526004FB6AB /* LexAda.cxx in Sources */, 28B6470C1B54C0720009DC49 /* LexBatch.cxx in Sources */, 28B6470F1B54C0720009DC49 /* LexMake.cxx in Sources */, 114B6F0F11FA7526004FB6AB /* LexAPDL.cxx in Sources */, 114B6F1011FA7526004FB6AB /* LexAsm.cxx in Sources */, 114B6F1111FA7526004FB6AB /* LexAsn1.cxx in Sources */, 114B6F1211FA7526004FB6AB /* LexASY.cxx in Sources */, 114B6F1311FA7526004FB6AB /* LexAU3.cxx in Sources */, 114B6F1411FA7526004FB6AB /* LexAVE.cxx in Sources */, 114B6F1511FA7526004FB6AB /* LexBaan.cxx in Sources */, 114B6F1611FA7526004FB6AB /* LexBash.cxx in Sources */, 114B6F1711FA7526004FB6AB /* LexBasic.cxx in Sources */, 114B6F1811FA7526004FB6AB /* LexBullant.cxx in Sources */, 114B6F1911FA7526004FB6AB /* LexCaml.cxx in Sources */, 114B6F1A11FA7526004FB6AB /* LexCLW.cxx in Sources */, 114B6F1B11FA7526004FB6AB /* LexCmake.cxx in Sources */, 28C40CA81CB7321200B089F2 /* LexJSON.cxx in Sources */, 114B6F1C11FA7526004FB6AB /* LexCOBOL.cxx in Sources */, 114B6F1D11FA7526004FB6AB /* LexConf.cxx in Sources */, 28B647101B54C0720009DC49 /* LexNull.cxx in Sources */, 114B6F1E11FA7526004FB6AB /* LexCPP.cxx in Sources */, 114B6F1F11FA7526004FB6AB /* LexCrontab.cxx in Sources */, 28B647111B54C0720009DC49 /* LexProps.cxx in Sources */, 114B6F2011FA7526004FB6AB /* LexCsound.cxx in Sources */, 114B6F2111FA7526004FB6AB /* LexCSS.cxx in Sources */, 114B6F2211FA7526004FB6AB /* LexD.cxx in Sources */, 114B6F2311FA7526004FB6AB /* LexEiffel.cxx in Sources */, 114B6F2411FA7526004FB6AB /* LexErlang.cxx in Sources */, 114B6F2511FA7526004FB6AB /* LexEScript.cxx in Sources */, 114B6F2611FA7526004FB6AB /* LexFlagship.cxx in Sources */, 28064A05190F12E100E6E47F /* LexDMIS.cxx in Sources */, 114B6F2711FA7526004FB6AB /* LexForth.cxx in Sources */, 114B6F2811FA7526004FB6AB /* LexFortran.cxx in Sources */, 28FDA42119B6967B00BE27D7 /* LexBibTeX.cxx in Sources */, 114B6F2911FA7526004FB6AB /* LexGAP.cxx in Sources */, 114B6F2A11FA7526004FB6AB /* LexGui4Cli.cxx in Sources */, 114B6F2B11FA7526004FB6AB /* LexHaskell.cxx in Sources */, 114B6F2C11FA7526004FB6AB /* LexHTML.cxx in Sources */, 114B6F2D11FA7526004FB6AB /* LexInno.cxx in Sources */, 114B6F2E11FA7526004FB6AB /* LexKix.cxx in Sources */, 28A067111A36B42600B4966A /* LexHex.cxx in Sources */, 114B6F2F11FA7526004FB6AB /* LexLisp.cxx in Sources */, 114B6F3011FA7526004FB6AB /* LexLout.cxx in Sources */, 114B6F3111FA7526004FB6AB /* LexLua.cxx in Sources */, 114B6F3211FA7526004FB6AB /* LexMagik.cxx in Sources */, 114B6F3311FA7526004FB6AB /* LexMarkdown.cxx in Sources */, 28A1DD52196BE0CA006EFCDD /* EditView.cxx in Sources */, 114B6F3411FA7526004FB6AB /* LexMatlab.cxx in Sources */, 114B6F3511FA7526004FB6AB /* LexMetapost.cxx in Sources */, 114B6F3611FA7526004FB6AB /* LexMMIXAL.cxx in Sources */, 114B6F3711FA7526004FB6AB /* LexMPT.cxx in Sources */, 114B6F3811FA7526004FB6AB /* LexMSSQL.cxx in Sources */, 114B6F3911FA7526004FB6AB /* LexMySQL.cxx in Sources */, 114B6F3A11FA7526004FB6AB /* LexNimrod.cxx in Sources */, 114B6F3B11FA7526004FB6AB /* LexNsis.cxx in Sources */, 114B6F3C11FA7526004FB6AB /* LexOpal.cxx in Sources */, 114B6F3E11FA7526004FB6AB /* LexPascal.cxx in Sources */, 28B6470D1B54C0720009DC49 /* LexDiff.cxx in Sources */, 114B6F3F11FA7526004FB6AB /* LexPB.cxx in Sources */, 114B6F4011FA7526004FB6AB /* LexPerl.cxx in Sources */, 114B6F4111FA7526004FB6AB /* LexPLM.cxx in Sources */, 114B6F4211FA7526004FB6AB /* LexPOV.cxx in Sources */, 114B6F4311FA7526004FB6AB /* LexPowerPro.cxx in Sources */, 114B6F4411FA7526004FB6AB /* LexPowerShell.cxx in Sources */, 114B6F4511FA7526004FB6AB /* LexProgress.cxx in Sources */, 114B6F4611FA7526004FB6AB /* LexPS.cxx in Sources */, 114B6F4711FA7526004FB6AB /* LexPython.cxx in Sources */, 114B6F4811FA7526004FB6AB /* LexR.cxx in Sources */, 114B6F4911FA7526004FB6AB /* LexRebol.cxx in Sources */, 114B6F4A11FA7526004FB6AB /* LexRuby.cxx in Sources */, 114B6F4B11FA7526004FB6AB /* LexScriptol.cxx in Sources */, 114B6F4C11FA7526004FB6AB /* LexSmalltalk.cxx in Sources */, 114B6F4D11FA7526004FB6AB /* LexSML.cxx in Sources */, 114B6F4E11FA7526004FB6AB /* LexSorcus.cxx in Sources */, 114B6F4F11FA7526004FB6AB /* LexSpecman.cxx in Sources */, 114B6F5011FA7526004FB6AB /* LexSpice.cxx in Sources */, 114B6F5111FA7526004FB6AB /* LexSQL.cxx in Sources */, 114B6F5211FA7526004FB6AB /* LexTACL.cxx in Sources */, 114B6F5311FA7526004FB6AB /* LexTADS3.cxx in Sources */, 114B6F5411FA7526004FB6AB /* LexTAL.cxx in Sources */, 114B6F5511FA7526004FB6AB /* LexTCL.cxx in Sources */, 114B6F5611FA7526004FB6AB /* LexTeX.cxx in Sources */, 28A1DD53196BE0CA006EFCDD /* MarginView.cxx in Sources */, 114B6F5711FA7526004FB6AB /* LexTxt2tags.cxx in Sources */, 114B6F5811FA7526004FB6AB /* LexVB.cxx in Sources */, 114B6F5911FA7526004FB6AB /* LexVerilog.cxx in Sources */, 114B6F5A11FA7526004FB6AB /* LexVHDL.cxx in Sources */, 114B6F5B11FA7526004FB6AB /* LexYAML.cxx in Sources */, 114B6F7711FA7598004FB6AB /* AutoComplete.cxx in Sources */, 114B6F7811FA7598004FB6AB /* CallTip.cxx in Sources */, 114B6F7911FA7598004FB6AB /* Catalogue.cxx in Sources */, 114B6F7A11FA7598004FB6AB /* CellBuffer.cxx in Sources */, 114B6F7B11FA7598004FB6AB /* CharClassify.cxx in Sources */, 28A1DD51196BE0CA006EFCDD /* EditModel.cxx in Sources */, 114B6F7C11FA7598004FB6AB /* ContractionState.cxx in Sources */, 114B6F7D11FA7598004FB6AB /* Decoration.cxx in Sources */, 114B6F7E11FA7598004FB6AB /* Document.cxx in Sources */, 114B6F7F11FA7598004FB6AB /* Editor.cxx in Sources */, 114B6F8011FA7598004FB6AB /* ExternalLexer.cxx in Sources */, 114B6F8111FA7598004FB6AB /* Indicator.cxx in Sources */, 114B6F8211FA7598004FB6AB /* KeyMap.cxx in Sources */, 114B6F8311FA7598004FB6AB /* LineMarker.cxx in Sources */, 114B6F8411FA7598004FB6AB /* PerLine.cxx in Sources */, 114B6F8511FA7598004FB6AB /* PositionCache.cxx in Sources */, 114B6F8611FA7598004FB6AB /* RESearch.cxx in Sources */, 114B6F8711FA7598004FB6AB /* RunStyles.cxx in Sources */, 114B6F8811FA7598004FB6AB /* ScintillaBase.cxx in Sources */, 114B6F8911FA7598004FB6AB /* Selection.cxx in Sources */, 114B6F8A11FA7598004FB6AB /* Style.cxx in Sources */, 28A7D6051995E47D0062D204 /* LexRegistry.cxx in Sources */, 28B6470E1B54C0720009DC49 /* LexErrorList.cxx in Sources */, 114B6F8B11FA7598004FB6AB /* UniConversion.cxx in Sources */, 114B6F8C11FA7598004FB6AB /* ViewStyle.cxx in Sources */, 114B6F8D11FA7598004FB6AB /* XPM.cxx in Sources */, 114B6F9711FA75BE004FB6AB /* Accessor.cxx in Sources */, 114B6F9811FA75BE004FB6AB /* CharacterSet.cxx in Sources */, 114B6F9911FA75BE004FB6AB /* LexerBase.cxx in Sources */, 114B6F9A11FA75BE004FB6AB /* LexerModule.cxx in Sources */, 114B6F9B11FA75BE004FB6AB /* LexerNoExceptions.cxx in Sources */, 114B6F9C11FA75BE004FB6AB /* LexerSimple.cxx in Sources */, 114B6F9D11FA75BE004FB6AB /* PropSetSimple.cxx in Sources */, 114B6F9E11FA75BE004FB6AB /* StyleContext.cxx in Sources */, 114B6F9F11FA75BE004FB6AB /* WordList.cxx in Sources */, 11F35FDB12AEFAF100F0236D /* LexA68k.cxx in Sources */, 11BB124D12FF9C1300F6BCF7 /* LexModula.cxx in Sources */, 11A0A8A1148602DF0018D143 /* LexCoffeeScript.cxx in Sources */, 117ACE9114A29A1E002876F9 /* LexTCMD.cxx in Sources */, 11126B8214CD3A6200803C49 /* LexAVS.cxx in Sources */, 11BEB6A214EF189600BDE92A /* LexECL.cxx in Sources */, 11594BE9155B91DF0099E1FA /* LexOScript.cxx in Sources */, 11594BEA155B91DF0099E1FA /* LexVisualProlog.cxx in Sources */, 1114D6CB1602A951001DC345 /* LexPO.cxx in Sources */, 1102C31C169FB49300DC16AB /* LexLaTeX.cxx in Sources */, 11FDAEB7174E1A9800FA161B /* LexSTTXT.cxx in Sources */, 11FBA39D17817DA00048C071 /* CharacterCategory.cxx in Sources */, 1100F1EB178E393200105727 /* CaseConvert.cxx in Sources */, 1100F1ED178E393200105727 /* CaseFolder.cxx in Sources */, 11FDD0E017C480D4001541B9 /* LexKVIrc.cxx in Sources */, 1160E0381803651C00BCEBCB /* LexRust.cxx in Sources */, 11FF3FE21810EB3900E13F13 /* LexDMAP.cxx in Sources */, F437405F9F32C7DEFCA38C11 /* LexIndent.cxx in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( 089C1667FE841158C02AAC07 /* English */, ); name = InfoPlist.strings; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 1DEB91AE08733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LIBRARY = "libc++"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = ".bzr *.nib *.lproj *.framework *.gch (*) CVS .svn *.xcodeproj *.xcode *.pbproj *.pbxproj"; FRAMEWORK_VERSION = A; GCC_DYNAMIC_NO_PIC = NO; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Scintilla_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = ( SCI_NAMESPACE, SCI_LEXER, ); GCC_WARN_UNINITIALIZED_AUTOS = NO; GCC_WARN_UNKNOWN_PRAGMAS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_LABEL = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.7; MODULEMAP_FILE = module.modulemap; PRODUCT_BUNDLE_IDENTIFIER = "com.sun.${PRODUCT_NAME:identifier}"; PRODUCT_NAME = Scintilla; SKIP_INSTALL = YES; WRAPPER_EXTENSION = framework; }; name = Debug; }; 1DEB91AF08733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LIBRARY = "libc++"; COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; FRAMEWORK_VERSION = A; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = Scintilla_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = ( SCI_NAMESPACE, SCI_LEXER, ); GCC_WARN_UNINITIALIZED_AUTOS = NO; GCC_WARN_UNKNOWN_PRAGMAS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_LABEL = YES; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "@executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.7; MODULEMAP_FILE = module.modulemap; PRODUCT_BUNDLE_IDENTIFIER = "com.sun.${PRODUCT_NAME:identifier}"; PRODUCT_NAME = Scintilla; SKIP_INSTALL = YES; WRAPPER_EXTENSION = framework; }; name = Release; }; 1DEB91B208733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ../../include, ../../src, ../../lexlib, ); MACOSX_DEPLOYMENT_TARGET = 10.7; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; }; name = Debug; }; 1DEB91B308733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++0x"; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; HEADER_SEARCH_PATHS = ( ../../include, ../../src, ../../lexlib, ); MACOSX_DEPLOYMENT_TARGET = 10.7; SDKROOT = macosx; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Scintilla" */ = { isa = XCConfigurationList; buildConfigurations = ( 1DEB91AE08733DA50010E9CD /* Debug */, 1DEB91AF08733DA50010E9CD /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "ScintillaFramework" */ = { isa = XCConfigurationList; buildConfigurations = ( 1DEB91B208733DA50010E9CD /* Debug */, 1DEB91B308733DA50010E9CD /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 0867D690FE84028FC02AAC07 /* Project object */; } 000077500000000000000000000000001310136352400341515ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/project.xcworkspacecontents.xcworkspacedata000066400000000000000000000002431310136352400411120ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/project.xcworkspace codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/xcshareddata/000077500000000000000000000000001310136352400326655ustar00rootroot00000000000000000077500000000000000000000000001310136352400345705ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/xcshareddata/xcschemesScintilla.xcscheme000066400000000000000000000047721310136352400402450ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/xcshareddata/xcschemes codequery-0.21.0/scintilla/cocoa/ScintillaFramework/Scintilla_Prefix.pch000066400000000000000000000002261310136352400263710ustar00rootroot00000000000000// // Prefix header for all source files of the 'Scintilla' target in the 'Scintilla' project. // #ifdef __OBJC__ #import #endif codequery-0.21.0/scintilla/cocoa/ScintillaFramework/module.modulemap000066400000000000000000000003711310136352400256310ustar00rootroot00000000000000framework module Scintilla { umbrella header "ScintillaView.h" module InfoBar { header "InfoBar.h" } // ILexer.h is not included as Swift doesn't yet interoperate with C++ exclude header "ILexer.h" export * module * { export * } } codequery-0.21.0/scintilla/cocoa/ScintillaTest/000077500000000000000000000000001310136352400214205ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaTest/AppController.h000066400000000000000000000012161310136352400243550ustar00rootroot00000000000000/** * AppController.h * SciTest * * Created by Mike Lischke on 01.04.09. * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import #import "Scintilla/ScintillaView.h" #import "Scintilla/InfoBar.h" @interface AppController : NSObject { IBOutlet NSBox *mEditHost; ScintillaView* mEditor; ScintillaView* sciExtra; // For testing Scintilla tear-down NSString* sql; } - (void) awakeFromNib; - (void) setupEditor; - (IBAction) searchText: (id) sender; - (IBAction) addRemoveExtra: (id) sender; @end codequery-0.21.0/scintilla/cocoa/ScintillaTest/AppController.mm000066400000000000000000000336701310136352400245500ustar00rootroot00000000000000/** * AppController.m * ScintillaTest * * Created by Mike Lischke on 01.04.09. * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import "AppController.h" const char major_keywords[] = "accessible add all alter analyze and as asc asensitive " "before between bigint binary blob both by " "call cascade case change char character check collate column condition connection constraint " "continue convert create cross current_date current_time current_timestamp current_user cursor " "database databases day_hour day_microsecond day_minute day_second dec decimal declare default " "delayed delete desc describe deterministic distinct distinctrow div double drop dual " "each else elseif enclosed escaped exists exit explain " "false fetch float float4 float8 for force foreign from fulltext " "goto grant group " "having high_priority hour_microsecond hour_minute hour_second " "if ignore in index infile inner inout insensitive insert int int1 int2 int3 int4 int8 integer " "interval into is iterate " "join " "key keys kill " "label leading leave left like limit linear lines load localtime localtimestamp lock long " "longblob longtext loop low_priority " "master_ssl_verify_server_cert match mediumblob mediumint mediumtext middleint minute_microsecond " "minute_second mod modifies " "natural not no_write_to_binlog null numeric " "on optimize option optionally or order out outer outfile " "precision primary procedure purge " "range read reads read_only read_write real references regexp release rename repeat replace " "require restrict return revoke right rlike " "schema schemas second_microsecond select sensitive separator set show smallint spatial specific " "sql sqlexception sqlstate sqlwarning sql_big_result sql_calc_found_rows sql_small_result ssl " "starting straight_join " "table terminated then tinyblob tinyint tinytext to trailing trigger true " "undo union unique unlock unsigned update upgrade usage use using utc_date utc_time utc_timestamp " "values varbinary varchar varcharacter varying " "when where while with write " "xor " "year_month " "zerofill"; const char procedure_keywords[] = // Not reserved words but intrinsic part of procedure definitions. "begin comment end"; const char client_keywords[] = // Definition of keywords only used by clients, not the server itself. "delimiter"; const char user_keywords[] = // Definition of own keywords, not used by MySQL. "edit"; //-------------------------------------------------------------------------------------------------- @implementation AppController - (void) awakeFromNib { // Manually set up the scintilla editor. Create an instance and dock it to our edit host. // Leave some free space around the new view to avoid overlapping with the box borders. NSRect newFrame = mEditHost.frame; newFrame.size.width -= 2 * newFrame.origin.x; newFrame.size.height -= 3 * newFrame.origin.y; mEditor = [[[ScintillaView alloc] initWithFrame: newFrame] autorelease]; [mEditHost.contentView addSubview: mEditor]; [mEditor setAutoresizesSubviews: YES]; [mEditor setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable]; // Let's load some text for the editor, as initial content. NSError* error = nil; NSString* path = [[NSBundle mainBundle] pathForResource: @"TestData" ofType: @"sql" inDirectory: nil]; sql = [NSString stringWithContentsOfFile: path encoding: NSUTF8StringEncoding error: &error]; [sql retain]; if (error && [[error domain] isEqual: NSCocoaErrorDomain]) NSLog(@"%@", error); [mEditor setString: sql]; [self setupEditor]; sciExtra = nil; } //-------------------------------------------------------------------------------------------------- /** * Initialize scintilla editor (styles, colors, markers, folding etc.]. */ - (void) setupEditor { // Lexer type is MySQL. [mEditor setGeneralProperty: SCI_SETLEXER parameter: SCLEX_MYSQL value: 0]; // alternatively: [mEditor setEditorProperty: SCI_SETLEXERLANGUAGE parameter: nil value: (sptr_t) "mysql"]; // Number of styles we use with this lexer. [mEditor setGeneralProperty: SCI_SETSTYLEBITS value: [mEditor getGeneralProperty: SCI_GETSTYLEBITSNEEDED]]; // Keywords to highlight. Indices are: // 0 - Major keywords (reserved keywords) // 1 - Normal keywords (everything not reserved but integral part of the language) // 2 - Database objects // 3 - Function keywords // 4 - System variable keywords // 5 - Procedure keywords (keywords used in procedures like "begin" and "end") // 6..8 - User keywords 1..3 [mEditor setReferenceProperty: SCI_SETKEYWORDS parameter: 0 value: major_keywords]; [mEditor setReferenceProperty: SCI_SETKEYWORDS parameter: 5 value: procedure_keywords]; [mEditor setReferenceProperty: SCI_SETKEYWORDS parameter: 6 value: client_keywords]; [mEditor setReferenceProperty: SCI_SETKEYWORDS parameter: 7 value: user_keywords]; // Colors and styles for various syntactic elements. First the default style. [mEditor setStringProperty: SCI_STYLESETFONT parameter: STYLE_DEFAULT value: @"Helvetica"]; // [mEditor setStringProperty: SCI_STYLESETFONT parameter: STYLE_DEFAULT value: @"Monospac821 BT"]; // Very pleasing programmer's font. [mEditor setGeneralProperty: SCI_STYLESETSIZE parameter: STYLE_DEFAULT value: 14]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: STYLE_DEFAULT value: [NSColor blackColor]]; [mEditor setGeneralProperty: SCI_STYLECLEARALL parameter: 0 value: 0]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_DEFAULT value: [NSColor blackColor]]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_COMMENT fromHTML: @"#097BF7"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_COMMENTLINE fromHTML: @"#097BF7"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_HIDDENCOMMAND fromHTML: @"#097BF7"]; [mEditor setColorProperty: SCI_STYLESETBACK parameter: SCE_MYSQL_HIDDENCOMMAND fromHTML: @"#F0F0F0"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_VARIABLE fromHTML: @"378EA5"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_SYSTEMVARIABLE fromHTML: @"378EA5"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_KNOWNSYSTEMVARIABLE fromHTML: @"#3A37A5"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_NUMBER fromHTML: @"#7F7F00"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_SQSTRING fromHTML: @"#FFAA3E"]; // Note: if we were using ANSI quotes we would set the DQSTRING to the same color as the // the back tick string. [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_DQSTRING fromHTML: @"#274A6D"]; // Keyword highlighting. [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_MAJORKEYWORD fromHTML: @"#007F00"]; [mEditor setGeneralProperty: SCI_STYLESETBOLD parameter: SCE_MYSQL_MAJORKEYWORD value: 1]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_KEYWORD fromHTML: @"#007F00"]; [mEditor setGeneralProperty: SCI_STYLESETBOLD parameter: SCE_MYSQL_KEYWORD value: 1]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_PROCEDUREKEYWORD fromHTML: @"#56007F"]; [mEditor setGeneralProperty: SCI_STYLESETBOLD parameter: SCE_MYSQL_PROCEDUREKEYWORD value: 1]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_USER1 fromHTML: @"#808080"]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_USER2 fromHTML: @"#808080"]; [mEditor setColorProperty: SCI_STYLESETBACK parameter: SCE_MYSQL_USER2 fromHTML: @"#F0E0E0"]; // The following 3 styles have no impact as we did not set a keyword list for any of them. [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_DATABASEOBJECT value: [NSColor redColor]]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_FUNCTION value: [NSColor redColor]]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_IDENTIFIER value: [NSColor blackColor]]; [mEditor setColorProperty: SCI_STYLESETFORE parameter: SCE_MYSQL_QUOTEDIDENTIFIER fromHTML: @"#274A6D"]; [mEditor setGeneralProperty: SCI_STYLESETBOLD parameter: SCE_SQL_OPERATOR value: 1]; // Line number style. [mEditor setColorProperty: SCI_STYLESETFORE parameter: STYLE_LINENUMBER fromHTML: @"#F0F0F0"]; [mEditor setColorProperty: SCI_STYLESETBACK parameter: STYLE_LINENUMBER fromHTML: @"#808080"]; [mEditor setGeneralProperty: SCI_SETMARGINTYPEN parameter: 0 value: SC_MARGIN_NUMBER]; [mEditor setGeneralProperty: SCI_SETMARGINWIDTHN parameter: 0 value: 35]; // Markers. [mEditor setGeneralProperty: SCI_SETMARGINWIDTHN parameter: 1 value: 16]; // Some special lexer properties. [mEditor setLexerProperty: @"fold" value: @"1"]; [mEditor setLexerProperty: @"fold.compact" value: @"0"]; [mEditor setLexerProperty: @"fold.comment" value: @"1"]; [mEditor setLexerProperty: @"fold.preprocessor" value: @"1"]; // Folder setup. [mEditor setGeneralProperty: SCI_SETMARGINWIDTHN parameter: 2 value: 16]; [mEditor setGeneralProperty: SCI_SETMARGINMASKN parameter: 2 value: SC_MASK_FOLDERS]; [mEditor setGeneralProperty: SCI_SETMARGINSENSITIVEN parameter: 2 value: 1]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDEROPEN value: SC_MARK_BOXMINUS]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDER value: SC_MARK_BOXPLUS]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDERSUB value: SC_MARK_VLINE]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDERTAIL value: SC_MARK_LCORNER]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDEREND value: SC_MARK_BOXPLUSCONNECTED]; [mEditor setGeneralProperty: SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDEROPENMID value: SC_MARK_BOXMINUSCONNECTED]; [mEditor setGeneralProperty : SCI_MARKERDEFINE parameter: SC_MARKNUM_FOLDERMIDTAIL value: SC_MARK_TCORNER]; for (int n= 25; n < 32; ++n) // Markers 25..31 are reserved for folding. { [mEditor setColorProperty: SCI_MARKERSETFORE parameter: n value: [NSColor whiteColor]]; [mEditor setColorProperty: SCI_MARKERSETBACK parameter: n value: [NSColor blackColor]]; } // Init markers & indicators for highlighting of syntax errors. [mEditor setColorProperty: SCI_INDICSETFORE parameter: 0 value: [NSColor redColor]]; [mEditor setGeneralProperty: SCI_INDICSETUNDER parameter: 0 value: 1]; [mEditor setGeneralProperty: SCI_INDICSETSTYLE parameter: 0 value: INDIC_SQUIGGLE]; [mEditor setColorProperty: SCI_MARKERSETBACK parameter: 0 fromHTML: @"#B1151C"]; [mEditor setColorProperty: SCI_SETSELBACK parameter: 1 value: [NSColor selectedTextBackgroundColor]]; // Uncomment if you wanna see auto wrapping in action. //[mEditor setGeneralProperty: SCI_SETWRAPMODE parameter: SC_WRAP_WORD value: 0]; InfoBar* infoBar = [[[InfoBar alloc] initWithFrame: NSMakeRect(0, 0, 400, 0)] autorelease]; [infoBar setDisplay: IBShowAll]; [mEditor setInfoBar: infoBar top: NO]; [mEditor setStatusText: @"Operation complete"]; } //-------------------------------------------------------------------------------------------------- /* XPM */ static const char * box_xpm[] = { "12 12 2 1", " c None", ". c #800000", " .........", " . . ..", " . . . .", "......... .", ". . . .", ". . . ..", ". . .. .", "......... .", ". . . .", ". . . . ", ". . .. ", "......... "}; - (void) showAutocompletion { const char *words = "Babylon-5?1 Battlestar-Galactica Millennium-Falcon?2 Moya?2 Serenity Voyager"; [mEditor setGeneralProperty: SCI_AUTOCSETIGNORECASE parameter: 1 value:0]; [mEditor setGeneralProperty: SCI_REGISTERIMAGE parameter: 1 value:(sptr_t)box_xpm]; const int imSize = 12; [mEditor setGeneralProperty: SCI_RGBAIMAGESETWIDTH parameter: imSize value:0]; [mEditor setGeneralProperty: SCI_RGBAIMAGESETHEIGHT parameter: imSize value:0]; char image[imSize * imSize * 4]; for (size_t y = 0; y < imSize; y++) { for (size_t x = 0; x < imSize; x++) { char *p = image + (y * imSize + x) * 4; p[0] = 0xFF; p[1] = 0xA0; p[2] = 0; p[3] = x * 23; } } [mEditor setGeneralProperty: SCI_REGISTERRGBAIMAGE parameter: 2 value:(sptr_t)image]; [mEditor setGeneralProperty: SCI_AUTOCSHOW parameter: 0 value:(sptr_t)words]; } - (IBAction) searchText: (id) sender { NSSearchField* searchField = (NSSearchField*) sender; [mEditor findAndHighlightText: [searchField stringValue] matchCase: NO wholeWord: NO scrollTo: YES wrap: YES]; long matchStart = [mEditor getGeneralProperty: SCI_GETSELECTIONSTART parameter: 0]; long matchEnd = [mEditor getGeneralProperty: SCI_GETSELECTIONEND parameter: 0]; [mEditor setGeneralProperty: SCI_FINDINDICATORFLASH parameter: matchStart value:matchEnd]; if ([[searchField stringValue] isEqualToString: @"XX"]) [self showAutocompletion]; } - (IBAction) addRemoveExtra: (id) sender { if (sciExtra) { [sciExtra removeFromSuperview]; sciExtra = nil; } else { NSRect newFrame = mEditHost.frame; newFrame.origin.x += newFrame.size.width + 5; newFrame.origin.y += 46; newFrame.size.width = 96; newFrame.size.height -= 60; sciExtra = [[[ScintillaView alloc] initWithFrame: newFrame] autorelease]; [[[mEditHost window]contentView] addSubview: sciExtra]; [sciExtra setGeneralProperty: SCI_SETWRAPMODE parameter: SC_WRAP_WORD value: 1]; [sciExtra setString: sql]; } } -(IBAction) setFontQuality: (id) sender { [ScintillaView directCall:mEditor message:SCI_SETFONTQUALITY wParam:[sender tag] lParam:0]; } @end //-------------------------------------------------------------------------------------------------- codequery-0.21.0/scintilla/cocoa/ScintillaTest/English.lproj/000077500000000000000000000000001310136352400241365ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaTest/English.lproj/InfoPlist.strings000066400000000000000000000001341310136352400274560ustar00rootroot00000000000000ÿþ/* Localized versions of Info.plist keys */ codequery-0.21.0/scintilla/cocoa/ScintillaTest/English.lproj/MainMenu.xib000066400000000000000000001234521310136352400263620ustar00rootroot00000000000000 codequery-0.21.0/scintilla/cocoa/ScintillaTest/Info.plist000066400000000000000000000015111310136352400233660ustar00rootroot00000000000000 CFBundleDevelopmentRegion English CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIconFile CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName ${PRODUCT_NAME} CFBundlePackageType APPL CFBundleSignature ???? CFBundleVersion 1.0 NSMainNibFile MainMenu NSPrincipalClass NSApplication codequery-0.21.0/scintilla/cocoa/ScintillaTest/Scintilla-Info.plist000066400000000000000000000011621310136352400253100ustar00rootroot00000000000000 CFBundleDevelopmentRegion English CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier com.sun.${PRODUCT_NAME:identifier} CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType FMWK CFBundleSignature ???? CFBundleVersion 1.0 codequery-0.21.0/scintilla/cocoa/ScintillaTest/ScintillaTest.xcodeproj/000077500000000000000000000000001310136352400261765ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaTest/ScintillaTest.xcodeproj/project.pbxproj000066400000000000000000000373061310136352400312630ustar00rootroot00000000000000// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58140DA1D0A300B32029 /* MainMenu.xib */; }; 271FA52C0F850BE20033D021 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 271FA52B0F850BE20033D021 /* AppController.mm */; }; 2791F4490FC1A8E9009DBCF9 /* TestData.sql in Resources */ = {isa = PBXBuildFile; fileRef = 2791F4480FC1A8E9009DBCF9 /* TestData.sql */; }; 27AF7EC30FC2C351007160EF /* Scintilla.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2744E5EA0FC16BE200E85C33 /* Scintilla.framework */; }; 27AF7ECA0FC2C388007160EF /* Scintilla.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 2744E5EA0FC16BE200E85C33 /* Scintilla.framework */; }; 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; }; 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 2744E5E90FC16BE200E85C33 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 2744E5E20FC16BE200E85C33 /* ScintillaFramework.xcodeproj */; proxyType = 2; remoteGlobalIDString = 8DC2EF5B0486A6940098B216; remoteInfo = Scintilla; }; 27AF7EC60FC2C36A007160EF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 2744E5E20FC16BE200E85C33 /* ScintillaFramework.xcodeproj */; proxyType = 1; remoteGlobalIDString = 8DC2EF4F0486A6940098B216; remoteInfo = Scintilla; }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ 272133C20F973596006BE49A /* CopyFiles */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( 27AF7ECA0FC2C388007160EF /* Scintilla.framework in CopyFiles */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; }; 1DDD58150DA1D0A300B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; 271FA52A0F850BE20033D021 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; }; 271FA52B0F850BE20033D021 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = ""; wrapsLines = 0; }; 2744E5E20FC16BE200E85C33 /* ScintillaFramework.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ScintillaFramework.xcodeproj; path = ../ScintillaFramework/ScintillaFramework.xcodeproj; sourceTree = SOURCE_ROOT; }; 2791F4480FC1A8E9009DBCF9 /* TestData.sql */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TestData.sql; sourceTree = ""; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 32CA4F630368D1EE00C91783 /* ScintillaTest_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScintillaTest_Prefix.pch; sourceTree = ""; }; 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 8D1107320486CEB800E47090 /* ScintillaTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ScintillaTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 8D11072E0486CEB800E47090 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 27AF7EC30FC2C351007160EF /* Scintilla.framework in Frameworks */, 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( 271FA52A0F850BE20033D021 /* AppController.h */, 271FA52B0F850BE20033D021 /* AppController.mm */, ); name = Classes; sourceTree = ""; }; 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = { isa = PBXGroup; children = ( 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, ); name = "Linked Frameworks"; sourceTree = ""; }; 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = { isa = PBXGroup; children = ( 29B97324FDCFA39411CA2CEA /* AppKit.framework */, 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */, 29B97325FDCFA39411CA2CEA /* Foundation.framework */, ); name = "Other Frameworks"; sourceTree = ""; }; 19C28FACFE9D520D11CA2CBB /* Products */ = { isa = PBXGroup; children = ( 8D1107320486CEB800E47090 /* ScintillaTest.app */, ); name = Products; sourceTree = ""; }; 2744E5E30FC16BE200E85C33 /* Products */ = { isa = PBXGroup; children = ( 2744E5EA0FC16BE200E85C33 /* Scintilla.framework */, ); name = Products; sourceTree = ""; }; 29B97314FDCFA39411CA2CEA /* ScintillaTest */ = { isa = PBXGroup; children = ( 2744E5E20FC16BE200E85C33 /* ScintillaFramework.xcodeproj */, 080E96DDFE201D6D7F000001 /* Classes */, 29B97315FDCFA39411CA2CEA /* Other Sources */, 29B97317FDCFA39411CA2CEA /* Resources */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, ); name = ScintillaTest; sourceTree = ""; }; 29B97315FDCFA39411CA2CEA /* Other Sources */ = { isa = PBXGroup; children = ( 32CA4F630368D1EE00C91783 /* ScintillaTest_Prefix.pch */, 29B97316FDCFA39411CA2CEA /* main.m */, ); name = "Other Sources"; sourceTree = ""; }; 29B97317FDCFA39411CA2CEA /* Resources */ = { isa = PBXGroup; children = ( 2791F4480FC1A8E9009DBCF9 /* TestData.sql */, 8D1107310486CEB800E47090 /* Info.plist */, 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */, 1DDD58140DA1D0A300B32029 /* MainMenu.xib */, ); name = Resources; sourceTree = ""; }; 29B97323FDCFA39411CA2CEA /* Frameworks */ = { isa = PBXGroup; children = ( 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */, 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */, ); name = Frameworks; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 8D1107260486CEB800E47090 /* ScintillaTest */ = { isa = PBXNativeTarget; buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "ScintillaTest" */; buildPhases = ( 8D1107290486CEB800E47090 /* Resources */, 8D11072C0486CEB800E47090 /* Sources */, 8D11072E0486CEB800E47090 /* Frameworks */, 272133C20F973596006BE49A /* CopyFiles */, ); buildRules = ( ); dependencies = ( 27AF7EC70FC2C36A007160EF /* PBXTargetDependency */, ); name = ScintillaTest; productInstallPath = "$(HOME)/Applications"; productName = ScintillaTest; productReference = 8D1107320486CEB800E47090 /* ScintillaTest.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0700; }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ScintillaTest" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( English, Japanese, French, German, ); mainGroup = 29B97314FDCFA39411CA2CEA /* ScintillaTest */; projectDirPath = ""; projectReferences = ( { ProductGroup = 2744E5E30FC16BE200E85C33 /* Products */; ProjectRef = 2744E5E20FC16BE200E85C33 /* ScintillaFramework.xcodeproj */; }, ); projectRoot = ""; targets = ( 8D1107260486CEB800E47090 /* ScintillaTest */, ); }; /* End PBXProject section */ /* Begin PBXReferenceProxy section */ 2744E5EA0FC16BE200E85C33 /* Scintilla.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; path = Scintilla.framework; remoteRef = 2744E5E90FC16BE200E85C33 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ 8D1107290486CEB800E47090 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */, 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */, 2791F4490FC1A8E9009DBCF9 /* TestData.sql in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 8D11072C0486CEB800E47090 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 8D11072D0486CEB800E47090 /* main.m in Sources */, 271FA52C0F850BE20033D021 /* AppController.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 27AF7EC70FC2C36A007160EF /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = Scintilla; targetProxy = 27AF7EC60FC2C36A007160EF /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( 089C165DFE840E0CC02AAC07 /* English */, ); name = InfoPlist.strings; sourceTree = ""; }; 1DDD58140DA1D0A300B32029 /* MainMenu.xib */ = { isa = PBXVariantGroup; children = ( 1DDD58150DA1D0A300B32029 /* English */, ); name = MainMenu.xib; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ C01FCF4B08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; GCC_DYNAMIC_NO_PIC = NO; GCC_MODEL_TUNING = G5; GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ScintillaTest_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = ( SCI_LEXER, SCI_NAMESPACE, ); HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "com.sun.${PRODUCT_NAME:identifier}"; PRODUCT_NAME = ScintillaTest; SDKROOT = macosx; USER_HEADER_SEARCH_PATHS = ""; }; name = Debug; }; C01FCF4C08A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; COMBINE_HIDPI_IMAGES = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ScintillaTest_Prefix.pch; GCC_PREPROCESSOR_DEFINITIONS = ( SCI_LEXER, SCI_NAMESPACE, ); HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(HOME)/Applications"; LIBRARY_SEARCH_PATHS = "$(inherited)"; OTHER_LDFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "com.sun.${PRODUCT_NAME:identifier}"; PRODUCT_NAME = ScintillaTest; SDKROOT = macosx; USER_HEADER_SEARCH_PATHS = ""; }; name = Release; }; C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ""; SDKROOT = macosx; }; name = Debug; }; C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_NO_COMMON_BLOCKS = YES; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; OTHER_LDFLAGS = ""; SDKROOT = macosx; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "ScintillaTest" */ = { isa = XCConfigurationList; buildConfigurations = ( C01FCF4B08A954540054247B /* Debug */, C01FCF4C08A954540054247B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; C01FCF4E08A954540054247B /* Build configuration list for PBXProject "ScintillaTest" */ = { isa = XCConfigurationList; buildConfigurations = ( C01FCF4F08A954540054247B /* Debug */, C01FCF5008A954540054247B /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; } codequery-0.21.0/scintilla/cocoa/ScintillaTest/ScintillaTest.xcodeproj/project.xcworkspace/000077500000000000000000000000001310136352400321745ustar00rootroot00000000000000contents.xcworkspacedata000066400000000000000000000002361310136352400370600ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/ScintillaTest/ScintillaTest.xcodeproj/project.xcworkspace codequery-0.21.0/scintilla/cocoa/ScintillaTest/ScintillaTest_Prefix.pch000066400000000000000000000002351310136352400262130ustar00rootroot00000000000000// // Prefix header for all source files of the 'ScintillaTest' target in the 'ScintillaTest' project // #ifdef __OBJC__ #import #endif codequery-0.21.0/scintilla/cocoa/ScintillaTest/TestData.sql000066400000000000000000000202041310136352400236500ustar00rootroot00000000000000-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.45 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI_QUOTES' */; /** * Foldable multiline comment. */ -- { -- Create schema sakila -- } CREATE DATABASE IF NOT EXISTS sakila; USE sakila; DROP TABLE IF EXISTS "sakila"."actor_info"; DROP VIEW IF EXISTS "sakila"."actor_info"; CREATE TABLE "sakila"."actor_info" ( "actor_id" smallint(5) unsigned, "first_name" varchar(45), "last_name" varchar(45), "film_info" varchar(341) ); DROP TABLE IF EXISTS "sakila"."actor"; CREATE TABLE "sakila"."actor" ( "actor_id" smallint(5) unsigned NOT NULL auto_increment, "first_name" varchar(45) NOT NULL, "last_name" varchar(45) NOT NULL, "last_update" timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, PRIMARY KEY ("actor_id"), KEY "idx_actor_last_name" ("last_name") ) ENGINE=InnoDB AUTO_INCREMENT=201 DEFAULT CHARSET=utf8; INSERT INTO "sakila"."actor" VALUES (1,'PENELOPE','GUINESS','2006-02-15 04:34:33'), (2,'NICK','WAHLBERG','2006-02-15 04:34:33'), (3,'ED','CHASE','2006-02-15 04:34:33'), (4,'JENNIFER','DAVIS','2006-02-15 04:34:33'), (149,'RUSSELL','TEMPLE','2006-02-15 04:34:33'), (150,'JAYNE','NOLTE','2006-02-15 04:34:33'), (151,'GEOFFREY','HESTON','2006-02-15 04:34:33'), (152,'BEN','HARRIS','2006-02-15 04:34:33'), (153,'MINNIE','KILMER','2006-02-15 04:34:33'), (154,'MERYL','GIBSON','2006-02-15 04:34:33'), (155,'IAN','TANDY','2006-02-15 04:34:33'), (156,'FAY','WOOD','2006-02-15 04:34:33'), (157,'GRETA','MALDEN','2006-02-15 04:34:33'), (158,'VIVIEN','BASINGER','2006-02-15 04:34:33'), (159,'LAURA','BRODY','2006-02-15 04:34:33'), (160,'CHRIS','DEPP','2006-02-15 04:34:33'), (161,'HARVEY','HOPE','2006-02-15 04:34:33'), (162,'OPRAH','KILMER','2006-02-15 04:34:33'), (163,'CHRISTOPHER','WEST','2006-02-15 04:34:33'), (164,'HUMPHREY','WILLIS','2006-02-15 04:34:33'), (165,'AL','GARLAND','2006-02-15 04:34:33'), (166,'NICK','DEGENERES','2006-02-15 04:34:33'), (167,'LAURENCE','BULLOCK','2006-02-15 04:34:33'), (168,'WILL','WILSON','2006-02-15 04:34:33'), (169,'KENNETH','HOFFMAN','2006-02-15 04:34:33'), (170,'MENA','HOPPER','2006-02-15 04:34:33'), (171,'OLYMPIA','PFEIFFER','2006-02-15 04:34:33'), (190,'AUDREY','BAILEY','2006-02-15 04:34:33'), (191,'GREGORY','GOODING','2006-02-15 04:34:33'), (192,'JOHN','SUVARI','2006-02-15 04:34:33'), (193,'BURT','TEMPLE','2006-02-15 04:34:33'), (194,'MERYL','ALLEN','2006-02-15 04:34:33'), (195,'JAYNE','SILVERSTONE','2006-02-15 04:34:33'), (196,'BELA','WALKEN','2006-02-15 04:34:33'), (197,'REESE','WEST','2006-02-15 04:34:33'), (198,'MARY','KEITEL','2006-02-15 04:34:33'), (199,'JULIA','FAWCETT','2006-02-15 04:34:33'), (200,'THORA','TEMPLE','2006-02-15 04:34:33'); DROP TRIGGER /*!50030 IF EXISTS */ "sakila"."payment_date"; DELIMITER $$ CREATE DEFINER = "root"@"localhost" TRIGGER "sakila"."payment_date" BEFORE INSERT ON "payment" FOR EACH ROW SET NEW.payment_date = NOW() $$ DELIMITER ; DROP TABLE IF EXISTS "sakila"."sales_by_store"; DROP VIEW IF EXISTS "sakila"."sales_by_store"; CREATE ALGORITHM=UNDEFINED DEFINER="root"@"localhost" SQL SECURITY DEFINER VIEW "sakila"."sales_by_store" AS select concat("c"."city",_utf8',',"cy"."country") AS "store",concat("m"."first_name",_utf8' ',"m"."last_name") AS "manager",sum("p"."amount") AS "total_sales" from ((((((("sakila"."payment" "p" join "sakila"."rental" "r" on(("p"."rental_id" = "r"."rental_id"))) join "sakila"."inventory" "i" on(("r"."inventory_id" = "i"."inventory_id"))) join "sakila"."store" "s" on(("i"."store_id" = "s"."store_id"))) join "sakila"."address" "a" on(("s"."address_id" = "a"."address_id"))) join "sakila"."city" "c" on(("a"."city_id" = "c"."city_id"))) join "sakila"."country" "cy" on(("c"."country_id" = "cy"."country_id"))) join "sakila"."staff" "m" on(("s"."manager_staff_id" = "m"."staff_id"))) group by "s"."store_id" order by "cy"."country","c"."city"; -- -- View structure for view `staff_list` -- CREATE VIEW staff_list AS SELECT s.staff_id AS ID, CONCAT(s.first_name, _utf8' ', s.last_name) AS name, a.address AS address, a.postal_code AS `zip code`, a.phone AS phone, city.city AS city, country.country AS country, s.store_id AS SID FROM staff AS s JOIN address AS a ON s.address_id = a.address_id JOIN city ON a.city_id = city.city_id JOIN country ON city.country_id = country.country_id; -- -- View structure for view `actor_info` -- CREATE DEFINER=CURRENT_USER SQL SECURITY INVOKER VIEW actor_info AS SELECT a.actor_id, a.first_name, a.last_name, GROUP_CONCAT(DISTINCT CONCAT(c.name, ': ', (SELECT GROUP_CONCAT(f.title ORDER BY f.title SEPARATOR ', ') FROM sakila.film f INNER JOIN sakila.film_category fc ON f.film_id = fc.film_id INNER JOIN sakila.film_actor fa ON f.film_id = fa.film_id WHERE fc.category_id = c.category_id AND fa.actor_id = a.actor_id ) ) ORDER BY c.name SEPARATOR '; ') AS film_info FROM sakila.actor a LEFT JOIN sakila.film_actor fa ON a.actor_id = fa.actor_id LEFT JOIN sakila.film_category fc ON fa.film_id = fc.film_id LEFT JOIN sakila.category c ON fc.category_id = c.category_id GROUP BY a.actor_id, a.first_name, a.last_name; DELIMITER $$ CREATE FUNCTION get_customer_balance(p_customer_id INT, p_effective_date DATETIME) RETURNS DECIMAL(5,2) DETERMINISTIC READS SQL DATA BEGIN #OK, WE NEED TO CALCULATE THE CURRENT BALANCE GIVEN A CUSTOMER_ID AND A DATE #THAT WE WANT THE BALANCE TO BE EFFECTIVE FOR. THE BALANCE IS: # 1) RENTAL FEES FOR ALL PREVIOUS RENTALS # 2) ONE DOLLAR FOR EVERY DAY THE PREVIOUS RENTALS ARE OVERDUE # 3) IF A FILM IS MORE THAN RENTAL_DURATION * 2 OVERDUE, CHARGE THE REPLACEMENT_COST # 4) SUBTRACT ALL PAYMENTS MADE BEFORE THE DATE SPECIFIED DECLARE v_rentfees DECIMAL(5,2); #FEES PAID TO RENT THE VIDEOS INITIALLY DECLARE v_overfees INTEGER; #LATE FEES FOR PRIOR RENTALS DECLARE v_payments DECIMAL(5,2); #SUM OF PAYMENTS MADE PREVIOUSLY SELECT IFNULL(SUM(film.rental_rate),0) INTO v_rentfees FROM film, inventory, rental WHERE film.film_id = inventory.film_id AND inventory.inventory_id = rental.inventory_id AND rental.rental_date <= p_effective_date AND rental.customer_id = p_customer_id; SELECT IFNULL(SUM(IF((TO_DAYS(rental.return_date) - TO_DAYS(rental.rental_date)) > film.rental_duration, ((TO_DAYS(rental.return_date) - TO_DAYS(rental.rental_date)) - film.rental_duration),0)),0) INTO v_overfees FROM rental, inventory, film WHERE film.film_id = inventory.film_id AND inventory.inventory_id = rental.inventory_id AND rental.rental_date <= p_effective_date AND rental.customer_id = p_customer_id; SELECT IFNULL(SUM(payment.amount),0) INTO v_payments FROM payment WHERE payment.payment_date <= p_effective_date AND payment.customer_id = p_customer_id; RETURN v_rentfees + v_overfees - v_payments; END $$ DELIMITER ; DELIMITER $$ CREATE FUNCTION inventory_in_stock(p_inventory_id INT) RETURNS BOOLEAN READS SQL DATA BEGIN DECLARE v_rentals INT; DECLARE v_out INT; #AN ITEM IS IN-STOCK IF THERE ARE EITHER NO ROWS IN THE rental TABLE #FOR THE ITEM OR ALL ROWS HAVE return_date POPULATED SELECT COUNT(*) INTO v_rentals FROM rental WHERE inventory_id = p_inventory_id; IF v_rentals = 0 THEN RETURN TRUE; END IF; SELECT COUNT(rental_id) INTO v_out FROM inventory LEFT JOIN rental USING(inventory_id) WHERE inventory.inventory_id = p_inventory_id AND rental.return_date IS NULL; IF v_out > 0 THEN RETURN FALSE; ELSE RETURN TRUE; END IF; END $$ DELIMITER ; codequery-0.21.0/scintilla/cocoa/ScintillaTest/main.m000066400000000000000000000005661310136352400225310ustar00rootroot00000000000000/** * main.m * ScintillaTest * * Created by Mike Lischke on 02.04.09. * Copyright Sun Microsystems, Inc 2009. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import int main(int argc, char *argv[]) { return NSApplicationMain(argc, (const char **) argv); } codequery-0.21.0/scintilla/cocoa/ScintillaView.h000066400000000000000000000137501310136352400215720ustar00rootroot00000000000000 /** * Declaration of the native Cocoa View that serves as container for the scintilla parts. * * Created by Mike Lischke. * * Copyright 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright 2009, 2011 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import #import "Scintilla.h" #import "SciLexer.h" #import "InfoBarCommunicator.h" /** * Scintilla sends these two messages to the notify handler. Please refer * to the Windows API doc for details about the message format. */ #define WM_COMMAND 1001 #define WM_NOTIFY 1002 /** * On the Mac, there is no WM_COMMAND or WM_NOTIFY message that can be sent * back to the parent. Therefore, there must be a callback handler that acts * like a Windows WndProc, where Scintilla can send notifications to. Use * ScintillaView registerNotifyCallback() to register such a handler. * Message format is: *
* WM_COMMAND: HIWORD (wParam) = notification code, LOWORD (wParam) = control ID, lParam = ScintillaCocoa* *
* WM_NOTIFY: wParam = control ID, lParam = ptr to SCNotification structure, with hwndFrom set to ScintillaCocoa* */ typedef void(*SciNotifyFunc) (intptr_t windowid, unsigned int iMessage, uintptr_t wParam, uintptr_t lParam); extern NSString *const SCIUpdateUINotification; @protocol ScintillaNotificationProtocol - (void)notification: (SCNotification*)notification; @end /** * SCIMarginView draws line numbers and other margins next to the text view. */ @interface SCIMarginView : NSRulerView; @end /** * SCIContentView is the Cocoa interface to the Scintilla backend. It handles text input and * provides a canvas for painting the output. */ @interface SCIContentView : NSView < NSTextInputClient, NSUserInterfaceValidations, NSDraggingSource, NSDraggingDestination, NSAccessibilityStaticText>; - (void) setCursor: (int) cursor; // Needed by ScintillaCocoa @end /** * ScintillaView is the class instantiated by client code. * It contains an NSScrollView which contains a SCIMarginView and a SCIContentView. * It is responsible for providing an API and communicating to a delegate. */ @interface ScintillaView : NSView ; @property (nonatomic, assign) id delegate; @property (nonatomic, readonly) NSScrollView *scrollView; + (Class) contentViewClass; - (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location value: (float) value; - (void) setCallback: (id ) callback; - (void) suspendDrawing: (BOOL) suspend; - (void) notification: (SCNotification*) notification; - (void) updateIndicatorIME; // Scroller handling - (void) setMarginWidth: (int) width; - (SCIContentView*) content; - (void) updateMarginCursors; // NSTextView compatibility layer. - (NSString*) string; - (void) setString: (NSString*) aString; - (void) insertText: (id) aString; - (void) setEditable: (BOOL) editable; - (BOOL) isEditable; - (NSRange) selectedRange; - (NSRange) selectedRangePositions; - (NSString*) selectedString; - (void) deleteRange: (NSRange) range; - (void)setFontName: (NSString*) font size: (int) size bold: (BOOL) bold italic: (BOOL) italic; // Native call through to the backend. + (sptr_t) directCall: (ScintillaView*) sender message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam; - (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam; - (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam; - (sptr_t) message: (unsigned int) message; // Back end properties getters and setters. - (void) setGeneralProperty: (int) property parameter: (long) parameter value: (long) value; - (void) setGeneralProperty: (int) property value: (long) value; - (long) getGeneralProperty: (int) property; - (long) getGeneralProperty: (int) property parameter: (long) parameter; - (long) getGeneralProperty: (int) property parameter: (long) parameter extra: (long) extra; - (long) getGeneralProperty: (int) property ref: (const void*) ref; - (void) setColorProperty: (int) property parameter: (long) parameter value: (NSColor*) value; - (void) setColorProperty: (int) property parameter: (long) parameter fromHTML: (NSString*) fromHTML; - (NSColor*) getColorProperty: (int) property parameter: (long) parameter; - (void) setReferenceProperty: (int) property parameter: (long) parameter value: (const void*) value; - (const void*) getReferenceProperty: (int) property parameter: (long) parameter; - (void) setStringProperty: (int) property parameter: (long) parameter value: (NSString*) value; - (NSString*) getStringProperty: (int) property parameter: (long) parameter; - (void) setLexerProperty: (NSString*) name value: (NSString*) value; - (NSString*) getLexerProperty: (NSString*) name; // The delegate property should be used instead of registerNotifyCallback which is deprecated. - (void) registerNotifyCallback: (intptr_t) windowid value: (SciNotifyFunc) callback __attribute__((deprecated)); - (void) setInfoBar: (NSView *) aView top: (BOOL) top; - (void) setStatusText: (NSString*) text; - (BOOL) findAndHighlightText: (NSString*) searchText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord scrollTo: (BOOL) scrollTo wrap: (BOOL) wrap; - (BOOL) findAndHighlightText: (NSString*) searchText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord scrollTo: (BOOL) scrollTo wrap: (BOOL) wrap backwards: (BOOL) backwards; - (int) findAndReplaceText: (NSString*) searchText byText: (NSString*) newText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord doAll: (BOOL) doAll; @end codequery-0.21.0/scintilla/cocoa/ScintillaView.mm000066400000000000000000002261311310136352400217530ustar00rootroot00000000000000 /** * Implementation of the native Cocoa View that serves as container for the scintilla parts. * * Created by Mike Lischke. * * Copyright 2011, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright 2009, 2011 Sun Microsystems, Inc. All rights reserved. * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ #import "Platform.h" #import "ScintillaView.h" #import "ScintillaCocoa.h" using namespace Scintilla; // Add backend property to ScintillaView as a private category. // Specified here as backend accessed by SCIMarginView and SCIContentView. @interface ScintillaView () @property (nonatomic, readonly) Scintilla::ScintillaCocoa* backend; @end // Two additional cursors we need, which aren't provided by Cocoa. static NSCursor* reverseArrowCursor; static NSCursor* waitCursor; NSString *const SCIUpdateUINotification = @"SCIUpdateUI"; /** * Provide an NSCursor object that matches the Window::Cursor enumeration. */ static NSCursor *cursorFromEnum(Window::Cursor cursor) { switch (cursor) { case Window::cursorText: return [NSCursor IBeamCursor]; case Window::cursorArrow: return [NSCursor arrowCursor]; case Window::cursorWait: return waitCursor; case Window::cursorHoriz: return [NSCursor resizeLeftRightCursor]; case Window::cursorVert: return [NSCursor resizeUpDownCursor]; case Window::cursorReverseArrow: return reverseArrowCursor; case Window::cursorUp: default: return [NSCursor arrowCursor]; } } // Add marginWidth and owner properties as a private category. @interface SCIMarginView () @property (assign) int marginWidth; @property (nonatomic, assign) ScintillaView* owner; @end @implementation SCIMarginView { int marginWidth; ScintillaView *owner; NSMutableArray *currentCursors; } @synthesize marginWidth, owner; - (id)initWithScrollView:(NSScrollView *)aScrollView { self = [super initWithScrollView:aScrollView orientation:NSVerticalRuler]; if (self != nil) { owner = nil; marginWidth = 20; currentCursors = [[NSMutableArray arrayWithCapacity:0] retain]; for (size_t i=0; i<=SC_MAX_MARGIN; i++) { [currentCursors addObject: [reverseArrowCursor retain]]; } [self setClientView:[aScrollView documentView]]; if ([self respondsToSelector: @selector(setAccessibilityLabel:)]) self.accessibilityLabel = @"Scintilla Margin"; } return self; } - (void) dealloc { [currentCursors release]; [super dealloc]; } - (void) setFrame: (NSRect) frame { [super setFrame: frame]; [[self window] invalidateCursorRectsForView: self]; } - (CGFloat)requiredThickness { return marginWidth; } - (void)drawHashMarksAndLabelsInRect:(NSRect)aRect { if (owner) { NSRect contentRect = [[[self scrollView] contentView] bounds]; NSRect marginRect = [self bounds]; // Ensure paint to bottom of view to avoid glitches if (marginRect.size.height > contentRect.size.height) { // Legacy scroll bar mode leaves a poorly painted corner aRect = marginRect; } owner.backend->PaintMargin(aRect); } } /** * Called by the framework if it wants to show a context menu for the margin. */ - (NSMenu*) menuForEvent: (NSEvent*) theEvent { NSMenu *menu = [owner menuForEvent: theEvent]; if (menu) { return menu; } else if (owner.backend->ShouldDisplayPopupOnMargin()) { return owner.backend->CreateContextMenu(theEvent); } else { return nil; } } - (void) mouseDown: (NSEvent *) theEvent { NSClipView *textView = [[self scrollView] contentView]; [[textView window] makeFirstResponder:textView]; owner.backend->MouseDown(theEvent); } - (void) rightMouseDown: (NSEvent *) theEvent { [NSMenu popUpContextMenu:[self menuForEvent: theEvent] withEvent:theEvent forView:self]; owner.backend->RightMouseDown(theEvent); } - (void) mouseDragged: (NSEvent *) theEvent { owner.backend->MouseMove(theEvent); } - (void) mouseMoved: (NSEvent *) theEvent { owner.backend->MouseMove(theEvent); } - (void) mouseUp: (NSEvent *) theEvent { owner.backend->MouseUp(theEvent); } // Not a simple button so return failure - (BOOL)accessibilityPerformPress { return NO; } /** * This method is called to give us the opportunity to define our mouse sensitive rectangle. */ - (void) resetCursorRects { [super resetCursorRects]; int x = 0; NSRect marginRect = [self bounds]; size_t co = [currentCursors count]; for (size_t i=0; iWndProc(SCI_GETMARGINCURSORN, i, 0); long width =owner.backend->WndProc(SCI_GETMARGINWIDTHN, i, 0); NSCursor *cc = cursorFromEnum(static_cast(cursType)); [currentCursors replaceObjectAtIndex:i withObject: cc]; marginRect.origin.x = x; marginRect.size.width = width; [self addCursorRect: marginRect cursor: cc]; [cc setOnMouseEntered: YES]; x += width; } } @end // Add owner property as a private category. @interface SCIContentView () @property (nonatomic, assign) ScintillaView* owner; @end @implementation SCIContentView { ScintillaView* mOwner; NSCursor* mCurrentCursor; NSTrackingArea *trackingArea; // Set when we are in composition mode and partial input is displayed. NSRange mMarkedTextRange; } @synthesize owner = mOwner; //-------------------------------------------------------------------------------------------------- - (NSView*) initWithFrame: (NSRect) frame { self = [super initWithFrame: frame]; if (self != nil) { // Some initialization for our view. mCurrentCursor = [[NSCursor arrowCursor] retain]; trackingArea = nil; mMarkedTextRange = NSMakeRange(NSNotFound, 0); [self registerForDraggedTypes: [NSArray arrayWithObjects: NSStringPboardType, ScintillaRecPboardType, NSFilenamesPboardType, nil]]; // Set up accessibility in the text role if ([self respondsToSelector: @selector(setAccessibilityElement:)]) { self.accessibilityElement = TRUE; self.accessibilityEnabled = TRUE; self.accessibilityLabel = NSLocalizedString(@"Scintilla", nil); // No real localization self.accessibilityRoleDescription = @"source code editor"; self.accessibilityRole = NSAccessibilityTextAreaRole; self.accessibilityIdentifier = @"Scintilla"; } } return self; } //-------------------------------------------------------------------------------------------------- /** * When the view is resized or scrolled we need to update our tracking area. */ - (void) updateTrackingAreas { if (trackingArea) [self removeTrackingArea:trackingArea]; int opts = (NSTrackingActiveAlways | NSTrackingInVisibleRect | NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved); trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] options:opts owner:self userInfo:nil]; [self addTrackingArea: trackingArea]; [super updateTrackingAreas]; } //-------------------------------------------------------------------------------------------------- /** * When the view is resized we need to let the backend know. */ - (void) setFrame: (NSRect) frame { [super setFrame: frame]; mOwner.backend->Resize(); } //-------------------------------------------------------------------------------------------------- /** * Called by the backend if a new cursor must be set for the view. */ - (void) setCursor: (int) cursor { Window::Cursor eCursor = (Window::Cursor)cursor; [mCurrentCursor autorelease]; mCurrentCursor = cursorFromEnum(eCursor); [mCurrentCursor retain]; // Trigger recreation of the cursor rectangle(s). [[self window] invalidateCursorRectsForView: self]; [mOwner updateMarginCursors]; } //-------------------------------------------------------------------------------------------------- /** * This method is called to give us the opportunity to define our mouse sensitive rectangle. */ - (void) resetCursorRects { [super resetCursorRects]; // We only have one cursor rect: our bounds. [self addCursorRect: [self bounds] cursor: mCurrentCursor]; [mCurrentCursor setOnMouseEntered: YES]; } //-------------------------------------------------------------------------------------------------- /** * Called before repainting. */ - (void) viewWillDraw { if (!mOwner) { [super viewWillDraw]; return; } const NSRect *rects; NSInteger nRects = 0; [self getRectsBeingDrawn:&rects count:&nRects]; if (nRects > 0) { NSRect rectUnion = rects[0]; for (int i=0;iWillDraw(rectUnion); } [super viewWillDraw]; } //-------------------------------------------------------------------------------------------------- /** * Called before responsive scrolling overdraw. */ - (void) prepareContentInRect: (NSRect) rect { if (mOwner) mOwner.backend->WillDraw(rect); #if MAC_OS_X_VERSION_MAX_ALLOWED > 1080 [super prepareContentInRect: rect]; #endif } //-------------------------------------------------------------------------------------------------- /** * Gets called by the runtime when the view needs repainting. */ - (void) drawRect: (NSRect) rect { CGContextRef context = (CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]; if (!mOwner.backend->Draw(rect, context)) { dispatch_async(dispatch_get_main_queue(), ^{ [self setNeedsDisplay:YES]; }); } } //-------------------------------------------------------------------------------------------------- /** * Windows uses a client coordinate system where the upper left corner is the origin in a window * (and so does Scintilla). We have to adjust for that. However by returning YES here, we are * already done with that. * Note that because of returning YES here most coordinates we use now (e.g. for painting, * invalidating rectangles etc.) are given with +Y pointing down! */ - (BOOL) isFlipped { return YES; } //-------------------------------------------------------------------------------------------------- - (BOOL) isOpaque { return YES; } //-------------------------------------------------------------------------------------------------- /** * Implement the "click through" behavior by telling the caller we accept the first mouse event too. */ - (BOOL) acceptsFirstMouse: (NSEvent *) theEvent { #pragma unused(theEvent) return YES; } //-------------------------------------------------------------------------------------------------- /** * Make this view accepting events as first responder. */ - (BOOL) acceptsFirstResponder { return YES; } //-------------------------------------------------------------------------------------------------- /** * Called by the framework if it wants to show a context menu for the editor. */ - (NSMenu*) menuForEvent: (NSEvent*) theEvent { NSMenu *menu = [mOwner menuForEvent: theEvent]; if (menu) { return menu; } else if (mOwner.backend->ShouldDisplayPopupOnText()) { return mOwner.backend->CreateContextMenu(theEvent); } else { return nil; } } //-------------------------------------------------------------------------------------------------- // Adoption of NSTextInputClient protocol. - (NSAttributedString *)attributedSubstringForProposedRange:(NSRange)aRange actualRange:(NSRangePointer)actualRange { const NSInteger lengthCharacters = self.accessibilityNumberOfCharacters; if (aRange.location > lengthCharacters) { return nil; } const NSRange posRange = mOwner.backend->PositionsFromCharacters(aRange); // The backend validated aRange and may have removed characters beyond the end of the document. const NSRange charRange = mOwner.backend->CharactersFromPositions(posRange); if (!NSEqualRanges(aRange, charRange)) { *actualRange = charRange; } [mOwner message: SCI_SETTARGETRANGE wParam: posRange.location lParam: NSMaxRange(posRange)]; std::string text([mOwner message: SCI_TARGETASUTF8] + 1, 0); [mOwner message: SCI_TARGETASUTF8 wParam: 0 lParam: reinterpret_cast(&text[0])]; text = FixInvalidUTF8(text); NSString *result = [NSString stringWithUTF8String: text.c_str()]; NSMutableAttributedString *asResult = [[[NSMutableAttributedString alloc] initWithString:result] autorelease]; const NSRange rangeAS = NSMakeRange(0, [asResult length]); // SCI_GETSTYLEAT reports a signed byte but want an unsigned to index into styles const char styleByte = static_cast([mOwner message: SCI_GETSTYLEAT wParam:posRange.location]); const long style = static_cast(styleByte); std::string fontName([mOwner message: SCI_STYLEGETFONT wParam:style lParam:0] + 1, 0); [mOwner message: SCI_STYLEGETFONT wParam:style lParam:(sptr_t)&fontName[0]]; const CGFloat fontSize = [mOwner message: SCI_STYLEGETSIZEFRACTIONAL wParam:style] / 100.0f; NSString *sFontName = [NSString stringWithUTF8String: fontName.c_str()]; NSFont *font = [NSFont fontWithName:sFontName size:fontSize]; [asResult addAttribute:NSFontAttributeName value:font range:rangeAS]; return asResult; } //-------------------------------------------------------------------------------------------------- - (NSUInteger) characterIndexForPoint: (NSPoint) point { const NSRect rectPoint = {point, NSZeroSize}; const NSRect rectInWindow = [self.window convertRectFromScreen:rectPoint]; const NSRect rectLocal = [[[self superview] superview] convertRect:rectInWindow fromView:nil]; const long position = [mOwner message: SCI_CHARPOSITIONFROMPOINT wParam: rectLocal.origin.x lParam: rectLocal.origin.y]; if (position == INVALID_POSITION) { return NSNotFound; } else { const NSRange index = mOwner.backend->CharactersFromPositions(NSMakeRange(position, 0)); return index.location; } } //-------------------------------------------------------------------------------------------------- - (void) doCommandBySelector: (SEL) selector { if ([self respondsToSelector: @selector(selector)]) [self performSelector: selector withObject: nil]; } //-------------------------------------------------------------------------------------------------- - (NSRect) firstRectForCharacterRange: (NSRange) aRange actualRange: (NSRangePointer) actualRange { #pragma unused(actualRange) const NSRange posRange = mOwner.backend->PositionsFromCharacters(aRange); NSRect rect; rect.origin.x = [mOwner message: SCI_POINTXFROMPOSITION wParam: 0 lParam: posRange.location]; rect.origin.y = [mOwner message: SCI_POINTYFROMPOSITION wParam: 0 lParam: posRange.location]; const NSUInteger rangeEnd = NSMaxRange(posRange); rect.size.width = [mOwner message: SCI_POINTXFROMPOSITION wParam: 0 lParam: rangeEnd] - rect.origin.x; rect.size.height = [mOwner message: SCI_POINTYFROMPOSITION wParam: 0 lParam: rangeEnd] - rect.origin.y; rect.size.height += [mOwner message: SCI_TEXTHEIGHT wParam: 0 lParam: 0]; const NSRect rectInWindow = [[[self superview] superview] convertRect:rect toView:nil]; const NSRect rectScreen = [self.window convertRectToScreen:rectInWindow]; return rectScreen; } //-------------------------------------------------------------------------------------------------- - (BOOL) hasMarkedText { return mMarkedTextRange.length > 0; } //-------------------------------------------------------------------------------------------------- /** * General text input. Used to insert new text at the current input position, replacing the current * selection if there is any. * First removes the replacementRange. */ - (void) insertText: (id) aString replacementRange: (NSRange) replacementRange { if ((mMarkedTextRange.location != NSNotFound) && (replacementRange.location != NSNotFound)) { NSLog(@"Trying to insertText when there is both a marked range and a replacement range"); } // Remove any previously marked text first. mOwner.backend->CompositionUndo(); if (mMarkedTextRange.location != NSNotFound) { const NSRange posRangeMark = mOwner.backend->PositionsFromCharacters(mMarkedTextRange); [mOwner message: SCI_SETEMPTYSELECTION wParam: posRangeMark.location]; } mMarkedTextRange = NSMakeRange(NSNotFound, 0); if (replacementRange.location == (NSNotFound-1)) // This occurs when the accent popup is visible and menu selected. // Its replacing a non-existent position so do nothing. return; if (replacementRange.location != NSNotFound) { const NSRange posRangeReplacement = mOwner.backend->PositionsFromCharacters(replacementRange); [mOwner message: SCI_DELETERANGE wParam: posRangeReplacement.location lParam: posRangeReplacement.length]; [mOwner message: SCI_SETEMPTYSELECTION wParam: posRangeReplacement.location]; } NSString* newText = @""; if ([aString isKindOfClass:[NSString class]]) newText = (NSString*) aString; else if ([aString isKindOfClass:[NSAttributedString class]]) newText = (NSString*) [aString string]; mOwner.backend->InsertText(newText); } //-------------------------------------------------------------------------------------------------- - (NSRange) markedRange { return mMarkedTextRange; } //-------------------------------------------------------------------------------------------------- - (NSRange) selectedRange { const NSRange posRangeSel = [mOwner selectedRangePositions]; if (posRangeSel.length == 0) { NSTextInputContext *tic = [NSTextInputContext currentInputContext]; // Chinese input causes malloc crash when empty selection returned with actual // position so return NSNotFound. // If this is applied to European input, it stops the accented character // chooser from appearing. // May need to add more input source names. if ([tic.selectedKeyboardInputSource isEqualToString:@"com.apple.inputmethod.TCIM.Cangjie"]) { return NSMakeRange(NSNotFound, 0); } } return mOwner.backend->CharactersFromPositions(posRangeSel); } //-------------------------------------------------------------------------------------------------- /** * Called by the input manager to set text which might be combined with further input to form * the final text (e.g. composition of ^ and a to â). * * @param aString The text to insert, either what has been marked already or what is selected already * or simply added at the current insertion point. Depending on what is available. * @param range The range of the new text to select (given relative to the insertion point of the new text). * @param replacementRange The range to remove before insertion. */ - (void) setMarkedText: (id) aString selectedRange: (NSRange)range replacementRange: (NSRange)replacementRange { NSString* newText = @""; if ([aString isKindOfClass:[NSString class]]) newText = (NSString*) aString; else if ([aString isKindOfClass:[NSAttributedString class]]) newText = (NSString*) [aString string]; // Replace marked text if there is one. if (mMarkedTextRange.length > 0) { mOwner.backend->CompositionUndo(); if (replacementRange.location != NSNotFound) { // This situation makes no sense and has not occurred in practice. NSLog(@"Can not handle a replacement range when there is also a marked range"); } else { replacementRange = mMarkedTextRange; const NSRange posRangeMark = mOwner.backend->PositionsFromCharacters(mMarkedTextRange); [mOwner message: SCI_SETEMPTYSELECTION wParam: posRangeMark.location]; } } else { // Must perform deletion before entering composition mode or else // both document and undo history will not contain the deleted text // leading to an inaccurate and unusable undo history. // Convert selection virtual space into real space mOwner.backend->ConvertSelectionVirtualSpace(); if (replacementRange.location != NSNotFound) { const NSRange posRangeReplacement = mOwner.backend->PositionsFromCharacters(replacementRange); [mOwner message: SCI_DELETERANGE wParam: posRangeReplacement.location lParam: posRangeReplacement.length]; } else // No marked or replacement range, so replace selection { if (!mOwner.backend->ScintillaCocoa::ClearAllSelections()) { // Some of the selection is protected so can not perform composition here return; } // Ensure only a single selection. mOwner.backend->SelectOnlyMainSelection(); const NSRange posRangeSel = [mOwner selectedRangePositions]; replacementRange = mOwner.backend->CharactersFromPositions(posRangeSel); } } // To support IME input to multiple selections, the following code would // need to insert newText at each selection, mark each piece of new text and then // select range relative to each insertion. if ([newText length]) { // Switching into composition. mOwner.backend->CompositionStart(); NSRange posRangeCurrent = mOwner.backend->PositionsFromCharacters(NSMakeRange(replacementRange.location, 0)); // Note: Scintilla internally works almost always with bytes instead chars, so we need to take // this into account when determining selection ranges and such. int lengthInserted = mOwner.backend->InsertText(newText); posRangeCurrent.length = lengthInserted; mMarkedTextRange = mOwner.backend->CharactersFromPositions(posRangeCurrent); // Mark the just inserted text. Keep the marked range for later reset. [mOwner setGeneralProperty: SCI_SETINDICATORCURRENT value: INDIC_IME]; [mOwner setGeneralProperty: SCI_INDICATORFILLRANGE parameter: posRangeCurrent.location value: posRangeCurrent.length]; } else { mMarkedTextRange = NSMakeRange(NSNotFound, 0); // Re-enable undo action collection if composition ended (indicated by an empty mark string). mOwner.backend->CompositionCommit(); } // Select the part which is indicated in the given range. It does not scroll the caret into view. if (range.length > 0) { // range is in characters so convert to bytes for selection. range.location += replacementRange.location; NSRange posRangeSelect = mOwner.backend->PositionsFromCharacters(range); [mOwner setGeneralProperty: SCI_SETSELECTION parameter: NSMaxRange(posRangeSelect) value: posRangeSelect.location]; } } //-------------------------------------------------------------------------------------------------- - (void) unmarkText { if (mMarkedTextRange.length > 0) { mOwner.backend->CompositionCommit(); mMarkedTextRange = NSMakeRange(NSNotFound, 0); } } //-------------------------------------------------------------------------------------------------- - (NSArray*) validAttributesForMarkedText { return @[]; } // End of the NSTextInputClient protocol adoption. //-------------------------------------------------------------------------------------------------- /** * Generic input method. It is used to pass on keyboard input to Scintilla. The control itself only * handles shortcuts. The input is then forwarded to the Cocoa text input system, which in turn does * its own input handling (character composition via NSTextInputClient protocol): */ - (void) keyDown: (NSEvent *) theEvent { if (mMarkedTextRange.length == 0) mOwner.backend->KeyboardInput(theEvent); NSArray* events = [NSArray arrayWithObject: theEvent]; [self interpretKeyEvents: events]; } //-------------------------------------------------------------------------------------------------- - (void) mouseDown: (NSEvent *) theEvent { mOwner.backend->MouseDown(theEvent); } //-------------------------------------------------------------------------------------------------- - (void) mouseDragged: (NSEvent *) theEvent { mOwner.backend->MouseMove(theEvent); } //-------------------------------------------------------------------------------------------------- - (void) mouseUp: (NSEvent *) theEvent { mOwner.backend->MouseUp(theEvent); } //-------------------------------------------------------------------------------------------------- - (void) mouseMoved: (NSEvent *) theEvent { mOwner.backend->MouseMove(theEvent); } //-------------------------------------------------------------------------------------------------- - (void) mouseEntered: (NSEvent *) theEvent { mOwner.backend->MouseEntered(theEvent); } //-------------------------------------------------------------------------------------------------- - (void) mouseExited: (NSEvent *) theEvent { mOwner.backend->MouseExited(theEvent); } //-------------------------------------------------------------------------------------------------- /** * Mouse wheel with command key magnifies text. * Enabling this code causes visual garbage to appear when scrolling * horizontally on OS X 10.9 with a retina display. * Pinch gestures and key commands can be used for magnification. */ #ifdef SCROLL_WHEEL_MAGNIFICATION - (void) scrollWheel: (NSEvent *) theEvent { if (([theEvent modifierFlags] & NSCommandKeyMask) != 0) { mOwner.backend->MouseWheel(theEvent); } else { [super scrollWheel:theEvent]; } } #endif //-------------------------------------------------------------------------------------------------- /** * Ensure scrolling is aligned to whole lines instead of starting part-way through a line */ - (NSRect)adjustScroll:(NSRect)proposedVisibleRect { if (!mOwner) return proposedVisibleRect; NSRect rc = proposedVisibleRect; // Snap to lines NSRect contentRect = [self bounds]; if ((rc.origin.y > 0) && (NSMaxY(rc) < contentRect.size.height)) { // Only snap for positions inside the document - allow outside // for overshoot. long lineHeight = mOwner.backend->WndProc(SCI_TEXTHEIGHT, 0, 0); rc.origin.y = roundf(static_cast(rc.origin.y) / lineHeight) * lineHeight; } return rc; } //-------------------------------------------------------------------------------------------------- /** * The editor is getting the foreground control (the one getting the input focus). */ - (BOOL) becomeFirstResponder { mOwner.backend->WndProc(SCI_SETFOCUS, 1, 0); return YES; } //-------------------------------------------------------------------------------------------------- /** * The editor is losing the input focus. */ - (BOOL) resignFirstResponder { mOwner.backend->WndProc(SCI_SETFOCUS, 0, 0); return YES; } //-------------------------------------------------------------------------------------------------- /** * Implement NSDraggingSource. */ - (NSDragOperation)draggingSession: (NSDraggingSession *) session sourceOperationMaskForDraggingContext: (NSDraggingContext) context { #pragma unused(session) switch(context) { case NSDraggingContextOutsideApplication: return NSDragOperationCopy | NSDragOperationMove | NSDragOperationDelete; case NSDraggingContextWithinApplication: default: return NSDragOperationCopy | NSDragOperationMove | NSDragOperationDelete; } } - (void)draggingSession:(NSDraggingSession *)session movedToPoint:(NSPoint)screenPoint { #pragma unused(session, screenPoint) } - (void)draggingSession:(NSDraggingSession *)session endedAtPoint:(NSPoint)screenPoint operation:(NSDragOperation)operation { #pragma unused(session, screenPoint) if (operation == NSDragOperationDelete) { mOwner.backend->WndProc(SCI_CLEAR, 0, 0); } } /** * Implement NSDraggingDestination. */ //-------------------------------------------------------------------------------------------------- /** * Called when an external drag operation enters the view. */ - (NSDragOperation) draggingEntered: (id ) sender { return mOwner.backend->DraggingEntered(sender); } //-------------------------------------------------------------------------------------------------- /** * Called frequently during an external drag operation if we are the target. */ - (NSDragOperation) draggingUpdated: (id ) sender { return mOwner.backend->DraggingUpdated(sender); } //-------------------------------------------------------------------------------------------------- /** * Drag image left the view. Clean up if necessary. */ - (void) draggingExited: (id ) sender { mOwner.backend->DraggingExited(sender); } //-------------------------------------------------------------------------------------------------- - (BOOL) prepareForDragOperation: (id ) sender { #pragma unused(sender) return YES; } //-------------------------------------------------------------------------------------------------- - (BOOL) performDragOperation: (id ) sender { return mOwner.backend->PerformDragOperation(sender); } //-------------------------------------------------------------------------------------------------- /** * Drag operation is done. Notify editor. */ - (void) concludeDragOperation: (id ) sender { // Clean up is the same as if we are no longer the drag target. mOwner.backend->DraggingExited(sender); } //-------------------------------------------------------------------------------------------------- // NSResponder actions. - (void) selectAll: (id) sender { #pragma unused(sender) mOwner.backend->SelectAll(); } - (void) deleteBackward: (id) sender { #pragma unused(sender) mOwner.backend->DeleteBackward(); } - (void) cut: (id) sender { #pragma unused(sender) mOwner.backend->Cut(); } - (void) copy: (id) sender { #pragma unused(sender) mOwner.backend->Copy(); } - (void) paste: (id) sender { #pragma unused(sender) if (mMarkedTextRange.location != NSNotFound) { [[NSTextInputContext currentInputContext] discardMarkedText]; mOwner.backend->CompositionCommit(); mMarkedTextRange = NSMakeRange(NSNotFound, 0); } mOwner.backend->Paste(); } - (void) undo: (id) sender { #pragma unused(sender) if (mMarkedTextRange.location != NSNotFound) { [[NSTextInputContext currentInputContext] discardMarkedText]; mOwner.backend->CompositionCommit(); mMarkedTextRange = NSMakeRange(NSNotFound, 0); } mOwner.backend->Undo(); } - (void) redo: (id) sender { #pragma unused(sender) mOwner.backend->Redo(); } - (BOOL) canUndo { return mOwner.backend->CanUndo() && (mMarkedTextRange.location == NSNotFound); } - (BOOL) canRedo { return mOwner.backend->CanRedo(); } - (BOOL) validateUserInterfaceItem: (id ) anItem { SEL action = [anItem action]; if (action==@selector(undo:)) { return [self canUndo]; } else if (action==@selector(redo:)) { return [self canRedo]; } else if (action==@selector(cut:) || action==@selector(copy:) || action==@selector(clear:)) { return mOwner.backend->HasSelection(); } else if (action==@selector(paste:)) { return mOwner.backend->CanPaste(); } return YES; } - (void) clear: (id) sender { [self deleteBackward:sender]; } - (BOOL) isEditable { return mOwner.backend->WndProc(SCI_GETREADONLY, 0, 0) == 0; } #pragma mark - NSAccessibility //-------------------------------------------------------------------------------------------------- // Adoption of NSAccessibility protocol. // NSAccessibility wants to pass ranges in UTF-16 code units, not bytes (like Scintilla) // or characters. // Needs more testing with non-ASCII and non-BMP text. // Needs to take account of folding and wraping. //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Text of the whole document as a string. */ - (id) accessibilityValue { const sptr_t length = [mOwner message: SCI_GETLENGTH]; return mOwner.backend->RangeTextAsString(NSMakeRange(0,static_cast(length))); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Line of the caret. */ - (NSInteger) accessibilityInsertionPointLineNumber { const int caret = static_cast([mOwner message: SCI_GETCURRENTPOS]); const NSRange rangeCharactersCaret = mOwner.backend->CharactersFromPositions(NSMakeRange(caret, 0)); return mOwner.backend->VisibleLineForIndex(rangeCharactersCaret.location); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Not implemented and not called by VoiceOver. */ - (NSRange)accessibilityRangeForPosition:(NSPoint)point { return NSMakeRange(0,0); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Number of characters in the whole document. */ - (NSInteger) accessibilityNumberOfCharacters { sptr_t length = [mOwner message: SCI_GETLENGTH]; const NSRange posRange = mOwner.backend->CharactersFromPositions(NSMakeRange(length, 0)); return posRange.location; } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : The selection text as a string. */ - (NSString *) accessibilitySelectedText { const sptr_t positionBegin = [mOwner message: SCI_GETSELECTIONSTART]; const sptr_t positionEnd = [mOwner message: SCI_GETSELECTIONEND]; const NSRange posRangeSel = NSMakeRange(positionBegin, positionEnd-positionBegin); return mOwner.backend->RangeTextAsString(posRangeSel); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : The character range of the main selection. */ - (NSRange) accessibilitySelectedTextRange { const sptr_t positionBegin = [mOwner message: SCI_GETSELECTIONSTART]; const sptr_t positionEnd = [mOwner message: SCI_GETSELECTIONEND]; const NSRange posRangeSel = NSMakeRange(positionBegin, positionEnd-positionBegin); return mOwner.backend->CharactersFromPositions(posRangeSel); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : The setter for accessibilitySelectedTextRange. * This method is the only setter required for reasonable VoiceOver behaviour. */ - (void) setAccessibilitySelectedTextRange: (NSRange) range { NSRange rangePositions = mOwner.backend->PositionsFromCharacters(range); [mOwner message: SCI_SETSELECTION wParam: rangePositions.location lParam:NSMaxRange(rangePositions)]; } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Range of the glyph at a character index. * Currently doesn't try to handle composite characters. */ - (NSRange) accessibilityRangeForIndex: (NSInteger)index { sptr_t length = [mOwner message: SCI_GETLENGTH]; const NSRange rangeLength = mOwner.backend->CharactersFromPositions(NSMakeRange(length, 0)); NSRange rangePositions = NSMakeRange(length, 0); if (index < rangeLength.location) { rangePositions = mOwner.backend->PositionsFromCharacters(NSMakeRange(index, 1)); } return mOwner.backend->CharactersFromPositions(rangePositions); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : All the text ranges. * Currently only returns the main selection. */ - (NSArray*) accessibilitySelectedTextRanges { const sptr_t positionBegin = [mOwner message: SCI_GETSELECTIONSTART]; const sptr_t positionEnd = [mOwner message: SCI_GETSELECTIONEND]; const NSRange posRangeSel = NSMakeRange(positionBegin, positionEnd-positionBegin); NSRange rangeCharacters = mOwner.backend->CharactersFromPositions(posRangeSel); NSValue *valueRange = [NSValue valueWithRange:(NSRange)rangeCharacters]; return @[valueRange]; } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Character range currently visible. */ - (NSRange) accessibilityVisibleCharacterRange { const sptr_t lineTopVisible = [mOwner message: SCI_GETFIRSTVISIBLELINE]; const sptr_t lineTop = [mOwner message:SCI_DOCLINEFROMVISIBLE wParam:lineTopVisible]; const sptr_t lineEndVisible = lineTopVisible + [mOwner message: SCI_LINESONSCREEN] - 1; const sptr_t lineEnd = [mOwner message:SCI_DOCLINEFROMVISIBLE wParam:lineEndVisible]; const sptr_t posStartView = [mOwner message: SCI_POSITIONFROMLINE wParam: lineTop]; const sptr_t posEndView = [mOwner message: SCI_GETLINEENDPOSITION wParam: lineEnd]; const NSRange posRangeSel = NSMakeRange(posStartView, posEndView-posStartView); return mOwner.backend->CharactersFromPositions(posRangeSel); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Character range of a line. */ - (NSRange)accessibilityRangeForLine:(NSInteger)line { return mOwner.backend->RangeForVisibleLine(line); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Line number of a text position in characters. */ - (NSInteger)accessibilityLineForIndex:(NSInteger)index { return mOwner.backend->VisibleLineForIndex(index); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : A rectangle that covers a range which will be shown as the * VoiceOver cursor. * Producing a nice rectangle is a little tricky particularly when including new * lines. Needs to improve the case where parts of two lines are included. */ - (NSRect)accessibilityFrameForRange:(NSRange)range { const NSRect rectInView = mOwner.backend->FrameForRange(range); const NSRect rectInWindow = [[[self superview] superview] convertRect:rectInView toView:nil]; return [self.window convertRectToScreen:rectInWindow]; } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : A range of text as a string. */ - (NSString *) accessibilityStringForRange:(NSRange)range { const NSRange posRange = mOwner.backend->PositionsFromCharacters(range); return mOwner.backend->RangeTextAsString(posRange); } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : A range of text as an attributed string. * Currently no attributes are set. */ - (NSAttributedString *) accessibilityAttributedStringForRange:(NSRange)range { const NSRange posRange = mOwner.backend->PositionsFromCharacters(range); NSString *result = mOwner.backend->RangeTextAsString(posRange); return [[[NSMutableAttributedString alloc] initWithString:result] autorelease]; } //-------------------------------------------------------------------------------------------------- /** * NSAccessibility : Show the context menu at the caret. */ - (BOOL)accessibilityPerformShowMenu { const sptr_t caret = [mOwner message: SCI_GETCURRENTPOS]; NSRect rect; rect.origin.x = [mOwner message: SCI_POINTXFROMPOSITION wParam: 0 lParam: caret]; rect.origin.y = [mOwner message: SCI_POINTYFROMPOSITION wParam: 0 lParam: caret]; rect.origin.y += [mOwner message: SCI_TEXTHEIGHT wParam: 0 lParam: 0]; rect.size.width = 1.0; rect.size.height = 1.0; NSRect rectInWindow = [[[self superview] superview] convertRect:rect toView:nil]; NSPoint pt = rectInWindow.origin; NSEvent *event = [NSEvent mouseEventWithType: NSRightMouseDown location: pt modifierFlags: 0 timestamp: 0 windowNumber: [[self window] windowNumber] context: nil eventNumber: 0 clickCount: 1 pressure: 0.0]; NSMenu *menu = mOwner.backend->CreateContextMenu(event); [NSMenu popUpContextMenu:menu withEvent:event forView:self]; return YES; } //-------------------------------------------------------------------------------------------------- - (void) dealloc { [mCurrentCursor release]; [super dealloc]; } @end //-------------------------------------------------------------------------------------------------- @implementation ScintillaView { // The back end is kind of a controller and model in one. // It uses the content view for display. Scintilla::ScintillaCocoa* mBackend; // This is the actual content to which the backend renders itself. SCIContentView* mContent; NSScrollView *scrollView; SCIMarginView *marginView; CGFloat zoomDelta; // Area to display additional controls (e.g. zoom info, caret position, status info). NSView * mInfoBar; BOOL mInfoBarAtTop; id mDelegate; } @synthesize backend = mBackend; @synthesize delegate = mDelegate; @synthesize scrollView; /** * ScintillaView is a composite control made from an NSView and an embedded NSView that is * used as canvas for the output (by the backend, using its CGContext), plus other elements * (scrollers, info bar). */ //-------------------------------------------------------------------------------------------------- /** * Initialize custom cursor. */ + (void) initialize { if (self == [ScintillaView class]) { NSBundle* bundle = [NSBundle bundleForClass: [ScintillaView class]]; NSString* path = [bundle pathForResource: @"mac_cursor_busy" ofType: @"tiff" inDirectory: nil]; NSImage* image = [[[NSImage alloc] initWithContentsOfFile: path] autorelease]; waitCursor = [[NSCursor alloc] initWithImage: image hotSpot: NSMakePoint(2, 2)]; path = [bundle pathForResource: @"mac_cursor_flipped" ofType: @"tiff" inDirectory: nil]; image = [[[NSImage alloc] initWithContentsOfFile: path] autorelease]; reverseArrowCursor = [[NSCursor alloc] initWithImage: image hotSpot: NSMakePoint(12, 2)]; } } //-------------------------------------------------------------------------------------------------- /** * Specify the SCIContentView class. Can be overridden in a subclass to provide an SCIContentView subclass. */ + (Class) contentViewClass { return [SCIContentView class]; } //-------------------------------------------------------------------------------------------------- /** * Receives zoom messages, for example when a "pinch zoom" is performed on the trackpad. */ - (void) magnifyWithEvent: (NSEvent *) event { #if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5 zoomDelta += event.magnification * 10.0; if (fabs(zoomDelta)>=1.0) { long zoomFactor = static_cast([self getGeneralProperty: SCI_GETZOOM] + zoomDelta); [self setGeneralProperty: SCI_SETZOOM parameter: zoomFactor value:0]; zoomDelta = 0.0; } #endif } - (void) beginGestureWithEvent: (NSEvent *) event { // Scintilla is only interested in this event as the starft of a zoom #pragma unused(event) zoomDelta = 0.0; } //-------------------------------------------------------------------------------------------------- /** * Sends a new notification of the given type to the default notification center. */ - (void) sendNotification: (NSString*) notificationName { NSNotificationCenter* center = [NSNotificationCenter defaultCenter]; [center postNotificationName: notificationName object: self]; } //-------------------------------------------------------------------------------------------------- /** * Called by a connected component (usually the info bar) if something changed there. * * @param type The type of the notification. * @param message Carries the new status message if the type is a status message change. * @param location Carries the new location (e.g. caret) if the type is a caret change or similar type. * @param value Carries the new zoom value if the type is a zoom change. */ - (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location value: (float) value { // These parameters are just to conform to the protocol #pragma unused(message) #pragma unused(location) switch (type) { case IBNZoomChanged: { // Compute point increase/decrease based on default font size. long fontSize = [self getGeneralProperty: SCI_STYLEGETSIZE parameter: STYLE_DEFAULT]; int zoom = (int) (fontSize * (value - 1)); [self setGeneralProperty: SCI_SETZOOM value: zoom]; break; } default: break; }; } //-------------------------------------------------------------------------------------------------- - (void) setCallback: (id ) callback { // Not used. Only here to satisfy protocol. #pragma unused(callback) } //-------------------------------------------------------------------------------------------------- /** * Prevents drawing of the inner view to avoid flickering when doing many visual updates * (like clearing all marks and setting new ones etc.). */ - (void) suspendDrawing: (BOOL) suspend { if (suspend) [[self window] disableFlushWindow]; else [[self window] enableFlushWindow]; } //-------------------------------------------------------------------------------------------------- /** * Method receives notifications from Scintilla (e.g. for handling clicks on the * folder margin or changes in the editor). * A delegate can be set to receive all notifications. If set no handling takes place here, except * for action pertaining to internal stuff (like the info bar). */ - (void) notification: (SCNotification*)scn { // Parent notification. Details are passed as SCNotification structure. if (mDelegate != nil) { [mDelegate notification: scn]; if (scn->nmhdr.code != SCN_ZOOM && scn->nmhdr.code != SCN_UPDATEUI) return; } switch (scn->nmhdr.code) { case SCN_MARGINCLICK: { if (scn->margin == 2) { // Click on the folder margin. Toggle the current line if possible. long line = [self getGeneralProperty: SCI_LINEFROMPOSITION parameter: scn->position]; [self setGeneralProperty: SCI_TOGGLEFOLD value: line]; } break; }; case SCN_MODIFIED: { // Decide depending on the modification type what to do. // There can be more than one modification carried by one notification. if (scn->modificationType & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) [self sendNotification: NSTextDidChangeNotification]; break; } case SCN_ZOOM: { // A zoom change happened. Notify info bar if there is one. float zoom = [self getGeneralProperty: SCI_GETZOOM parameter: 0]; long fontSize = [self getGeneralProperty: SCI_STYLEGETSIZE parameter: STYLE_DEFAULT]; float factor = (zoom / fontSize) + 1; [mInfoBar notify: IBNZoomChanged message: nil location: NSZeroPoint value: factor]; break; } case SCN_UPDATEUI: { // Triggered whenever changes in the UI state need to be reflected. // These can be: caret changes, selection changes etc. NSPoint caretPosition = mBackend->GetCaretPosition(); [mInfoBar notify: IBNCaretChanged message: nil location: caretPosition value: 0]; [self sendNotification: SCIUpdateUINotification]; if (scn->updated & (SC_UPDATE_SELECTION | SC_UPDATE_CONTENT)) { [self sendNotification: NSTextViewDidChangeSelectionNotification]; } break; } case SCN_FOCUSOUT: [self sendNotification: NSTextDidEndEditingNotification]; break; case SCN_FOCUSIN: // Nothing to do for now. break; } } //-------------------------------------------------------------------------------------------------- /** * Setup a special indicator used in the editor to provide visual feedback for * input composition, depending on language, keyboard etc. */ - (void) updateIndicatorIME { [self setColorProperty: SCI_INDICSETFORE parameter: INDIC_IME fromHTML: @"#FF0000"]; const bool drawInBackground = [self message: SCI_GETPHASESDRAW] != 0; [self setGeneralProperty: SCI_INDICSETUNDER parameter: INDIC_IME value: drawInBackground]; [self setGeneralProperty: SCI_INDICSETSTYLE parameter: INDIC_IME value: INDIC_PLAIN]; [self setGeneralProperty: SCI_INDICSETALPHA parameter: INDIC_IME value: 100]; } //-------------------------------------------------------------------------------------------------- /** * Initialization of the view. Used to setup a few other things we need. */ - (id) initWithFrame: (NSRect) frame { self = [super initWithFrame:frame]; if (self) { mContent = [[[[[self class] contentViewClass] alloc] initWithFrame:NSZeroRect] autorelease]; mContent.owner = self; // Initialize the scrollers but don't show them yet. // Pick an arbitrary size, just to make NSScroller selecting the proper scroller direction // (horizontal or vertical). NSRect scrollerRect = NSMakeRect(0, 0, 100, 10); scrollView = [[[NSScrollView alloc] initWithFrame: scrollerRect] autorelease]; [scrollView setDocumentView: mContent]; [scrollView setHasVerticalScroller:YES]; [scrollView setHasHorizontalScroller:YES]; [scrollView setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable]; //[scrollView setScrollerStyle:NSScrollerStyleLegacy]; //[scrollView setScrollerKnobStyle:NSScrollerKnobStyleDark]; //[scrollView setHorizontalScrollElasticity:NSScrollElasticityNone]; [self addSubview: scrollView]; marginView = [[SCIMarginView alloc] initWithScrollView:scrollView]; marginView.owner = self; [marginView setRuleThickness:[marginView requiredThickness]]; [scrollView setVerticalRulerView:marginView]; [scrollView setHasHorizontalRuler:NO]; [scrollView setHasVerticalRuler:YES]; [scrollView setRulersVisible:YES]; mBackend = new ScintillaCocoa(self, mContent, marginView); // Establish a connection from the back end to this container so we can handle situations // which require our attention. mBackend->SetDelegate(self); [self updateIndicatorIME]; NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; [center addObserver:self selector:@selector(applicationDidResignActive:) name:NSApplicationDidResignActiveNotification object:nil]; [center addObserver:self selector:@selector(applicationDidBecomeActive:) name:NSApplicationDidBecomeActiveNotification object:nil]; [center addObserver:self selector:@selector(windowWillMove:) name:NSWindowWillMoveNotification object:[self window]]; [[scrollView contentView] setPostsBoundsChangedNotifications:YES]; [center addObserver:self selector:@selector(scrollerAction:) name:NSViewBoundsDidChangeNotification object:[scrollView contentView]]; } return self; } //-------------------------------------------------------------------------------------------------- - (void) dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; delete mBackend; mBackend = NULL; mContent.owner = nil; [marginView setClientView:nil]; [scrollView removeFromSuperview]; [marginView release]; [super dealloc]; } //-------------------------------------------------------------------------------------------------- - (void) applicationDidResignActive: (NSNotification *)note { #pragma unused(note) mBackend->ActiveStateChanged(false); } //-------------------------------------------------------------------------------------------------- - (void) applicationDidBecomeActive: (NSNotification *)note { #pragma unused(note) mBackend->ActiveStateChanged(true); } //-------------------------------------------------------------------------------------------------- - (void) windowWillMove: (NSNotification *)note { #pragma unused(note) mBackend->WindowWillMove(); } //-------------------------------------------------------------------------------------------------- - (void) viewDidMoveToWindow { [super viewDidMoveToWindow]; [self positionSubViews]; // Enable also mouse move events for our window (and so this view). [[self window] setAcceptsMouseMovedEvents: YES]; } //-------------------------------------------------------------------------------------------------- /** * Used to position and size the parts of the editor (content, scrollers, info bar). */ - (void) positionSubViews { CGFloat scrollerWidth = [NSScroller scrollerWidthForControlSize:NSRegularControlSize scrollerStyle:NSScrollerStyleLegacy]; NSSize size = [self frame].size; NSRect barFrame = {{0, size.height - scrollerWidth}, {size.width, scrollerWidth}}; BOOL infoBarVisible = mInfoBar != nil && ![mInfoBar isHidden]; // Horizontal offset of the content. Almost always 0 unless the vertical scroller // is on the left side. CGFloat contentX = 0; NSRect scrollRect = {{contentX, 0}, {size.width, size.height}}; // Info bar frame. if (infoBarVisible) { scrollRect.size.height -= scrollerWidth; // Initial value already is as if the bar is at top. if (!mInfoBarAtTop) { scrollRect.origin.y += scrollerWidth; barFrame.origin.y = 0; } } if (!NSEqualRects([scrollView frame], scrollRect)) { [scrollView setFrame: scrollRect]; } if (infoBarVisible) [mInfoBar setFrame: barFrame]; } //-------------------------------------------------------------------------------------------------- /** * Set the width of the margin. */ - (void) setMarginWidth: (int) width { if (marginView.ruleThickness != width) { marginView.marginWidth = width; [marginView setRuleThickness:[marginView requiredThickness]]; } } //-------------------------------------------------------------------------------------------------- /** * Triggered by one of the scrollers when it gets manipulated by the user. Notify the backend * about the change. */ - (void) scrollerAction: (id) sender { #pragma unused(sender) mBackend->UpdateForScroll(); } //-------------------------------------------------------------------------------------------------- /** * Used to reposition our content depending on the size of the view. */ - (void) setFrame: (NSRect) newFrame { NSRect previousFrame = [self frame]; [super setFrame: newFrame]; [self positionSubViews]; if (!NSEqualRects(previousFrame, newFrame)) { mBackend->Resize(); } } //-------------------------------------------------------------------------------------------------- /** * Getter for the currently selected text in raw form (no formatting information included). * If there is no text available an empty string is returned. */ - (NSString*) selectedString { NSString *result = @""; const long length = mBackend->WndProc(SCI_GETSELTEXT, 0, 0); if (length > 0) { std::string buffer(length + 1, '\0'); try { mBackend->WndProc(SCI_GETSELTEXT, length + 1, (sptr_t) &buffer[0]); result = [NSString stringWithUTF8String: buffer.c_str()]; } catch (...) { } } return result; } //-------------------------------------------------------------------------------------------------- /** * Delete a range from the document. */ - (void) deleteRange: (NSRange) aRange { if (aRange.length > 0) { NSRange posRange = mBackend->PositionsFromCharacters(aRange); [self message: SCI_DELETERANGE wParam: posRange.location lParam: posRange.length]; } } //-------------------------------------------------------------------------------------------------- /** * Getter for the current text in raw form (no formatting information included). * If there is no text available an empty string is returned. */ - (NSString*) string { NSString *result = @""; const long length = mBackend->WndProc(SCI_GETLENGTH, 0, 0); if (length > 0) { std::string buffer(length + 1, '\0'); try { mBackend->WndProc(SCI_GETTEXT, length + 1, (sptr_t) &buffer[0]); result = [NSString stringWithUTF8String: buffer.c_str()]; } catch (...) { } } return result; } //-------------------------------------------------------------------------------------------------- /** * Setter for the current text (no formatting included). */ - (void) setString: (NSString*) aString { const char* text = [aString UTF8String]; mBackend->WndProc(SCI_SETTEXT, 0, (long) text); } //-------------------------------------------------------------------------------------------------- - (void) insertString: (NSString*) aString atOffset: (int)offset { const char* text = [aString UTF8String]; mBackend->WndProc(SCI_ADDTEXT, offset, (long) text); } //-------------------------------------------------------------------------------------------------- - (void) setEditable: (BOOL) editable { mBackend->WndProc(SCI_SETREADONLY, editable ? 0 : 1, 0); } //-------------------------------------------------------------------------------------------------- - (BOOL) isEditable { return mBackend->WndProc(SCI_GETREADONLY, 0, 0) == 0; } //-------------------------------------------------------------------------------------------------- - (SCIContentView*) content { return mContent; } //-------------------------------------------------------------------------------------------------- - (void) updateMarginCursors { [[self window] invalidateCursorRectsForView: marginView]; } //-------------------------------------------------------------------------------------------------- /** * Direct call into the backend to allow uninterpreted access to it. The values to be passed in and * the result heavily depend on the message that is used for the call. Refer to the Scintilla * documentation to learn what can be used here. */ + (sptr_t) directCall: (ScintillaView*) sender message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam { return ScintillaCocoa::DirectFunction( reinterpret_cast(sender->mBackend), message, wParam, lParam); } - (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam lParam: (sptr_t) lParam { return mBackend->WndProc(message, wParam, lParam); } - (sptr_t) message: (unsigned int) message wParam: (uptr_t) wParam { return mBackend->WndProc(message, wParam, 0); } - (sptr_t) message: (unsigned int) message { return mBackend->WndProc(message, 0, 0); } //-------------------------------------------------------------------------------------------------- /** * This is a helper method to set properties in the backend, with native parameters. * * @param property Main property like SCI_STYLESETFORE for which a value is to be set. * @param parameter Additional info for this property like a parameter or index. * @param value The actual value. It depends on the property what this parameter means. */ - (void) setGeneralProperty: (int) property parameter: (long) parameter value: (long) value { mBackend->WndProc(property, parameter, value); } //-------------------------------------------------------------------------------------------------- /** * A simplified version for setting properties which only require one parameter. * * @param property Main property like SCI_STYLESETFORE for which a value is to be set. * @param value The actual value. It depends on the property what this parameter means. */ - (void) setGeneralProperty: (int) property value: (long) value { mBackend->WndProc(property, value, 0); } //-------------------------------------------------------------------------------------------------- /** * This is a helper method to get a property in the backend, with native parameters. * * @param property Main property like SCI_STYLESETFORE for which a value is to get. * @param parameter Additional info for this property like a parameter or index. * @param extra Yet another parameter if needed. * @result A generic value which must be interpreted depending on the property queried. */ - (long) getGeneralProperty: (int) property parameter: (long) parameter extra: (long) extra { return mBackend->WndProc(property, parameter, extra); } //-------------------------------------------------------------------------------------------------- /** * Convenience function to avoid unneeded extra parameter. */ - (long) getGeneralProperty: (int) property parameter: (long) parameter { return mBackend->WndProc(property, parameter, 0); } //-------------------------------------------------------------------------------------------------- /** * Convenience function to avoid unneeded parameters. */ - (long) getGeneralProperty: (int) property { return mBackend->WndProc(property, 0, 0); } //-------------------------------------------------------------------------------------------------- /** * Use this variant if you have to pass in a reference to something (e.g. a text range). */ - (long) getGeneralProperty: (int) property ref: (const void*) ref { return mBackend->WndProc(property, 0, (sptr_t) ref); } //-------------------------------------------------------------------------------------------------- /** * Specialized property setter for colors. */ - (void) setColorProperty: (int) property parameter: (long) parameter value: (NSColor*) value { if ([value colorSpaceName] != NSDeviceRGBColorSpace) value = [value colorUsingColorSpaceName: NSDeviceRGBColorSpace]; long red = static_cast([value redComponent] * 255); long green = static_cast([value greenComponent] * 255); long blue = static_cast([value blueComponent] * 255); long color = (blue << 16) + (green << 8) + red; mBackend->WndProc(property, parameter, color); } //-------------------------------------------------------------------------------------------------- /** * Another color property setting, which allows to specify the color as string like in HTML * documents (i.e. with leading # and either 3 hex digits or 6). */ - (void) setColorProperty: (int) property parameter: (long) parameter fromHTML: (NSString*) fromHTML { if ([fromHTML length] > 3 && [fromHTML characterAtIndex: 0] == '#') { bool longVersion = [fromHTML length] > 6; int index = 1; char value[3] = {0, 0, 0}; value[0] = static_cast([fromHTML characterAtIndex: index++]); if (longVersion) value[1] = static_cast([fromHTML characterAtIndex: index++]); else value[1] = value[0]; unsigned rawRed; [[NSScanner scannerWithString: [NSString stringWithUTF8String: value]] scanHexInt: &rawRed]; value[0] = static_cast([fromHTML characterAtIndex: index++]); if (longVersion) value[1] = static_cast([fromHTML characterAtIndex: index++]); else value[1] = value[0]; unsigned rawGreen; [[NSScanner scannerWithString: [NSString stringWithUTF8String: value]] scanHexInt: &rawGreen]; value[0] = static_cast([fromHTML characterAtIndex: index++]); if (longVersion) value[1] = static_cast([fromHTML characterAtIndex: index++]); else value[1] = value[0]; unsigned rawBlue; [[NSScanner scannerWithString: [NSString stringWithUTF8String: value]] scanHexInt: &rawBlue]; long color = (rawBlue << 16) + (rawGreen << 8) + rawRed; mBackend->WndProc(property, parameter, color); } } //-------------------------------------------------------------------------------------------------- /** * Specialized property getter for colors. */ - (NSColor*) getColorProperty: (int) property parameter: (long) parameter { long color = mBackend->WndProc(property, parameter, 0); CGFloat red = (color & 0xFF) / 255.0; CGFloat green = ((color >> 8) & 0xFF) / 255.0; CGFloat blue = ((color >> 16) & 0xFF) / 255.0; NSColor* result = [NSColor colorWithDeviceRed: red green: green blue: blue alpha: 1]; return result; } //-------------------------------------------------------------------------------------------------- /** * Specialized property setter for references (pointers, addresses). */ - (void) setReferenceProperty: (int) property parameter: (long) parameter value: (const void*) value { mBackend->WndProc(property, parameter, (sptr_t) value); } //-------------------------------------------------------------------------------------------------- /** * Specialized property getter for references (pointers, addresses). */ - (const void*) getReferenceProperty: (int) property parameter: (long) parameter { return (const void*) mBackend->WndProc(property, parameter, 0); } //-------------------------------------------------------------------------------------------------- /** * Specialized property setter for string values. */ - (void) setStringProperty: (int) property parameter: (long) parameter value: (NSString*) value { const char* rawValue = [value UTF8String]; mBackend->WndProc(property, parameter, (sptr_t) rawValue); } //-------------------------------------------------------------------------------------------------- /** * Specialized property getter for string values. */ - (NSString*) getStringProperty: (int) property parameter: (long) parameter { const char* rawValue = (const char*) mBackend->WndProc(property, parameter, 0); return [NSString stringWithUTF8String: rawValue]; } //-------------------------------------------------------------------------------------------------- /** * Specialized property setter for lexer properties, which are commonly passed as strings. */ - (void) setLexerProperty: (NSString*) name value: (NSString*) value { const char* rawName = [name UTF8String]; const char* rawValue = [value UTF8String]; mBackend->WndProc(SCI_SETPROPERTY, (sptr_t) rawName, (sptr_t) rawValue); } //-------------------------------------------------------------------------------------------------- /** * Specialized property getter for references (pointers, addresses). */ - (NSString*) getLexerProperty: (NSString*) name { const char* rawName = [name UTF8String]; const char* result = (const char*) mBackend->WndProc(SCI_SETPROPERTY, (sptr_t) rawName, 0); return [NSString stringWithUTF8String: result]; } //-------------------------------------------------------------------------------------------------- /** * Sets the notification callback */ - (void) registerNotifyCallback: (intptr_t) windowid value: (SciNotifyFunc) callback { mBackend->RegisterNotifyCallback(windowid, callback); } //-------------------------------------------------------------------------------------------------- /** * Sets the new control which is displayed as info bar at the top or bottom of the editor. * Set newBar to nil if you want to hide the bar again. * The info bar's height is set to the height of the scrollbar. */ - (void) setInfoBar: (NSView *) newBar top: (BOOL) top { if (mInfoBar != newBar) { [mInfoBar removeFromSuperview]; mInfoBar = newBar; mInfoBarAtTop = top; if (mInfoBar != nil) { [self addSubview: mInfoBar]; [mInfoBar setCallback: self]; } [self positionSubViews]; } } //-------------------------------------------------------------------------------------------------- /** * Sets the edit's info bar status message. This call only has an effect if there is an info bar. */ - (void) setStatusText: (NSString*) text { if (mInfoBar != nil) [mInfoBar notify: IBNStatusChanged message: text location: NSZeroPoint value: 0]; } //-------------------------------------------------------------------------------------------------- - (NSRange) selectedRange { return [mContent selectedRange]; } //-------------------------------------------------------------------------------------------------- /** * Return the main selection as an NSRange of positions (not characters). * Unlike selectedRange, this can return empty ranges inside the document. */ - (NSRange) selectedRangePositions { const sptr_t positionBegin = [self message: SCI_GETSELECTIONSTART]; const sptr_t positionEnd = [self message: SCI_GETSELECTIONEND]; return NSMakeRange(positionBegin, positionEnd-positionBegin); } //-------------------------------------------------------------------------------------------------- - (void)insertText: (id) aString { if ([aString isKindOfClass:[NSString class]]) mBackend->InsertText(aString); else if ([aString isKindOfClass:[NSAttributedString class]]) mBackend->InsertText([aString string]); } //-------------------------------------------------------------------------------------------------- /** * For backwards compatibility. */ - (BOOL) findAndHighlightText: (NSString*) searchText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord scrollTo: (BOOL) scrollTo wrap: (BOOL) wrap { return [self findAndHighlightText: searchText matchCase: matchCase wholeWord: wholeWord scrollTo: scrollTo wrap: wrap backwards: NO]; } //-------------------------------------------------------------------------------------------------- /** * Searches and marks the first occurrence of the given text and optionally scrolls it into view. * * @result YES if something was found, NO otherwise. */ - (BOOL) findAndHighlightText: (NSString*) searchText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord scrollTo: (BOOL) scrollTo wrap: (BOOL) wrap backwards: (BOOL) backwards { int searchFlags= 0; if (matchCase) searchFlags |= SCFIND_MATCHCASE; if (wholeWord) searchFlags |= SCFIND_WHOLEWORD; long selectionStart = [self getGeneralProperty: SCI_GETSELECTIONSTART parameter: 0]; long selectionEnd = [self getGeneralProperty: SCI_GETSELECTIONEND parameter: 0]; // Sets the start point for the coming search to the beginning of the current selection. // For forward searches we have therefore to set the selection start to the current selection end // for proper incremental search. This does not harm as we either get a new selection if something // is found or the previous selection is restored. if (!backwards) [self getGeneralProperty: SCI_SETSELECTIONSTART parameter: selectionEnd]; [self setGeneralProperty: SCI_SEARCHANCHOR value: 0]; sptr_t result; const char* textToSearch = [searchText UTF8String]; // The following call will also set the selection if something was found. if (backwards) { result = [ScintillaView directCall: self message: SCI_SEARCHPREV wParam: searchFlags lParam: (sptr_t) textToSearch]; if (result < 0 && wrap) { // Try again from the end of the document if nothing could be found so far and // wrapped search is set. [self getGeneralProperty: SCI_SETSELECTIONSTART parameter: [self getGeneralProperty: SCI_GETTEXTLENGTH parameter: 0]]; [self setGeneralProperty: SCI_SEARCHANCHOR value: 0]; result = [ScintillaView directCall: self message: SCI_SEARCHNEXT wParam: searchFlags lParam: (sptr_t) textToSearch]; } } else { result = [ScintillaView directCall: self message: SCI_SEARCHNEXT wParam: searchFlags lParam: (sptr_t) textToSearch]; if (result < 0 && wrap) { // Try again from the start of the document if nothing could be found so far and // wrapped search is set. [self getGeneralProperty: SCI_SETSELECTIONSTART parameter: 0]; [self setGeneralProperty: SCI_SEARCHANCHOR value: 0]; result = [ScintillaView directCall: self message: SCI_SEARCHNEXT wParam: searchFlags lParam: (sptr_t) textToSearch]; } } if (result >= 0) { if (scrollTo) [self setGeneralProperty: SCI_SCROLLCARET value: 0]; } else { // Restore the former selection if we did not find anything. [self setGeneralProperty: SCI_SETSELECTIONSTART value: selectionStart]; [self setGeneralProperty: SCI_SETSELECTIONEND value: selectionEnd]; } return (result >= 0) ? YES : NO; } //-------------------------------------------------------------------------------------------------- /** * Searches the given text and replaces * * @result Number of entries replaced, 0 if none. */ - (int) findAndReplaceText: (NSString*) searchText byText: (NSString*) newText matchCase: (BOOL) matchCase wholeWord: (BOOL) wholeWord doAll: (BOOL) doAll { // The current position is where we start searching for single occurrences. Otherwise we start at // the beginning of the document. long startPosition; if (doAll) startPosition = 0; // Start at the beginning of the text if we replace all occurrences. else // For a single replacement we start at the current caret position. startPosition = [self getGeneralProperty: SCI_GETCURRENTPOS]; long endPosition = [self getGeneralProperty: SCI_GETTEXTLENGTH]; int searchFlags= 0; if (matchCase) searchFlags |= SCFIND_MATCHCASE; if (wholeWord) searchFlags |= SCFIND_WHOLEWORD; [self setGeneralProperty: SCI_SETSEARCHFLAGS value: searchFlags]; [self setGeneralProperty: SCI_SETTARGETSTART value: startPosition]; [self setGeneralProperty: SCI_SETTARGETEND value: endPosition]; const char* textToSearch = [searchText UTF8String]; long sourceLength = strlen(textToSearch); // Length in bytes. const char* replacement = [newText UTF8String]; long targetLength = strlen(replacement); // Length in bytes. sptr_t result; int replaceCount = 0; if (doAll) { while (true) { result = [ScintillaView directCall: self message: SCI_SEARCHINTARGET wParam: sourceLength lParam: (sptr_t) textToSearch]; if (result < 0) break; replaceCount++; [ScintillaView directCall: self message: SCI_REPLACETARGET wParam: targetLength lParam: (sptr_t) replacement]; // The replacement changes the target range to the replaced text. Continue after that till the end. // The text length might be changed by the replacement so make sure the target end is the actual // text end. [self setGeneralProperty: SCI_SETTARGETSTART value: [self getGeneralProperty: SCI_GETTARGETEND]]; [self setGeneralProperty: SCI_SETTARGETEND value: [self getGeneralProperty: SCI_GETTEXTLENGTH]]; } } else { result = [ScintillaView directCall: self message: SCI_SEARCHINTARGET wParam: sourceLength lParam: (sptr_t) textToSearch]; replaceCount = (result < 0) ? 0 : 1; if (replaceCount > 0) { [ScintillaView directCall: self message: SCI_REPLACETARGET wParam: targetLength lParam: (sptr_t) replacement]; // For a single replace we set the new selection to the replaced text. [self setGeneralProperty: SCI_SETSELECTIONSTART value: [self getGeneralProperty: SCI_GETTARGETSTART]]; [self setGeneralProperty: SCI_SETSELECTIONEND value: [self getGeneralProperty: SCI_GETTARGETEND]]; } } return replaceCount; } //-------------------------------------------------------------------------------------------------- - (void) setFontName: (NSString*) font size: (int) size bold: (BOOL) bold italic: (BOOL) italic { for (int i = 0; i < 128; i++) { [self setGeneralProperty: SCI_STYLESETFONT parameter: i value: (sptr_t)[font UTF8String]]; [self setGeneralProperty: SCI_STYLESETSIZE parameter: i value: size]; [self setGeneralProperty: SCI_STYLESETBOLD parameter: i value: bold]; [self setGeneralProperty: SCI_STYLESETITALIC parameter: i value: italic]; } } //-------------------------------------------------------------------------------------------------- @end codequery-0.21.0/scintilla/cocoa/checkbuildosx.sh000077500000000000000000000031641310136352400220300ustar00rootroot00000000000000# Script to build Scintilla for OS X with most supported build files. # Current directory should be scintilla/cocoa before running. cd ../.. # ************************************************************ # Target 1: Unit tests echo Unit tests cd scintilla/test/unit make clean make test cd ../../.. # ************************************************************ # Target 2: build framework and test app with Xcode targeting OS X 10.n with n from 9 to 5 # Only SDK versions that are installed will be built # Clean both then build both -- if perform clean in ScintillaTest, also cleans ScintillaFramework # which can cause double build echo Building Cocoa-native ScintillaFramework and ScintillaTest for sdk in macosx10.9 macosx10.8 macosx10.7 macosx10.6 macosx10.5 do xcodebuild -showsdks | grep $sdk if [ "$(xcodebuild -showsdks | grep $sdk)" != "" ] then echo Building with $sdk cd scintilla/cocoa/ScintillaFramework xcodebuild clean cd ../ScintillaTest xcodebuild clean cd ../ScintillaFramework xcodebuild -sdk $sdk cd ../ScintillaTest xcodebuild -sdk $sdk cd ../../.. else echo Warning $sdk not available fi done # ************************************************************ # Target 3: Qt builds # Requires Qt development libraries and qmake to be installed echo Building Qt and PySide cd scintilla/qt cd ScintillaEditBase qmake -spec macx-xcode xcodebuild clean xcodebuild cd .. cd ScintillaEdit python WidgetGen.py qmake -spec macx-xcode xcodebuild clean xcodebuild cd .. cd ScintillaEditPy python sepbuild.py cd .. cd ../.. codequery-0.21.0/scintilla/cocoa/res/000077500000000000000000000000001310136352400174275ustar00rootroot00000000000000codequery-0.21.0/scintilla/cocoa/res/info_bar_bg.png000066400000000000000000000060111310136352400223620ustar00rootroot00000000000000‰PNG  IHDRM.ûÕ€ pHYs  šœ OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-Û cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅF4IDATxÚÌVK„0…±÷¿'qã§ê,j‡_‘Ôdº0µïAIqGè½ñœÆõ繞– I8ˆ¿6O¿ÇÝm½Ò0 ]êãÄcñÐM3Ü÷Ýc*êG”޵ß#ÃÑ>ugƒqJÜ –®-n¯héirˆxGùƪáwéRç—Jº±;fwu8‚8¨´€¢j‰oR¤? XG‡ŠÅ¯US[¹­ÆI“¥íJ¥éØ*$ä:7‰©Û鶪O{7ü@ÙH§kk?ì<Ê»øÎí¾kktüqóÝ‹mÇ6°nÆ¶ÂøØ¯±-ümR;`zŠ–¡Êðv x#=\Ó% ëoàYÐÚRÚ±£¥êùÐ#&Á?È>ÌÒ¹áЪþ¢þ©n¨_¨Ôß;j„;¦$}*}+ý(}'}/ýLŠtYº"ý$]•¾‘.9»ï½Ÿ%Ø{¯_aÝŠ]hÕkŸ5'SNÊ{äå”ü¼ü²<°¹_“§ä½ðì öÍ ý½t ³jMµ{-ñ4%ׯTÅ„«tYÛŸ“¦R6ÈÆØô#§v\œå–Šx:žŠ'H‰ï‹OÄÇâ3·ž¼ø^ø&°¦õþ“0::àm,L%È3â:qVEô t›ÐÍ]~ߢI«vÖ6ÊWÙ¯ª¯) |ʸ2]ÕG‡Í4Ïå(6w¸½Â‹£$¾ƒ"ŽèAÞû¾EvÝ mî[D‡ÿÂ;ëVh[¨}íõ¿Ú†ðN|æ3¢‹õº½âç£Hä‘S:°ßûéKâÝt·Ñx€÷UÏ'D;7ÿ®7;_"ÿÑeó?Yqxl+ pHYs  šœ0iTXtXML:com.adobe.xmp Acorn version 4.1.2 5 72 72 5 eW¯IDATxíZËRã0ÄUùÿ¿ãÂ/À!7Š¢ ›6ÕÙq#»5–¼‹u`^==3²œØÙ/;Z—Ë®Ú)îÌ0 EÿáœßÓ|hÛHͪÁlÛU;Ûqèêöp¸^Üý„ÔÍr v¼§¥s†»qÞµÔ—rZf½w=×ë½û¹w½{Îúüü\}ÜÆh\sùKýmÁÏÐõÚIëk¾ÆóüÃûûûê¯NÝXÝHÝhÅ»x+Ÿæomë<ÊïæsñV>ÍßÚÎÌ?¼½½]ñ_gMׯ”Øá5¿·í¯7¾÷¼Êß{ž,ìox}}½àÀ`)QB G’/÷ÔW$‚ô—Þ(Çü_ÏãØ‡Òj¹þãËžƒ°°ñKÏDZ|Ä/¼,¤/¤yùÈò•úåaBŒ³ó÷¿þ§ë3Úíe@/ / O¸^hÅ÷¶[ûÉægñÇüó;0œÏçòçä|NuD¦^¸j¢xÌÿ÷ç±ñçÚ먧yÙƒ¤|.¿7^çQ[ëkÜõ¯xåsù½ñÚŸÚZ_ãKý///·—MT[‰²…ï×~u×â•Ïåÿ4^ëë<®Å+ŸËøáùùyö«3QT‰]\U;›ŸÅk½¬í깸«—ÍÏâ]}wõ\<òÛ¯NÅmê”À©ÎÃ9¢®xåˆX1—R±¬ É\ú;g+w´©S²¹àwõJ¹ÑG.Ê£NI %kïaþÅ‚ÒFõç´V*?6Œ¾'cXŠ×¸ëWñ­|¥ž—|®¾æ:¼Æ÷4ÿâA+ Êæ5¶Æ&$6оï\J`JzÉG,/lê¥øè \Z¥rÖß0ÿéãã£jSÊ^GÜÊךïúÓøÖõZùZóu>g·Ô›ü7!| E©CbeïÀ1)üqü.¨Fµµåsõ[ë9~×~[ûQ>W¿¥Þ·—ã¢N I§’‡Xê<¨.¾†ŸÃÇ\ö_vÅ\ê”à*éôArf`©óß6¨eqÓÁA2ú¢ãð/-ÅF:/îGϘöƒZ%_ôǸëM±Ñ†¾×ù'/:¤6Î!æîPÍwxw|ü4ƒ,-ǯqå8æŸ\Ý/ÝÝ¿ˆžžž®ø¯¯ËÐ$ØJìð%Žž¾l½ñ=g-q÷ž'Ë{œ|u‚‹2©ÇuJb~RÆ^¨S–úŠ1ê”[àK=}±wꔥº1Fr <9Æ·Në'üô1!#™ ‰åøÞÅ]o.ßſƳ|ïâZ_m—ïâÊçìÈ7ù-@¢CãZÈá]\Ÿ¹P>Ô¢^ûL¦ýeó]¿Êïð.®ýýOó§šn¬³õ`êFk~¯ùjgù²x­§v–/‹×zjgù²x­§v䛼uêµ”¨1Øzb¡šx¶~M=Ö¥dO°©CbeëIáOM?¬‰4êkë×ÔCà(Y6õµõGÒðg©ŸÉ3rØTÈ¿©ŒQÞA‰1ꔀ•ô’/PÞTâ(pÜL`¡ó0ÅÜ9>`â"Ž2ƨÇuJ`JzÉG¾(‰£t|ÀíeþÉ['›‚äôÅ×êäêÅ_ê«tQ¢/æôî¯7œ…zœ•:%1”=ûûU7Ïho9IEND®B`‚codequery-0.21.0/scintilla/cocoa/res/mac_cursor_busy.png000066400000000000000000000122541310136352400233400ustar00rootroot00000000000000‰PNG  IHDR szzô AiCCPICC ProfileH –wTSهϽ7½Ð" %ôz Ò;HQ‰I€P†„&vDF)VdTÀG‡"cE ƒ‚b× òPÆÁQDEåÝŒk ï­5óÞšýÇYßÙç·×Ùgï}׺Pü‚ÂtX€4¡XîëÁ\ËÄ÷XÀáffGøDÔü½=™™¨HƳöî.€d»Û,¿P&sÖÿ‘"7C$ EÕ6<~&å”S³Å2ÿÊô•)2†12¡ ¢¬"ãįlö§æ+»É˜—&ä¡Yμ4žŒ»PÞš%ᣌ¡\˜%àg£|e½TIšå÷(ÓÓøœL0™_Ìç&¡l‰2Eî‰ò”Ä9¼r‹ù9hžx¦g䊉Ib¦טiåèÈfúñ³Sùb1+”ÃMáˆxLÏô´ Ž0€¯o–E%Ym™h‘í­ííYÖæhù¿Ùß~Sý=ÈzûUñ&ìÏžAŒžYßlì¬/½ö$Z›³¾•U´m@åá¬Oï ò´Þœó†l^’Äâ ' ‹ììlsŸk.+è7ûŸ‚oÊ¿†9÷™ËîûV;¦?#I3eE妧¦KDÌÌ —Ïdý÷ÿãÀ9iÍÉÃ,œŸÀñ…èUQè” „‰h»…Ø A1ØvƒjpÔzÐN‚6p\WÀ p €G@ †ÁK0Þi‚ð¢Aª¤™BÖZyCAP8ÅC‰’@ùÐ&¨*ƒª¡CP=ô#tº]ƒú Ð 4ý}„˜Óa ض€Ù°;GÂËàDxœÀÛáJ¸>·Âáð,…_“@ÈÑFXñDBX$!k‘"¤©Eš¤¹H‘q䇡a˜Æã‡YŒábVaÖbJ0Õ˜c˜VLæ6f3ù‚¥bÕ±¦X'¬?v 6›-ÄV``[°—±Øaì;ÇÀâp~¸\2n5®·׌»€ëà á&ñx¼*Þï‚Ásðb|!¾ ߯¿' Zk‚!– $l$Tçý„Â4Q¨Ot"†yÄ\b)±ŽØA¼I&N“I†$R$)™´TIj"]&=&½!“É:dGrY@^O®$Ÿ _%’?P”(&OJEBÙN9J¹@y@yC¥R ¨nÔXª˜ºZO½D}J}/G“3—ó—ãÉ­“«‘k•ë—{%O”×—w—_.Ÿ'_!Jþ¦ü¸QÁ@ÁS£°V¡Fá´Â=…IEš¢•bˆbšb‰bƒâ5ÅQ%¼’’·O©@é°Ò%¥!BÓ¥yÒ¸´M´:ÚeÚ0G7¤ûÓ“éÅôè½ô e%e[å(ååå³ÊRÂ0`ø3R¥Œ“Œ»Œó4æ¹ÏãÏÛ6¯i^ÿ¼)•ù*n*|•"•f••ªLUoÕÕªmªOÔ0j&jajÙjûÕ.«Ï§ÏwžÏ_4ÿäü‡ê°º‰z¸újõÃê=ꓚ¾U—4Æ5šnšÉšåšç4Ç´hZ µZåZçµ^0•™îÌTf%³‹9¡­®í§-Ñ>¤Ý«=­c¨³Xg£N³Î]’.[7A·\·SwBOK/X/_¯Qï¡>QŸ­Ÿ¤¿G¿[ÊÀÐ Ú`‹A›Á¨¡Š¡¿aža£ác#ª‘«Ñ*£Z£;Æ8c¶qŠñ>ã[&°‰I’IÉMSØÔÞT`ºÏ´Ï kæh&4«5»Ç¢°ÜYY¬FÖ 9Ã<È|£y›ù+ =‹X‹Ý_,í,S-ë,Y)YXm´ê°úÃÚÄšk]c}džjãc³Î¦Ýæµ­©-ßv¿í};š]°Ý»N»Ïöö"û&û1=‡x‡½÷Øtv(»„}Õëèá¸ÎñŒã'{'±ÓI§ßYÎ)ΠΣ ðÔ-rÑqá¸r‘.d.Œ_xp¡ÔUÛ•ãZëúÌM×çvÄmÄÝØ=Ùý¸û+K‘G‹Ç”§“çÏ ^ˆ—¯W‘W¯·’÷bïjï§>:>‰>>¾v¾«}/øaýývúÝó×ðçú×ûO8¬ è ¤FV> 2 uÃÁÁ»‚/Ò_$\ÔBüCv…< 5 ]ús.,4¬&ìy¸Ux~xw-bEDCÄ»HÈÒÈG‹KwFÉGÅEÕGME{E—EK—X,Y³äFŒZŒ ¦={$vr©÷ÒÝK‡ãìâ ãî.3\–³ìÚrµå©ËÏ®_ÁYq*ßÿ‰©åL®ô_¹wåד»‡û’çÆ+çñ]øeü‘—„²„ÑD—Ä]‰cI®IIãOAµàu²_òä©””£)3©Ñ©Íi„´ø´ÓB%aа+]3='½/Ã4£0CºÊiÕîU¢@Ñ‘L(sYf»˜ŽþLõHŒ$›%ƒY ³j²ÞgGeŸÊQÌæôäšänËÉóÉû~5f5wug¾vþ†üÁ5îk­…Ö®\Û¹Nw]Áºáõ¾ëm mHÙðËFËeßnŠÞÔQ Q°¾`h³ïæÆB¹BQá½-Î[lÅllíÝf³­jÛ—"^ÑõbËâŠâO%Ü’ëßY}WùÝÌö„í½¥ö¥ûwàvwÜÝéºóX™bY^ÙЮà]­åÌò¢ò·»Wì¾Va[q`id´2¨²½J¯jGÕ§ê¤êšæ½ê{·íÚÇÛ׿ßmÓÅ>¼È÷Pk­AmÅaÜá¬ÃÏë¢êº¿g_DíHñ‘ÏG…G¥ÇÂuÕ;Ô×7¨7”6’ƱãqÇoýàõC{«éP3£¹ø8!9ñâÇøïž <ÙyŠ}ªé'ýŸö¶ÐZŠZ¡ÖÜÖ‰¶¤6i{L{ßé€ÓÎ-?›ÿ|ôŒö™š³ÊgKϑΜ›9Ÿw~òBÆ…ñ‹‰‡:Wt>º´äÒ®°®ÞË—¯^ñ¹r©Û½ûüU—«g®9];}}½í†ýÖ»ž–_ì~iéµïm½ép³ý–ã­Ž¾}çú]û/Þöº}åŽÿ‹úî.¾{ÿ^Ü=é}ÞýÑ©^?Ìz8ýhýcìã¢' O*žª?­ýÕø×f©½ôì ×`ϳˆg†¸C/ÿ•ù¯OÃÏ©Ï+F´FêG­GÏŒùŒÝz±ôÅðËŒ—Óã…¿)þ¶÷•Ñ«Ÿ~wû½gbÉÄðkÑë™?JÞ¨¾9úÖömçdèäÓwi獵ŠÞ«¾?öý¡ûcôÇ‘éìOøO•Ÿ?w| üòx&mfæß÷„óû2:Y~ pHYs  šœ«iTXtXML:com.adobe.xmp 2013-11-11T09:11:53 Acorn version 4.1.2 1 72 5 1 72 32 1 32 õû…ZIDATX ½–]LW€ÏÌþÌî˯ˆ€R ©MÑÄIÛ´–Иö¡©& &}ëCßú`ÓôE£MM $¶i­Öˆ¶Ký¡…jÊ¢kD( ¬ò£ì²̲?³;3»·çL\@›F„“œìΙ{ïùî9çž;Dðx<³³³ß´´´ÌËû[^p»Ýö¤¤¤=ÙÙÙß¶µµYâÞ­È_;CAOôÃ|>ß©ŽŽëŠx~èÄCÁ0³Ù¬A`:š.^¼˜°RÉ`³Ù´(TVVêçz{{WB‹€ :dLUU†‘8ßÙÙi_n Àd2ÍĦM›ôHüÒÕÕ•¼œ5󢬬Lƒðûý—nݺ•º\Ï󋢤¤D‡ø k"m9 èªO ˆââb¢Ó‘ñ¬!(*ÇqnذAƒƒŽëׯg=K{4UuG  ÃXff&ñ kÂÑ××·æYA€²Ðqüsjj*‹¡P`$nŒŒŒ”>-Dü]@=xÑ:åååš ó^¯°/@(Rõ±MMM.§Ó¹Læð™ô?%~€]Qö“>ƒœà±ŒŒf¢çññq6¨¦¦¦(]1TuõoTŠ mŠ`ôµiW´]´C#çÐ@ €œÕ××Ꭰª««¡½½²²²Àåre8ŽÒ‚‚‚Oqlhn2:]«¾(ygçºìœ÷ï¤Xʇù|³7û‚â×­ý~Ï€„ãÉÇ"ZgÞmXWW׊¶[[[ïE"¦7(«ÕÊð´°'NPÞi·¤æý99›;ÞÚ{ÁùÉyÙõÕ¬ÿ䵨¯';b?7¶²ý írÅQÇeÓžý4UŽ6Ÿÿ:´ó]»vµ;vìZ›>|oG¨­­ÕQJ°W@MMÍm4sãÞ¼ì²o¼r² ¦è5K~‚)‰2pùÁ71 !IeÂs9¦—Ê _)Ûöò¦·?~çP”5ˆy) íÞ½ûÌ©S§¾Ä]¨Jssó÷§OŸÞqöìÙR‹ÅxôÐ 011A?¶|Ë«UUs^¬*‡½L½Qw.Ãwcað¤Ù¡;¿”¥¬·Ú …¨é`'$¾ ðâü(í@—h^^ÞtþÈ9å—ŠÊyäȑ㇩ü^I’ §§'€ï„^/ªÍÙV\­˜"v@hСá6û§`rà>ünK‡n°Áøí10\îdkBòöüÜ-;q®–ŠøH¸«f|A…BŽu ^¹r姆††71=[)EûöíëmlltàCqQî{Ö¬$£êgÌú˜Å Qe˜/Ük áæó…Öz ’®uA—AH4’“V×áÜ3¨r<Šï ¥ªÃÈ|‡M(ñСCÝÃÃ×ÐöªÙb±m”¥c³n¬Lë$0¤EîôÀ`ÚVÈ:wÒ‡ ÚŒàKေØZ¾ ­ çâðy‘s²‘HW¯^=J‰ïAu¡èj>CåÌ"«ÀãUÏ„T›²Áz¢ ‹1fÖÚÃNnâ03‚Óø˜ñIBÑy€:…J‡œSÁ'Ì 1[rð!f4(Ìš.Øä¸×yà¾ä•Ë„K‡ˆÌƒ"…¹ÐŒoàá‹Ú'­ù$!§úeEc¨€-iv^(ZgÞn±É|ÒúXÒ£œËo—Ï¢ÈCPŠÂ̬¼ì99àïŽ6†=ÓÝ8?¸°ÓÂÿWènú|U•ÖÍÙÅËYeP°Œ‰H§q, ~ßxÅøÄ0ÉÏEØ A1ØvƒjpÔzÐN‚6p\WÀ p €G@ †ÁK0Þi‚ð¢Aª¤™BÖZyCAP8ÅC‰’@ùÐ&¨*ƒª¡CP=ô#tº]ƒú Ð 4ý}„˜Óa ض€Ù°;GÂËàDxœÀÛáJ¸>·Âáð,…_“@ÈÑFXñDBX$!k‘"¤©Eš¤¹H‘q䇡a˜Æã‡YŒábVaÖbJ0Õ˜c˜VLæ6f3ù‚¥bÕ±¦X'¬?v 6›-ÄV``[°—±Øaì;ÇÀâp~¸\2n5®·׌»€ëà á&ñx¼*Þï‚Ásðb|!¾ ߯¿' Zk‚!– $l$Tçý„Â4Q¨Ot"†yÄ\b)±ŽØA¼I&N“I†$R$)™´TIj"]&=&½!“É:dGrY@^O®$Ÿ _%’?P”(&OJEBÙN9J¹@y@yC¥R ¨nÔXª˜ºZO½D}J}/G“3—ó—ãÉ­“«‘k•ë—{%O”×—w—_.Ÿ'_!Jþ¦ü¸QÁ@ÁS£°V¡Fá´Â=…IEš¢•bˆbšb‰bƒâ5ÅQ%¼’’·O©@é°Ò%¥!BÓ¥yÒ¸´M´:ÚeÚ0G7¤ûÓ“éÅôè½ô e%e[å(ååå³ÊRÂ0`ø3R¥Œ“Œ»Œó4æ¹ÏãÏÛ6¯i^ÿ¼)•ù*n*|•"•f••ªLUoÕÕªmªOÔ0j&jajÙjûÕ.«Ï§ÏwžÏ_4ÿäü‡ê°º‰z¸újõÃê=ꓚ¾U—4Æ5šnšÉšåšç4Ç´hZ µZåZçµ^0•™îÌTf%³‹9¡­®í§-Ñ>¤Ý«=­c¨³Xg£N³Î]’.[7A·\·SwBOK/X/_¯Qï¡>QŸ­Ÿ¤¿G¿[ÊÀÐ Ú`‹A›Á¨¡Š¡¿aža£ác#ª‘«Ñ*£Z£;Æ8c¶qŠñ>ã[&°‰I’IÉMSØÔÞT`ºÏ´Ï kæh&4«5»Ç¢°ÜYY¬FÖ 9Ã<È|£y›ù+ =‹X‹Ý_,í,S-ë,Y)YXm´ê°úÃÚÄšk]c}džjãc³Î¦Ýæµ­©-ßv¿í};š]°Ý»N»Ïöö"û&û1=‡x‡½÷Øtv(»„}Õëèá¸ÎñŒã'{'±ÓI§ßYÎ)ΠΣ ðÔ-rÑqá¸r‘.d.Œ_xp¡ÔUÛ•ãZëúÌM×çvÄmÄÝØ=Ùý¸û+K‘G‹Ç”§“çÏ ^ˆ—¯W‘W¯·’÷bïjï§>:>‰>>¾v¾«}/øaýývúÝó×ðçú×ûO8¬ è ¤FV> 2 uÃÁÁ»‚/Ò_$\ÔBüCv…< 5 ]ús.,4¬&ìy¸Ux~xw-bEDCÄ»HÈÒÈG‹KwFÉGÅEÕGME{E—EK—X,Y³äFŒZŒ ¦={$vr©÷ÒÝK‡ãìâ ãî.3\–³ìÚrµå©ËÏ®_ÁYq*ßÿ‰©åL®ô_¹wåד»‡û’çÆ+çñ]øeü‘—„²„ÑD—Ä]‰cI®IIãOAµàu²_òä©””£)3©Ñ©Íi„´ø´ÓB%aа+]3='½/Ã4£0CºÊiÕîU¢@Ñ‘L(sYf»˜ŽþLõHŒ$›%ƒY ³j²ÞgGeŸÊQÌæôäšänËÉóÉû~5f5wug¾vþ†üÁ5îk­…Ö®\Û¹Nw]Áºáõ¾ëm mHÙðËFËeßnŠÞÔQ Q°¾`h³ïæÆB¹BQá½-Î[lÅllíÝf³­jÛ—"^ÑõbËâŠâO%Ü’ëßY}WùÝÌö„í½¥ö¥ûwàvwÜÝéºóX™bY^ÙЮà]­åÌò¢ò·»Wì¾Va[q`id´2¨²½J¯jGÕ§ê¤êšæ½ê{·íÚÇÛ׿ßmÓÅ>¼È÷Pk­AmÅaÜá¬ÃÏë¢êº¿g_DíHñ‘ÏG…G¥ÇÂuÕ;Ô×7¨7”6’ƱãqÇoýàõC{«éP3£¹ø8!9ñâÇøïž <ÙyŠ}ªé'ýŸö¶ÐZŠZ¡ÖÜÖ‰¶¤6i{L{ßé€ÓÎ-?›ÿ|ôŒö™š³ÊgKϑΜ›9Ÿw~òBÆ…ñ‹‰‡:Wt>º´äÒ®°®ÞË—¯^ñ¹r©Û½ûüU—«g®9];}}½í†ýÖ»ž–_ì~iéµïm½ép³ý–ã­Ž¾}çú]û/Þöº}åŽÿ‹úî.¾{ÿ^Ü=é}ÞýÑ©^?Ìz8ýhýcìã¢' O*žª?­ýÕø×f©½ôì ×`ϳˆg†¸C/ÿ•ù¯OÃÏ©Ï+F´FêG­GÏŒùŒÝz±ôÅðËŒ—Óã…¿)þ¶÷•Ñ«Ÿ~wû½gbÉÄðkÑë™?JÞ¨¾9úÖömçdèäÓwi獵ŠÞ«¾?öý¡ûcôÇ‘éìOøO•Ÿ?w| üòx&mfæß÷„óû2:Y~ pHYs  šœ«iTXtXML:com.adobe.xmp 2013-11-11T09:11:91 Acorn version 4.1.2 1 72 5 1 72 64 1 64 ü»d¤IDATxí[ p]ÕyþÏ]Þ"==-–,Ù’lË’°…—R0Å1ÌN Ô4„­KÊP˜@˜vÈ4a¦@CbZbcÀPÊãÆÆŠëïò.[–d-Ozzûrß]N¿ÿJ×£¸˜¸¶Ìô0ÇçÞóî=çüßÿýË9Wýù îJûúú–I”\.÷kÜ«¨·Ü~ã <ºÜ„ʹ3ü)@X†KEá|A8–[Ïf³A¾°QÂMG0Ö;üøiYÆÆq·ZgêË^„ÌîúƘØxªìíí[¶la‰sX:›Ã1ßõÆïí˜B@8wݱXŒ®½öZúøãô1Á–Œ€À]c¾?Þ…>Öú˜ÚÓ>ýôÓ5,ÝþýûUUe8–ëÖ­“0 ÖìšÃÈVš™ð—áçã„ ƒàå ì8DnÛ¶Í3‡¿/Œ7N8 3Í}ï¶oßîE‡¿Ï'N(Š¢¸‚³ð8' ¿ßOîÞ¡­­ÍáGã „ ÎK\í3Ø Ã`B¸ œ{î¹|²ä™Ãpðúã š»Âãü‡Ï ¸²À^a­_sÍ54iÒ$* Äl` Jü&øP*tþùçó†Ê ƒw§¨¨è^ÞJ{ãœìö¸`ÁXpŽAà–ûXësæÌ¡‡zèhXë£ ß»}án˜ƒí_£ï”€p\p²ÃÔž>}:577Ó|pDÓ,áã?îæ³fÍrY­›Üï c Ÿ¸"`ÀGX>Ÿï‡©T*RRRòžû]  ¢7äX­7þX¿}©ï+À7M“&NœHï¼ó…B!jmm%hÐeƒJÓsÏ=G/¾ø¢„`âÕW_=ôàƒ¶×ÔÔè`È‘…1åQ ¼ÓSQQ±õ‚ .؆•ùPÙixÏyBn½ë/ 2ò¿ËÏxcxíXÏÙ÷…Sá½{÷:Ð âÖúúz‰äF‚°GÞ{ï½n?k¹×\b{ìž#$&L˜ðÞÿÙQõ§¸ÿÔÇQ™þŒÊŸãxñ^eÍëÑQœjj1jhTå{îçßý¨ü<¿Çï{cárìò¿2€5Ï¥©©‰Þ~ûmÖ: ËÓ=÷ÜCË–-swƒÜÅ,`øôÓO ôK~ë­·J/¼ðÂ_ƒ9 ¨nó{£ Þ3f4ŸÏ³öÝq¶¶jËÛÚø1¥•êŠn›2ïÌé%“/* ýQ2 5¶ûDu¯"5SHË6­^mÏdSçWýWÚÁ»µ.$j[>|ªû9+xÜ#ÅðÈÝ0rõø.ð«¹sçÎooo—\°Í¯X±ÂݳgO ÂÃ+?ü0=öØc®ðžsd V­Z%çÏŸ/2™ÌàË/¿|ÑÝwß}à ä£AÈšÛÕÖº:ßòînf“ïù)·|§¹ªþ–âòÒKÂUee%•e¶ÖEO@èŰv SfS†ŒE¢jgÎHl¯ªXµ=`/Í.}ð#ŠÇó4w¡ µË Ïó/<ö‘rôG ¦MéwÜq œÆ9=ïñß|óMjll”pbâý÷ßïC(Û0oÞ¼0À 1# e144ä:Dvtì(‘ŠE‹I8ºbŒ¥ïÝu×]æš5kØ1²V<Íðb\áP]ø >ÇÝ^Ù0å±–+þ®iÊ™×·Î8«üê3kÈß8µå"XSJþª*©,¡òª0•U‡Å„š2*™\0Z2Õ“¯’ç,˜dùûíÕK’t饵·3ð,ü”>&wÞyç5uuuÓ˜þ×]w˜:uª+<¼~RÛÕ°¾pýõ×7âà gxG" Ï,ÁW%:çœshÆŒ ̼øâ‹ß¿í¶ÛzÞxã eùòåž6\Á±(eaUUð7‘ˆr_ý„–ëgžñ|ÃŒ3¾_zV‹Ï7£ÎÒ!œò“` H)l[RÚ/ ÅÜBÅ„ºßGêÄ2G\áèe¥~'žS(Ÿ<Ç.­ÝjýÛ’j½P£L9\Ž™ –••¹‰ Æï¾ûn÷‚ V ¬‡ÐãþÃÕ«Wâa ˜œ9s¦«yfW.O>ù$ksD(niiù1ºÆò9âÒjò/?žVÝzåÌÖ_6Ìž9O?»Þò5m­ÈQ)o ;ž#k(+íhV:iÊ¡ÆS”LS׉XކM1‹ŠÕÚbÍùV™jMŸ6uné·¿»X»áogSÛA³/eGé9G^¢{ã^Œþ‡æ{Ö,_Bc‡®¾úêf#ìþSô­ÇÏÛŸzê©ÿdÇVZZ*î»ï¾#Cx,@êK¯¿þºÛ_^^¾¾eî 7Ü€aÝï‰<‡26¿²ŸÄBuÒÐø³)--g‰–Y¦¿²\vBµR‡ÉŒ ‘9¥BR˜}Irz“”ëKÐÐH£ÀÜ:uZ*Å-EñéºÚP$ͺúºÖªæo?᛽`*m[)óa^ycÀ!ŽWÍ),8„E¯ÄíFº±~_"‘èCpŽn|Â~~öæ›o–Lyv„ìG0t#<<³@ƒÏ`”ôG}Ô]ü‡º¶»›¯×57ÿM}cãw¨i†­‡BåòdÅ£ÒŠu9x€Ìþ(™})iô&ÈFè£&(†¶3'i¯VDÝpw½y)-ø"Õ§M†«œb‹ó§Tθóànf›¾»†1M€M Ð’%KößtÓMàrCqqñ:ΦQ ˜ÁÚ=`ÁGøF` <ð€ 3€ÙÃ@àŒ#w<°`òˆKyäBÕjkk9fûÿ¾±þ‚I“jnö54‘.%Êç„•ˆòÐ|´mÛ@š })²ûSÌHQ¼?Aƒ±,í †è ¤HÖ¦H^R¿)(™1EÑ`LÔLJhbÖ\ÔP3>æcxŒÍ|Ôíí¼õÖ[Yó,üz„³v\ÇW„”žžždeee¾mD”Ø…ßN‘.¹ä¾$þ–È@pyï½÷ˆYF)p®÷£ËÇ aR+Ôœ3kÒÍ“gM+Q'UÚBšŠJJk(Ácd¢b‡ÉJlAÛ%ÌhŽìhšì¡,¥†2”èQ|´»ªš"– XΦAüK2íë’ÊžNJ¤ì ÁPQ8\³d c~/Yc1@¾ð +n¼ñÆ·ð 'ü\{³–¹Z8êDË,øa/Ç̹ÿþû]pB„4—8OXºt© žå¾ù;vìÀBHGèô}ÿì‰-ååëÕ¤•ÁGªlع‘ + b |2Cv®};¤•N“L™äd 2ÒYÊÂTöÖÖRW¸Œ2y‹âPn>š$ߦ]¤oh#»£—œ‚)üAþè«ø»5å-gòܨ®3+ ð¹«íE`·mÐ\΢z¡ —áÐF†'ºººüÐìÔóÎ;¯¶¡¡:::ÄìÙ³éµ×^#8O‰tÚ`üÖ®]»ÚT­X¹råaÜêwÎr}SóôïùkêIò¤•ÒŽ‘t’d›)r°¿°“yrrôEÉ1ƒ¤!“:ŒE++iÓ¼ó(UZŠß t÷QÕÚMnÛC*¶à”lí0AÉYjÀ0ÍÃC‰ý07ç!p›_,,d áo3,ltb¸Ï¡~Ixô¹,@Xdì{â‰'VCØP²xñb¦»ëá ]û_»vmô™gžÙsùÏGá3‚_T†‹ç…ʰ9R…cdQ!´•!©eH)Ë‘ªäHêÉ^‡ÐBwÕ¤˜>²›öÍj¡èÔ:Òâ *Û¾‡ª7m£PdÀ•¬àÇÉT°Á@’>Õ/ýZÑ rÄm,T.÷bqý|:–ðèv‹Äß d±ÛëÁ!èŽW^ye ÷²ðl\p(¿ýöÛ7!{\á?CüCãó\z0hº­ã)ª»5KNZ/`{ š¤Vš¤M/V‹ó‡@È·“†­C×Ì&ÚyþRQûAšú¯+¨ößWQðÐaøI–?î0,2a´ËNÀT¬Öc^€•¯Íô{.Oh^ä± ÿnc«E»ï'?ùÉo2[‘U LÃû|öÙg÷œúðûäûF T2k˜:)jIÙ 3å ù ŸGj[p‡t›”ÉXu‰ mw%ì)´§y6MXóÕ¼žô$‚“®‘íó8ŠKìpô`#õ±±_4‹%Ò"GQ*1/ËÍæ?&èwéÍíW)ßspn=pj»ó ûoÂ9ÀnË‚Û÷AãûpÁ=ûž·±ØGKE ‹¤Ýõ)%yż]p#|¶ÙÊpÔãq£QÙEyú°ã ¤ŸÐ¤¾Ar*lÊMÇU «â=FsU|ÈK|&À>À$[8A îj­‹è?®â²Âá­½/½ôҠ݃êÞ£Ýá{Ñ&QY2ž)È­¢•;R/+^j_Í!€ª8ð¼ëæ§ølQäÃB«²±*ÚÐIåñ˜HÔM—ŠVÁ Ç+^BKPÅàŒ£†Ê š…ÿLÇb¸€G?`—1¼ŸgϾ•`š÷ &Pù7ϬFG!+¬¤V‘›¬©RU ¸Â( Ê[H¦8¡BU4h°Â! „(Ô>€©QÓÄ,íèß i&B³ÕÀ “(£rTàq,6!Œc™ì vì.´h]*p{" ÈÂîFe!Ùe{‚3K¸ðÄ£‹LYF§-33MSŠÍH&7 Ù¤–¨†'`_§Þ;¨S2Fó©åšìOZ4˜é&Ÿ†ÌQV’#ÊXÎÃÉç\Å­c™À”V>ßIx=n=Q `¡x@¦8Sõ&Áå— ÿÆ€9û:mõÉï…ÂØ?h& Ö…ñg8pzz9â:„WÙ[`¸lV¥hKµÙq†ààš&j”èdŠgaúÝè‡O¥¨!äð P¾Äâ` 3Ÿf:µcdn^à eÇåX‚þ°>ÙÛ|vke,ô•çqn*|)A \AœòIø5Îe¢YrØä°¯c‚Pm)ò~l:bS+V€!l´îGEk"W;›Käûú>ãyQ]ðOFaØÍ[¿]ë8Øøï|.E9£ Mk+³H”A«ðd¶ P°Ö´¡ÐPF…f‡—ÇÛ5Þpé0¶Æ*AA< N—fIÐ éL¾OJ3BV¦]¦§çFðÂÌIÿ;_ÏpË~‚´OS”Bsƒ~A¨LDÈ’zØR„:âÄ Ut0£S4÷¹ÅÆSð² þ:%ÈÏŸðL<ãQ€b-8KX“4d–þÖ½ Z¹|&shàÆPz?æEÒà&yæhŒ¾“VfŸêó‘oçljVKQù”F¥U‘ƹtŠ!„Âê)g*Ik”Ê#°ÁœÑ-°?¢˜À· îp`ÿ`9„Og¥0ò,<ÞÇ™™ 0`B¢ͼÛÕ÷.ædŰ“¶O,¼W|_ñ!áStý³¾˜^5QLÎfÝïÊD1Ï*"šVÉÀ¡4—”r@vgÀÓó7PIAÁ@R”³…™³%Âø!T+ilŠïXl¬~|9À^ÚÝÙN˜×Àm!¼zdÐ2uY‡§û›+ÊÅÄ\΂Ž,ÀD3 è­’ AÑ\3Y˜EŒ#÷!ÆCëó‘é‘·e@€)ª2wÇwGŸ3™H¿p’â†jÞã°Àã©-̤¨8‹/%ß¡ÎBö`‡¹¿¾ÎW[“-Û°ug(¥`¯›R°»3MÛ|(&¤2A}h^š,´iÃjàÛ`¹!sstçàÏXz/vˆÌÙ)g‚®öÑžt'ˆ9Ýâ îÝ `‚ƒÿ5Aëì*d¶l7v—„t *õ¶Pýñ´é „ÇYS¾`8_Ö)–t(‘„à (.ã Íœ“Nô+o,1Ùƒ> áyÃÆ‡:lû^t=1îOY jù@°‹ŠH²rŸ¬MíŽÅÔýRQ…a)ˆl~Pš @sßÒ¨®çgˆíTÆIÆú͵wÄ–íÛùÀb›Gâ8"¼çøŽ„@HÆ©-<¿ Ðò‰wj!€P³ÁÞC8X 7Q4ufK¸µj’Þ\\LÕº®„)Ã<„¢l<éô¦bƾ¾®tÛÀáì!l¿‡=ý°æãÓžsmÎ?8 rÁ?Õ`®C á寽!TN‚¹20H|??ÈÀ5¯…`a˜Òl×LovpLu®,8Ûüð&ã(áÑÿ’ ó¸Ç[X.,_³–˜ªž0 Ã,álˆ ”ßáÊ`på1 Oó¸ü¼Œx«áµpåÈÄ•åÓ[Ú«Ü÷»ðXÀse=ÁYxf‹K{´GÊx€åÀ­g0ÜÏÕ+Ì5,èh¡¹ßüKÂóã €ÑkòÀðèîµ^??Ëe´€žÀ^ë íµÃoŒú÷B3T-ž¿ôIEND®B`‚codequery-0.21.0/scintilla/cocoa/res/mac_cursor_flipped.png000066400000000000000000000106321310136352400237770ustar00rootroot00000000000000‰PNG  IHDR szzô AiCCPICC ProfileH –wTSهϽ7½Ð" %ôz Ò;HQ‰I€P†„&vDF)VdTÀG‡"cE ƒ‚b× òPÆÁQDEåÝŒk ï­5óÞšýÇYßÙç·×Ùgï}׺Pü‚ÂtX€4¡XîëÁ\ËÄ÷XÀáffGøDÔü½=™™¨HƳöî.€d»Û,¿P&sÖÿ‘"7C$ EÕ6<~&å”S³Å2ÿÊô•)2†12¡ ¢¬"ãįlö§æ+»É˜—&ä¡Yμ4žŒ»PÞš%ᣌ¡\˜%àg£|e½TIšå÷(ÓÓøœL0™_Ìç&¡l‰2Eî‰ò”Ä9¼r‹ù9hžx¦g䊉Ib¦טiåèÈfúñ³Sùb1+”ÃMáˆxLÏô´ Ž0€¯o–E%Ym™h‘í­ííYÖæhù¿Ùß~Sý=ÈzûUñ&ìÏžAŒžYßlì¬/½ö$Z›³¾•U´m@åá¬Oï ò´Þœó†l^’Äâ ' ‹ììlsŸk.+è7ûŸ‚oÊ¿†9÷™ËîûV;¦?#I3eE妧¦KDÌÌ —Ïdý÷ÿãÀ9iÍÉÃ,œŸÀñ…èUQè” „‰h»…Ø A1ØvƒjpÔzÐN‚6p\WÀ p €G@ †ÁK0Þi‚ð¢Aª¤™BÖZyCAP8ÅC‰’@ùÐ&¨*ƒª¡CP=ô#tº]ƒú Ð 4ý}„˜Óa ض€Ù°;GÂËàDxœÀÛáJ¸>·Âáð,…_“@ÈÑFXñDBX$!k‘"¤©Eš¤¹H‘q䇡a˜Æã‡YŒábVaÖbJ0Õ˜c˜VLæ6f3ù‚¥bÕ±¦X'¬?v 6›-ÄV``[°—±Øaì;ÇÀâp~¸\2n5®·׌»€ëà á&ñx¼*Þï‚Ásðb|!¾ ߯¿' Zk‚!– $l$Tçý„Â4Q¨Ot"†yÄ\b)±ŽØA¼I&N“I†$R$)™´TIj"]&=&½!“É:dGrY@^O®$Ÿ _%’?P”(&OJEBÙN9J¹@y@yC¥R ¨nÔXª˜ºZO½D}J}/G“3—ó—ãÉ­“«‘k•ë—{%O”×—w—_.Ÿ'_!Jþ¦ü¸QÁ@ÁS£°V¡Fá´Â=…IEš¢•bˆbšb‰bƒâ5ÅQ%¼’’·O©@é°Ò%¥!BÓ¥yÒ¸´M´:ÚeÚ0G7¤ûÓ“éÅôè½ô e%e[å(ååå³ÊRÂ0`ø3R¥Œ“Œ»Œó4æ¹ÏãÏÛ6¯i^ÿ¼)•ù*n*|•"•f••ªLUoÕÕªmªOÔ0j&jajÙjûÕ.«Ï§ÏwžÏ_4ÿäü‡ê°º‰z¸újõÃê=ꓚ¾U—4Æ5šnšÉšåšç4Ç´hZ µZåZçµ^0•™îÌTf%³‹9¡­®í§-Ñ>¤Ý«=­c¨³Xg£N³Î]’.[7A·\·SwBOK/X/_¯Qï¡>QŸ­Ÿ¤¿G¿[ÊÀÐ Ú`‹A›Á¨¡Š¡¿aža£ác#ª‘«Ñ*£Z£;Æ8c¶qŠñ>ã[&°‰I’IÉMSØÔÞT`ºÏ´Ï kæh&4«5»Ç¢°ÜYY¬FÖ 9Ã<È|£y›ù+ =‹X‹Ý_,í,S-ë,Y)YXm´ê°úÃÚÄšk]c}džjãc³Î¦Ýæµ­©-ßv¿í};š]°Ý»N»Ïöö"û&û1=‡x‡½÷Øtv(»„}Õëèá¸ÎñŒã'{'±ÓI§ßYÎ)ΠΣ ðÔ-rÑqá¸r‘.d.Œ_xp¡ÔUÛ•ãZëúÌM×çvÄmÄÝØ=Ùý¸û+K‘G‹Ç”§“çÏ ^ˆ—¯W‘W¯·’÷bïjï§>:>‰>>¾v¾«}/øaýývúÝó×ðçú×ûO8¬ è ¤FV> 2 uÃÁÁ»‚/Ò_$\ÔBüCv…< 5 ]ús.,4¬&ìy¸Ux~xw-bEDCÄ»HÈÒÈG‹KwFÉGÅEÕGME{E—EK—X,Y³äFŒZŒ ¦={$vr©÷ÒÝK‡ãìâ ãî.3\–³ìÚrµå©ËÏ®_ÁYq*ßÿ‰©åL®ô_¹wåד»‡û’çÆ+çñ]øeü‘—„²„ÑD—Ä]‰cI®IIãOAµàu²_òä©””£)3©Ñ©Íi„´ø´ÓB%aа+]3='½/Ã4£0CºÊiÕîU¢@Ñ‘L(sYf»˜ŽþLõHŒ$›%ƒY ³j²ÞgGeŸÊQÌæôäšänËÉóÉû~5f5wug¾vþ†üÁ5îk­…Ö®\Û¹Nw]Áºáõ¾ëm mHÙðËFËeßnŠÞÔQ Q°¾`h³ïæÆB¹BQá½-Î[lÅllíÝf³­jÛ—"^ÑõbËâŠâO%Ü’ëßY}WùÝÌö„í½¥ö¥ûwàvwÜÝéºóX™bY^ÙЮà]­åÌò¢ò·»Wì¾Va[q`id´2¨²½J¯jGÕ§ê¤êšæ½ê{·íÚÇÛ׿ßmÓÅ>¼È÷Pk­AmÅaÜá¬ÃÏë¢êº¿g_DíHñ‘ÏG…G¥ÇÂuÕ;Ô×7¨7”6’ƱãqÇoýàõC{«éP3£¹ø8!9ñâÇøïž <ÙyŠ}ªé'ýŸö¶ÐZŠZ¡ÖÜÖ‰¶¤6i{L{ßé€ÓÎ-?›ÿ|ôŒö™š³ÊgKϑΜ›9Ÿw~òBÆ…ñ‹‰‡:Wt>º´äÒ®°®ÞË—¯^ñ¹r©Û½ûüU—«g®9];}}½í†ýÖ»ž–_ì~iéµïm½ép³ý–ã­Ž¾}çú]û/Þöº}åŽÿ‹úî.¾{ÿ^Ü=é}ÞýÑ©^?Ìz8ýhýcìã¢' O*žª?­ýÕø×f©½ôì ×`ϳˆg†¸C/ÿ•ù¯OÃÏ©Ï+F´FêG­GÏŒùŒÝz±ôÅðËŒ—Óã…¿)þ¶÷•Ñ«Ÿ~wû½gbÉÄðkÑë™?JÞ¨¾9úÖömçdèäÓwi獵ŠÞ«¾?öý¡ûcôÇ‘éìOøO•Ÿ?w| üòx&mfæß÷„óû2:Y~ pHYs  šœ«iTXtXML:com.adobe.xmp 2013-11-11T09:11:91 Acorn version 4.1.2 1 72 5 1 72 64 1 64 ü»dHIDATX íVÍKQÏf›Ï&M(AK>ðà¥4­E)=$·"H?,H¥è¡×\¤P¨öoð,ÍAZPôRb¹¤[!xŠ„Rkµ  ¢‰fw_óºÒvk79fÞcÞü~3ïc×bùß„1v‰8ïííõɲ¼›Ï矛©'3š€ÀA¶¶¶ú»ººÒX×½³³ã4º^/Ϊ7©7×~; ¥A$ˆ8æóù çÐËkh±^©Tú¾Jà¢(žb^°Z­6½ÄFçþI@ߨØè ‡ÃÔÊe—ËÅ·ÏétºŒ‚éÅy.Òž£ò[ç•c,Ó†>%ÛÓÓó²V«ÕÇÆÆèÁQ‘àÇiNn4ìä䤿}ÞØ·„†Ì”¡ N½²²²²K§bbBBû‰@©mè‹‹‹ü¢åw <‹ÑãÃp+èùe öbiié3Ir¹Ü«v¿Œ°%8UOí¦!ëíí¾Šñ³ùùù"Í¥Óéd[ ßßß¿_á­¼ú¹¹¹÷¢ËÀÀ€f*•J}Íf³Ó4gZÊOùúúúø\FGGé!â>~<Á¡NÄè#ô‰›×Œ‹øÎ?œœœÌ®­­UÒ`lffæbj'J~0tØú©9›†’û¡w ¯“Éä§åååM\Á{jD\›6g%$"ƒÐnè*ô;”âéjv\81Úóh4jÚYD;Næà¢èh~ˆUÅê×]YÍIEND®B`‚codequery-0.21.0/scintilla/cocoa/res/mac_cursor_flipped@2x.png000066400000000000000000000132231310136352400243500ustar00rootroot00000000000000‰PNG  IHDR@@ªiqÞ AiCCPICC ProfileH –wTSهϽ7½Ð" %ôz Ò;HQ‰I€P†„&vDF)VdTÀG‡"cE ƒ‚b× òPÆÁQDEåÝŒk ï­5óÞšýÇYßÙç·×Ùgï}׺Pü‚ÂtX€4¡XîëÁ\ËÄ÷XÀáffGøDÔü½=™™¨HƳöî.€d»Û,¿P&sÖÿ‘"7C$ EÕ6<~&å”S³Å2ÿÊô•)2†12¡ ¢¬"ãįlö§æ+»É˜—&ä¡Yμ4žŒ»PÞš%ᣌ¡\˜%àg£|e½TIšå÷(ÓÓøœL0™_Ìç&¡l‰2Eî‰ò”Ä9¼r‹ù9hžx¦g䊉Ib¦טiåèÈfúñ³Sùb1+”ÃMáˆxLÏô´ Ž0€¯o–E%Ym™h‘í­ííYÖæhù¿Ùß~Sý=ÈzûUñ&ìÏžAŒžYßlì¬/½ö$Z›³¾•U´m@åá¬Oï ò´Þœó†l^’Äâ ' ‹ììlsŸk.+è7ûŸ‚oÊ¿†9÷™ËîûV;¦?#I3eE妧¦KDÌÌ —Ïdý÷ÿãÀ9iÍÉÃ,œŸÀñ…èUQè” „‰h»…Ø A1ØvƒjpÔzÐN‚6p\WÀ p €G@ †ÁK0Þi‚ð¢Aª¤™BÖZyCAP8ÅC‰’@ùÐ&¨*ƒª¡CP=ô#tº]ƒú Ð 4ý}„˜Óa ض€Ù°;GÂËàDxœÀÛáJ¸>·Âáð,…_“@ÈÑFXñDBX$!k‘"¤©Eš¤¹H‘q䇡a˜Æã‡YŒábVaÖbJ0Õ˜c˜VLæ6f3ù‚¥bÕ±¦X'¬?v 6›-ÄV``[°—±Øaì;ÇÀâp~¸\2n5®·׌»€ëà á&ñx¼*Þï‚Ásðb|!¾ ߯¿' Zk‚!– $l$Tçý„Â4Q¨Ot"†yÄ\b)±ŽØA¼I&N“I†$R$)™´TIj"]&=&½!“É:dGrY@^O®$Ÿ _%’?P”(&OJEBÙN9J¹@y@yC¥R ¨nÔXª˜ºZO½D}J}/G“3—ó—ãÉ­“«‘k•ë—{%O”×—w—_.Ÿ'_!Jþ¦ü¸QÁ@ÁS£°V¡Fá´Â=…IEš¢•bˆbšb‰bƒâ5ÅQ%¼’’·O©@é°Ò%¥!BÓ¥yÒ¸´M´:ÚeÚ0G7¤ûÓ“éÅôè½ô e%e[å(ååå³ÊRÂ0`ø3R¥Œ“Œ»Œó4æ¹ÏãÏÛ6¯i^ÿ¼)•ù*n*|•"•f••ªLUoÕÕªmªOÔ0j&jajÙjûÕ.«Ï§ÏwžÏ_4ÿäü‡ê°º‰z¸újõÃê=ꓚ¾U—4Æ5šnšÉšåšç4Ç´hZ µZåZçµ^0•™îÌTf%³‹9¡­®í§-Ñ>¤Ý«=­c¨³Xg£N³Î]’.[7A·\·SwBOK/X/_¯Qï¡>QŸ­Ÿ¤¿G¿[ÊÀÐ Ú`‹A›Á¨¡Š¡¿aža£ác#ª‘«Ñ*£Z£;Æ8c¶qŠñ>ã[&°‰I’IÉMSØÔÞT`ºÏ´Ï kæh&4«5»Ç¢°ÜYY¬FÖ 9Ã<È|£y›ù+ =‹X‹Ý_,í,S-ë,Y)YXm´ê°úÃÚÄšk]c}džjãc³Î¦Ýæµ­©-ßv¿í};š]°Ý»N»Ïöö"û&û1=‡x‡½÷Øtv(»„}Õëèá¸ÎñŒã'{'±ÓI§ßYÎ)ΠΣ ðÔ-rÑqá¸r‘.d.Œ_xp¡ÔUÛ•ãZëúÌM×çvÄmÄÝØ=Ùý¸û+K‘G‹Ç”§“çÏ ^ˆ—¯W‘W¯·’÷bïjï§>:>‰>>¾v¾«}/øaýývúÝó×ðçú×ûO8¬ è ¤FV> 2 uÃÁÁ»‚/Ò_$\ÔBüCv…< 5 ]ús.,4¬&ìy¸Ux~xw-bEDCÄ»HÈÒÈG‹KwFÉGÅEÕGME{E—EK—X,Y³äFŒZŒ ¦={$vr©÷ÒÝK‡ãìâ ãî.3\–³ìÚrµå©ËÏ®_ÁYq*ßÿ‰©åL®ô_¹wåד»‡û’çÆ+çñ]øeü‘—„²„ÑD—Ä]‰cI®IIãOAµàu²_òä©””£)3©Ñ©Íi„´ø´ÓB%aа+]3='½/Ã4£0CºÊiÕîU¢@Ñ‘L(sYf»˜ŽþLõHŒ$›%ƒY ³j²ÞgGeŸÊQÌæôäšänËÉóÉû~5f5wug¾vþ†üÁ5îk­…Ö®\Û¹Nw]Áºáõ¾ëm mHÙðËFËeßnŠÞÔQ Q°¾`h³ïæÆB¹BQá½-Î[lÅllíÝf³­jÛ—"^ÑõbËâŠâO%Ü’ëßY}WùÝÌö„í½¥ö¥ûwàvwÜÝéºóX™bY^ÙЮà]­åÌò¢ò·»Wì¾Va[q`id´2¨²½J¯jGÕ§ê¤êšæ½ê{·íÚÇÛ׿ßmÓÅ>¼È÷Pk­AmÅaÜá¬ÃÏë¢êº¿g_DíHñ‘ÏG…G¥ÇÂuÕ;Ô×7¨7”6’ƱãqÇoýàõC{«éP3£¹ø8!9ñâÇøïž <ÙyŠ}ªé'ýŸö¶ÐZŠZ¡ÖÜÖ‰¶¤6i{L{ßé€ÓÎ-?›ÿ|ôŒö™š³ÊgKϑΜ›9Ÿw~òBÆ…ñ‹‰‡:Wt>º´äÒ®°®ÞË—¯^ñ¹r©Û½ûüU—«g®9];}}½í†ýÖ»ž–_ì~iéµïm½ép³ý–ã­Ž¾}çú]û/Þöº}åŽÿ‹úî.¾{ÿ^Ü=é}ÞýÑ©^?Ìz8ýhýcìã¢' O*žª?­ýÕø×f©½ôì ×`ϳˆg†¸C/ÿ•ù¯OÃÏ©Ï+F´FêG­GÏŒùŒÝz±ôÅðËŒ—Óã…¿)þ¶÷•Ñ«Ÿ~wû½gbÉÄðkÑë™?JÞ¨¾9úÖömçdèäÓwi獵ŠÞ«¾?öý¡ûcôÇ‘éìOøO•Ÿ?w| üòx&mfæß÷„óû2:Y~ pHYs  šœ«iTXtXML:com.adobe.xmp 2013-11-11T09:11:91 Acorn version 4.1.2 1 72 5 1 72 64 1 64 ü»dAIDATxíZ[LWžÝå&w!˜®J )6›”Ôö‰w/¶ª¥¶IMêC_„`k¬/V­XQj«­6jj¼<’4b±**"D„ˆ…ÂMäRPDÀ™~ßqf3»"¹ìl²'ù9gÏfÎ÷ýßùÏ?gW’ÜÅÍÀ„1 (Š3Á,OŸ>ýŸ•¦¦¦cø3Ã&¼LØC Þd2É@høc>>>mKKK*‰™ð2!¼Ùüšç(DÛÝÝ= •ç„#W8Wð•àoß¾-À?zôÈ&{ýÌرÀøO¾´´T$9otÙë1"¿àéùE‹IÈï]Böz†½ÀgÃóp#…/6\ó>tÙë –ÀÿðéyMöïJ²×0¤ÀøO žž_²d‰KÊ^OÀ  p¿Ÿà)û²²2!{®yWõ¼FÂ+à> à?£çïÞ½+’f ðFLo5péTÀà7|yy¹Èíkkk%ooo ]‚ªÀlðVÙƒSǼ¤=xXþÏo y’#¶:ô‰ ?{öÌ©«‡¿D^XÄ[€îÁ©Í DÆ‹Œ ÒªU«Äad/5ùrƒCMÉËËKógÏÚ½ñQT Í• sûlLzDeÇŽD©´¨Aލê Pîß¿/óW¯^-À+Œ_šLxqT€¹««+]×ÓÓÓ™óº˜U@oë Ž¶<é}Fiûöíâ0‰xÀ± ,ªªª¤êêj‘$9þ¿þ^Îjë à1µ×Ö­[ó¯\¹ÒÔÖÖ6 #Èf‹px&ì};wyóæ(\SöíÛgblà¡AÒxèyàÀéñãÇÒüùóE¦È¡¾¾>gað¹z8À{ïÞ½½¨9ËXŒÄØáOž<ÙwåÊ•ï¢_Â{€täÈ6p®{~¤¥¥IV«•ë_ÉÏÏ/Juuubœ‘þ8Ð Ï5aýöaÞ^˜¨p¬] Ò^ùôéÓ›¦M›O+»ví2õööÚ¼OðaaaÔ!N€p/SLLŒrá¿xðàØ:DÂ`sáá½°èèh~鹿Y·Ð³2do zZ;==—œÿ?¯¬¬ìd›d!ð)3fÌãA„!‚à`àyM“¿)33“jñjhh8D@ð´¼páB†Àµè?}út§A\^^Õ” ï7jÿCâãã™N»‚ S§Nq'0_ºt);Ãc‚9þ<·æ6øy÷îݼ¬`œŒ/BòзÁïȨg?” ×××+88\»v­c¬0§lƒxîÐE%À Ñ_ü¨‰wî\J‚Â{°mx0Gá}$,À« ŽÊñãÇí¼¯““ÃË ¾þêOHH8 à‹ƒ‚‚føúúơ͔:dþË1Øׯ_¿Œ~+̘ P½ïèžG–(ÇÆÆ ï¸øâââäÔÉ“'+èsÿÙ¨}aà!(uìЉ' ¼Ÿ³3AÌçÕó£W,8üX =焹ÆÑ'€k럟A”µÝ3wî܃èKˆˆˆãÿ«èçç÷6Úa‘;Tñ~FW€ “õAVXÀÉÒû¶ ý Ò`ÑNLL»Çdgg—$r7Qk¹ïC"@ÂÔ`ûÏœ9S^\\ü7ÚV˜!—€¹¼8ó'8.FðŒŒ %44ÔFÄÅ‹…÷qBÔõ=À¼ŠÚ–B£Mø™$Ä ^¿IMMMGû ˜! ðÉÊÊZqïÞ½»$€… s€šš%))IINN¶yË£@ÖM™2e&jÍûhÚ’àðѨ—Áaá0ãÂßï½ûvõêÕ…X^Ððb?'ÜïÙW]]ÝþÆÆ«ÿ§÷>ºí ¯ù!íŽ ¶¢í´ŸÉÙÍj€~ðT "=רɔ””b‡·kD¶·mÛö®¯:uªµ'Œ’¬Žó†ÏûêÌ™þÃfc/§\¿‚e?¶lÙR†øÐEð­ *×ÞAð @=˜÷qÙVHÒPDÙGc(æèøzÜ…m°u3dûÞþzÁu>|ø!°RüàOÆ |%Þqö''è0j.ûG¯2°Â´¢`Üêíka—aU°§0çe¸h`4"¸n #`Lvèõ`í0ñXÔ.QFJ€JO„: šçåüËxsuшx]"G=÷ Ü ¸p3àfÀÍ€›7nÜ ¸p3àfÀÍÀÈø…9JFÀüúIEND®B`‚codequery-0.21.0/scintilla/cppcheck.suppress000066400000000000000000000045231310136352400211440ustar00rootroot00000000000000// File to suppress cppcheck warnings for files that will not be fixed. // Does not suppress warnings where an additional occurrence of the warning may be of interest. // Coding style is to use assignments in constructor when there are many // members to initialize or the initialization is complex or has comments. useInitializationList // Some non-explicit constructors are used for conversions or are private to lexers noExplicitConstructor // ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp // The performance cost of by-value passing is often small and using a reference decreases // code legibility. passedByValue // Suppress most lexer warnings since the lexers are maintained by others redundantCondition:scintilla/lexers/LexA68k.cxx useInitializationList:scintilla/lexers/LexAsm.cxx useInitializationList:scintilla/lexers/LexBasic.cxx uninitMemberVar:scintilla/lexers/LexBash.cxx variableScope:scintilla/lexers/LexBash.cxx variableScope:scintilla/lexers/LexBatch.cxx variableScope:scintilla/lexers/LexCmake.cxx variableScope:scintilla/lexers/LexCSS.cxx useInitializationList:scintilla/lexers/LexD.cxx variableScope:scintilla/lexers/LexErlang.cxx variableScope:scintilla/lexers/LexGui4Cli.cxx variableScope:scintilla/lexers/LexInno.cxx variableScope:scintilla/lexers/LexLaTeX.cxx variableScope:scintilla/lexers/LexMetapost.cxx variableScope:scintilla/lexers/LexModula.cxx variableScope:scintilla/lexers/LexNimrod.cxx variableScope:scintilla/lexers/LexNsis.cxx variableScope:scintilla/lexers/LexOpal.cxx variableScope:scintilla/lexers/LexPB.cxx variableScope:scintilla/lexers/LexProgress.cxx variableScope:scintilla/lexers/LexRuby.cxx uninitMemberVar:scintilla/lexers/LexRuby.cxx variableScope:scintilla/lexers/LexSpecman.cxx clarifyCalculation:scintilla/lexers/LexTADS3.cxx invalidscanf:scintilla/lexers/LexTCMD.cxx variableScope:scintilla/lexers/LexTeX.cxx variableScope:scintilla/lexers/LexVHDL.cxx // Suppress everything in catch.hpp as won't be changing *:scintilla/test/unit/catch.hpp // Spurious errors due to choice of variadic or two argument TEST_CASE macro preprocessorErrorDirective:scintilla/test/unit/*.cxx syntaxError:scintilla/test/unit/UnitTester.cxx syntaxError:scintilla/test/unit/unitTest.cxx codequery-0.21.0/scintilla/delbin.bat000077500000000000000000000002431310136352400175010ustar00rootroot00000000000000del /S /Q *.a *.aps *.bsc *.dll *.dsw *.exe *.idb *.ilc *.ild *.ilf *.ilk *.ils *.lib *.map *.ncb *.obj *.o *.opt *.pdb *.plg *.res *.sbr *.tds *.exp *.tlog >NUL: codequery-0.21.0/scintilla/doc/000077500000000000000000000000001310136352400163175ustar00rootroot00000000000000codequery-0.21.0/scintilla/doc/Design.html000066400000000000000000000256141310136352400204260ustar00rootroot00000000000000 Scintilla and SciTE
Scintilla icon Scintilla Component Design

Top level structure

Scintilla consists of three major layers of C++ code

  • Portability Library
  • Core Code
  • Platform Events and API

The primary purpose of this structure is to separate the platform dependent code from the platform independent core code. This makes it easier to port Scintilla to a new platform and ensures that most readers of the code do not have to deal with platform details. To minimise portability problems and avoid code bloat, a conservative subset of C++ is used in Scintilla with no exception handling, run time type information or use of the standard C++ library and with limited use of templates.

The currently supported platforms, Windows, GTK+/Linux and wxWindows are fairly similar in many ways. Each has windows, menus and bitmaps. These features generally work in similar ways so each has a way to move a window or draw a red line. Sometimes one platform requires a sequence of calls rather than a single call. At other times, the differences are more profound. Reading the Windows clipboard occurs synchronously but reading the GTK+ clipboard requires a request call that will be asynchronously answered with a message containing the clipboard data. The wxWindows platform is available from the wxWindows site


Portability Library

This is a fairly small and thin layer over the platform's native capabilities.

The portability library is defined in Platform.h and is implemented once for each platform. PlatWin.cxx defines the Windows variants of the methods and PlatGTK.cxx the GTK+ variants.

Several of the classes here hold platform specific object identifiers and act as proxies to these platform objects. Most client code can thus manipulate the platform objects without caring which is the current platform. Sometimes client code needs access to the underlying object identifiers and this is provided by the GetID method. The underlying types of the platform specific identifiers are typedefed to common names to allow them to be transferred around in client code where needed.

Point, PRectangle

These are simple classes provided to hold the commonly used geometric primitives. A PRectangle follows the Mac / Windows convention of not including its bottom and right sides instead of including all its sides as is normal in GTK+. It is not called Rectangle as this may be the name of a macro on Windows.

ColourDesired

This is a simple class holding an expected colour. It is internally represented as a single 32 bit integer in BGR format with 8 bits per colour, but also provides a convenient API to fetch each component separately. As a platform might not be able to represent the exact desired colour if it doesn't have 24 bit depth available, it might not actually represent the exact desired colour but select a best fit that it can actually render.

Font

Font holds a platform specific font identifier - HFONT for Windows, PangoFontDescription* for GTK+. It does not own the identifier and so will not delete the platform font object in its destructor. Client code should call Destroy at appropriate times.

Surface

Surface is an abstraction over each platform's concept of somewhere that graphical drawing operations can be done. It may wrap an already created drawing place such as a window or be used to create a bitmap that can be drawn into and later copied onto another surface. On Windows it wraps a HDC and possibly a HBITMAP. On GTK+ it wraps a cairo_surface_t*. Other platform specific objects are created (and correctly destroyed) whenever required to perform drawing actions.

Drawing operations provided include drawing filled and unfilled polygons, lines, rectangles, ellipses and text. The height and width of text as well as other details can be measured. Operations can be clipped to a rectangle. Most of the calls are stateless with all parameters being passed at each call. The exception to this is line drawing which is performed by calling MoveTo and then LineTo.

Window

Window acts as a proxy to a platform window allowing operations such as showing, moving, redrawing, and destroying to be performed. It contains a platform specific window identifier - HWND for Windows, GtkWidget* for GTK+.

ListBox

ListBox is a subclass of Window and acts as a proxy to a platform listbox adding methods for operations such as adding, retrieving, and selecting items.

Menu

Menu is a small helper class for constructing popup menus. It contains the platform specific menu identifier - HMENU for Windows, GtkMenu* for GTK+. Most of the work in constructing menus requires access to platform events and so is done in the Platform Events and API layer.

Platform

The Platform class is used to access the facilities of the platform. System wide parameters such as double click speed and chrome colour are available from Platform. Utility functions such as DebugPrintf are also available from Platform.

Core Code

The bulk of Scintilla's code is platform independent. This is made up of the CellBuffer, ContractionState, Document, Editor, Indicator, LineMarker, Style, ViewStyle, KeyMap, ScintillaBase, CallTip, and AutoComplete primary classes.

CellBuffer

A CellBuffer holds text and styling information, the undo stack, the assignment of line markers to lines, and the fold structure.

A cell contains a character byte and its associated style byte. The current state of the cell buffer is the sequence of cells that make up the text and a sequence of line information containing the starting position of each line and any markers assigned to each line.

The undo stack holds a sequence of actions on the cell buffer. Each action is one of a text insertion, a text deletion or an undo start action. The start actions are used to group sequences of text insertions and deletions together so they can be undone together. To perform an undo operation, each insertion or deletion is undone in reverse sequence. Similarly, redo reapplies each action to the buffer in sequence. Whenever a character is inserted in the buffer either directly through a call such as InsertString or through undo or redo, its styling byte is initially set to zero. Client code is responsible for styling each character whenever convenient. Styling information is not stored in undo actions.

Document

A document contains a CellBuffer and deals with some higher level abstractions such as words, DBCS character sequences and line end character sequences. It is responsible for managing the styling process and for notifying other objects when changes occur to the document.

Editor

The Editor object is central to Scintilla. It is responsible for displaying a document and responding to user actions and requests from the container. It uses ContractionState, Indicator, LineMarker, Style, and ViewStyle objects to display the document and a KeyMap class to map key presses to functions. The visibility of each line is kept in the ContractionState which is also responsible for mapping from display lines to documents lines and vice versa.

There may be multiple Editor objects attached to one Document object. Changes to a document are broadcast to the editors through the DocWatcher mechanism.

ScintillaBase

ScintillaBase is a subclass of Editor and adds extra windowing features including display of calltips, autocompletion lists and context menus. These features use CallTip and AutoComplete objects. This class is optional so a lightweight implementation of Scintilla may bypass it if the added functionality is not required.

Platform Events and API

Each platform uses different mechanisms for receiving events. On Windows, events are received through messages and COM. On GTK+, callback functions are used.

For each platform, a class is derived from ScintillaBase (and thus from Editor). This is ScintillaWin on Windows and ScintillaGTK on GTK+. These classes are responsible for connecting to the platforms event mechanism and also to implement some virtual methods in Editor and ScintillaBase which are different on the platforms. For example, this layer has to support this difference between the synchronous Windows clipboard and the asynchronous GTK+ clipboard.

The external API is defined in this layer as each platform has different preferred styles of API - messages on Windows and function calls on GTK+. This also allows multiple APIs to be defined on a platform. The currently available API on GTK+ is similar to the Windows API and does not follow platform conventions well. A second API could be implemented here that did follow platform conventions.

codequery-0.21.0/scintilla/doc/Icons.html000066400000000000000000000032761310136352400202700ustar00rootroot00000000000000 Scintilla icons
Scintilla icon Scintilla and SciTE

Icons

These images may be used under the same license as Scintilla.

Drawn by Iago Rubio, Philippe Lhoste, and Neil Hodgson.

zip format (70K)

For autocompletion lists For margin markers
12x12 16x16 24x24 32x32
codequery-0.21.0/scintilla/doc/Indicators.png000066400000000000000000000257061310136352400211360ustar00rootroot00000000000000‰PNG  IHDRÈŠI¿MsRGB®ÎégAMA± üa pHYsÃÃÇo¨d+[IDATx^í¿‹lÉuÇG€ÿg¡ÄÆÁb˜Ðà̲cgŽd&Ø?@rèdC³àý ö.(/¬M6“À/‘ÖÙbaí:§ªnÕùQu«zª{úö|?p˜×çVÕ=uê|oõÌT¿y8š@ t€@èР@€ :@ t˜ȇçÇÓÃÃÃfOïÉûþôįOϸY"úc›ðê©ô+öZU¼×Å€NÏu_2}Ï9ÆÊr`ž×ãs¸C‡ϧGê§Ûe¿7ÏWÎ!ù«{ƒÛf~á"® ; á)øEñ8Q…‘'Ü\pªðsêÂ"ÿP±ÉXBÇ(¶äÅÿæhbcôøy¾OÁ/ÛC Çb@‚ƒ¿¬ý¾@=ž#—•-àú¾û¡þ1&ŠEï Þø[ÌtŸêÂËç®ÉRpqo…6(]\F ¶øæqÆ y¤XwRµµó'ìøe¾´[•ù@ Çb­@èU(€ø„µ~¿0âÛí’+¹£Ì£ 8¾Î;A_ 1¾²kè±ëó­‹å‰N×¥¿]^ÿËì Û7ÒdÕ€]ló)عØe›ò€@ŽÅz¨àŸŸ…¿Yz<#EÕYO |e¬Ÿ3Í+Üã9HöQ!e¿Wä¹ø„ÛHô9…E~ís9W êí߯þÛ.o¾ìóæn–)è§i\g¿øtñoÅ!L¾u‰â+×åO‹ŠèŠ~o2 3v6cbUo¶tO ¡“/tp³Ìï ¼!†òðYxòÁ–8X):@ t€@èР@€¦Ò;jrÛ¹%¼£*öø‰‰S5ØŽ˜¤×™úh‰£q®L˜‡{ü¥º¯{”%áç:X£=h3¿ƒ´+à#·RpšËÖ? PÌÁúFBxíâ|QS[[/ŽÝ#ÏaW Cy{¬HpДuÙ£Çsòâ÷D§ˆÅëL”ó8[ 1­ñ5½œ¼8_`c©@¸¶Åˆjg I]?‹8F¯ðÚñÉ£íç d¬ðå½z@ ×a­@èUXœ¸À£‰E±]r²ÿäÝ'‰¤¶­`û…YÇþ"¸ó¯Q¹èÐ_Ós%– $8]ˆ×õâ‹1q;>)ž DôS‚åkŽP9ߥ]¾¶+õ {“¬H€Šá¶>rÛ º7°˜WFÎï\xóÊÔm[ã‡+B<Èu¸ˆ@²žxÙï-Z,JÕ×+$ö9‹N~íó ˜M»´ƒl~¹£Dt"ÎÍ>åeÌ^¡s‘ȶ)wF$Èk0%\ÐÙâx)m³?‡6õÄæB+×EV¢+æ?‘-©ÐU9~ÄÄéZìf29FCì¢Ñí*ÑøùŒsj]ƒhæ™ȾþÑé‹o¾H¯îýõûÓ_üíÃé{Ÿ>§×«Ç¿þk0Ï”@(Ù9é7óõý÷OßûÓðt Åüà~ýãÓ90Ž÷õË¿)ãüÃ÷OÏ£ýnô+˜gþ{@Nz¯õŒs–@x+@ t€@èР@€Sé5±Ç%ä”—5ñŽ‹ 5qvŒÚÀøà®™ßAZ‡oú#·yàOÃñ˜C‚à-³N ÁA"(õº/Fç¤Ùw̱T \Ü[ Dµ³Q×_æX+z„ pT ±hûYõ½æX.Xàt}T ^ì à6X/Úm~äs\D ÙWÿ„Ê+r.HÝ×Hô9"!¿öu@ÀSÉ-Ö¦ÿH? ¤ê­Z€ÅW®ËB.¢+6û½ æ˜ßAxC ¤õ—ZoÉÏ»Šã§ Ãó·ÆÉ~¦« U8÷êoT :@ t€@èР@‡)ôŽšÜìGnï˜J0u>FÆhÇÎ×õ±šŒÎ›>º’Ï•mæçm/Ÿy¬_7p„¿!bË'CýòõÞº€³Y+zµ=ɬßH]|ôÒH£°†é ßoG ]©ø[˜¼Uˆ9å3ß·S_ïÌ ³\ ¥àìBu)Eš1:;曌¯™yUˆÆòYü™ãyë "»­Ü¶‹EmûÖ/ ?àî:L-ž8ŽRBöË'÷IqHk œÅE’}´`Ùïy^dáöž´ì³ýÙ¯}.^Œ±xå\RLu±Ó|½âwžú¶Ú]¸ŠÃøFòÇ•m+HÛÌ0%ýÔŠÉ÷B? ¤êMg.–lòi[ФXã-‹ÁëL-c¤±U ì¼Ý§ºMûfzùâ”7æ<œ3@L „þÎý½» ^ë5˜gX ”ìï|öþzS¯ùÃøD¦¿DûÏé«xý=~b~ùŸ_®¹ß_C,ó „’›“Míõ¿þñÒñŽþŒ1ÿM:o€ :@ t€@èÐaJ ½£&{G&^~Ô$ŸªmæØ„ô‚âsˆTFq¸ñ×çA±{gж¶ìo ±ÇMÀõ™ßAÌ9 $„|äÖœ©¢¹xc:³ñ;c:}M¿4—â’y·Å:CkáÝ')¡Ç)²YEï2,Ç·»Ü2K°í"ƒÑbŠlEÅ1ÜcëšQxÅîôÝúyí™ó—b­@èU(ˆø¶Ãú}¨Ï6¸±;OImž`zý˜Zy|dqøuâJѼ>῟»®×gùBÐ7ß·ùWnf.ÞRÇÀ}U»ÝØÓn!æbón‡‹d+„\í§X³i—~lì9"@ŒVÜZ$È-3%ýû‚¸¨þëâçB©úFSOo_¹.,[DW̲÷;çǾĄ@ʸaØÝ~Yðü=‰7¯hævàêà.Ž/ü4nÚè.€; :@ t€@èР@€Sé5±¿“GP^~Ôä%¹õÃH¿?ŦbʦÇš_ºŸm—ÆÛ~é©ú5Ž¿€Ë3¿ƒpÁÔ ˜Šìpå–°~§™oÀ‰gl~­8iîOO¡_ÝÈË ¸ ëT$­bð ˆÑã9ÅÐì;Ìb0ç̯Gb›;ífU Wc©@x!·]d°€tјbØ)ª!ZcXÿ¸@dÛ±ùíÌ¥ž;Ý77„@^µ¡W¡Pnï#·1–ú=muX3á·P©íØüÚqðu1÷ªòj,H\Lº>*¯¿Huý,ZcXÿŒ@ê¶cóÛ™‹ž;Ý›vdäÕX/=YñWn_"Ùwl~“ иO!—ÈëpdßöÖØAèРð@¼ÿ;f ÜS}£ûYrt@ AŽîd!ÈÑý1%ÞQû 9y¼ãåGMôQ²¹£&²o0}^$`â¬Û¤_Jʸˆ4>rwÌï ­ÃŠGûÈm³ø’ÅÏ_ÆGs#Ñ@ ÷Ç:J)¸}0z.ýн;}¾µöówâúGŸ~U®ýá«Ó'Y÷%Ó÷lYŽQZŽ­6çÇê¡À1ª¸ƒ}õéG§‡¿üäôÕÖ&ôͯ³‰¾Þ|œ>¿þäô‘nLæ†ÌÎQÌ/ÅdæœÆÿë/ ùÄHÂÇÁ/׈*6.*½h¼`ªðs‘èb%¿ö¹&caãyÔ÷I+æàøÌü£Y¼ 9Q…,úƱu¡GVqyùб§üˆ±_Ìw{Œò‚Äg@(ÉaqKî „MçD³ï°9Q>[<~;;ÿhž@>ç¾U[Ñ׈ˈˆ)‰x$·Áê\ŠC .K‹¹=meaµ‹\ )uý,³chA´ãS…<%è÷û¶"rà „ÆiäYXO\´ã×ó‡@\Ö „ -.ºõ÷ p[`W z‘g-ÆR¿?/FÖ)Ö`"öIˆøGR÷á|¨Øëø]d“k°Ç!ýˆÏrÄ£ëÒK;ˆÞ=È.µƒl×hìQÔ9h Ü¯“·ojdˆõ F‹÷ѧŸ³õx΢¶‹wÔlŒr+Œæâé,¾¿1&÷·õÔÎC£àRNw"üþAH»vùÞ•Û¨5q|<³Þ~ðïoý-–Ir%­$q_ lz<§@›}G­Qô® Ä÷qÁ‘/ ¥.F2Óg0¶K DÞ¿!ú`ö>õ=Ê¿ñ=HG œì-‰ƒQílÁ¨ëgYÃ+0c‚õ [Ç %úü"Õã´ _Û¥Âýs<¹³uÄõîãÒ%(@\˜QÔEÌHcѦ,‰¤6¯0{ý˜Tn¼âuâæE·÷¯lJ Nÿ|OÙy‰q?²#˜Hº>*¯½êú2‹EdŠ«'?·±1QQ”ÎX®@D JÈéš'6¿?ÙøB¶ÅÔ˜;›×7µÇ’H0Z´ÛúÈmÃ:‹Þ÷­Û©Â®¬.T3N§(ë⿤@Š?ÎÁô fïSïüå~ˆI²÷„/ÅÒ']÷õ †}¶?ûG„C1›viñÆH°ÊÝÃ)`/oö9÷¬‹ÒBË?#•n£ÖÄñùB¿¿O&N 丹ME ú{OÊ”qÃŽé$[ÎŽAÍ=?„•8Ö Dß#˜ž—‰Eæ£Ë›ÿ=ˆJ VÞb9IyUsŸ¼µî2°8IÁ²½yÀ`{vO@ wbà2à-Ör9 ;0är@ w`Èå€@îÀ ËÜA —cJ ÷öWncÿƱ /~sÔd𚹯>UŽæl&Žr¤¹;Ç;xü¿ûÁéŽNwÜó;q½À©ŽöWn7»‚@ĵTì•Û(ÑX_ŒGÄIkrþì c@B!Ñ¢–",0=ž#fßa»%¨Ã~<o'tâªsSýo±.ÇRð¢m»Èh©â5é÷¨õÆx$Û:KÖ×»Ó»*fär¬-VXÔ¸p£& ƈ÷„±‹x,Æy¨û’Œë‹'Æ[û!˱\ ±Àéúhyýïy!+cc¹mÖ $-â­ÿ•Ûb¯!ÊÏó÷vH'®íá“ÿûA —ã"ɾ½·ü4Ô}DŸShäo¦´ž@‚9EÊñÖocÎAóZšÈÈ©ç³sˆù{wúGäbL äîþÊme9ÞÍÔÛ?þã9×ZùÚLÜ¿µË¥ïGð{‹1¿ƒˆ‚Ý‚á-Öå8¾@òÛ¯¦î2Ç5är`¹ƒ@.Ç´@`·ià2L €·@€ :@ t˜ȇçÇÓÃÃÃfOïÉûþôįÕÿêý±MxõTú{ ­*Þ?‰ëbÀ§çǺ/™¾g‹£²œ!·Wñ1^U¬<§_ËnšùÄ,tÂSð?>Wg‚¨‚Ì‚îϧG]øì³ýÙß,òK$º-ZŽ+̧ÙÇ‹#Ϲ+Ö $8H¥vöÂèñ4ûã $bÇŽ" WJ}­=ÎrW,ˆx’ªbj¹*:#¢Ü¥3†+ÐôÚÄÒÞu6 »b­@èUB|?>*òÄŽ/=¨·\ÓtR " ㌱í/Tåƒó£¯gƒ@ŽÆr”‚ˆ×ÿµvj'ÅÈo³Ä÷Vž[£µS´üà¦Y/Õãó³ð7¢Ç3éô¦-16ÇBÅ®mg«c†@$û¨¸Jí…תBoí§X£|;Ùb§û9» _ÇO±î’)ä‚Î Î:ëâç"ªúFSÃET®Ëb-¢+¶ódßðú«ƒö„™©ŠÛG=rWÌï ¼!†òðYxRVVóÚ×øíW6u­Þeôµšk_Ç«@€ :@ t€@èРÔ@zGMîé#·&Ö­]cœÍÒ|òÙ1a£±‚[b~1gŠ’îâ#·É'æáù"Þœr¬ÖM'œ¡£±N ÁAS c_ ŒÏH³ï0ž@"õØQ°õÜ2~7.J¼+– „‹{{Ò DŸH»¸ÇéŒQͧcÜEôà¶O;ˆ?8kB¯BÑÄBH,¾í’+—¾ï„ïGóñEñâoÎ)‹¤6÷æàÖY.Rp£ñúxq‰÷‡HŽÇzâ7¤ÇûÈí’ïAðØÎ7úà¶¹ˆ@²¯þ •WL± U_G Ñç#ùµÏÅ‹1ýtJÌ%ù^ðS¬øp0-ùþ­·oàv™H.èl±6ü§«.~.¦ªo4õ´fñ•ë² ŠèŠ~oâõ ¦ƒN˜X{íÌ5ÿ^!À3¿ƒð†HþÈè-~å·_á+?­¯´ËÐ×Üþ5¿‚cU @€ :@ t€@èÐaJ ½£&·ý‘[bìÈÞ1ÎÁι,9Fã\™0;k¶ê¾þ1—ˆŸë`ÜÞ?™,Pë ×É»7ûT^Z¹:ó;Hë°â>rkŠ‚æ²õ;¨8"Âkç눚âØÚöGæ9xùÌô®åñ[ñb4>S)fÕ¯Ž÷¨¬HpPBÊºì „Ñã9é/øžè±ä“2"çá>¡c4íb Zãkz9éç«#ô òºÊ1)'Õ\¨_ˆù9´)ãʼ•¥ɉŠ)ˆN¤)¤‰Žcô ¯Ÿ,¨s2Vøý§{MO½kÝ{˜µ-ÈømNøßÔ?ß—×ÑëH¬½ ‹7*˜ìí’+ý'ï>I$µ5\SÇþ"¸ó¯Q¹èÐ_Ós%ãöí¹¶æÆ¨u¯çC÷‹CQŒÍ÷öY.’¤QxýWï ±PrA´ã“Õ*"Ý_·³ý”`ùšS¼œïÒ._kÇÛ¿¦ç#0k[0ñ‹uÎ}hì¸vƒ{ƒ±^ Jæm}ä¶Auo.1¯ŒœŸ-ôˆŽÑ/('¬Û¶ÆWDa÷rÒÏWG £ÿ0²c¦¼„u®ÿ°)Å×~Å®ÿú\D ÙGO¼ì÷‹A÷õ )-œYtòkŸÅlÚÅB)þôZ§nCʼnãœÈ˜½Bç8…#ۦܑ\A ¸&Î\œ¸ã|œ\„]ä¾ÿ ¦’ :[\O ¥möçdJSIäB+×å"ѳ‹æ“ ]õ÷ŠÄÄéZìf29†ŠÑôuÚt®Ù*ÑøùŒsj]‹sñsA¶MU­ƒ¿³R;™¢´N^ÞȰ@èqÞ§âîݯE´×^ÿ±9k&³É¹¨?<‘³_>õ’/˜~:g¿Æøó“4ùÕ0¶}þHË$Ž= @‡)|û?ßž>ÿÍçøz#_Áå™åv ‘€Ë3½ƒ€Û«ë€ä àau°ƒ<¬®Ã”@~òéwÅ/ââi‚|D—GP^~ÔÄ;"1zÔÄ;¦¬q¢}ܤ1Îf4ŸÑ{Ùùˆù¦#)ö8Lÿ£ç¯ÒkpIæw.⺰“ðWnνRüÅÛȾŽs-sA÷$Ñ`¹ó߃´´xºòk¿˜zíeg†ÂsÊ9óÇŠxq¦öa‡®ó‚ä:,ÝAøU(š¸øÖß+¾í’+ùTÇ+¼ÄV¼½Âõãï ¤þÞ"ZÎY'–V £ôc¹kwb+8éo Äëg;±Ý§'D¯ojäUX¾ƒô^ùñÍþ•ÛÖ½ŠŸûÍ|RLJïA®Êú„‰¾ú'T^1Å‚T}"‰>§ɯ}.^ŒñÉ,ç’|¢x=_dF R|)?¢‘ã3¹N±„6ØA®Ã”@z¿ñ ¢ø¹˜ª¾ÑÔÓš ¢\—oCR SBjâõ ¦ƒN˜X{í̵ƽô\s±WmÄ|½‘ø=Èu˜ßAÀM€ä:Ìrkä·_MÝeŽV×;ÈAÁr¦w ¾ÞÆWpy¦À[ @€ :L $ÉOYä£úròÊ˚أs¿ô€è“"{ÇLêƒ5õ±9†ŠÑýŦ‡Î5[u_ÿ˜KÄÏu0nïäQ»]‹qÅXœ\ózÕmBSλ>jSú˜“ͪÈS½8ó;ˆ9@—„€¿r+âóÚÅù6 mkëÅ¡{ä9xùÌô®åñë\pû9ê6ÁrZæûÐß‘ó#ÿcð[ÄþOOö^áf²}Zÿ¡¥^Ì:%±Lb_ Œ› ™äþ‚à‰N‹W/"!çá¡c4íb Zãkz9éçË DÇæÇP÷³cä>ïéëvoÊ]È©©™ÀöPˆByqÚ¿¸Îd©@8Ñ[b¢ÚéÅ2×Ï"ŽÑ+¼v|²ÎÈXá;ÅÛ W0ýbj ¤¬i3Ö´6ÞS¿ô‰ãÓí)¾O£às &Þö×d­@èÕ6‘Q”„Æ—ž@öŸ¼û$‘Ô¶-r¿0ëØ_$wþ5*ÚùL×ô\ɸ½žk|Ý‹½†¯9ë!úp„1Åëªfôëëîë50ÏrÄÉÓõQxýµ@ÆŠfŽTiÛñÉ‚jÏ@D?%X¾¦‹7Àù.íòµ]4–æ]©çÓšc^›þ¯ø[ªf¸­ˆO­±š3Ys:f½@”€ÛúÈmƒêÞ¼hb^9¿Vñì Ä›W¦nÛ?\ây©@„~ uÑÛ1ÚqÄǾZl9fSc¯ÇE’}4é2ç* NªîëûlökŸÅlÚ¥…ÚüéµXd݆ˆs³Oy³W0œG$²mÊ]£@_K fÌ´&Ù5,îç½îGH.èl19ž@JÛìÅ¡M%S®ËE,¢+æ?‘-©ÐU¯HLœzbDìf29†ŠÑôuÚt®ÙªôóçÔºçÒˆ{«øcŒý6LUð<¾—Ó:®£ „øú¿¾æ?ÌH_ïûu|‹øgÏÿºh<¼^ñúÚL ä³ÿøŒƒ½µ¯B»CøúÐøú÷ÿ66Žùú/Å_ó8ÿ4Ú_/öõÚL „‚U:^ãõ%^_›ë߀Р@€ :L Dˆ'ò}\BAñ?Ì5ñŽ‹Ø#]¼cêx„9â¡OäͱŠ_ŽÉ‰×9ŠaòâÃ01‘å±ôœžž<Õâ{¯ûÔ÷´GzdHe^žŸÖÌ·²í8Œ3×Ú/s£Öº·–îQ•<¯¹#,ó;ˆ¹yÂMä¶q¯ù³/.ˆL ññüéc¤j,ò‹œ–‚ÉðX[ŽR¡‰œY_Œ[/*µ«s$s]ÃýÅ=2NŸ”gñ`2¾4/þ‹Wu\v¾Œ·ž¯í÷âß]KS£)¯ÎýöX'à É•öÂèñœ„6ûÓ. Tøz!sr·…ÏñÒWQì¡/?™óNÁTsó ŸÌ› =¿qtŠH¬Q™m„SÏ—X.ѵ”ñž[?KÂÉØ&3ºÐjÂ&¡ ÙÃÄli’н‹ü¹Pøºˆ½%Ò×χìÇcïο£ö¼tŸNž›ó¢>²/.µ,m^&b­@èU*Ïß+ˆí’+›à)(æFñgÚñ©Eªçϱ†~âuK õb5Š)á ß§˜ µ]ÜÃir¤n+cçñùBcN=¤¹«&â dg-ãÅ·Áþ»‚q– $&„®K»÷J]?³¥]H*v5]ۊˆXøjüv>úâa8†:'í ¤—gg^%>êG×Έs3íw²³–9? çÜ”õ Фnë#·ÅÏp^"ÕÂ÷¨[H^xwœXÝ"õûŒ $޹¿Fμèzúé™™ïjŒäG­QIcÍv¸ˆ@²¯~Êy ‰E¢úz eŸ“Pòk_÷^ògŸ—Hã[$|].¾öÑkG´Cí_!@ʳˆÙø¼y¥¸u_Bä¤àÕ¡ý^ü»k鬑·¶#L $–-è/ŽžD P› ˜'V®ËdÑsЧ‡Ÿ­‘üÖu/ùS‰˜¼èDz1×÷O¼]Sýy>zÝ>6ÏrÈÆ¼Rœ+"s£Æè­¥»FYÄs53¿ƒð†8¾@ôÓÐØä.@Å´@èc0ØQmö¦l–ã¿Åà‚@ t€@èР@‡)ôŽšØ_ÈÉ#(/?jRÎû›ü% ÷KÅ³Žš8~s”Á‰×ôqòâ¿01‘å±Ì±‘{ÿÈíX½­b~1ç\R`øÈm˜?>r+úÞz¼z ´ßÆ?Vo«X'à É•eÀ­„˜ñœ„6û3¼Tøz!ÍÂçxYyRÁâ#·×HhBmKÓ5>ƒ¥ádl“‘·ZMÌ$tÁÄMÌ–v!©Ø«±ÈŸ …¯‹Ø[)}ý|È~<öîüÛ9jÏK÷éä¹9/êc…#0ëiÍ_û{á±õ¶Šµ¡W©h<¯ ¶K&¡4ŽMðs£ø3íøÔ"ÕóçXC?ñº%ø:Þ£QL ·Hø>Åd¨íâH£#u[;ÏsjŒËsLs1VM¤+zÕ¨·U,HL]·ñ Ðë¯ò‰›˜-íBR±«±Êˆ…¯Æoç£/†c¨sÒÎѰ@zyvæUâ£~tí 87Óþ=Äñm½­b½@4)|ä¶_è¼ðî8# í©ßg\ qÌý5ræE×_ñ#·^½­â"ɾú)ç%$‰êë%”}NBɯ} Ü{ÈŸ}£*Zã[$|].¾öÑkG´Cí_!@ʳˆÙø¼y¥¸u_B䤰R Ùç­ïK™H.²l1qtAÆBÓ¦ ¾\—É.I(æO5>›*=GS\Ë1yщôb®ïŸ x»¦ú»éö±y–C6æ•â\)™›<ÆX½­b~à q|è§¡±É]€ŠixŸÒ‚ÁnÅVƒ·Xt€@èР@€¦òáâgÎO_“÷ýé‰_?žžËÍÑÛ„W?+ýŠ©#_?‰ë¿¨Ã÷áôüÓº/™¾§ÃoŸO¢²Ÿ>Ÿ>¨û£øÒ}©]2Ãsúéc|#çH[¿‰Óϧì_òËtçÎa~áE¨ž„ð³àEäägr™²àÄ"s¡¨âÈÅ£ú³_ûºÄb— ˜9iâ\D?êÓ‰IæÂ Û+öâsÆà6U®vçfY'°pT­õ ' ÇsÒì;͹ Ôqy"NÌ $^31ø²‰ÐCù å,NcAÛE®ÙŸWçòbÁ>ž¼1ÓéˆMÆeLj;p7²œµ¡W¡@bñX¿/X´Û»iÐ4=„øŒéb‹ý½·V™ž@ôøG¯¨E.œ1tÃó£,H\Tº>*¯?vFÄ%Ç0»180Îzhññ,üMèñœ‚i‹k–d~þ·_ÔÓI×<ÁEA¶¿á{Õ»²œ‹$ûh{ï $>U_¯øØçù§„s®@ìÝ'x`^ ¾¿ºn|Þé-_¾²œ)ä‚ÎË_|]ü\8Ußhj1SQd“…\DW¬ñÖ¤IO zl2НÑ'§ú>à,ù!°™ž[cŒúáÑ8‡ù€7Äñbž¼Úfw ØAèР@€ :@ t˜Hïw·ÿnôçÿmûåÿ»û‡í¿Ø/¦ïÙ"ÇX™ùoÀíøýû§ØsÌ­ÿ~ïÿÖýÀM1¿ƒä…O/sñÝö_¹•±lž9’€ÄXžÏ™GÊÇSð A™<ñ¾æO€›e@‚ƒŠ§Ôξ@=ž#fßa´@Õ}y|ïI>Ë6Ý£šr,ÔVhƒQílQ:Å=3̓cí­í×…^ýYdä.X+z (€õû‰E³]r¢ÞrM£ =¾öâ”Ø‚î $Ž•b…@î‚å‰N×¥ÿvñÍq¹á²„àï«è:r¬H ¾Õ8Î_¹åñ_ü=H†Dú/Ï:-V™´LBkÍxNrš}‡q¤º/o10Ë6Ý£šÇ„@ü"’´r`ýñäŠB±×äý;1ÅAX(b”x3~Ûy¸¾+°T <‰-ƒÑÉ2‰ØIæÎ4ŽÕ/ˆí×H,†mœaôî_H]Ð&—ν8N]x±]V÷‹7³J <ÏAQ®d­@èU˜HLžõû©ƒ^zÑ 8‹^øÚ‹Sb‹ÁÌC䣊uR þý |ß§kUgŸ¾_|-ûë*vYäcñfz‘qDãq¹ÔµÑ.f¹@âäèºô·âõ×_gAÊ ¢ÍØ{÷’ ‚®O Ä¿¡•?é§xåÃÄ+îí^£}øÐ˜"±&cñfVì <ÇWØ=ˆõ PRð‘ÛQÄ|í@+Âϱ„ׯÚÅÍ÷vÖÓ'÷‰7³B 9î—ÕÀy\D u’ËÚÙ ÆÅQ}¢Œ>'Aä×>—ÉñŠžÏ™‡ÉG`+Ô1l÷ò )ùFBÿöžì¥¾žïM±{Å/æ¹of@ˆØÇ›ß%™H.èlq‚þduñó"T}£µ +šLFZa:‰-v„IO©j|y}=Åî dk;*ÂÞŸLäÏ™Àæw‹*±ÅغÊíãS(ðV|:‡ýx3=è¾[ÿÖ\R}øñ]†ù$€Þ‚·Â´@ò¨næSùíWÓFw,SÑŸ.ħ Á½3,-ˆ¼Îú€·@€ :@ t€@èР@“Óéÿˆz[ækëÿIEND®B`‚codequery-0.21.0/scintilla/doc/Lexer.txt000066400000000000000000000210241310136352400201360ustar00rootroot00000000000000How to write a scintilla lexer A lexer for a particular language determines how a specified range of text shall be colored. Writing a lexer is relatively straightforward because the lexer need only color given text. The harder job of determining how much text actually needs to be colored is handled by Scintilla itself, that is, the lexer's caller. Parameters The lexer for language LLL has the following prototype: static void ColouriseLLLDoc ( unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler); The styler parameter is an Accessor object. The lexer must use this object to access the text to be colored. The lexer gets the character at position i using styler.SafeGetCharAt(i); The startPos and length parameters indicate the range of text to be recolored; the lexer must determine the proper color for all characters in positions startPos through startPos+length. The initStyle parameter indicates the initial state, that is, the state at the character before startPos. States also indicate the coloring to be used for a particular range of text. Note: the character at StartPos is assumed to start a line, so if a newline terminates the initStyle state the lexer should enter its default state (or whatever state should follow initStyle). The keywordlists parameter specifies the keywords that the lexer must recognize. A WordList class object contains methods that simplify the recognition of keywords. Present lexers use a helper function called classifyWordLLL to recognize keywords. These functions show how to use the keywordlists parameter to recognize keywords. This documentation will not discuss keywords further. The lexer code The task of a lexer can be summarized briefly: for each range r of characters that are to be colored the same, the lexer should call styler.ColourTo(i, state) where i is the position of the last character of the range r. The lexer should set the state variable to the coloring state of the character at position i and continue until the entire text has been colored. Note 1: the styler (Accessor) object remembers the i parameter in the previous calls to styler.ColourTo, so the single i parameter suffices to indicate a range of characters. Note 2: As a side effect of calling styler.ColourTo(i,state), the coloring states of all characters in the range are remembered so that Scintilla may set the initStyle parameter correctly on future calls to the lexer. Lexer organization There are at least two ways to organize the code of each lexer. Present lexers use what might be called a "character-based" approach: the outer loop iterates over characters, like this: lengthDoc = startPos + length ; for (unsigned int i = startPos; i < lengthDoc; i++) { chNext = styler.SafeGetCharAt(i + 1); << handle special cases >> switch(state) { // Handlers examine only ch and chNext. // Handlers call styler.ColorTo(i,state) if the state changes. case state_1: << handle ch in state 1 >> case state_2: << handle ch in state 2 >> ... case state_n: << handle ch in state n >> } chPrev = ch; } styler.ColourTo(lengthDoc - 1, state); An alternative would be to use a "state-based" approach. The outer loop would iterate over states, like this: lengthDoc = startPos+lenth ; for ( unsigned int i = startPos ;; ) { char ch = styler.SafeGetCharAt(i); int new_state = 0 ; switch ( state ) { // scanners set new_state if they set the next state. case state_1: << scan to the end of state 1 >> break ; case state_2: << scan to the end of state 2 >> break ; case default_state: << scan to the next non-default state and set new_state >> } styler.ColourTo(i, state); if ( i >= lengthDoc ) break ; if ( ! new_state ) { ch = styler.SafeGetCharAt(i); << set state based on ch in the default state >> } } styler.ColourTo(lengthDoc - 1, state); This approach might seem to be more natural. State scanners are simpler than character scanners because less needs to be done. For example, there is no need to test for the start of a C string inside the scanner for a C comment. Also this way makes it natural to define routines that could be used by more than one scanner; for example, a scanToEndOfLine routine. However, the special cases handled in the main loop in the character-based approach would have to be handled by each state scanner, so both approaches have advantages. These special cases are discussed below. Special case: Lead characters Lead bytes are part of DBCS processing for languages such as Japanese using an encoding such as Shift-JIS. In these encodings, extended (16-bit) characters are encoded as a lead byte followed by a trail byte. Lead bytes are rarely of any lexical significance, normally only being allowed within strings and comments. In such contexts, lexers should ignore ch if styler.IsLeadByte(ch) returns TRUE. Note: UTF-8 is simpler than Shift-JIS, so no special handling is applied for it. All UTF-8 extended characters are >= 128 and none are lexically significant in programming languages which, so far, use only characters in ASCII for operators, comment markers, etc. Special case: Folding Folding may be performed in the lexer function. It is better to use a separate folder function as that avoids some troublesome interaction between styling and folding. The folder function will be run after the lexer function if folding is enabled. The rest of this section explains how to perform folding within the lexer function. During initialization, lexers that support folding set bool fold = styler.GetPropertyInt("fold"); If folding is enabled in the editor, fold will be TRUE and the lexer should call: styler.SetLevel(line, level); at the end of each line and just before exiting. The line parameter is simply the count of the number of newlines seen. It's initial value is styler.GetLine(startPos) and it is incremented (after calling styler.SetLevel) whenever a newline is seen. The level parameter is the desired indentation level in the low 12 bits, along with flag bits in the upper four bits. The indentation level depends on the language. For C++, it is incremented when the lexer sees a '{' and decremented when the lexer sees a '}' (outside of strings and comments, of course). The following flag bits, defined in Scintilla.h, may be set or cleared in the flags parameter. The SC_FOLDLEVELWHITEFLAG flag is set if the lexer considers that the line contains nothing but whitespace. The SC_FOLDLEVELHEADERFLAG flag indicates that the line is a fold point. This normally means that the next line has a greater level than present line. However, the lexer may have some other basis for determining a fold point. For example, a lexer might create a header line for the first line of a function definition rather than the last. The SC_FOLDLEVELNUMBERMASK mask denotes the level number in the low 12 bits of the level param. This mask may be used to isolate either flags or level numbers. For example, the C++ lexer contains the following code when a newline is seen: if (fold) { int lev = levelPrev; // Set the "all whitespace" bit if the line is blank. if (visChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; // Set the "header" bit if needed. if ((levelCurrent > levelPrev) && (visChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; styler.SetLevel(lineCurrent, lev); // reinitialize the folding vars describing the present line. lineCurrent++; visChars = 0; // Number of non-whitespace characters on the line. levelPrev = levelCurrent; } The following code appears in the C++ lexer just before exit: // Fill in the real level of the next line, keeping the current flags // as they will be filled in later. if (fold) { // Mask off the level number, leaving only the previous flags. int flagsNext = styler.LevelAt(lineCurrent); flagsNext &= ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } Don't worry about performance The writer of a lexer may safely ignore performance considerations: the cost of redrawing the screen is several orders of magnitude greater than the cost of function calls, etc. Moreover, Scintilla performs all the important optimizations; Scintilla ensures that a lexer will be called only to recolor text that actually needs to be recolored. Finally, it is not necessary to avoid extra calls to styler.ColourTo: the sytler object buffers calls to ColourTo to avoid multiple updates of the screen. Page contributed by Edward K. Reamcodequery-0.21.0/scintilla/doc/Markers.png000066400000000000000000000203171310136352400204340ustar00rootroot00000000000000‰PNG  IHDR$Ð?$çÑgAMA± üaPLTE )  ! !/))))?)T ! !!/EG!"%$+"%,#&,#&-$(E/)))))))))))T)TT)Ti)T~1114444>>?)?)T?TT?T~BgGCT=DU>FRiFRjKMJOEOQNO‡tP`€T)T))T)?TT)TT?TTTTVST~~T~’T~¦X[XZuQ\g/efhhg/h‡Gh¨th¨iT)i~~u¨^xxxzŸn||||¡o~T)~T?~~T~~i~¦¦~¦º~¦Î€€€‡G¨^ÐЄ„„¨^ÐÐ’~T’¦’“®Š—²Ž™™™¼ú Àÿ Ðt Ð Ð££££Ñ“¦~T¦¦~¦Îº¦ÎΦÎå¨Ó™¨Óš©©©ªÕ›ªÕœ³³³´´´¸¸¸º¦~ºÎ¦¾Á ÁÁÁ ÃÃÃÃÍÍÍΦ~ÎΦÎÿÎÎÿåÎÿÿÙÙÙÚ11Ú‡‡á>>â@@常åΦåÿÎåÿååÿÿèèèððð÷÷÷ÿÿÎÿÿåÿÿÿïåÎgIDATxœí]‰ŸÅun9‰ q¼RâM”Ä‘9" GB"ÇN®EHLÆŘp´=±@!€X<kcƒ‡Xrx‰¬ìöŸ˜zGÝÓ=ûf§ººz©»£éêêéoß¼zõõ«WYq¹ò_²ÄÑöÈ’%mdI$K Y’É’H–$[Ò{/œ{'±Ô´¤s×^÷]7\ózâ¨`I_»é™U…gnüzb©Ê’Îݴʸñõf޶Nf Cõj¬_ÆÙ@ýÜ<¼w]ýʳ‘n±|ICímãb‡ª]¶gmc)ƒ_…í3`£<£V±@YÒµÏh’ž¹¦Ñ’¶NÂgÞøÂ¥­“ÀÆÖ_­ë#ãßÚ¯îs| ÞÞ8ð 4#A"iB4rüÇ·Ö°Éž¨Î3}j’âá‘]~ïúUƒÞij·yxD/&{×ËGÆËÿ<(6þÞ6¬IðH*q„´ðYLü0}ÆJRñÂÝ–¤»Î5[ßÈÔ Œ—ÿ÷ä(NÐ"Fh<ÀÀæá!XR‰#bϼB’rõÂô+I—ÏÝeIºû…Ɔè“ù°r@ÝîD9 þ‡»G3‚sŽ•=ËxàœU O‚wLŸÑú¤wn°$]ÿÞìÑ-ß»^cIêk5B‚àfÁ<Ô[`H`~ÿº4(·u^AS0¤XRquÜ×n¨ÛªñIxãêýÍà Rd&#tÜKÃÒùÎYð/â÷I—_¿Q“tÓ¹ÆÑMk:éÑÍ4ÁWê¾¥¼:¨KÓ£ù®úÑ Í1@Äýõ)˜¼ék3bÉܸ‰¼'i’>ĨÆAz+ßó¾3q½ËؓЮ&Ð÷IÎh¨}Ò”Õvœ»½~Í wÝ}ýµçb›»M U€wνðÞ|ó[úkËÆ ÆLt-Ææ‘ùÚ·†¤' ô$À’ž¾¾ ·>ŸXª…²¤/ÝÿòO`tûá+÷}9qT‡¬xúþïë8éû÷=ŸXªAvù¶—í´ä•[zÑ“)ç‘‘c*e‚êÀŽ¡øýšÉSsòf’Ó2²"û±%éGY»z’£ a˜ ’ö>8d’F¬:`0éÊxœŒ¡²ËÙªƒ¬©G= §ÀØ têôÁÑuC¿µNd’fÂ’T”IjWOª(HÐØ!i}tÂÚ«&)§õ¦¥,%°EV˜·É@Ùw»yñ®%­®>ú›ÿ×ÔгžDŽgùsŽWG$é5•¥,%“5ÀÇÍCHkju’"µ$‚O=©˜¶$6$}t@ßr7K šcI›GÞ8µVä£vŸwK}Á³ž4哬·1šd%K Ú;­¶N>‰–_<Ùª$ ÝZÑ“¦G7þà( ¶úÏb²”ÆøäÑc`[ÚýÉ“fqÔŽžTŽ“t2¿o2m–Ò àDÇIü'Àl0WáõŒ]q·ç—vɧžTpÀAQC\£qtëà!@lIë'¦zg³}Wÿ¢¯å÷Mœ4ÖW%’‚ªHýЏƒªH;&© =)¬ŠdÑ/Kê<HšÛl II™œdI$K@lI~ô¤ýœ|McõË?ͲJùm¼èž——ßž‚Ô’¼êISÓ~0é.lÃã”ðÕÀU\§ µ$¯zÒ,’œòÛŽ,I"Kò¨'Í É-¿íTÚˆ€$±OZXOªóIN@V*¿í¬ô‹€$ñèæIOj¶¤RùíþY“ž4ãëæ–ßîOòª'ÍrÜnùí©ÑmÒA.`1‡%yÌOâ}Gœ$#‡¤Rùm´Í=k†¤Ž¶ìUÄÝÕ^f;ž»u¡'…,,å¢W–Ô¦3ݪ*\Âêt¦[ן(B$K Y’bKzퟎ«W§õ Âéìúyáà/=§~­d't‹«_TçP{Óøì>sîÙ}ª~ëêÏ^ù8\ãŠÇÍÙö‚ø´>ƒ×8­ZïƒWêjD=µ©%½vPqöÔg‡Ï÷Ú?§œþ5¸¿ÓŸÃ}ÕŸ¢ÛÀ¤3pã ¤‚ÞXùCx­îY=GVð<¼å•ãxòÙ}êð t ?,IWþé!& X\q.Ѥ–táà zAÔÁé«ÿæÐê…ßû[xÿô¡³W=G$Á¸—#" »ºð»¯wº…#+|½ƒ÷o{ÀW–¤oüÑã–${R;[“³r¨räôÕÿtlj•ãp¯Ýq?5|æ Õ8bKÂoÎÕ/ž1¶AG#¾ëÕUk†Ì€º°CÒãg9$a¿ía>Ÿ¤>äÊñÊõ™Ïdö–á–Ыœ€s>—•8%ŸÄÞ ¬èŒ6³Wþ>~ñÏ• ê?Ëiº†&I5´$)»ôCG=æÝ”c¨±¤áÎÎ0ðGUo!ùýÝ>·=ýÅá.¯zα 8²ïÐiâì<¶ù¦Õ[’â÷¢³$}“5> ïA½á`F¼.náì¾ã¥óé'ÚZ§8>é´¥DI_\°Ï:Ÿnþ/cóIj\[Åágzt3$ÑwG½À·Ô½ñeY"’VÀ‹­Ò}—F7`éÂAvM󓤇¹˜ •!ÍFæÉ©VRQè•RûÀZ’Ïü$Ú¤<97m÷-/ÕJâ =¥öa!·$ùIÄTÑ67më߸µ’J$•Ú‡Å|>ÉO~›M>´7­è-ù$[ פÛGì“~ò“˜¤4YRioM’Û>,æ‹“üä'i4~¤Ñ'éZIúÕöa!µ$?ùIxó`d쳦ÑÍÔJ*’lû¢Ð•˃@lI^ò“LÙ$b¸©‰“t­$ü÷ò7)N*µÏÓ£l‹èmÄt벞êI-?)#éI$@€Þú¤H–$@²$ëI¦·Ž˜Ìvn´á-–ÌÜ —²¡‰¥hý‰Þ_)Ø®=ió0†Ðºd©Ù—ިƸU í×¢Kœê¨¼cE…=\È´%N¦Ð…žoçI¸Ï^ÁÔ3) ;¿£]„èß!Iê@O*•Q.Ê$Añ`½?PQ&I5濞¡%y]ïÆÉ;I›GÞàIù (“¤þv2¥%<­wÛµ–„ð£'õÑ'e`M°…¯êáq½›ßÑ-°('sùWMð¸ÞÍ“L[ÓqRaHšŠ“ MR{ê{ÄduWOëqÛB{ë»%ARH–$@²$’%  ,éÉ·íÿ-ëI´çH©…élìœcªq8Ç;„²¤·?õ¶ù¿e=Iýë³_V[àdÃì¬L‚Öøªí ø¤K ð£'A\3ღ…- L“½¼Ù6îÎÕU1÷Ð' Xò£'AÊ}°-ÈÖìnï˜_3i¸.ëÐèö÷fþo‚=‰¶,×òõÈ)ÁÍÜãñáÖ©5ÅP>tŽw ©%Õ“°.+SÉ-ø›f-IYÐû_¸´yôCSÃ5ü^eH}aa=‰&q£R Êý3>I]äY(YöÄu{U7¼HG7?zÒXëG¥TPnð¯u xÔW¥Ü·® Ž“|èIvïÄr ”áÆFNBQ¸ÕWí¸W?"î]º¥žèIU+gôÄ’ºER Kº˜Xš²¤_½˜8š²¤ì3‰¥ KÊž2,5¡=)°%­nÇR7zR‹7>Ø’V K èFOò~»;ƒ¶¤íXêFOò~»;ƒ±¤ÕÕGçÛù¤àzRZ¡=©sH}¡=©sHG·nô¤ «Úš!Ž“ºÑ“:Ý Ð òˆ;ç½ã¹[=©«*å$@€¤' ”I’% ,I€°ëÝæÕ“j’»KÇmY¥V‘%³P±@=ºÊOš^&à·e•Z…²¤‹ŸyŠ—vCÜÝ€nô¤º'•ü¥|Â’,K47©GWùIÓK—Ü㶬R«@ŸD,Íâ¨#=©vœsÜ–Ujq+–bÔ“jÁ9ÇmY¥VÁ£ÛÅßx4F=©vœsÜ–Uj:NºøÛ1êIµ‹àœã¶¬¾-ÁÄI¿ˆQOª_gÛ²J­>ZÙ-w«¹9=ÉOÚí>ÈÜ-–Ô*’ @²$’% ,ImIY–Гp˜–&!tÛx(BhKÊLÀzø«Ÿs¶*I8éPÓÖotKZmIë'éY‰CR49mõÈø»¦Hâo\=<ÖORÁñ”%eÑdÔ!£ïl[O’`ò_ï“¢%JjI„…ë'59nÀ$Z–¤>‰à§~RIÝ®Dšéèæ±~’=“¨‘Æ5p_qä#U!Ž“üÔOÒ$±€ «!aÙH·ä}\ˆ,âŽ#©Š¸ô¤Hò‘ªˆÌ’âDRH–$@²$’% º·nÝ©ðSošdë“ÆQ1©ŒÐõ¸o†ü&$Ácÿ½Ë$ER1©ŒÐõ¸_RÇóï6$}pt½DR$“Ê0*@HO¸Ð4‘´‰F%KŠpb\O‚4ÇM‡$dOû¤Èˆ’ZÁG=îñ pIRÿ.‘¤¯ãó&Eõ¸Ë$mzvФx–ß"ÂîïVGR1o×]ÚÀ©˜4i/½b^„ÝßÍ’Äq%maþwo®Ñ”h#î˜T“¸ô$ñ,xØ’bBRH–$@²$h'ƒÄRpÏ’ó3ö-ñ¼¿›Þ¶„BM5‰©<çPkPĺ„–„üàÖõ¤5ý¤Vo€ƒ‡Õ¤¯’ºdHŠ!uÉXR6Û’<æ'áÒ"äÀMWª¤.’b¼å–ä-?É®cãm¸ÿÞ­¤.YKРׄ,‰Ýö¶>ia=i‰̦»½¹¥JêRÅ'uK”Ô’~öw+oï¦-©Éq:N]’ú$‚= Öø9>‰¾b•¬œ2I§.I-ɧž”ƒ¡™ÑM Ie’С‹R—Äq’ÇýÝxeÅId[KÃjê4§CêR"îS—¢Õ“ªèR„K*€Æ’fç•~²a,)K–ÔˆdIôgtë=Ò“0 G­ß0ÙMTNVò˜KÃhú/4ÈÔìˆFWg#ÞyHêž4Á{› m- “ݤ¦\³ƒÏVÜãÇý*mây»¥ó\$õEO²ëtLU“ݤþ1–Hr¦áÓ$Í=ìždr(ìâ“ݤºÛ<ºî䦂Õd¸”’Ô=Éld+-™ì&¤gàø¤ðœHÒ>‰Hšóñpoô¤zK¢ì&,Ð……¨Ú´¤èIµ>‰³›h€øbç>©{=©ntãì&.Ÿ—Í3ºÍSp©?z\Š“tvÓ_lj“ÐªÑæÊ>ÉÄIó$Ó}b#îy .íxîWý¤¹1WÁ¥¤²JHʤɒøÄŽnó "=©a)Ü—¢u·ÎDÜç;ד–Â’º[ 'µ¤zRÃR8CRwKáä–Ô¾žT¿᤮tǤ'Õ/…«ø¤.ˆ’Z¡M=©i)œ%Io7/…xtC´¯'M/…«ÔÅR8©%…Ò“j–ÂÑø·|©»¥p±éIuKá´~ÔÙR¸>FÜÁ³pú¨'_ —ô$RV‰É’H–$@G·àè§ž4áqU÷¢N߮Є•a8ü§‹.ÿTÆúÑÜX>ÞöROʱËo­Ù^ò[ v’ö?4(œ]Ï NKÌV0@д@¤áõQO²u_L/ù`2`’Þ8µæ’ä¨P5$ɦ‚}Ô“ôm:½äH@’Ö&—$çZG’(w¢z’~Bíô‰8Ë—r¦gäø$'<×;/±Oâ I=Ô“j- ̘H‚ àÚ°¤~éIµ> \ú7YqÉŸèÆ'E¥'ÕŒnTUˆ»ÙXÚ3Ïè†eÁg’ÔG=‰üJ)N¢$$Íu¾Ç‰“&úšŸdâ¤m“SÄ-ÈÂ飞ä&¯·I e•ò“`Kúè­'ßú(qÔ²¤Ç®»ý;¯{,±T´¤Ïßûª ’^½çó38ò¢'%(7IÕ4âqŸ<ç¡‘s€—´Á8Åú͇*Á’»ç<­¸÷±–õ$+Û™•*å>5I¾æBí I!Ães)KúèºW™¤W¯û¨©G=‰Ïb’pFªû¬!ÉÎÕ IÁkM(KzëÎóLÒùÛßjWO²CÎÅtŸu$XŸ¶¤Ð¹/O>`ô¤žllèEO²kŒkÁ™©î³ê“†îÜ·â“–t»±¤;-‰°¨ž4mI¨v4ZRƒãàä?¤>‰àGOÒgm`!÷A1Ó'Ù³Ê$Í»°oàèv/“tOóèæGOªÝÈw5n…! ùĨüJ«n­ƒâ¤{0NºwVœäEO2JPnÄ¢îÅ}’3:> @"[êˆ d£’êØ*tÄ}ç·÷/╃³ã¹[ zR¨ºSI e•”IŒOÊ’žÔˆ¤' Ðs=)çˆIW€tŠŸècátX¬c'˲ïòƒ9º±™ÁD¯õ$*„´ùç—°6.üØ<ü0*ФÏ~eD­y*ä|p~ð9´WáÖDRŸõ$;Ùò?ÕÇÌGDÒòûj&åä|ð’fNû¬'™Çý¶¢GY;‘t)¹$9¼Ž¤Y™}Ö“Ìói6’ Úh02IŠ_Ç'9œIÒ>‰¦œ3ÖbôYOª·$e{Iêóx³¤þêIµ>Iý~„IÚ<úm_>©¿zRÝèFR —=gsnã†' ½Ö“د”â$ŠÓ˜$`ÑÆIæƒW|’Ž“S{­'yFcÎŽçn1èIžÑXw*©¤ü$’2)@ÊO éID®' гàøÈŠEØŽæÒÛŠA`ô¤ó1êIÇ £S7óÌÅŠE†¤0»¿™¹Ûùõ¤¿†™ó 7$i±È¦Ö„Ñ“ÎG©'©ý‘5‡$‹¬%Ù®+v=)gOÅ$±XTñImeô¤ó1êICœO¹$‘XdI´¾û›Ô'ºÑ“\’H,*“4oyí¹aô¤óñêI%’P,Âç%jd ´û[ô¤ÜÄIZ,Âp‹V fvÛ-zR«Y8»DOj·îTÒ“HùI$K å' ô$vžÔæîo»EOju÷·]¢'Õî´äm÷·]¢'öù ¹×Ýßv‰žÔîîo»DOª·$_»¿í=©Ö'yÛým·èI­îþ¶[ô¤VwÛ-z’g”³pv‰žä•ºSI éI$K Y’É’[’=‰çP #)WhæçFì]í½Õ ©%ùÑ“(ü° ¨~ºÛ›lH-É£žAH™$~â%IlI>ô$½‚­B ?ñ’4—OZTO¢Vƒ¢J ?½÷I„Eõ$xM‚G™$~úoIˆEõ$ø¶NØaÁ¿ I(üÄK’Ð’<éI<”M‘„Â-L¾]ìÀ[’'=ië$•ÀF›»…â$-üŸ4kcˆ1âžk›úˆ±÷ö²#FKŠI Y’É’H–$@P=É>ÎÒ´á 9(RM& ²¢m6ÂêI¦n?ÈÝ:‰-—/9§T“‰ô‘Ñžä&Ê`g\¤FŸRI&;s½ŽVOª¦mPgš>¥œLdŽtkI„Ɔ~öwc’*ùiü°ßx£Á”Oêvž2_]?û»5XŸRI&2G:Ä|&<å'5ø$}J9™HéRKò¹¿[ÓèfN)%é#:&±%yÜß <×TœT9ÅñI|dÚ†ƒ¡GµJB–žÆŽ«ÞÏOjwIÛLôÈ’ºCRH*€É’H–$@P=ibGD݉®iºßXBÍVTP[{áÎVOÒ’‹éÃqøÁÁùHÑóР0[I…=ÒÂêIºÝ ‹i³¶AÍõö¿qjmФÖË‘ÌDX=I“¤;±ùÆè`=˜"©ÚMX„Õ“ IÜIyC‘âºê“:›¶!ç'Í´$4\nºü~Ù’º5¤àùI3}ÈK´æô‰Ê×­©t„ÎOš9º™­%6–ö”I–ÙSèü$=JæSqÒâT¹Òª7Xª¦` zqw§•ĘŸÔ€P[ÞM£G–Ô’ @²$’% ,I€>å'q‰$.' #ü‘3¹ÉÅî\0–ô½7èI å'é"I#êÞ,£k)Ü4–ôæ§Þl_OZ$?ÉHJe’°Ê‹^F×I…aé{íëI‹ä'fË$Q%/^F×¶%ïŽ:?ɬ(û$¤R/£kÛ'’Ñ­Ëü¤zKâ/,/£ `IíëI‹ä'5ø¤œZF׺O ¡'-”ŸdK$±—B’hØåetVñôúÜ GùI¦DºÇ¡q±b/£Ó>És*ÓîÌ*ñœÊÔŸü¤9à[žÛ–äI ©$K Y’½ÊOš¸QИ·¸Ýcª0—?n§Ú‰µ¤zÒbùI:N·$qAo*$B;…<¬%…ГÊO²²f‰$žQ£LÐIÖ’èI å'í LÌäȤEë–BOZ(?É”Z-û$]Pzn©Sò“ê-‰¤’ ý•XRûzÒBùIõ>‰º€í†Ek$ -)†ü$«B ôH¸¦µ£ü–#kí‘$µ¤ò“Œ ¥Or zo,Á5£ðIŸPô(?©;$K`ÇÊä' I™ Y’É’H–$@²$’% ,I€dIü?мK,¿Q·DIEND®B`‚codequery-0.21.0/scintilla/doc/Privacy.html000066400000000000000000000044711310136352400206300ustar00rootroot00000000000000 Privacy Policy
Scintilla icon Scintilla and SciTE

Privacy Policy for scintilla.org

Information Collected

Logs are collected to allow analysis of which pages are viewed. The advertisements collect viewing information through Google Analytics which is used by Google and advertisers. No personally identifiable information is collected by scintilla.org.

External Links

Other web sites are linked to from this site. These web sites have their own privacy policies which may differ significantly to those of scintilla.org.

Cookies

A cookie is a text file placed on the hard drive of a computer by some web pages which is used to remember when a particular user returns to that site. The advertisements shown on the main pages may use cookies.

Contact

This web site is the responsibility of Neil Hodgson. Most queries about the site contents should go to one of the mailing lists mentioned on the main pages. Queries about the privacy policy may be sent to neilh @ scintilla.org.

Changes to this Policy

This policy may change. If it does then this page will be updated and the date at the bottom will change.

This policy was last updated 2 June 2015.

codequery-0.21.0/scintilla/doc/SciBreak.jpg000066400000000000000000001014701310136352400205070ustar00rootroot00000000000000ÿØÿàJFIF``ÿÛC    $.' ",#(7),01444'9=82<.342ÿÛC  2!!22222222222222222222222222222222222222222222222222ÿÀ–"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?æ„*:Œš C±Å[’Úw¸u†Þi~n6FMNš»71hšƒ_³¶?•iϬòâ§%tfÆ…$ ‘аpkDxKĬ„&äq F²¯<9âK}¢êÆæ-ÿt4¹áÜn”Þ­Ȉ>f©Éu?ÈÀñëQ·‡uv9ûÍõ#üjö—áýJ&•¦²ué·8¤æ»šF•Š~nz?ANS!¶qÆåúžh¿‰‡¨þUè>ñ”VÿèÚ’l x¸Qÿ¡ê?!^u|$¡¬5;)ס'ÉSFz\j#@£ó¬­vÝ %Ë(!~FúvýX†uš5’'Œ2¬§ cKuÝYÍò¾b Œí=p£Œµ;åIZÈàµí:쩎Së\Ù6…CFÛ›§¥tw7Ë+Åv.#bŽ’¹qš¨ÿ¼`ÏÉ+èðМcg±æU’oFfék$M«ÕOB?úÕ¶f•û•Õ\qR­8·ÌÑŸ;JÈ(Óø7Sû.¢Ör6"¸ásÙÇOϧå\À5$lé"¼d‡R ‘ÔÔªÒU àú„$ã%#ØèªZMðÔ´øç ¬ƒå•ÁWF?_¡{󜓳=DÓW@µÎÅðÏj•˜"–c€+>yÚSÂúV«Ea4žà÷Ï©i"ü“}ðñÿõÿÆ»N•ZòÙ/-¤þ뎾‡Ö®NI¦ö"tÔ£dyÔQ˜Ð䌱É úPW&¬\A%µÃÃ(áÁ¨«é#f®>ÖÐhZpÚÌ2=*9na·e1ðŒ‘ïRŠUÝŠã±SXb*8ÆË©­(¦îÈ“gxÛP›y{ʟ·<-ý¡`ÒØß™ ñ\“C"ÉŒ«)È"¼8²ŽlÖî…â©tWXÄm%©?ºÏ¬ÝöDÉÈ-gËàÝFѦ¶ñ†þöÓþŒšÝŠŽGú-#ø¦¸ŽÙ‰÷­cJ²ÚLçz[%sGþ.Ÿ ÿGñN{T,Ñÿ jàÉ}‹ìßýjƓƇˆaDõIüQ«³enLgýŽ+E ÿÌsóÅý“±ÿ…y©Á¨+µF3¹ƳfÐ4rÞD®§ÐþuÎ7ˆõ™¨ÎÀú¶j‘–y›™ÔÖ‘…_´Å)®…ûï o¸’QªZ|Ç 6áý+2] áçíÖþë·õr e¯âÕf=0~B´Rk©Í*Ð[³>míÂ3«¶I;[4¿j+Ò'?JØKøIúš~Ëx¿…Ö—1?]KDŽFæ9®®šCxíOK#þÐú.­nÎöë#`žxªÍ(?tÄÖ‹mõŽn„V×7q„€8Çñ‚*¶ºö®§"â_ÆBSc)èà~,ÇþZ~´œSܯl1âŸÇÿ/0•ƧõÆjdñ¶°£}•‡|XF=üi†î•>Î=ƒž'Gÿ ÍØë gèúÕf«àJߥr&ÜÿpÒŧµÈpk(ÈÜ:Òt¢)8[Wc·mz ˜þ{h¥ØÖ²ïN˜çwØog#ú×1ö+ëFÝ歹uI²á3Ž2 Jƒ_ 2åï ]ªXňÄ2ÅŽÄ)Müø$\½¼ÀUH̃iÃCÔUK­:Kbe„–AéÔR} #Zï•èβeVÝbÛ$iޱ:ʇþ þMT.¯â‚pV+GFç EùŒ‘ùW9izÖïƒÌgªú}+Y¢Šö¤‚e[ÐÔ¸(½Š–"­7i»¢Ä÷6W(^3%¼¸û© d'è@ÅTŽæê’1‘ž àcò¬g ™ä2œR¬2uù­tÐÝÕ[³wí$.ÖY`öÌOË·éW`Ôèc›dð²íeQúzÁŸJåc…rQ‡¡«ÐÜ]+ç ¯Ü®OçIÅ’å 䎆;K9ZÞW3HÑœ¿–pÇŸz±$Q:5Üš]ñf'd`}™õÆO^ÕÏËw$Qdí qÅI®]˜1×·QƒúÑgÔÎÑjñgA ½ƒeµ¡' ¬w¡'­DÚ™z7éZ°™9ÿGœìqì ÇëU-õ °O´Lôó uÏëÇáW,­ì¹Ôà q˜î-ˆúÐÖ³”锪-¦®s÷:wÙÙÊ3$©ÉŠAµ¿Çð­]:ö+ÛpŽ@™x ðO½kjº@º´ù%7/"Dhþ£¨þUÇ]ØÍbáœï‡ãñÍzo‡¼I¦ø’ܵœÛgAûÛy8tü;q^K§ÉÝ”eŸÌ!@gN}GùúÓn4{Ø%]OH™¼øŽàð8ú޵Ç_ êô}ÿÌ× R¾Ü–±;éfÞþ;å_’qµñÙÇøäk”Åoé^5ƒÅZ\š&²#·ÔÈýĽW?ÝcÓÓž=+ ©Ve`A^ ö®Ì’§É=×åÐÖµœ¹£³#Å8S.] ¶óQ<ÍßtÀ'Ó>¾ÕÏÉ}>¢ ;ü·Ï¼ö>õÓte©ÓYIåÙ¶Žá<À7Îx­¨­E¹ O©ë^sgérá2‚8ÚkÑì'’êÕ^E &0ã¶}GµsbTíu±PzØët=N5‘!s̼gý¯þ½tNëîc^t£Ê;;‡9®–ßP{øFo˜pÃÐבZ6÷‘ßBö³4&¸2·°è*昴ñ\÷6jÁŠ]´øÂ—Ãw«"¨I³9NÇ)â]7΀^Ä¿þÞÔ±Êñ¾èØ©õfâÆh Y}@ªaÔc¼–o#zmÚ¡X~ëóÓik£9š’{ŠRÚëɹˆº€7HAúVüGq M%nRA~5ÈéZ ×W¦kèÙbFÉV|ú}+° `¨C›!óÊÖe«;É,®VhÏNõ•ÙAµe%°¹6êHÜÁ7gÛ¨ö¦Úø)máë2 ÿžxÏë]þ¯áñbÍqfŸèäåÿåYM•ëŠê©ŒœäÜ]áF $÷9{¿‹•}ºx°åŸ–×ÂÄrúž¢ÿìùÜ*ÞTʧ'¹«±F±Œã-êk'^§siS§±yáí*ÚÁå–Õe“S''5‚4«söHïšé5»‘$‰ ž“õ¬œW­ƒŒ½Ÿ4µlóë5Íd?Oa§I¾Ú4Œ¼ª¸ õ®¦Îî;Ø‹&C¼§µrÊ+KýÍ‘Ç çq>ݫŒ9ú—†­8Ë•limæµt»¿)„ýÒ{Ȇæ6;\…oSÐÕЕáÊ=ésÜéJÓJ­¦Ý‰A)ùÇÝ'¸­O°z HWIZ8S|Œ{ÕKEU¶[¯˜ÿÞì*‘G•÷ÎåϧaW·¹W$ŸP–RVØß=j¤Ö]¦/ÌnÒU¢à)¤V«M¥%©Æk^»tö¿é0ÑGοQþËò W¬d©Ê’µdjze–¤K\E²_ùí øú×¥Cd£4rTÂ=âyísž(ô«hý"Ýù±ÿ îu]ÚeâÅÄ#ø£î+×ÿ}¯y?ÝXÓôú×g™ 8ÌrÇæ uQøªÙÿÖ[Ê¿î³xZË¡_X‡sa’™‚¢©¦¿§ÈÎëŸTÿ °/­dlËϨ"§ØÔ[Å—í`ú—¬u3e?º= þþµmà !¹®6âîÉ0òÝI8¤ú×Aáû¸nadFå809HY^ÅFhØ\“SÆ…ªXáj`VVªv#Ó¯­P©(§c>fDbå\Sè¢Âæbb“`§RЕÂâE-|‚ŒR<‰˺¨õcŠ¥6»¤[’'Õlb#®û„\~fšƒËØ¢²[Å: ßÚölB’†ò¨áñv‡st–Ð_ fs…U¹üqНe;^Âæ[\Û¤&«½ôK‘ó ô¨bÔ–còÆØõ&²”»(=Ë|–ɧV·®Ë¦éW7PÇh×*$HÓÖ¼úˆ:ü¿rhaÿ®qÿ¡fµ¡…©Y^&u& ìÏ_¦»¤jYÙUGRǼAüQ­ÜÈDº¥Î1Ñ`ý1L„K}{ M#Èdu_‰<ŸzÕá\¤ÁK™]ædE°ªòjG“–lz €œ…›vÛc>õËÎìoi»^ø”Áhm·`£{Wž_üG׿šT‚H-Ð1ÇN3þÖk¤ÔA=4‡ðåJI9=Mz|Tîä®aŒ´,¢Tñ/‰u«ë£Æ«xñìÎ!sþèâ¬iK·L€z®3šçuVݨL}ÔÚ&ËHSû¨£ô¯R)'¡ÄÞ‡C¤/î3îk¬ÑdòaºsÓnë\Æ–¸³OzèmþM&CýùþUâb]æýOJ+÷iyË0jœ±ý+3ÅŸ»Ó¬þ™¹?ŽÚµ¬ßðU‚³î/Ý¿ÕQêhI²¡NRèi=Ô˜ù¤8÷5VMB%êÀŸjÆ–I¤9gÏãPò;U¨q®¬Ô›RBxFúÔ?Ú?ìâª"»ýÔcô©VÕÛ®Ö­v5ötã£'…º5å½Iüi‚ÍGV&¤X#³õ4ìKä[ ûQõ?/Ú¿Ú4ÿ*?îÊ—bá•ãØA;zþ•,7†À=ˆ¨ð=åI´tRåd¾W£EÄÔâ' ¬¿­$íot3•cúÓVÆÞxÕ•$s´÷¨dÓv䤧ï ÖZ\É*WÑÙk4,Cvç4W²Ä|»ÞÇ5‹¸ËóÛ9©¾Û¿»¹Œ¡÷Þ¥É9oªüD¼Óãž?>ß$†ªÙ\5¤ÁdÏ–O9íWD2@<Ëgó#=W9¦¿S–þþÊò(ÅÒÇ*¤ª{Ííõ­Vƒß>ÕNâÊ¿ÖF3ëÞ¡Nûœ´³ «M\·3Yk“ˆu(ÆŸªð|Õû“zN}SÒ›#ë%ÓyªnzîÖ³>ßDÚ}ôF{t?»ppñgÐú~•ÐiúÕ”ÖñÙÍ7€›‰Š˜Þ:%§õ·ù¢å¨¹—õëþfYñ?2}“u¬ßë¡cú©ìj(¢ÓouWº(¹ùea‚Ãý¯ö‡¯¯]mJÆÚ&ŒÈÈ‹1Äwî1ìû¤úþ~£9¬ÄR´rÂÔà‚:V’nèÆ¤Ý=;«]ÒÝCªùŽyÞÜçÞŸ;-°ó‚ëÞ±ô-Jæ¾Êñ4±/ÜoîJÕ½x®ÊzÔ×_2jÉ ™s º„[‰T÷ÆÒ9©tÍLÁ|áa“å>Þ†¨ùXžYô®oªA¦ŸS¡U’jÇxµ%eh·†æÓÊsûظ>ã±­,ZðjR•9¸¾‡|d¦®‡f­Á.õÚ~ðýjŸå}„ÔTÇAJ7F…RÕtäÔì^À~¨ßÝj·‚DÈüiÕ­í©Ïªg˜IÛLÑÈ»dS‚ G2E·;v¹þív'Ò„ÑèW2 ýàÄ= â›$ä×§ƒ§í}ç²2«;iÔh Å8 i u¤ó=+Õ±ÍqìBŒ“X·òEvÁ^4tåܹ­©´ÍBêÔÉ%Óø€<þUÏN²Bå$’AÕX`¸êÕR|‘fÔãeÌÎÃ:ôqH4»’1…»)þïÓÒºÖkÉvóšî<9¯}º1crÙ¸EùXÿÿ\¼-—´‡Ïüά={¾Y¥ÝL'ÒÕæöMKivÖ—+"ôèÃÔU]Ù¥©l,vK"K`AV˜®g\Òd‰ ¶ªLDüÊ?‡ÿ­W4k¿ùvsîŸÔVÙ’œ¡"³<Îêo°Z¼HÇ SµÖûA.BFW9«&ð›ÂÒߨdŒ’Ò@X·—êWÛÛ·Ó§ ™Ç˜û?ºXà~íÑ¡ ô” õ¾§,«8Íó!òÈd•œ÷4ÑÖŽÔª¹5쨤¬ŽÛÕ’ ÉÖ¶ÅÝ­­¹/*€‹’s VLk€[Óõ¬¯\‹=e÷’â?ϯéšó±ÚTT×C¢‚´‰¯ûÈ~ë}k°ÒõëmMBåOÞ6=~‡½qb°¢ù–¨è£]TÑèÍ@Šƒ 0)J3M'5Âu$&qJzShÊ©J½jùª’ŽMR-[*x$ÅÔü=¥ê“yóÛ¹>|_+¯cøÖܸ\‚Õ¼$âîŒç-9hü7sc4’Dââ2¸FñᚤÀ®A„íÂãš­woov1ñ4'þ™š›ÅI Ô"vû†Â²“ÔÒ;ºÃá`Nç$×;¬°BÎI­U¼ÍHEŸºþµ…®>nÕGe¦¶¢hùš´gû€·éë]˜8Ô×/áxóu<ŸÝ@¿™ÿëWW <¡GNôÖÀ÷,X!’Lv+Rb- ,~ñà e¼+néŽj ™¼ùsŸ‘zSNú"Ôä|Y!/myÃ1ý?úõ6Š»t¨ÿÚfo×Ò³|M7›«•#WúÿZØÓÐǧÀ§®À>i=XúYî;/Ðâ®èšâë7Oö™ÊÇ¢ƒ!Ææ9Ïä*€®ŽÆØb@;r~¦ª .¢M6Ô]K[»þ?Ó.2é«i]_^[Ù…[¹üÖç&C*µŒJªf~Fîn$vaÉý+uHF<©+±ábå.g²25}wUbXõ+¥$’H”Ž˜©­5TØÆÒj7,í““)¬mxâõ"ìOÔ“WÑ<¸ŸáPµÃ(¥J:nu6ÝFXƨXçQ»õÿ\ßãMѵBmJw›P»xѦb3‘Ž3õªNÛQ½O¦ð応.d= þdÖi%NR6JóŠ:[+‹©¥’yIäç…íWa,¹gb©&ª¯Ê¨ùŽÊ®¶ ˆB§çn3\-Üè——S•ñÌÅ´è{›åÊø×ŽêkJQêAýz·¥h²·#›ó JóKèwëP¯÷öçóÿëW©‚VŠ9+; åÁu@ý+¨ðL>gˆâl«FÓÖ¹±]Ÿ€"k½¸?ÁLÿ¼sÿ²×^*\´düŒ)+ÔHín$?p}ç?¥M ˆã'ÒªÅûÉ^SÐpµiŽ"UX×ξǬ֖9ÏK³Ã¬?笪¿×úW›ï¾ ¾Ë ¿#6?ÝìÕÀ÷røÚûžn*W¨ ×Xö­ý õË$fzãŸé^q¯Ïò tD •Üy=zÖÿÃS6¡ãˆ.'‘¤h"’L±éòíÿÙª+ÁòÊO̪rWQG¼/ÌÿN+2óæ‘Rµ !cõ¬™Në†>•âÈô!ñzþ½.ËMBOùçlP}Z¼Õk»ñ,ØÑ.›<Ë.¸ àÙ¶FÌ„^Î]SoÌó±nóHå§ýýëãøå ~&»ÀÅr æj6ãý°.k®Íz9™ÕYE²Âê ÖÖÓ­£]‹U[x€·Ž3ü*lK Ä AÕbúšùù»Êç êrÆÅxãh‚!ýášÄñËæþ%ô›WA`<ÍA°¿§øW-ãY7k…?º‹ü…o…W®Œ*iHæ­Dÿz¦aÅBß~½¦r"åšîx×ûÒ]ô§.kˆÓ70g¼ƒù×lü±¯ï3Т¬«Zº2æó>ŠMe­lè«ûéÑqú×$¶)îeüLm¾¾÷hÇþ>+Å´eÿ\ÿ@+Ú~'ȇ}þô_ú1kÇ4”Ûf[ûÌkÒËÿ„ýNjÿxÔð’ 5f„®ãAÅt:SgOAèHýk­í³fãÑÏòË‹W¦ta¦_<ÒŠ1@ë^iÞËVã'ñ­D(¬ëQŸÎ´”Pp×z”µËoµè—q–òË/Ôsý+Ãïuä§ý¬~Uô20zW‚ë6ma­^Ú·ü³™€÷àþX®ü´q9ÏJ‡®[âU”£üÿJÛVV±qÆ# 7Éô¬4gÏa›USF©cS¤!}Ï­Bn"Œa~cíP=Ü÷p¢¶r=VÛØ¾UTe˜©¨^â%èwV{9',I>ôª¾´•Ùò\;‚ ô¬×,Ç,I>õp²Žâš,§•³dƒÈ5hºw+F:ŸJÐÒ¥ÙvŸ¾1øõ§E¢Þ0ÀÕ+ˆntûÏ-”£¡ hj誔ùâÑÑÜϼDÈÀtïXW:”’åc!¨ÊòLû¤vf5£a`·0å±u8#³P¶æt0‘Žú³9‰',Ù4o ü®4‰q”µ˜ý#&¨Ï¡jKpÞVtÊܰ1ÇéTšîu¸Y¡±šP)îjìv'ÞRçÞ¶tÝ:ÿìj%°¹W^hXÔS›K¿’V cppç™ý+>{»\—IËvdɘb,"G\U{Tû\Œª1Žz×@4MI‘•¬.0ÃÍfØi:”󗱜€§!ù±T¤’vd¬¸ãëƒWc]&9bšCÑpÌCUCÔtm#e®Ÿróž§Èc“Üô¬=2ÊþÞòIš Ê !£`rxäzÖQQ•Ýô.pQµÖ§RöÖ¾öÈì¦?N´Ë‹]+g’wʨ$ü„Öh…w&ë¸j¶¡i©ÜÙ‹O»pä ¤,xïÛÚ’™<‘} 6÷¾‡s@çŸX˜ŠŽmKÃû÷ƒµû”„óY-¡k~XX´}@“ýÛW?Ò¬[ø'Zo,ÜÚ=°sÁœm?‘­¦·‘ ›–®&ƒ\èbD™Và¸í@3úÖl÷P™Þ('Éþñük£ÁŽTy—€{*Ð|r]Üû¶*cV ¨þ®Ž-„F5TŽxËd~tK4Œ6ªŒw®Á|brïvÑóKœ~ƒõ§¯†tˆ[vÛ‰Èþü›þŸüz¶öÐ]Hö-½N. ‹›…Š w–SÒ4‰ü«fOkQ ÝlWº;Ww¥O’2Ao ÀÂ.3õ=OãZÏ®ZÛBd‡€:šÏÛ6íEHMt¹â÷–÷v¬ÄN™è[½U ž u"¼»Ö¯šñ£U‰8H—ª_z­¢h³êw´0‚©ì2sŒ~µ¾©^BråWh˳Ӟfgl~¾µÒYí…v(ÀŠ·ªZ%†¬.Í»#Ç;Å(èH9Ç劃FŽÞöí¢’VPT”`=«7$ßc’¼'Yo¡kxeȪW÷QÚÀÎäg°¤¼{›ÊÑnÀqÐzçu»Ì²ä¯§¥(ùÏC'?{DV7I 1àžºÿõ¨eÏNÞžÞÕ ”nÅZ±…î$)œçûµ«ÓSÕ• ®liº­å¼Unm$x¥ä~¶¬/mñA12Zt‰¤ûðî7÷“Ðöþy[„/¥DÒQRÕnsGÞú£ÒR5 ¶:T+‹ÒüFÚfÈ®²öÙÆî¥?úÕÜÚÉ ÝºO‹$l2Nk¦¾s¡II^${)¦3V¥h PÓH‘©8Ž2i­×SHÁjTbå°š|¦+áå:™eÓw;Oµu@Ê pWštfè]ÛKökÀr:î+ Òµ9f‡ËºŒG2ñ•9W÷á^V2.¯¿‡nò>Yu7KÓ ˜ª¦za›5çrÖF„7^Sç·qZk*º‚¥s&P‡,Øö§Ç¨Hƒjp¾ôìeRŸ6¨è$•TeˆÁí^â ±]y¶ë‹iOËþÉô®€Ý±999¨.]n xe\£ jÛ ˆt'~Lg†”ãc‹$žM_Óí<× ý;üë7T3XÌ`@<ΪÅr1ôïOÓ5´‚L_F#”’?OÖ½šõ¥(~ë[œP§gièv«2ÁŠ>ÝO©¬»¥Šé¶MÊ=sH' !‘3üHsRÂê#ãjÎøÁEw1®|5i -µ¹ëÏÌ£óÿÈÓ¬Žœ™Ì³Ïš>˜ô­ýRøI˜b?(ûÇ×Ú² ¯k òsT{œ5\\½Ôt¶¼c&QÈþ÷½Z&¹‘â‘]«)È"ºKÕ¼‹8Ä‹÷…yxü²~Òäz8Züë–[—§Ô@óOæ#´nNƒ]Mл¶Y^Œ= r•Lº6ÓüÇ÷mÃD£tg$t˜â¸ßxLJ^óN@$êðŽî=ý«³‘Ò‚ Ó¡^t'Íc(ÆjÒnÇ<Ý£nã\ñQ*À© ŽAªFÒÃy@=:šÞrQM² ›ÑF•®M(—¹cýgñ¯­oÁs ÔBX%Iñ¹NFk‡ša³²aœ)Ú£©5ÇécÄÖ£Üé©"<£0Úàx_=õuVòNÌôÕg ¨öÌÓMaé^!P¤zŒiixx(r“ì¥l“\µ)N›´ÕŽªsŒÕâÅ-Н/9© ¨Ÿ‘RlTu,qMØZ±·Ò¡qŠ´Åb#ÍFTy¦³'ÀhNiÒ,f=’ªºáa …§$üŸ É9<š.Or”Ú]´™òCAì>aùàüIá]n ñ[ˆ9; ùˆÉî½JôоÔอiâgÜÂxxKmÓc"y  Œ{ò+®³Q¤c¾2íîôë+üýªÖ9ñ¿oÌsY·Œ‚mf+è²r?:í†6œ•¥¡Ë,$Ö«S[ååë“VdÒ¯-‡Ï aýääUP '°Ò§®™Ë(É;4eë–¿lµeç_™>¾•—áôØë‘‚wü«vàå±Ua„%áuzÊŒõ³7«vè¸Ç&­Äj ˜/©Åi"óèJëg(¤/¹¤_”T¯ÓŠ‚á„VòIýÅ'ñ¨h¨³žg󝿗¨,qXœžf¡)ÛùVäCbdýk™‘·ÊíêI¦ÕÖçQሶÙK)þ7Çàÿ\×s§Û¬V‹#Xf¹mÜŦ[GŒ3('êyþµÒ^]mA¤ÓjÈIërë¼±E8ê´o¹ Š©+™$ÅiiöàH%~zšÒ)$LŽóuÞµ2ŽKÌS@qü…u@i6e£i®a]÷­3òǹú¥gV4æ¦®Š’¶„§™*'÷ˆרÂdÀQË~‚¹{Ýt§û£5ÛÀ 8ýë /·½5QBnO¢üÿቜ\¢¢·l[§ xþê}â;šŽ0-Ûàóש©3µ ôäšòkTu$äÎútÔ"¢ŽFð›}Áÿž€ôëü«FâM±ýMfX>¡,çÝ¿jkûÈm¢3LáQxî}oYj º#*JíÉ™þId_ÔÖç‡#òô ä¬rÃß·ô®båˆrpÇq®ßI‡Ê±´0Œ{šÊ·»FÝÙ½'ÍU¾ÈÔ´‡ æ7Qßß½5[̸i{/Ê¢¥¹qon¨§æo”T(|±‘ü<(õ5Àoo#€ñœ¾f¼éœùh©úgú×'$µ‹Y1ÀF?—ÿ®·5¹|í^áÉÎ\Õ5EÈl|À`ö0êܨâ¨î›$Þx.2ºeÃŽ²Jòýs\"õ¯Mð¿•¡Û“Õ²çñ?áW•¨Û» "½Kö7B" íS"ù’ûBæM_¶Ä׃æz|ªçüF›:µ¥¸é¿cþ¸™\G¹èªMt~6¸ûGŠï0~XöÆ?ýs\ž©'—¦ÎÞ«·ó⾓ Z1^G‘7y3'$“Ö½+àý®ýWP¸ÇÜcÏûÍŸý’¼Ò½£àÝžÝöèõ—?PöjÃ+QføuûÄziù-ØûVÒypÍ/ $VÕãl¶o¥sº‡üz,C¬®ú×…»=éÎCÅo³L·‡¾W?ˆ$ÿJ⯛fŸ;³ÏŠêü_.ûˆTtËÀ+Ö_fžG÷Øëý+ßÁ«QG—YÞlÍÑSv¤§ûŠ[úZêm×̸‰?¼à~µÎè ™g“ÑBþþªê4Åß©[ö³ùs]-Ú ™­YÛÀ¥™Tu'¥~ùš@½s°*©§¨7Qg 9?‡4¬æY™¿»“øšð:S.é)›‰\tPŸÂ¸_IæøŠèÿt…ü…zŽ˜ßûÏÇÒ¼ÏX“ÎÖg|~u×€W¬ßdM} ‘DŽ*¿W«ªM/Ùã–R3°ZõÙÈ‹ñ_­®­¦Ú& ÒÏ#û«¸d×xyjñÿK%ç‹ì¥”îv›q?@Oô¯`kÆÅG–I…'{²Eë[Ú"áeop+ 5Ñèë‹6>®kŽ ]NâoüˆWÿïEÿ£¼ŽÅ6XÂ=W?Ÿ5ë>Ôëº/ýµåh¡#T^ž_ü'ëþG6#âÕ´á*¡ëVb9Q]Æ= k_Dn'Óiüóþ’^Ñý>tÿ`Èÿõ럯MšÐv¨ñÒÖ”}ÊXѪ–'°¯0ô ¶C$ýkEE&™£jn?etSŒùnÁáÙ Óªû Í+œUc)KC¼·â•/ü$pOo Ènâ*)$²ðxÛkÞáÑ,â啤?íð«‘ÁCÆ©þèÅ]:®œ¹’!Q}Ožµ=wÊSçƒ5ìúÂ.ÝÄ—r4Ïß5ÔÙx_I°CiÈÍuºéiqQÀ8+?ÚøoW¼ Cc)Ïr1]ŸÃ ~äé@ÿy«Ý£Š(ÆG°©8¥íföhêŽ+sÇ­~\3»ÔU}‘:~µ­ÁÍpnu ùO¢•QüzIúÓ‚ŽN+š­z‘Ó˜ÝP§Øâ¡øSáX±¾Öâo÷îè$V½·ƒ´+(–;m6 «Ð;3ãó&µfÕ4ûQ›‹Ûh뤪¿ÌÖ]ÏŽŠåcñÅnÛøÏ@¼€Mk|'C‘òFßÔU+ÏéH0]¿l¬kƒùšq§ˆè›=4õ(G¼;íÚ„8Ç×5\Û!É´ŠOP]þuÎk5Ò,/3™zŒÃ ¤Š€ÿŸ‰.Œí§K°ùŒå \ýAãò"¢X,ŒèêWúûŒóŸcøómÅš¾Ÿ2RÛìò/¡$àóøÖü'ó6Hé­V¡ÎêÁ3Úä±_ ìfi|ЊFdλÑ÷Þ {'k‡ÿ–‡T?Zó[/ë—Ý ‘8m±(üzTÿð’k~S ½‘Qºª¨òÅ/«TîZ©z#i1X‚âK)À(‹Óêjݶy:T1Á~3^A§x»ÄVZªBu±î9ýÒsÇíúUÝ_Æž%Ší7jÓýšA÷@Qõè){ §Ëpu\Ç}§Ibq4—þê>OåPÚÄ]ò“Ð:šóÖ×µ3öÖ=óÅ7þýrÊ ‘m¨È‡ ·hŽ ó¥ZÃÏk‘ÏÕ[G¾+Ÿ²¿?JÉÔ,ï­¾fIbxÎp3\.‰ãïð·š½ÃÆQ¸$uü«/Tñf±usròRVBËdã=½*U œÖv-TŠW;öž}œO'ýôiÖûÀ ´³¹ÎÉ5æ]ÕAût¹î3W´ïjñΈ5+ˆ•Ž•°qZ: !,Dzž”-îño/ýði%MEˆEK ª0 Šäõ?ꈰEct@¼žaÜOÖ®/‹/,ô“çßO4…yß!9'úV²cué^ÉšN÷ H2I‘Ô•·©ø–âÒÔXü³Ðçô­%M§dG¶§´ž§kÉ+„ ±èfŸ=´#¦´ƒùksãó5ä7rÞê}ªæi%-ótAÐUSk8'Ê;ãÞ¯Øy™:Ð=>{­ßþ>uý9@ÿžR4§ÿ©x^& ß^\cþy[ìSø±Ïé\ų%¤S…ýÙÜ&â„9S´ŠµA>¢U“WGeqâk Ñ’Öè[g¦ä$ÄŒ~•ÏOf·s“Ug›ÕŸqüê¤V³Ü€#Lã€IÀ#êkgOðÜr°û]Êãû‘®OçÚµ%4ÎOB¼PêLȨË+¯)ûÃß=ëÑ<9nbT´… “HrÇüöSJЬáùVâ x»Û¿ÏÖ»[)´}ͤIâD/+°,Ï ®Jø«®Xš<74}ã/♞†Ò0<ÿ5B·s€IúÿõëÊ´ø®týB"ÿµuzçÄ; Vý ki…¤Mû™‡ÞÏ÷±Tb–ÖëW³»°¸YTȾ|dã¿ÞµtЋ/yjsÕ¦šÐ›ÄìÙ.‰¾Iþ†³ôý>ÏYºh|ÒŠÑ“^üä×w&‚uûy`ƒYyv臱¯4Ó‹ZjP^DûyêW¾=xÍ(Kš -Ñ”.Ö¨ÜÒ4X­%Xµh–Df):÷Fp~þ5CV‚ÓBÔ¥·T"ÛyNƒ!‡¡ô5Öø†0–ð]ÆÃ%‚‚?ˆ‘õÿë×5²ã–Úó›yI9ïzŠÎåï3JŽ2†ªè¦ö²4Q΄£Ð»¥x’÷÷©3{¤Nv˨<}}Glý+Då¿áÌå…„•ᡃ¨¸XÎ •œýÝwF«yòýÇ) *:T ÏœŽ­_EŽdÉ䯼º}}½ë“K˻ܳFm¡þÏÎß_Jê¥Èãî+ßS¯³ºIàù˜y‹Ã/­+LÇ…­röw g8uéüCÔWJŽ²Æ®„akÉÆPte~Œô°ÕHÛªz枣ޛÍ'5Ääur“àb˜ÄSA>´uÍMÂÅ cO]JÉ‘NÙ”f6÷ô>ƼÒxîfŠUdum¬PkÕø…â ^Gö¨÷è9øÇø×~ Èýœ¶g.' ÍïÇsµšâ×ÞFŒú©ëþ5ÒYê—ÓZ8 ÏÀÁ5“cdfa$ƒŽƒûÕ°@`W°¨ÆOšHó¹ÚÑ23š‰ºÔÄTo]!#æ•cE%˜à é-¡ŽÂÜ'õcêk‘ıi7l>Íæä`¸lúV¥·Št‹¡™'h›û’®?^•åc¥RO•-¼?"Õ½Mø'IÁ)žjÀ5”³ïÃE"mê6ò*ü WŽuâÎØô£+–5"õ¦(«[¼œêj&lé7[Óìî~e)õ•©ŠÅµb!ó—êô“4¼ ¥È¯s!ó]â1“ëYwº\¢øó€âLdñlŠg åNïV½Ý„õ8­GM6?è·i¼HH;Ö[xIDÞtûmÇ¢ìkÒßȽˆÁr€úg×Ôzäu½"}7}ÂþöÜs¸WØÿuÒªäùVæRÓâ9O"<ÅQF ËÔšLÒY‹ɤ'ô´©û8(žtçÏ&ƱËT°Œ)cߊ€|ÏÞ®*µTdô¹1³´yS£¾gÐDRÌ&¥žU´ˆ¢ÈÝHþT²È¶ˆ@9”õ>•˜ìÎÇ»wö¨ÃÐP\ÒÜšÕyß,v¶æ,NMiiúõ݆Ÿ6ü z}jÌ Ú“Õ:q©M\Îpw‹;í?W³Ô†"“l½ã~ÿ¯W™p+ËË|© ƒGj½aãk»Y|«µûLà6pà}{þ?xõò÷ikäztq‰éPîØb qš«o®Xꇵ—{c”<0úŠl’<½O‚¼÷fz ©+¡%œ)Âr}{Us¹ÎXäÕ˜m¤™öÆ…µkÛhȘiÎãýÑÒ“šAËs)8õ©®žKH¥‡Êd;Æ>•‡uc%£àóèÕ*iÆÄj2) ➣–¨„EÅâ¹éI°æÜU桚Πø–%l÷Ç?YHñR…Í%&¶%Ùîs×>‚bZž&ô#pªGÁzª†–ÜEt½Äo†Pqúf»•4.ðH6*ø­aˆ©tcRœd¬yаºµºT¹¶–âD+ŸÎ­2ãõë6w°Þ'•:(sÆÖ QÝøcH¼}š£z#³ùq]ÌÖÓ‰Ã<3èÏ'bF@ëÞ³µG+bS»°_ëý+Ó®~Ârm/]?Ù•C~£ÌêõÙ%Cµ–4îÈAÏЊê†.Œ¶f~Êk¡çWåZKŽÉúž+Ÿ·ˆÏs#«¸_ÌפÞü<՚ݣ¸‘!ÜAfØÄcòKþËmGt÷rO8l(ÚzzrZÑÖ„¤¢ÈZnYµP&AÑWŸ¦)ó?˜Ç2É?…2FËí+rPEi2~è?™­ÛtÚT¸ù±Àôª6VÇ*Ädö«"BäåÏ_jšíB“S”Ò2õ©·l ókÕnM´à”SêJ'9Æx¢âßH¹uòʯ¶xÏëVö àócÓÒ²êŒÔÞ$|ÞÅ÷cÏæMVÐ#óuËUôbß&½>T¯>§,[µŽå£3ßEêÅSó¯H´CîÆGçô®FA6¼Œßv2\þ×ÚùÇo–3÷ˆ¯7íËËó:ðÑmI÷$žuǘz3Hl]¹ 3/¹«aå"}ç8vgÄ,–>’$à¾~|þ™®T®Ò:*K’6G•Ü÷Oõ¤šWozQ^Õï\ó§¢°ôׯXAöM6OcUü…y~oö­^Òd<«‘ížJõ‰_ÈW.g?†'F7m’[®ù7‹Zp®ØË¦ªÛE¶5^ç“K¬Üý‹E¼œár>¸ãõ¯.*îÈÚ´îÏÔ®>ת]Üg>lÎàýI5Ïx‚M¶*ÝÿAþEk×;â9341uK~gÿ­_QkFÈó7f ä×Ñ ,þËà«&# 1yOâÇ óÂýá_Sx~Ïû;öÄ`Ãm¨QŸÖ¼ÌÂV‚^gVjÙ& û†ßzÁ¿ô”óÊ6Ç ­‹†Üÿs÷o¹®ûÎ#A×úW—vwT|°±Âø‘÷jˆƒø"ýI'ü+’ן ~¤±®›Yo3Y¹>·òþ•N)n¯’î|4qŒ"zœõ5ôj%sÉ·4Œí*ÒK[LÊ»ZS¸×ã5Ñh)¿SSýÕ'úZ¥xÛ®_ëŠÓðöy¤=”ÏÿÕUZV ÛìÕæ’:ø$òRY;„ }OÖ„-òz·5Z"Ò©ß`Ðuþ•na–¯rŸÆ¼DuÍY¨›šzˆ¬cÏ.ãøó^Bîe•ä=]‹~f½rõþÍ£ÝÈ8òàr?5ä+ÂW~Z¾)b^ÈCÖ²µ©<½>AÝØ/õþ•©X “å†/RXÿŸÎ½)ñà´ßâË/A¼ÿã^º:×”ø 7xž3ýÈœþ˜þµêë^F1þóäwQøI£Ói«¶Â?|ŸÖ°­ì®eÆÈ$#×iÅuÖ²%´HW(ÎMpÔz·9oˆ1ù¾ ¼_úi ÿÈ©^HkÞõk:TÖLbYJåÕrFéXÖŸ 40gûMÉî$“hÿÇqüë¯ ‹§F›RÞæ5iÊRº<`·ïBûZºn›}|?Ñl矞±ÆX~uíÖ~Ñ,=¾•jŽ:9Œ3~g&µ@` ¹f?Ë*Ùä~×®p^Þ;u=æ!“]‘ðѬîšâïR YJ˜âÿf'ÛÒ½ŠÆXº³Vz"ãN1w1íü1¥Û˜ZR;ÈÙý© ´ë¶cŒz"üªZ+vip¥¢ŠÑ!bŠ´ú¥¸ýíÔkìOé\ιñEÐXï'.2†(†Óø±A¡ãØ{u¬gF‡UÓ䶘`õG”nÆ´Œ¢åïìCw^îåkÏg‘e¢Ÿfšèõ¬cñÄ\¡h,â€7̱FKõby®öÎk É-nd¨pG¯¸ö¨X=ëÒŽ•´G­;êÏl_j7öé2jc‘w+.õZ¡,÷’¾&šyT÷gÝ\_ƒuß²\ 6éÇÙåoݳtFôöùסÿd\Nsd÷E$à©OÙÊÌë§55sÌÿR³{y­ÛcØ §±ä×#ÿ ÇRŒŸµêZeºüR³È/õ®ºX˜8ÚoTrÕ¡%+Á·‡u§Þy6 ”õ?ÂÝwK;Ž =ë1ü ¢@3yâ˜ò:¬6ÙýKåW¾ßá­>Ù!××lƒ²«ŸÐÔÎW—5+šÂIG–©[XÓ Õl0N¿4DôϧÐ× *å\ÊpAìkµ¸ñ.™’!±•Ço2Sýª‹ªZÎ×KµžKßζJ–¼ÑÍZtá¬Y¡j‡K½’#~ >¦ºûcOeýéÿyzרêŽìc‚x‡sJ?¥f™îáæb=3WÞ¡ ^7gWª_ØÜÚ<"PÊyR{ÕÊÆY6"“NŽ&‘†rI­û;Cœõö¢S±…zñ†½J–VC*Ëœd`QZ{Xw«>PŠkG¥bæÙæ¼eGÔÇÕ cåÎk)Á8ü«6iÌ‹‰\G>¯|Ò¹‚<ìO­dV±WZžžÚ:~û-}§hÀ$OQ$«ž€ú÷¨­ 26æû¢¯íÀ­PN\º"ªÛ•9 ¤yjYˆ9öëV› =*„ŽîùÎjnÈ Üž¢ †‡åSÛ«ËóG>c@«ê¡T( I\*I-¤…LA†ÇåY7W~t˜ä=é×7 –ÆêÝýª•œ--ÔiÎÜóô¬ùlaJ’Šs‘ÐévÞ\>a;óôKY—uÊÅžsõ5µF;W-s?›}#g«šˆêîa‡N¥W7Ðèg€.P‘J§£D³ÚËnÿt~†µCÀÉê¸ý+GœE}å“÷ÆÜ{ÒZ¦gM¹R·Ü±¦È§Ò.¹S„ÿŸÄVkù–3´ŒÆ3éZºÍ±Ê]ÇÃ.ú‚á’þÝf#çû²CØÖzÜÞœÓ÷úKR™…‡ï-ßßÔö÷í‚’–SõªJÒYÉ´üÈjæØ®Sp<úŽ¢´±¼´ßnå’¬ÃtW/û­‘UçŽòA‡•åQþÕVaqjw);}GJšP&]¿í”¹W`½T½×tWu•‰ôaRi÷Ïcx³ì W·CWÜ.½Caš©8‚O»SëšÒÃ…WÕÕ·Äû›}9­a³DR¥FÓÓ=þµÇI¬§ÛâWçw<éT¡·f“jÈ}E>[±Ðpk(Â4ïn¥ºÊö“6'ñ ¿XVY$JŒb³[S¸¶½“|¦â 0Ãyíì{c¥f½½Âbl}*6Iåò­Kb£Ý´÷=ÚîÞùš8X,d‡qè1Ÿ^ÕcEµ±»’êÖ|=½È è;7##ЂAü+Ï-®'€€…”ƒ‘VÓS¾Žùn¢r“åO¸ïYÊâãr©ÉÓg[¥[ÝøzöKIMc/ ¬0W=ñÐŽÆ–9æðV².#C.xvËP§ÔvõSäñ-®­l¢â Ò¼:g¸úUÍ6þÚþÕ¬¦uu#åÏùê+{sµê¿SeÉSÝOÓüŒ½wA²Óo`Ô-ؾ‰{ÊK&§·Ôu5î¯áf c:ý†uÊÈò̇¡ õÅméo K¡ßÄe? 1€ î=2#RC§AlƒtŠaÉkI¤öç±­·»-Wæ»ú®¦Nú‘Ow%ÁùŽÐT8¤xÙÚ&ÎPà†ê=¿úô«Ñ¦£ËîìK¿QYx­ .ïÊ“ÈüŒx'±¬üÖN¹ª>’ª¢2H2¬À…¥Mzp© õ*”å sDô»K»n>TZ¤Ô¬³#FÂ1øÖ/î»dtÛÇQ¨[®AÆ<Ôõã¿çë]½Õ°¹¶xû‘•ú×ÉÕR¥QÆG³ ªK™žÓM Õ“‚0GZB”îiÌUÌp:Šp‰ý*M…Heê*ä,³/@u0•F•ÑÎj:s¢›ˆ×Ž®ozËÈÇZï `\¾»¢µšËe&Øœ:ùfÀ×µ—c9­F£×§ùV" ¾x£‘Yš¥êA¾cÀ¹ÿ ¸Û¤R©’ǰÉjpjÐÝ<·v.-ÿ…£ù‚r?­vÔÄGŸ’,…FJ<ÍdbìI9'©«Ú]—Ú'8Ìh3Uì­þtŽÜîì­vvö1ZÄ‘¯ðŒ æ¯S•YnU8ÝÜ‚$umÄ‘èZKÉãta+eW&›#ŽPp;Ô#ïWF ¹yæ·&µW{Dî4KëmB< …2æ=«l ó(ex%Ybrާ!‡jí4}z=AD3K‘Û³ûð¯;—º_¼§ðþGE G?»-ÍÅâ¦S‘UÔÔŠqÍyfòD„S¤ê3MaA(¯/J䪔oCÁœã Õv¤¤¬Ìk‰0k­/žZÇýßO¥qÒ£Äì’)WS‚¬0Ez`v²§KSÓ,õˆÿx¾UÀY¯ÿ\W¯„Ì¥r®«¿S’¶ í@à­!i dôrY’Ò=ªAõ>ŸJ·§ÝiPùqÅ•éæ>oð®Zæò$ŸeÅÄq1ë½€®è:u'í.™Ë.u[YZGžNÔúR‡]Â4üj„ºŒyvÒ#ÿºÀæ¯XÂR#ý÷çðí]÷™›ÑÛŠcðjvÀ¨\dfµh„Ê7RùP;àVPõ5núMÓlùÕe9®w¹°øÙ£`èÅXt àŠé4I ÉüFâಜ8þ‡üó\à¬Ú¦X·§±©J¤‹…YÓw‹=‹JÔtÝB ,fL“FQýkOʯWh˜‘«H®V9Û¤3|¬~á[E+Íœei+3¡VRØæ/´Ç¶;Ó-òúÕAk³10FA¬«Ý'fe·^¥=>•Q÷sEíKåƒÚ¬m¡V®äóñO VSZ>â‚yîFœœªsVcŸîÆ‘.E}¼Ö½äª¡'ÉNÌzІ;eNO&¥ÙLŽcYH`9½-fE3Àxäwaï *¤±ì{U«ËLÁFX€=McêÚ}øÙ-”ÿ¶è2>éd•å9vÏ·aH(æka3 oi2çdrÂOüósýsY¯àH„›â½luÓ?¨5ØP+hâëCi:q}PxjîÝ EåHÀ| 6?f\i:´hï%œŒØ' †þY¯A–ªXê“\²±1Š‹ºæH㌠dŒ{ŸçSF/žìƬ®p…§ Òoëcþaÿ…»ÿ…@Ö3ÿ ›ÿüð¯f…’¹ÇR÷5¼kçø_C?ôþµèÁ7Ëì s^Ò.ì⽞æÒhðŠ$Œ©Àäõúʺøàî7>Õäã¤ç]Û¡Ù†÷i“[¯Vü«ŸñíÏÙü/2çgHÇç¸þŠk§T* `×ñÇQÔ"²·²³žuRÒHQ ðõ¨ÂÂõ£s*FÏ05Èë2ùšœ¾‹…€¯G×Û¦•qøŒW0ÿ ücs;È4IAv-óKëõj÷gVÑÊ¢û^²þÑñŸgŒ‰®#Cô,3úf¾¤¶CŠòü8ñ—â»=CU°X- ÜÇ3#ÛH)=Î õùíe“mÜ×‘ŽŸ<’ލíÃ+|F=ÌžR4‡øTšÂp‘ÞçëÉý1]=ÞqqÅ–5ëÓòª^y<üݪ‘HLíÈǯ¥rÁ[sZòæz?4¦{‰fn²9søœÖ¥°Ùl™ôÍu‘ü7µ ûÍJW>‹_êjéð}„iµ¤¸aŒ}à?¥z•±ä”bÎ(Ó’Õž^çs’{œÖ憘‚Gõl~Cÿ¯]¬> ÑÚ3ÿ½#C[¶>ÓmT*YBЮ,N.‡$K¡MÆ\Ìål—j='üþUvÒÚi¯a'`¿1!O^µÛE¨ÅýÕ¥Ü=kÍç5jòæ9gN¾ºÐî൷gšHö*ä.sÇjâíþkÓ$Ðzù’çÿA½kzúÒäV´qR£“:Jnìóx>ÌqöR4õÄ[õ$Tíð{Aže–òîúfQªê‹ü³úסfйc*˨•(®‡5¤xÃ:$¾u–šÅv™$‘Ü‘øœ~•ÐGm?ê¡?ÝP*jJÂRrÖL´­°RRÑY8ŒJ)qIŠžQ…-U$ ¢ŠZ´KIKZ!(¤¥­!¥¤40<óF{½gO†ê +€² âD+ƒé“ÅnE ^Ê¿½1F=äþ•×Ä &;œûW3¨|GšV"Ò6QîqT¢Û÷bqÏB›³z›z·ÃmWh¥Ô.¦I#ã|;P‘èrTø;À2îšÝfqÞiÙ³øÒ¸{Ïê—jÅîzô5Ï^ÜO:ï’Wb=MuB5彑ÎñÔå/v7=6çÆ>Ñ?Oµ‡ PªŸÐW;{ñvô±ŠØ÷¼îéÉ`òª»aЏàéîõ:#‰›Ž‰#­¼ø‰âÜ´”SéYêúÖL×r6}ë$cÞ®B¹Qí[F”#²1©R]Y&XòÄ“îhÅ#:£`æ“ÎOzßC›V;Ö¸hU‚ç,1HeLš®Óäðµ2بÂû¢0²HýòjÚD €OsŠl2“€*Í´fY•G­Ccœš/X[ËFJݶ “ôªQ¨Pt£jx#ñ®y;ž6"£–¢mÁÅek7¿g‡ËCó¿é[ "Fôšä^Yoîð6g©§}YXHsËž[#=C»`d“V’ÍŽ Ÿ•^X|±òþ¢§[ra,@ ÔV¼÷g£ô™VV!5sJ\Èïè1Y[Ã}áZÚK(IsšÎ[WMSh×W·ҹV d'¡Îk£-òŸ¥sFA¸‚;ÔÁ`ãñš6èÔú\¥êµ¦§!^}ëü뤲q-œL;¨¬írÝ‹G2©9ùO0ÑØçÂË’«‹ë¡­¥å¢¶2’/"¹ùQì.ž3Ðÿã´õ«‚Xýë9¡eê˜4ø§xøV+Q%s*”TÕâhP§¡ªË©ËĨ¬=qа.âd®? ‡sÊ„ÖàꇠúT$zU¥–ÝÆ2¹ü©â8Û¦ÐÒ'XîR¦ä«nRU‡B*ë[)*·aÞ„Æ¥ØpÕîÀUvÞ¦k§µñ%¶«`¶—ÇʹýTÇ¡>†¸ù"`3Š®ò*XâµåŒ’¶–:¡Z~§§çû[M7ˆw^Z·1ޝ÷‡¸¬òär:‚;Šá4ívëJÕ"º´ÆêpsÈ`z‚;Šè-5èî5 E³ÍÒxÜ>ò©÷­G<é7˱ÕYÙHÛBä/ÍïVV¯íZÞæÕfWàîü½ê[ &öß̉ná‡*}Å_…‘±ºwô®:•''ynt¥­q­á GFÕ`Ôt{†A‡¾ú{´;W³èš¬ZÆž³¨ (ùeû­þ•ËFv¶IÜ}ZŸý­k¤] •#Ín#ÿ–ƒßük:‘x…ÊÕåÐQ½'~†þ¥fãÍQò¿'ëTŒ­Ô’ SOY pñÈ7!÷ÿø5æÖÄÂsäOEøTéJ1æ¶ç ø#âê^^›«¸KÎ9ú,¾ÇÑ¿C^ˆ xŸ…<=%¼­{{ÐíŠ6ç»…z^«˜bÛxØŒp®z­xØš1çýßõèvS›å÷Ε[¤æ I(e`TŒ‚A§†ÇÒ¸ž†œ½G®ÝMLMBýh*$-Q2æ§"˜E3tÈX«Æb™‘ž"¼ßÅÿ.®$}GFsp˜ËZ±ùÇû§¿Ó¯Ö½%À$àUF»1·î¸>µµ*Ò¦ï*QSGxCMxg¹¾¸‘â&V!ûñì?tŽÜ×ewkm©¯ïÇ—7i×Þ¹KIº°mÒ&èI‘øúW¹ÅRÕí'ýhyª5"õZäæóÇ­tæ»+ÏÙÁ³ž”y䑚ú\Î]‘Õ±É'Š¡,ˆNTŒŠÛÔå6ÚS"œI?È=³×ôÍ`’}Gä+ŠŒå4Û:ªÂ1vDýêú'—^ýë?EWºŠ[‰IÚ$Äc‰þ•§‚ÍÅl̘ª´£ÉºHçì²|­ôç¯á\50µiî´7Uc-™^)DeŽÉ«‚ÍÕ±'Ö¦XÕFb°ÊÐÚ¯ùU¡ÑÀâÒ¤Èrd{i© ƒÒšG­¹ Œ­X"˜E2ÔˆBóNÆ.)G4 ±§…¥RKbt¦N¤ã4 M7y )ç¥DÌ­1¤l!Ê/Òšbð {RÖþÑô5°íÙ¥¦ÑZ*¨¬:–™K“WíP°´RfŒÓSˆ¤£4U]tQE©¸ÂƒIš)\Š)*[£´• )(4Vr A"Œt槦8Ȭ®R3&ÊЍÎÏZ3ÅÁ&³œ2±ã­m&‡Çp¬GtXÕ0ŒM]‚5ǽ)Xj夛#3âœ‘â¥ØéY6]ìRivÓãwcR½¸cOŽ ´î„H™Å:Š)"BŠ)j’¸‚Š(ª°„¥¢ŠV°ÂŠJZ&)h¢€)i)jQV€ZJ(¡°>sl Ð AIœÒãŠô"'å#ëTneXã;¹Í]<õ¬KÙ7JTtQWgUsH†g¿ Wù¦b4êriל°÷åZìz6I˜tUüê{vÚvžÿΡ(ªpƒšhM&¬‰§0>Õô©ß÷‡ºÔ Æi“–ùˆ¥l¾Ÿ€¨VÝä瀩©  _¿ Õ×Üo—«%XeG¥héñmȬÅ!z Þ…BÄ tÅD¶91´lN¬2*å»áÇ¿ET“À'éW ³». þYJÝO>Prѵ»Ô‚d–ô¬%º·QÆåü+GWÒ¯ç¾ù‘cQÀó-E†%v[ËeõÚá±ùUEÁ-YêapRT•Ñ^+¨ä•QäŸC[R.ÔA튳§øgH´:çVÜW´p±þ•3ë>·%$“P•þ@þl*Ó~êlŠøI¹%ŽBê Ã.0§‘ôªÒÀ\þè·~ÕØ¬WFTè$*¤ÌÕØãÒmÛåÒsïMŸý–›Ä¸èã©ßC )E6Ï4Ž+‡ãc0ô+š™të–pVÚOÊ»k¿ ƶD±MÃ0Èå™[ë‚+þ>¤“˜¥ÒôÈJœ°¶GæÆšWªâ_²¦¯y~ZhÚƒò¶ÏùTëá}RcſֺË?Üî śឡ–ª‚ˆâ¹»©59¢Iî'¼Úy9v$\Q¬z|êZ&•¦•”c?• Úü?àŠ”)ÃUÄî´ÿÛéö‚;­Fʧ¬“ þf™©[é lñ¶µjÃÖ9° ײ·‡d³Ì×FQ±}óN´A¥iSÈåÚ;’}??Êš¥+ÝÈÎT¨¹s(êi¬z=¤‘Ì5–ÞWl søà ¾úþš_Ë‚æåäþéWùµs ˆÇ—,a¢~Tç8•Íl²´Æf·nCãçOz·NýXªÑ§UÞQ%Õ®D—^bÆñ³uÞ0½CBÈ‹DyÊŒÿ*´©övU7K5³}Ýüþ´û”¹´Û-œèÑ·TnERmhZ§”JîäÆÄÉ=¶óLw¸R±ÏBPÖÒh—zõ²Ékir³/QSï]>‘à½~U_Û"BF<ɤRßÉüê'^ø™q÷²<ôKu%c £©Ôö×RÜʱGyXà"‚I>½kEøgecªý½µK¦aܦŸPrWò®Â:ÖÒbÖö°Ç!,ˆ#ë\ÓÌ!h«›GåñhxäÕÞòغÑXóøŠ‚ ßœŸ²¸?ì×¾E暎s´m4¦5‰FYŸ(õ&±YŒûÔ`žŸ=KáÝE·[9 ߎ#l1à×}ñÇ t‡JÒb[8ýíÎ0Òÿ²¾‹ëëôëÃXÝÆÈ°NGõ¯BŒ§8óIXæ•>WË{„¨¬¹~[{©Æâ=9®ßÂZ"kì6†0Ð ¼Ùz~8w׿ ´kv)B}gSRå‘P£& [©ÿ¬lT­s6ÐáÉÇQ]‹ü#‡ªÇio8bЉJç #úV ¾™xÓ¬H¡÷gùVñ”eu±£®Ú•¦–C†W;[§·µ@Ž7|ãp<ÖÞ{§£}¦XHÝ»v² ]ÜšqjKA([Ýht°m Ó•>£Ò¥LËÜáו4FD‰å‚9SMBÈÝ0AéA-tꎳÂQJóFWmà%‹gïŽÿ¯ó®îÞá .Ȱ;Œ ò‹ %µÔ!½·;Yyïê+µûY½E˜« €*>ªëK²4†!%n¦¾¡¬¨;QžÆB?•b4…˜–$“ÔšW-BkÑ¥B•¢Œ¥9Ks£ð¿ˆŽ‘uäNI³”üßìïë]íÜjYfŒ‚’ ‚:W]ׄ5;‰ :}Ò1¶#÷S7ðO§ò¯72Â)/kú4&þtT‹ ?AÇ©«)n©÷¹>õ-xV5*ý‘æ?1÷§¨*x⧨ÙhØ´úG&N{Ž¢¤¸Hn-Ú)T:8ÁZ¬s÷‡QR#‡þ•´*YX5[aâ }"ì·Í%¬‡ä”ÿ#ïüëõ5ì÷ÐÝÛ¼ xÜa”×™x‹ÃÓè××2Z9ù$ôö>ÿνü5T\“ø¿3Š¥;jŒJ³k Ž2)Ãò¥D£$çdH²/*G9úÑÅÙ{8|ÍhQûR$Ì{þbd~üÐdÉÉéØ ˆäñò…ô‘ŽzW‘cµŽ,KÇJŽ[‡q´±*(f$mëQ7¥{8 7*ö³ß¡çâªÝòDÒÒ5ùôç¾d¶'”Ï+î?»{{¸nà@áÐ÷¾µær®Ú_ͧKæÄûGñ)èßZœn½øi/Ìx|K§îËTzoʜ܊ɰÕà¿å;%æ#éê*IuLªóü«ç§NP—,•™ëFÓ\Ñ.±dœ «-È Éõª/tÒ™³Mó+3UI#³œ±ÍE°±À“Ð µmi-ÉSûÇúV¼ðÛ/ȹnìzÔ¹X¤š(Zé,ØyÎÑýÑÖ™wÙ“¾ÝøÚÜí[95¨$BŒ2§¨©Rw¸róhÎÿC‚re³"'ïû§ééXFÖXçò¦B‡©Ò»{«'¶“¹C÷M@öñÌ›dP»Ö2£ŠŒÝÑÌð´âï3Ö'ó¯ö»Ú>§“ýçXš„» Ø>óñøWm«x:â2óعI,co¿øõÇZYÉw®š6E·?:¸Áèú×­Bp”ƒ<ú±”dÜ‘½ajm¬!‡*¹o©äÔáxÀ©Èù}© zVéYäF2ÿ:£9Ì›éÖ­ßÜ¥›ÜIÑGÔö˜’ H§!¹Ö“)lJN&i;dÒg&¤eý6-ò™E}k\ ‚Öol«Œ1äýj}¤kDˆl†BäÖV·wäX2Ž œ~ÿϽj:üõÈxŠïλ1©ùSå×õ§&’**ãôŸxƒFÂÚêR˜‡ü±”ù‰ôôü1^‹£|VDƒVÓʱÉlr?ï“þ5ãЧ™*§©­LWðôê|HÓ™£Þ´ïhúÆRÆú)%&"v¸ü5ªÚ¼OÀÖ›íîõ'K&Ä'ÐWo§sh $Íî·?θ§×ÜfŠ¢ÙÆêRr+ÆB7Ùso»Õ£8ý hÃâýi–Üß$3ºîÍòñõéú×4ðÕ`®ÐÔ¢ÞŒÜÍ!Ä‘dPèÁ”ô äq5Î]†‘Í(QšCHM&i3@¬)¦škȨ95VIËð8‘,“„éÉ¢ÍZæènåW“UUZG£,x·m-…´!z±å©¡»‘`RÒRÖ‘´QEh„QIM€¹£4”f¢àQšLÒ¸ÅÉ¥Í74QÎÅaÛ¨ÝM¢i!ØvhÍ6Š=¨Xu8ZŒËïKÚ E²zJƒÎnÔå‘P*\‡ÊÑ-ÝÞÔžbZZ Ìd¨¬ÉÓç­7•1Ö³ç‘7ýáU¬ìF£fÜsUKŽÆ¥‚Ni½Š8§TQ6EKY¢XRö¥¢›BRÑE¢ŠZÕ!(¢Š¦QE £4QSq‹E%\¢’–©0ŠJ\ÕÜAE¤¡°>sQJx R·JôÏêTsYÇNÞÅ™Ï>Õ~W 6ÓÔóHÄã’UÚØê„¥¡Ÿý9,ßS¸I]€œvÅj—ŒuqùÔnn#!›Øæª2wÔé§RW×S1T¨ÁëN­Ò§”‚ƒ¾EW¼°¸² Ò(ØÝµku±ºwW"„à”=š‘–”.3ž C¼ƒ÷±ô­]îÙo•/p#s0ÿ ÷ö¥&ÒºŽ¥Ií'YvÆÎÜÕy!òlÛÃc¦³%øaâ»K6‹ ²Ê£oëÒº¹•hÙî(Æt§xìû”«CÍsºöŒ³ÉæD 9ï{õ+ê2@†æKHä oT%°}¸«?𯋶]Gåþè‡8üsYSŒá-æ”ÑóìOat®¤¤‘·å^‰¤êQêÖbP\pà ®Ò„:%Û‡¹»½,;ÄQsù©­ /á·‡ô™L–ñܳ0Ãy“¨«ÄJ2ZîgJ2‹ò<çTÒÒþØÄH9±Ð×yd÷{Ñût2ã—QüÈþUôšxoHŒ`X¦?Ú$ÿ3J<9¢¬Âa¤Ø™GGku-ù‘šÆwk\º”ùÑ󟆵h­§—L.xfþõúWi.˜$;âFßýøºÿõëØbÓ, 9ŠÂÖ3ê¨þB­Àö­þºÒÒ72ú¾»Ÿ7j>Ôã¹Co§]ÜÆÝ8#ÛDZ¨íü®‹¤eÐõ þ%1lz÷¯¤Ê‘Ò›·œðµsO;é,½XKy´ìÔs­Ï'¯—OæMi[|ðÝ»yµ }ò¨¢ŠïLq¸ÒyéŒîO)uB=Žbßá·„­›réíë$®ß¡8­Xt.ÁGØ4«(Õ Pom¡ÿ®’ªÿ3TåñN…»Îu[W‰³4R 8~îsYIΧVRå‹è>eÌ„7¨¤U3àƒŠÉ²ø…áíUæŽÆâIÚ%ÜG–W#§±\¾¡ñV =`Ù&ž#ÄL®äà‡tèzÔ,5F쑺ÄFÇ¡%³†È¤½»´Óíüûˈ­Ðuy\(üÍy?Œ<"F=½kÖ´ Ûh`<˜šñ‡2‘Âû/øÒÄb£A[¯cZ4]grèú*¥Ë¿˜˜ç;dÛùþבšçÜË »ÆJŽ¢™«x‰t½%å\—`Œÿã˯á^$œêÎû¶z¢¡­‘æ-Ô#½ø£#KÍ´CìÀŸe ÿãÄÖžƒ§,^(°!ƒÄÒcžÜÕÇΫw–‘‰f;·÷Ï­už¸ž[ÙÝ)s´©(Ž+Ú©NŽ›%cÌŽ³×¹Úx›NYôÛˆY%?„Œóí^›0!Äyžd/üCÔC_HÞÅæ¡Ï5ãw°ˆoî¹#(üë ±ó)E¥¢ÝWÃv†Õî,·#ló#†q\Æþ™7’4 =N+Ѭ×í:2·ñ'•yìðOáÿÇrù)0e#¡SÛò8®šR’rŽíÕiFVe¦F‰ö²•oCZš=Ö×6ìxnWëV‡°üJÞUH×ç$&8¥p2¹br*k=bâÅÔ­ˆË6=>ž•æb#:ºßävÑq†Ÿ§êi)Xá±…$ç>ßZÒÍpšºê™`Þk\`~‡ð®ŸLÔþÒ¢N% þ/þ½y5i¸³iA=Q³Aæ¢R+‘ÈÇg˜ÊU²)óÍ*ɸ`Њ³ZŽ7qMb¹áž%’7en†‘ŸIMI­ƒ’çšx÷K½± º¦g–^¡»öô® \ÝÛ€¶m'!мî'Ú¾€—Ëš7ŠTWÆÖV{×wá;}êMBÎ6’3 òa®=½ÿÉô(b¢¡Ë%¯æL¨Ê÷F}ŽŸsöÅÜÈ×8ùÊ®})^/,àOµ:IdÇÞ#=ªs´šìÂáùß<ö"½NUÊ·ÓëM"“>ôf½W#ϰå9¬«Û–ž`‘䢞1ÜÕۃǗ»ia’;‘QÇAò.+9JëÈ´‹žcG‰•aÈ9Æ+FÇ\ŽFݰWí&0×Ò°§”(Ûƒ5›=×dW."”+«HÞYRw‰é Lꑌ³t­}4A†›÷éØy¦“âK1Õ™`îç•ÿtÿJôýVµÖm°È€ù‡qøW…‰ÃÔ£¾ÝÏb†"=IþÑŽ1OIKj{[æˆáÙ\š7,§"¶£¦V%EI“ð$јÜeMb]Y½¬›O*~ëz×@§Ö–Xcž#Œ©ý(R±“g2ªÝi¶·€™¢ºo0ükJêÕídØÜ©û­ëP[Fn.ñd´š³9[Ýhh|ž€|Ã𬒥N1ƒ^ƒ¶©^i¶×€ù‰‡ìëÁ¯NŽbÖ•UüÎ:˜Dõã¾'½77‘é𜄠·»ðάÚ"Å Æ: ´o<©X_Kw}º2Kƒ÷™>«ßð¬´cÆÇʱ%pzç¯ô¯FHT‹”]ÎiFP|­IÍ[Ó ó®#åNOôªk °€ZÚß}¾cMË%vàšBsÉ4ÆbÍH',xô­/b,UÔ.–ÖÚI‹_­yýÃù“œãŠé|Ix<Ï%zF2}Ø×-ÔÖmš"öKH{p*{×a—&IE©&¥·‹Ê…¾9úÕÍÝnõñ4Ÿê,†óîç þ¿…vú}´zFmf„3D€;vÝÔãñÍWº¾È!^õ^îé¥Â¨8ô¨£‰›nj¸ÂÛ“pŒ3¶[5ÍÅ/Ûõ[»±Ì`ˆc?쎿™æ·õÙÆ“¡Ï)?é.!î{þ&±tûo³ÚE9-õ=k,Dí#JQ»¸š†±{¤[o±»šÞG`ÊûŸóï[¾øâ#‘¯eŠî%!TÉV÷åqí×5Ãx‚ãÎÔ<¥?,#oâzÿOʺM&Í ³‚ÜÞ62?Ú5Œ(ÂkÞW*skcÕ4ßÃyy­dˆ“”îùVÜW¶ó.ä”ïÇó®BÆÄCn»Ž@É54·hƈ~µŽ+ ‡¦´ºdÑ©Rrò:íãÈÇ­A%Ïdüë”G’"DnÊ;óÅr>8Ö'Ö/vI–1¹XÕã3ÈÁç×0Ò¨ýÓ¦RQÜõrNIæ‘Uäpˆ 1èrxÐ ‹B=Z6þ‡üjèñ®‘lñÉ-Û[1?/˜‡údR–¬w‰qœS½³³[eË`ÈzŸOaVë;MÔáÔìâ¹…Õ‘À ƒÁ£Ú¯ƒ\ŽéêiaôQ@­Q"Ñš(­´”RPäÒQIY9 Z)(¥pŠ(§êFi¤â£y1Jå%rRÀ ‰åpj?3åªÎìíM+–¡Ü‘ä$йjH¢=úÕ¤ŽE ·$†¢S²8®dR3ZŠ^£g¨ÝȪÏ9Ò4Q±,²`VdòäñRI>r3Tä|ž+HÆÃl<ÃSÛÊGr*¨â›æ?-SB7â¹ }ãš°·.{Ö 7sW£”Ö2‰vL×Ys× pk9&©–Oz‹´dé—7 @⫉=éÁ²h»'° .j Ô»ê”Ú"Ä™S{RôªuXX’’˜úRæ¥Ô ¢›EO8 E%¹€u¤Í«R¹¥¤ÍªR@-™£5\ÈœƒS³ÅW°|ƒ2/ÔÉppqŠÉ—pvRrAîh¢´ëá׸ˆ¹=Mt~¼†-R;¨|اpŠ@åôü(¢ª¢÷з=.ëIµHKÇV^~µ“siݳÛÌ£q‚?­W— =ξU±çz–’Ö:„–ÂE`9Vö=3P Oñ'ëEêFO•3’Êö;?ê4ÛŸÞ¤Äàò v>Þ•ÛÙøzmE†HÓ=ØŸð¢Šá¯¤´5¦ýëÞü)µÕZ9o5I‚aŒG¦OøU»/„ž¶Ç›ÕÑóÚr3ÿ|í¢ŠÚ2i$™«„[»GG§ø_BÒƒ}‹K¶‹<³q?‰É­dTpˆzŠ(¥ÌîRIl:Š(«¸£©¢Š}€ZkQE>BšR1EŠÕ\cHïYº†³˜?~’7û€æEW5OvI!ô2“Æúl™V ¼WWÿŠªw>;µXÙ’ÆWÚ œ/OΊ*eݘ&ís—ºøÅ"éíso¡ *ûH{œÿ%¨4ߊ:†¬ò*XZ[Èrœ3ƒõQ^<%õ‰Å*õSL¥ñ/Ä6—FÝÞÞ ~ëCì~ xüÍe_xÏÆ>Põ•0žŠ°¢ŸÑ­Rt)FVQ_qJ¤Ú½ÊźÅÓŸVÔOüò˜ÐRÜZ­ì +ê“°\·™6à (¥RÑ~î„FR–ìå&$¥x‚jù´–;Ù ûE³oB9S…ÈD ¾d2´dá8¨®Q™·ÈåØŽ¤äÑE5¹Œ''¥Ë«â=MìÚÎk2P»YàtçËjçLœËFÜ0UÇQG,mkóKš÷-Ež ÕâD‰$aÎ3ƒŽõÞi>ðü3%Æ£o5쫌);P~Éüÿ (®\Lå£djµÕý¦½c ½—“ôHÀ~–mfÞ\&AùQEyr„ntQ©.mÆ\jÖÉe$ï˜ Îúיͬɯ]Èó®ØÑÁü³ãÇZ(®œ#iKª/9YFú”÷?dÕ®"˜ZR@þîîxüëÔ~Z·—Ă٨ôOôü¨¢ºñ­ªäsÐÖg}4D© Šñ^}‹V/³rÍ4Ç~£‘ùÑEre¯÷†¸Ÿá£WDºtµ’"LƒèRkÖ±ï‡(¥e ¤d(¯BbY”ÿ†‹–Ц¥ ½´ŸuÕ¡?Ðþ•`ü:»o´ÞéRrŒ¾r‘ü,óÈü¨¢±šITBeM¥€ñ>œ÷lqÉ$|rŒˆ÷Æ}ºW&¢½ Ü6ÓÊŠ+j êº!4´gie¡A°½½ýñÙæ,k÷qŒóëôªÚF„š¡:•냌JÄœwïè=…W$ªJÒw:œ#h«Ó¬6Б…EáQF¬ §”Íæ*Êr¸=(¢»rèEÁÉ­NlLÔzž…©¶©hÆUı®GF÷­&Q^>* ¥ìkM·ØÂqÅ0¦Š+t IsEFÍšBù\(¦lrÚÞ“¹„íBpÉè}« Ó8Q_C‚œ¥E]žN*)TvåŠmí¥¬— »Âc êOOŠ+z­¨ècy´ÓË<í4ŽLŒrMO ]Þê—ÓÂfU‚!ÝrÞƒš(®j’qƒq5‚NVdÚŒ2ÚÏåÈá²2ª]x¢ŠÒ ¸¦É’³°åMÎw®ÇL-¥6ìVEä°îh¢µŒT•™ ´îŽßEÖF¨ŽIc¶>éúV®9¢Šù¬e8Ó­(ÅYÖNTÔ¥¹*¨52F¢ŠåÛ唢çŒ×£@ ÓcÇWù‰¢ŠìÁ/u³š·C@V ©x‚ÚÀ6ÐÒ$@žÅˆçõ•WT´LΞõIge0¨ ,h;$sËWž~n§ü(¢¾rG§I"ý¾£pQägÊ.Fâ¹½?âÌûš{ŠîÀØåN?ÑEtЄe6¶±•gi¤kOØÜJ"k[„sé´æ+¤·¸K˜D¨)õëEIl”QEdÆ&(¢Š€ RÑERZSIÀ¢Š–4@ÌsP3(¦â…T'©©’!EؤÉÕ§QE#¦¢sE¬¬ Scintilla and SciTE Code Style Preferences
Scintilla icon Scintilla and SciTE

Code Style

Introduction

The source code of Scintilla and SciTE follow my preferences. Some of these decisions are arbitrary and based on my sense of aesthetics but its good to have all the code look the same even if its not exactly how everyone would prefer.

Code that does not follow these conventions will be accepted, but will be modified as time goes by to fit the conventions. Scintilla code follows the conventions more closely than SciTE except for lexers which are relatively independent modules. Lexers that are maintained by others are left as they are submitted except that warnings will be fixed so the whole project can compile cleanly.

The AStyle formatting program with '-taOHUKk3 -M8' arguments formats code in much the right way although there are a few bugs in AStyle.

Language features

Design goals for Scintilla and SciTE include portability to currently available C++ compilers on diverse platforms with high performance and low resource usage. Scintilla has stricter portability requirements to SciTE as it may be ported to low capability platforms. Scintilla code must build with C++03 which can be checked with "g++ --std=gnu++03". SciTE can use C++11 features that are widely available from g++ 4.6, MSVC 2012 and clang 3.4 compilers.

To achieve portability, only a subset of C++ features are used. Exceptions and templates may be used but, since Scintilla can be used from C as well as C++, exceptions may not be thrown out of Scintilla and all exceptions should be caught before returning from Scintilla. Run-time type information adds to memory use so is turned off. A 'Scintilla' name spaces is optionally used based on the SCI_NAMESPACE definition. This helps with name clashes on OS X.

The goto statement is not used because of bad memories from my first job maintaining FORTRAN programs. The union feature is not used as it can lead to non-type-safe value access.

The SCI_METHOD preprocessor definition should be used when implementing interfaces which include it like ILexer and only there.

Headers should always be included in the same order as given by the scripts/HeaderOrder.txt file.

Casting

Do not use old C style casts like (char *)s. Instead use the most strict form of C++ cast possible like const_cast<char *>(s). Use static_cast and const_cast where possible rather than reinterpret_cast.

The benefit to using the new style casts is that they explicitly detail what evil is occurring and act as signals that something potentially unsafe is being done.

Code that treats const seriously is easier to reason about both for humans and compilers, so use const parameters and avoid const_cast.

Warnings

To help ensure code is well written and portable, it is compiled with almost all warnings turned on. This sometimes results in warnings about code that is completely good (false positives) but changing the code to avoid the warnings is generally fast and has little impact on readability.

Initialise all variables and minimise the scope of variables. If a variable is defined just before its use then it can't be misused by code before that point. Use loop declarations that are compatible with both the C++ standard and currently available compilers.

Allocation

Memory exhaustion can occur in many Scintilla methods. This should be checked for and handled but once it has happened, it is very difficult to do anything as Scintilla's data structures may be in an inconsistent state. Fixed length buffers are often used as these are simple and avoid the need to worry about memory exhaustion but then require that buffer lengths are respected.

The C++ new and delete operators are preferred over C's malloc and free as new and delete are type safe.

Bracketing

Start brackets, '{', should be located on the line of the control structure they start and end brackets, '}', should be at the indented start of a line. When there is an else clause, this occurs on the same line as the '}'. This format uses less lines than alternatives, allowing more code to be seen on screen. Fully bracketed control structures are preferred because this makes it more likely that modifications will be correct and it allows Scintilla's folder to work. No braces on returned expressions as return is a keyword, not a function call.

bool fn(int a) {
        
if (a) {
                
s();
                
t();
        
} else {
                
u();
        
}
        
return !a;
}

Spacing

Spaces on both sides of '=' and comparison operators and no attempt to line up '='. No space before or after '(', when used in calls, but a space after every ','. No spaces between tokens in short expressions but may be present in longer expressions. Space before '{'. No space before ';'. No space after '*' when used to mean pointer and no space after '[' or ']'. One space between keywords and '('.

void StoreConditionally(int c, const char *s) {
        
if (c && (baseSegment == trustSegment["html"])) {
                
baseSegment = s+1;
                
Store(s, baseSegment, "html");
        
}
}

Names

Identifiers use mixed case and no underscores. Class, function and method names start with an uppercase letter and use further upper case letters to distinguish words. Variables start with a lower case letter and use upper case letters to distinguish words. Loop counters and similar variables can have simple names like 'i'. Function calls should be differentiated from method calls with an initial '::' global scope modifier.

class StorageZone {
public:
        
void Store(const char *s) {
                
Media *mediaStore = ::GetBaseMedia(zoneDefault);
                
for (int i=mediaStore->cursor; mediaStore[i], i++) {
                        
mediaStore->Persist(s[i]);
                
}
        
}
};

Submitting a lexer

Add a public feature request to the Feature Request Tracker.

Send all the modified and new files as full text (not patches) in an archive (.zip or .tgz).

Define all of the lexical states in a modified Scintilla.iface.

Ensure there are no warnings under the compiler you use. Warnings from other compilers will be noted on the feature request.

sc.ch is an int: do not pass this around as a char.

The ctype functions like isalnum and isdigit only work on ASCII (0..127) and may cause undefined behaviour including crashes if used on other values. Check with IsASCII before calling is*.

Functions, structs and classes in lexers should be in an unnamed namespace (see LexCPP) or be marked "static" so they will not leak into other lexers.

If you copy from an existing lexer, remove any code that is not needed since it makes it more difficult to maintain and review.

When modifying an existing lexer, try to maintain as much compatibility as possible. Do not renumber lexical styles as current client code may be built against the earlier values.

Properties

Properties provided by a new lexer should follow the naming conventions and should include a comment suitable for showing to end users. The convention is for properties that control styling to be named lexer.<lexername>.* and those that control folding to be named fold.<lexername>.*. Examples are "lexer.python.literals.binary" and "fold.haskell.imports".

The properties "fold" and "fold.comment" are generic and can be used by any lexer.

See LexPython for examples of properties in an object lexer and LexHTML for a functional lexer.

codequery-0.21.0/scintilla/doc/SciRest.jpg000066400000000000000000000404501310136352400204000ustar00rootroot00000000000000ÿØÿàJFIFHHÿþCreated with The GIMPÿÛC   (1#%(:3=<9387@H\N@DWE78PmQW_bghg>Mqypdx\egcÿÛC//cB8Bccccccccccccccccccccccccccccccccccccccccccccccccccÿ–"ÿÄÿÄÿÚ äicmÍ åØÁC¡2)Š¥˜i¤Õ•ÇÓÃrtóökiN=ÖsªëžjÕïgØógqù½/&\&§X¼¦f“•Ṫ·FùM%™ÚjjBK)†e>]õ… µ‰.nHCj€²[%CC×Hϧ™gâ±ÎçxÓGœç^‡O•Ýõ©¼T4d¹–­I‘*ÒÊ´•¢jÆ›–)Z—+I-$Ę%QcÊ^ù w53rË©¹+hF –ÀL°N„ª RÐc%iH·‰M4˜4† ªì¥ `› rЀz(—.zžœº7ÏXª¥9öŸN"òÖÚVH§]ãÓ<úq—ÏȲ±¤‰+3±9ûn±@yÖtájHi •&© /NÄ:7È`X&$(!\¸×2—™ïÎÔeÓÎ,5˜ǦD¾§G—èrÞè3¥H bƒ™H©UsJ³© Lu)žœ÷4òÒÍ™ÛykIï˜1&@©R+‰2“h.Ó,bjK4h4×9¦€ `#sV¥@ ™s6®šrôòÙ®­ó­"±u¥}dáQ×/\÷š»d_N=ØcŸFóqwóã|™“šdw\ë°rÛmBi¬çpÑ5- 1&šIÎNœ¨EÈÆˆ ba4‰©h4Á4 Xë/+©kߟYSsr€²½;\oÖ|ÛsÞ‚R0Nf¤·-`:–©T£MÀV&'4g•®œ¦•\  5BhnX‘Š44Á 4$ÐÚS *b)  rÀc@"h‘Zô%ÏŽç|õè›D]ôÏ~“ôWlcQ¥±U›tr™½—ž<îQ5˯žöêÄZ3I¨c—-L±¡¤^6H³éË¥óVvÔÖ°Ä\Ô±ªhbM4LFШ`®nZçêÂ\Ò«yÖøk´õ–€ëíó:yuï2×3T”¨š`šTÐ9*Ma8Ö4ró¦ÓT7fmä4î@(L1ˆÅD°Á‰ˆh4ÄÄ™)ËFä ¢aCMªzg6‚ª±ÛO5ôçÒb³tYÕwBÕ{+žúgH®c\Ì+££€ÍêÏ'5¶Ü›ñÕPùÑ @@©4Ô¢U¦JKšŠudª#¦{æk4æ™Ht˜† €© EHÜT£™:c:—¶UXjÎiÓ-àYuœËètù½|ºô¤ñ¹lT¡D”†K`’š¥•ÜЉj¨ÎLµŠ&¬`2†PRh)K§+MX!ƒ@ 4 ÉœÓP„ÒœÒ , ¹š„)£DØ^.ãAË%hréÛçô×n5KÎâ¢òGŸ5èÇ'N/V˜ïÏZJ3PPF™4  Q54æñ©3­sÖ¢³ÐÎÚe¦kY× ±°IëSI#V 1 €š@æ9 –”µSQÓ‰†=+NS\u€NËßš³®ýüîž]zTÖv„À¥,%:Î;• T6ˆ@#Esô`#|ÓE––†‰TÒ¤á¡RÉ@,É-’¦ÒJšU h D4Ä"-Í#%ƒU`ÕCŠÎnSŠR£X”=f¨!‰¨Ê­s5Ô’7œµ^X¼úaé“Åõ:y:xô°y£IrÒLY`™jS¨/;(— ª\¯%¬T§®rS°”†H;MS ZZK4˜¥éŽÆ £žk,;2Öyª–²“VáRú:ñíǾÂyÕC úVùÆ©ãhb€I(1ˆAQSU5)ˆ.œ¨šŠF! )T¬!´9¦M$h¡’Z°s‚i´Á§+hJ‰§eRRÌ56ñ×;˜Î£x[ÇQšÛ\ë‰ösÜÄ´9—kA *lÖ­æò+å¦>—éqélXÜ4–¥KL–6)RE:I3^èVj‘5`"l„Ò0@Ó4É›D¶KD°M%4sêæ±U6óÏNZÎSs¬ËÛ:îÓ‡¯Ÿ]¤xØ*Yc 0ãMuž˜Š”ïžË^œ•M@憇SHÐ ™I€&‰šP›%Ô –0g+€Ž¨bhêi¨›@UF¼æ(Ó|¶Ò5ÎÍC“)¬³Ü®S¢53sÔUhñ©qNn~ž}å¬õwù]üºöLœö$4MÅ"˜€L+ ±¹¨ƒ§ÆÊIU‘N.†Ä C@†!@ÀCB´Â¤/›¢&±¥Vóç®zݰ‹~m¦»¯x÷¤)«ÎæÌc\úp½0Ûk= yÕ.œ¨—.¹…Ì0¦*„R`˜ˆ`4É)P€mi€"*fYJ“9€iP [ièd'E@A¬.Öv°Åh&²R ÓŒ.{t} s ›”7‘†³§Psë­‡>Š‚Z”A@± so™@# @: †€ ˜P€h6M‚$0Â3Èr2À…=ÃÑ@ge„s ëÃ=nßn`:ðh°@0F€¤À` ÀÀh6  ?ÿÄ& !10@AP"2#BÿÚö~I["!ÅY?ŽÏã?ˆ¢ÑCçc{ݸ|6(Ö‰ºÃ‘oÉÖd¨²H­¶Y ú›óZ$ï*GxN›ïÔ¯qtˆ‰e”‘x¢Žp•ã¼¶7³ë™8CN×àrÂ\yÖIJ±xŒˆÉ Ã^´—¬Ëü%‰>~ã”>6QÑVU '‰3–tÊ:#ñ¹‚^_¯RK.%n‹"ؼ¯ uø\•~úót›Är¸Ä¸;:9Db\Œ$=F”O·‹Ã-ȇÇBYûñ}z‰f[þ9½IÞϯ7ÓBðK¯ÕyX“ÄU‹câ ê7F£RD~(É8ÍOüÉŸ÷/ãP^y>=TIaò«t{ƒ÷fÿYå •‘YtK”%ÍéÙª:iëÉIT•Àº?´ßÇñi™«Çß«x’äyyEé!+WíµËUû“¤Ý‘[ûŠçM6´VKû þiI|‚Ž“\ËUóI2­O‰CâlPKÊÝGÑ/õë!«q+t¨Ý ø*οYbr·m,®Ð¿²páT£õ._I6&™IÉÏ‹9kGýó5˸>Äòò²…*¯{ñéFÝ‘¨»ý'·ätˆðjF³[-¢‹‚RiMi$–ˆÜÛi‘øùsÒKåläTˆ¡®pü´V*ý‹Ä³ØÐDzÈñìµf’«ôÞPÝ&í¬}GŸü»œÓÓòü“oäŸË&k¢O›•p!¦ÈÂHZ›ÅúLiŠ6}úOYV4,=ŸDzRô݉ã¡s‰:wc_­òJü|ÇüÉÛ¾u4@í˨Hþ¬qBŒÓNB½ÏÀË/d…,}ez‹¥ÈÕa¡­±t'b‘~ÃT[Cv¿=åáx:"Ç1öÝJ‰r¤Š,ŠRBm‹sðO¶%[fˆ±õ•ê¬J"öôã.SÖ9_ò«ô^u³±ánàLÔ)"p;M²ÛcðÒÝw!»ö“;MV$‡º ‰í—#+˜ùõrKÔ­Éûñu‹,²ÍTE¦Û%”脬^vY{ »õ«úìB¼´=©ÐŸ [«ÎùÎ¥î_¦ó.óšM/=c•¶ÈŒ½Ÿ$zñ<ýw²Þ+ݽŒkldXŸôžÉ–^5+$«óžÉvñ{lj·Xñ(’­Ÿ DB§¨ã¨Ä£a'­ô7qDEô6Î_ÕaŸ:ާkV:³pU=PLC­r}0¹I<¬óKs|gØÍ|£TÚï×mSá‰Ê8³e­<«uåéÖãK&T³›‚Ö4EžöË_ÿÄ'!1 AQaq0‘¡@±ÁðáÿÚ?!.¶'ø/‹Ä¬¸À-!lFäXM Ü®¨KÙIô~Ͳftdg¸¨ô]FòR£¡ü©Oø£«‡pœ1•‘Â6c?ûOcâ¡”QêÅz16ݱgfÒCÊjP¨­§ôX˜P†|:£_eˆ~7Á£¬ÂóGE¥(²û/•§¦PòÄ5£høÏ ~EE2là‚¡Í;õàʂ؎‡eEpnQ×;„iR ĶT! jŽî_»Â>ä»e–Åm?h§çú/$kЖpmq§bÖ4Öá14¬Í$šÏ’šCy,ô$h¼:¥X[r!®Ç|˜þÊ(pµbQ«-”ô9¡ÄP¶7pÑE1„Qx–èF¡¡âáß5}•ÅCEEàìqÜìÔ2ÈVçÜß .zŽøô^G-Ê\\6x¡{=¡äb7i³KéÿE'VPv¢ýa•ØËI;%•÷쩃°lÉdmi–2¼§¬ £úøu\gÈŽÿ2eಽ™!¢ñ)Ö‡¥û1ØÉî4¸³³¹<à²1ºxpOxãÑÖÌDCÑBÇÁqìXpÊ5/žáfÊࡸ\’”%HÀB¶.!+1cfÓkB!¦ ÓCX 6†øÝ±€wå+ᙲ—ðkò¿¡©äY0Ðݳ àõ)å”E PÞFè~MòukŠÄõÇ\v3¨³ ¹GFì«56T!C± ^3‘äëF‹è~…Ô^KYvQÑgðPÞNånâ‡ÁqB\7Á)`¸u GfâåB¼m‚;}#5™L?ɾêä Ã0­›Ð§v1½<„Šå êZ„à<ôdéàOhn’ø©Ô­ð¨¡{{VkŠŠèÄì^ÍG‚Ç Q¸^þ—©h”Æ›S—ËïPŽÆ!—“±ÏPás¢ŠülnRÙ£µBÄéù)(V¯Ð×´R’šr¬–ŸRÉ:Þ¢ªÊª¶ÿ¡%e+–VdhÿG®Ž¢°&6vQô±}l;{±Š†Æ{~-þ*Ž„‹Bö1ð6¡în"ðYbc>IGgfÄ8±³ªc÷(¼ˆNM–;´Æ½d}‚öuÁþËåß/Íð©Q³N R1ŽÄ­Šh´2RÀÞNÃdLj:.Ÿ‘´ÙÑéar•—s†™ŽÈ£`S¡È+­Ä†âè^#±ê‘–vv7HoR‰a§²«|7ø”uÂͨT2C,T´RÄ=5>ЙØôEˆb:‡–<9|~˜®^´Ê×±¼..ö:á²åŸèlY”>=pëðnW !yBÁ±÷8[}Ç gv3ü„¦”ÎBuP—¶U1ûCÁÔì-Ñ[À· úZdòЋÀqgè{/$aŒÜiˆL~F7”7ØÎ„ObOC›ÀñD'5Pù=ppBΔ„i±‰˜1p¶hwJ5ÙfŠ3? ȧØÏb…weÊžÍÓ#…±š0%ÐïÃÔ©|{át\%˜è¸ß=£ä>MŒ\º.Üé)¥4]ª4<‹zJX\yí{GZ:[#Å~Ä´ß]ݧEØàV ±¯Ä_¢^lln:÷ .‹¡è¡,•òmƒ¨e–Qk¦}‰IŽîPõæ(”ÏÒ¢ÕƒÐhÔÚõÎE¡!¬‹—ªe ¾-Z§Ùr… Îƒ"›ÏâÖŠô\ôQE~%Â…ð\*08EšÑw³+BÎþD›UДÖu²ÊJ¿èË#®ÁÜ ª8)èñº´Ê¬˜aÎÄv!Âñ‚Ë/‚lPpQlЄ“Óu´bþç¹9P…ÅñÙEEYCS݈»§+h½EùBØÄü²‹"6Q鈩ê^PýB⊆Y6·GEdF£©¨_ŠæÄò&{(fßCåp–#ì)_Ôî‘à{9!ƒ(Ãòey)=X¬³± {•Qôÿ Îñ‡’÷=&'c>Ѧ8Ùzò8…¸n(8ÐŽÍ2ÇìôG¾ KI5–¥)Øøõù,º2Á`[‹x¬Tö,¸BxÒ´!–^ËØýƈZôSKbÀ¶½,GZÇ;‹©õB(c³ ±Œ_…(õ:Cw¤/ø] JÄ£ÿdúw‚žE°}’Ÿ†/&iŒ|t‡´)é›ÍÂõz^¼ RÙk¬Œò43¢¡ë…ð5Oe[Ù£²°m:/ú,ê…=ÏΡ3½²¥‰ †˜ó3¯ s`Â2ã¡åhHº*…/C‘²†h[ KJ(Æøg£±PÍÃÊ…”'(±XhGsÔ¨\z4ä}Â*ÙAÕŒ”ôļëÉà¶¼˜OìZ/;£K¼Êe¬¢ËÐÛ…Ù¿ÒÐ-ÐðhBt7’çØÓ«2¶c7xf‰¿,B¹8õdz¸kÄ1¡”-æ,êàÞ¸\sKH· PÅ•ÃbY:ÒÚ>K¬+®„¬OCÀ³¢Ç¦QP¡qg\Vá¹h\+…~ó¡±ÃYô2ð’E `Vãÿ÷e×Ïú±ÿö3àÑ yÔ½‹-c\ý„YYƒ:‹„1Â0 !èLØŠŽ¸7‡žÏÎÂ6PÕB„5; P–Q°¿ zih)àÔ/q¸t»/Ùf„*Á±y!¼3yCÈ¡d·ر¾6`Ü8ë•pîj;,¿Â¦ò!hxø2]ŒKÈèZȆ:ªbo Ô9M°bÍ~ĽQ‰P¯Ø¶X"ýŠ]Aâòvw|{(1F± Pø)>.¦ø-Œ¨¡b˜¦!«FE¦Í†éPߨòbÌv,—à& ׸BoHlÿ²;‡e˜(¢¢¸Q Ç¾h£³®Š†EÊ¥q|4¢»gòYŠGqU#ñ É·Jf‰šÂ¥^ç(S&J–7póoŠõ—æ:D¥C|އÇk‡Pã¾]”/Ê‹ÀÖ5åvhêͱðy1Š˜ËóHÉ4ÇÂkÞÌž01ÍâáefR' sŽ…ÉBŠŽË¨8Q°\; Kè5˜.,l£2 {ç¬EÇèÚ±B:~ÆWâãpǘöwg²»¦jV¹…ä÷Ä1ÎÍVeCÄ­ÏFÂö¥…Ây1·‹¡x˜Ðñ‘êbÊ4¾)zžŠÀø±~'ˆ¹¾+ÉÙìx;2žÏÿÚ Š­ïVö$¤elñÓÚ±…„þ9aœ:úŽ´×êÚ‹dž8$1Æ0 ö™KLg‰1¯íÉ>$`ár»@ ¹Æš®mÚjIW’ Õ~7‡}Ÿé… þ+–CLÍ 3 &ŸæW&N)ò2fp‹NÈ1íù<4îØr@ü­9âüš²xé1´q&ªãÍß¿|'É¿BÚM‚KpiŽrÊIN‹ìMuî"®{½ÄaË aLЇeæl'›ýÒº’Šˆ‘ _[í ÿEöIáñŸ=’—& {¨ M”„.+OÒ¸ïÿ„,s‡( ° +É{ö([ ÌŸŒh=¬Œˆ~ƒz~BŒîr> b›Ã.ž­rÚp‘²€Ç©² \B»ãý33Âa Ž pl£‚(;"lWnnZ`D=ø P°Ü.Ópª¬à@$µÕL¿+)É7y[Ú²§=tÏD2ÔÌÂ^‚„Æ¿Kw]×;‚ʨz—6Å ¬ ¾ ºì*YÁ06]qÚæÈ0ÑDÚÚÃÉi÷ƒ/àïLÿ÷‹s߿Njäž˜–KÁ^m¸8* övP8ÌÛv)'ïMX» Ç£ÌÊ]7p’.Å2ß½«Þ‘êGâ(O…ÐRÞÐËYøý<1Èp„JTq›jPa+Û»«d$$Ïœ5®¥ú‡¨$9tåÛ&ÃÞ‡$Á,Ÿ €¿ 0¾‹È ˆ/Àó߃ßBˆ¡|ƒ|8ÿ¢p"ð"ñïŸþùçÁú €p ÇÈÿÄ!! 1A0@QqaÿÚ?Ë8Ï ÛÔw|¢,v†½ÈN¥z,X2Ùr5Ûp¨{•2¬¶Ûm°¥Øaöx.œ“bØîLಠ’=[)# ºó¼¾;e—VOaÃÒZŸmÚ&ÍãÛüãwÔb X3Ázá¿€ä0{ç oL'¡-ïÁzK6ó¶ò~9ÃÉ1ÁîPDð!¥×¹O²>Y±ÓBíuê àŽ5Ùk¹?:àdðúˆˆ>ÙåµYƒœo†ð>Ȩ̈È~_ûaìõ^ÂÍ{ƒ’"M ²Û¼gà[Ã߸g=yßÃû,üþpðòz²ÀÈã¾ú”ÿ²“oí†v@ÝñËù õ9êÐlŸ‚A·¦Ù4ºq…Ñ œ¼e¼{e³‚S©“ã›e׆y¼<æ:6ZìpKÜwö’d#ÜrC8î'„šBKäOàâ&’gû‡ŒêÇÈxÏÖŽž2OÞ2Ë?AÏD¯Ù]Û¥’ðçM>pd×ÜË[rß,‰ãרw‹$²x éíî ç|ÛŒÀ}’|rÜá¹nû³ÉžÍé,6BH7– êL‹Ö"8Á²¬) ÷6ÛøŽ>¹Äû²Yópq¼X[.Þ &ÿ|¶Þuòg€ÃŒsÜpj̹OSÛŸr]Ë, ]¶ÞÎ|$²-ãQ¡‘;²gõ ƒçc–&=Î"Ùœ]{^ÜQâ­ž_ÜSÁ‹Ó‚=²ï#ÔðÇð?ÿÄ#! 01@AQa¡qÁÿÚ?épÁ÷c*%[YX•¦"¤†mÍJ¹F£Þ ¾A€*•…õ 3W?'½,x¡*år8×£Ö #,T B*²àšÿ©TÖWíÅó×EafÉW%„XÃ~Ä®ïæ0Ũ˖!_âÿp>Ï슭…"Wµ)±(˜·‡Ž £­Â¸bè”ñpó Ë#*.,` ?p/o¿bšôË|õ6Jö§án55ùw)µÛço„ë¤Óˆ_ß˱¸îQ(„Oð†jµ(¨ò2”Ÿ²+D¾dT¶ )u×PƒPÃlOO‹•6¡éz/à0ŽÚEG ?"îâ¤WUØ©WÈà[PÁ¨„²x쬃x·É\L}ËDÅñ±(wÑ_€}aà?±ÜÑ©H?:E²°Ù×+X®…¬¹.ÙÓsÄ[æT.ìë¬V/¡a=@Š¥¡nEÁ¼zÅåÀ[PÔ©GÀ¨B +áXQD;¹W.úææË<Œp"* ¯xDyzÅäïó¬\6AŠÞà§QSН!|ØGÌŒgÖÞ|æû>8ì!F{Ã@Îy‚´5Ð1G£¹D T®XÇU §Äljó.g¼Dâõ*”·xR–+âµ2cpl¢ ñ¹vÜLßZ‚9X5øÅ±¨ŸïPo׉w10ë˜eŸ˜_ T®WvšƒF‡aµÜ+Wù‰Å¨$C ¾ æ)Ä­¥Ëaå/„¢ñ0hù¸òl€ ÅE²Íİ`q Qþ°[F{eåp2ëÅKãó¢ÏÁ‰aýKÍ7Pk=Åù;nʲ¡é¨àá!2ŽwİW2Â'œ\Óe±i#¤ãøU—RÂÏlQ­kĽˆà}O&jÀ¥³/OP[?sÃA &ß2rî¿Ñ ÒÚ ².0©0àZÙ2Û1cŠ52±î*¾b¾å›s7ãé0ò¡‚Qj”+u1ªß˜æ¯=sÓ5Ö 7Ëøš²óÊ]s>ãš^§–åË‚ãQÝî"µÄËq T¦Ù©Xb?¿›•‚]¨}Í:›x¨j^J‡]ê#ªŽ¯‚orœpCs#)¸Øç }åI)"…MÄ¢—êi„üË¿áÒãæ×Ì2­®¬Ô¶Ÿ)I‚ÒbÈQk·’4NÔƒWÄWy–ókÑ ª»‰ª~ãzµ×P§õ,pcŽ& 3Üó}Æëü 爹f Úø:¡ƒð¿™mñ(·úCÍfmŠê8Ä­;” hW1#U¬EÆ&¶õá ŸqiWŠu1_2±l «‚nœësC‰ªÔÀWsßj^™ó ¼ø•2}BžØ<>™ŠNá’«0Nqó‰\0h¤¿1ž nþ¦1Ë´ )]÷Æ&¾eâå–µ vÏDu«­C»Ä?Ò"ç˜n³08þ(3ÇríGówµ8;ƒC+ÔfÂU¨Êÿ’ÅJvšz”ø ó±Ìl-̰UÞ„À°•FÞ3†)ÊAV¡Áh…R£!ƒ,Ö±j°\³°y‚L:\>¥›`aÁÔJ¬…î ,$ãê$*]^ Ì+ÌM"5#Qq\ó8ñÄzwÜ¥É,Ö)€L2¸!¹ÇLÀÆáõ0·pÈß0Ëx›Üª_Ô©‡ˆÞÒ–“6S µx€½¡ÛY•MGJ†ŒF KÌEgù°Uâ yÐÜ!2;¦^|Á|ãš…hèJ\øú€;@äs¾Äºã¹ƒf/)fê*­‘‰nYyÎx‚(º†)böÏÔ³NtP†JÍ;÷4î=?Ìï.‡„nˆU]AшVq»&„€ J¨˜†pÊ¢s˜ãÜTUõ=ÿÉTWÔµæêX.q8ýJ˜Ú8òñ81Ø~b[ñ™W†·8½¾!½gø~Ó&±¦£oS–9©tÄu\3õ °1ĺŠVw7¹T`…̶Mª.H¤åÉ@â1GY”çv}JŸEÁ.Ñ”ØP[‹“ƒ™"+Üakù屬”ÎèòôËá<¥?Úš”À‘È¯ÃøŒÑȹ® Ø(Œ]²‰d̜耋h”-¶Ø¢ÇæmL=ƽÞz–Uý¬£[–×å,¢µ09©á¨ižaY¿‰]ýAI˜]·Ì'+@׸x1+5sÌ|ÆçQwÌJjõ8â7fýÇÉm‚G‚øÄªo©›–Ëá–|A§Ë-3¹i©è–‰¯CðÔè†Ûj`.ÿ–4ß}KD_˜ÉºËn’sâ¥Eà—tpjå¬G[{iQ:îZµÇ0t8¦b6qX©‘SSGrª¶ñÚndoÄ»“ÙÖ¸æpÿjñˆ(þ'q^&ë8‹X”òó Aí¨±·\À¢7Šûš÷3\Ã-º…qÌOhLãî%k+ä.-ok?‰ÅŒN1yˆVàšþ‹f¦Fí‰bÎ.ñ5­TLVá®ç©çˆs›Ѹ6xÜ/–…c˜ŠÞ‰_QÛBo3Z9–ÉX®ji…+M«™†õ-Å\í ¾˜US÷h"nsu„…q-\Tz¸6À¡ ›«.•º†Ë€üÔ¡k?ù'¦}DÀç™ijî6k9DÝæßÜÀïD­y—„Ä(¬Ñשjø×þK‘ßF!’2ÀyÇýœ»™k¾ ØÏ}ATYx⎿2@)U6ã'Rà^öLhsUî”a&·ŸpÆàaÅÂÆœy”^lˆZ½tJJškqĪ™–¼àeq‰VàÇRêƒÝêyœÎ;ƒ[ÄÊê„qvú—kæe’J1‰ÂK² {ˆ.¥`æ'±X%“$ãÌKÖˆ?ÃA*á 2j¢‹ƒ°¸'Z­Å¨Z9X‹‡p§ÅX™»Þ§—™«…–÷­J?Öáeø©¼n5Z¤ˆÐœ\І C¿sf8æ' Ÿ’µÌQþå#ÐÔÊmOÔ¡VD±‡ˆia¦¯rµ¹§©AÄ®õ+‡SnÈ9ÝK·#‰¬¥ð눿¹U·Ä0µmÁøŽFàÉ]Cx–;úþD²¥ãoÖùñ/â×;˜?1*©ÜÝ\¦ÿ¸.û–8ŽÜ9`·ü’´¸oÄî'0f8‹Ô¦óhœÑ+˜eÄ[mÜX÷ ±„£õL<ù˜q5 Ô~¶Ô3PF¾?äÂl.ÙR¶@ÖbF)žI| ÷PXªh9¤¬ÂÕŽ9׉f“ùË­iÞ¥D­mÝü@ÖBÕ†ÂæWŸc‚¥níñp.D>´Ë¡ã¹Kz•%ÌÌæ^šñ8Î*k|Ì—Z…%õR¯GÊëåÌ@…v׸¨J‚YUû…><À+·yÁÜr¢Uñƒ^.P›ˆ`Í™—Ìñ…Kp %îaÂ5q® F`ÛMq7ü( Øb›È×ê†Çfî-í¸á[”cŸÜ9Îo¹Tt ¬ê&»wRâ™T´ÜyuÌ­É`B`Uæ ›OY˜NAà`Žøñ2J×pÁ×2× èÜràĽUâh{5SñQЮ Ìj’Øê÷:šáÒNù‰ºÜ,µæfŠÔØÇÓ9*PW˜;ÉñØÔÅÔr¹ÍAJ^eã?q×Q½º‹Œ|’ÔQ=ÀÈœndL—|³s/ÄXw â~ž"ã¹Ãn#ÃPoZ–|Îkêë10 (*¦÷qzÔâb+q…iY¨•òãËÄ r×F&^Zí‹PÆËŽêÃòWî$23ý@x”½Å‰!˜qrÐ0±ó˜³ àºX˜iΦY[*å † y‰€}Ókó,§,¨—(iup3{îA㈗à–ÁŽÑ¢ nµC! íDðm”!òdŸ6†pÄ œBQWî!ʇ¸TP¸¸ ¯ˆËä1¶Šò–<Å\s©¥\LËÃæP˜pL]äeàüÅÓ»æ>ª:od:f F®êååˆdÜÅ·™®}M–áòB‚æ'08ƒQ&n¶žã¦& i‚³³P†…(h•u. G2Ø×X…A¼Tw—cme&G×Þñ ÝNÆ T7}²²Ô£ýÔ[³“©J÷â%8ÜGQ«¸vÌæÌÆÍýD¢³swĺ.=ÂÄÕ)+_)šrvBþ!y¿¹±pjisg y3ˆ5H•˜ó¸‹}õ/“ˆYê òÊm®&UxfF¬¦¡I\Ïül̲Êq8oÔ[1ÇsÄ\ u¹U¼K̰X‹Ã¨³#ÌÍe…W™}f¢Ä´â¡œ^àLÕ|e—Aý@Âw8 Ì(ŠbYQÏñsnˆL°‡Äu0F -WµVëQlT´’tÑ §=ìüÔµ©@N˜¦U*äܘP9j¯0*:ª%@Š9¼Ê[ì´¸˜ì?¤î/Ï2¶Ø¦©ÌÂùL¥ÊULªÆYZÝ[ lO$µ6ÛF}KÍ~üEBòËvû&ˆÌ¹zq˜ˆn¡Š;‰Ýãp•¿¸K¦QuPiIê]ª™0ÝCJÚrbnT>eÃɸle¬7s.Ã1¼ùa£qÁfq(ä1i‹…æqæ<Äp•nZIƱ̪fö0Ï|Kw<šâ*õ‡–÷-¹¿Tª \MÐa(Åq €<i(®2Í£5Ä»Lñ5zŠÏ2×=j_<»œTù•^âQ¸Š[DÏx©i†b/<Æ×ÔB­’p Ù*ª¸v®±¨ bÞe,~`…³8îb,W 0#c˜ AÚ©ÕL÷¯1Õfrj ¡ê_fUÄæåõõ6\ºÄ ’8RÆ37¨ÊÙ3ïøâX!¤ÁÅÍ».l¤«‡u6à™%±¹¶ÖÛ.ã"È÷ nÙKnR²QmŠ—À•¾eã4¹¨ÕVÞ’eªÔŠ"ݰv–e_RÆ™À¹|Ë*ÿ ¸åÞbæø—Á¹ncêp¹âúŠ×›‹jç¸ÿnftâ›÷.Œfe!ïk†HaÔÓØïpIvcP¡î[ZÏš^¦M3lê”&1 Äyîâs…n\ÄÂ.gz¹a–·2¹‹/2Íi›À;øŽWpé¸dÇ1ÁXÄj ¨ë¼Å/yî^e‹."J¦ͬ>¦ãµ°³9̬üÀ3î0*ýÅ‹RܰUPkÆ÷ül@%,KZ Pö̹5àŽˆ-æ,Š;"’šR7Phì*Οâ WVu0m©–RÅ´4SDKVƒ.˜!b΂5[®¸Žç®Quâ)fŠÛ¶7:qê<Ùï_¹‡F Ææ¼Y©jW}ưJñľkñÉ ÑópíîM&áàeâLKG3=B‡«ƒbóÁ<#+xKB¥ì‡Úa¸¹0S ¦æ±„ùŠš†_ê ¤)½D¼_Ä»‹01ŸîZ ýŽ01g3lÂŒ*Ãos7¢ñ) ¶Œ1†æ ‡ñ\Ù,¹Š».a5‹ŽãŽ'Ì«ˆ¥lD"Ï‚;”Emx€T# %ú9æVààg(P1Ä ^œEÁš‹X–5[™ä…—Y—`΄iˆ ø"^E=JhÀ¸%¢®6RÁ} ñ±‡†4Ë™CÅÄT˜´Sy¸g =@·kuu‰w˜¸Ä£7ê Kå9V±æU`üw`䆕7YƒeåÐ×ùŽÎæúÏpó/êi¨9‹«âRýîtË(ýBªh‡nvî%ç˜ ÛÜt×)¾âî6Si@ã—ü8˜5ü6ÂæE8|âöx̧ݽCScÁ§n¥©`J¨QÓ0¼ŒŒÞgaMÃñ„`u}„ã¸@o5,98…2Û†žà¡xÓÔ¶*`9Qο¸)pu-4fù•—˜ß/˜µz‹“I¨·¹µjr¸âÿQ»8‰ 7ÜÏA#pÓÃR‘Áƒ’önáø€8s˜ E_}Ëtsƒ¾ãÛ+588¸gà›Ã  ~c¿߸Sî%ÃcŸ˜W²Ë´âWÙ½Ã9Ô `…+2§ˆ»}ƶUËLg¸.¸×F A}@RÈ »îqt÷üT}Œ)x5ÔüzŠŒä 8ÕÍ`—¶U„¯q_é©jbñ¸y‰Tí›oñPÔ50ìŠÞ§ Ô«t¦—Q ~¢”ƒ+Ü¥îŽÐV{•Åæc˜GâZ±î*ˆ²ò¥M°ªÄ»!‚æïÄ¥ñ¬n;§©Y0ŸSoˆØ†î.E QÌ Vç!Ïp0¬1Ž¹Òæ¹…³(ëPSd6‡ežè†sø”ºÌîj™mÀ­Í†þáCÌVéš×ç?˜8§ÀÀÅ2K™•ûŽ» Ä"ö&òä¤Ý{%)ߦ8kÀ©@çö2ï‡PsQ}ª ÷…ÆÆüD)vú}JÙoɘ^Š\¤j÷œ ’âé»KÌÁ×5µûL“¬ÍŒ%œÝ±dtÇ@|Ë* 7,ÓæddÌÜuJ—Gˆ–ßâU…ÝÎFže2ÉÊ ÷(6¯îdƒœB“ŠÅs‰aº¨·Úÿªµˆf§*AmßÌj.w‰á9ÝEÌʅỨ·ˆ¨ßaˈeɨØèœª[¤DfR…T0À¹U¨ó¨œPpS³QºR`Î`'¬êP£®b3 FñPÛS1v:C‰@7}\4ÞfLZ ËæÔpšnRö”WQ5Ô[Tnൟ‰W·PÕ·».ªXèˆ,î5S¯QË."ºJ’Ð9—ës˜çL•~ª]_3#/5 °ì…‹ˆîˆ/$Æù'™µ™&O˜6ÏKãgpcÄÖ¹&Þ#gÔ¤iÌ¥Fªå“q¦g‰Çdد¨$ÂãnÝÁ·(φa»ùþéÌâb¯©F.-ÄÛ:ž·1幑•ɹÀó·0qPm®#œ@¢` Š€ *£,rÆTÞˆÓ‹ Uª:æTÐú`g¡Ä½*hM¤!-‚K¶­·ZÝõ,Ui•!}ŸsPµÛþ"™Óq‹l?3pcR½K+¶ÝƺØÀÍšZèÌ¡FÙv³à‰wX'圃ó2娷Oê9Ìݤ%¬ùýANrB.Èyˆô@ÖÎ3,nPјêØGp+ܼWq/W~%Ѭ3z†X%€Ñƒfh}D]=B`0ËU›9‰»ùD61ûT£-ÄÏœ¡G2Ü0ÎÍÊúšæâgj6•_2àð4¸€ ÆÑâ÷›Y#jñÌW·2±ªe›ˆ;H¹|uÌs6êáz51. –‹cY›¸4QSy6Ì)²Xz`WtÞž ¥3ÜàLoˆbZä#ùGÂV3]Ì$Ää²ïæ8:›gP+´󪉡ƒ\Ä}ÎC1Ñ÷›»˜\’ÌŽ¥#e·ƒR·ˆ'ÔÏ$£d\íB«,Û&ey—ó$¿ˆ4vËÔ ÌY¸̧{©´æˆœJéss:†ÆŠ¡¡Ñy‹wpš2C¶áp©HÍ'6Ì8ºÇ´à>N%ŒTÛÂÊ›[¿ÜÈ¢ÿïÌKWÄÆuÓ¸Û1âåê´æn:€,³/Qu»ñ2àx‹V¯q†¾ã¢s¨½³œÿÈYB0Ñs÷ƒ5£ÍL>áW$ìG>X Ô&ޢɹj?Û– —’ñ)㘷¨\Ùs) VÝj ±¨·N¢Ó­“MïúƒÂUÌqåÔ{Ô¾÷9ü Ä7ÌÍÌ8DÃÇPrlͺ›dfsÿËܵÜ&ÖŸÌäî[wˆGEjKkŠ—º–*ê~,Á®f¶«€^—,cIÑË+iuħÚ]QXæ4¤ÙA°'³,sÔP kj‚ÑCÙ,º»‚ Õi•)˜+p 4ª÷L§$aÖžj ò j %J5Ül•Rè±…ÙîPfÎ%þa. —’sÜëg‰¥j¡’˜SS)]uõp@;e¸b >g7pÄ|ÀÅÄyb7j³)U¦¦èË)'SœFï.(9þá3$CHÜ%±ÌzrÇpåêXm¹`ÄU2¥¹z¹\r”T~ »|OY¶ì ¾â’½ ·Bx"ᦠᅮPheè‚ÞÛéw/( $eY¯1¥Õ("j`.ÿƒ\˺K¸™ÃÛÜ0]·2ÁÏsv“Y¼Ô·:ŠÔC@ù•Yi‚—qC&üÄm¶Þáu\ÄŽYn`o0f¯qÓ¥Ýê©Ç1Ìka@ª%ψ1þ"Á‚ÞæŠ…îºœÙ)xú‚þa~£¦¡`’­é58ê4ݳ,œn j_ffNç8Ü­•p3Bðħþ(MÁnà²,¶Àdä³8%ïÄ^á¶&euâ4Ö–+ób­eÁ,6•Ø[2—Ñmq­w Û5“†TD-'3K•–,Ç÷Œœˆf“LY Uœ˜ˆ7Ãܵ‚pÏ'˜ƒmL J/¿Ü !m )ß1稂¡L¼ÊÉâ”Wê"õR‡ˆ-]žfÏK&CŠÝw8†µ¨5ùWŠ—ø‹rÊ‘Âwí+Y¦8|\Û:~"ψ%TÆ&KS5âkZ§Ð\ݤq4y†aMÊy& ¬ó L²ÊX…Ý“X²³ º”g!hSÌ¥¤È‡NŽÎæĽ|AÅë¨ãø‰YÇ2«ÅjT´>j>hO¶0ïs³ äÀJ”,2lKgeŸá¹ŽÆŸ<ÄE9Í~àÅ[F"ÖRkqkljƒÄB±Ìñ‰E•™wW¸œÞ¢:üAqŠˆ-]J0PÅs5-ùþ~%sâ ቇÔJFfˆe?HØMöþNopEÁ¸âlÍN=GQ‰}%cú™K½Á‘±Î§›gƒ¸Þ¥:…)̳ ˵HÍÉÙ5)‰ºÔy¸Åàuîi÷ Û}i¬‘¬XBï–P xFiÀì˜9‡5?´x•¨]ðMž{„vT4Kûš»ê#/¹`%¡en[ZÜñS1Q@r0ÐQâænu ó©š©\ê<ÊêR³ ÝÁÌZ3¸”\¬ß²øƒž¥‰‚ $S‡æoq2¼\²û‰¢»Žæ¡õL߸U>efö~¢ê9²QÄ®à稶¾%­G²V0ªÌÈøe`ó56¿pÁŽ&–î—5¾çT?aN^ å|Bî;`ÍÅ¢ÙN¾#5àC~Apïïˆ6V±YP!^eÊ EŒ˜j³Ì°3/¼þ¦ ´ÛÜs¥c¤L¦*8ê[2’‚TÕ¥ÄQ¼×ðñtÉO«ŒÄ£þNGÇÔXúA¥½ÕÁ¥iyÏÄ\’ÃW†%]K3–õ9){K*ª(·¢ãMµ+ÌÂÌ«H´ÓÍÁ¬KŽ\·¸îïŒÃeœOÉ,)gIJÝãpй¸ˆUÁŠ4fa“L÷0‹Fö\ õ1F¢©d{† ø†x*d¾aœò@¢eqÜäy•Nø¸uÔË.!’øº—‚§o‰ÆåQÄÇ%Æ?ÁN#«ëݲ-ù‡˜m³¬Ç᪩@µª™æ ò@ÐâXr–=ZÔ°¿ èë0è)gÔj-ZŸˆdeÓR€ÆÉÕn4g¸—gˆÝ_pUT0f¶qÉS"ÌL«µ¨Ç4OÀ°=ÁWÕÊj˜¶×‰\K ïJ–,6G.0Íëp qp.Çr±ø—*Ìj¢°Ô |\tvOST7ܦEõ¨g—/N§ÿÙcodequery-0.21.0/scintilla/doc/SciTEIco.png000066400000000000000000000227551310136352400204420ustar00rootroot00000000000000‰PNG  IHDR@@% æ‰ IDATh­z…[[éönÿ…;S,î –@‚& Á‚‚»kq÷R ¥Hi ¥@©Q÷vêî2•©»N è¾k'™ÎœþÎ9÷>¿>ëáI¿ìì½ÞµÞõ®õí½ç0l:j¬¿ŒþÍh¨1ÿi´ŒB¥“ÉTÛ‹#:)"Ž*‘{”·¾Jä¡wöKµ²W€I|sLÍ0v.¡4&Ÿ@$ÿó<ÿz!:óOOþæƒÍøÓ˜ì9ô à?xO¡Ð‰$ ÛJÄyºfˆÝC½uóÔÑeš¸Z©¿³O|hÆb'¯XWÿ4g¿4{W\“ç\Ì´rH‚hl{"‘òo1°þ†?ü0ü?:ã#Sh 6_’ëêŸW-õŠŒHoqt ŠÊlñÐdøGj¢ò%žÚèœv[©_bÉR‰_pR³Ü'IQã”§«pðˆv *uòͦqD™úC ÿ«¾E†'•!™N }P\¹:ªÀFìÙ¸t‰ÊɪË(_dbjÞ;~L®Œ Óy«>¢1REDý²ýR·ÏÀ´„’!‘k°GPnPJ·[P¡­\'UÈ4Å6.‘x…JeüwIø‹Es~ÈŸ°ŸÆ¤Ò™Í—è²Û9Ö’ªÅ¤A–ÖŽŽÞµ“ólÝO=øÄâÚ‘ÈÜ-Çï…Åæÿ<×4­xáê=W=¹ֲ…ëNÇ•S¶}MAûA¯ÐBï\˜Ú'SgYÙk¤ê"¹O ýÆ¿Oœÿ2üd2 ‡#Ø;û¥T,!P¬–m<ã©Ö›cˆ[Ž\Mɫ𠾿7_{>Ëxš[û×lÛsLìCcÚ n:Ù»v,Rh¼Úž=]ãì¥þæWuJ^û>mz'ÓRÊä9kR—¤¯8ë,0,ŽÁúß@$’ñDª·iÍ\lÇà–‚šE':¥üáûi"™eŽ!·w<};'ÐæÎ5‹M)}1‹øÇApxÚØþ«+§Nrù2€!–k–LÝ-jÛ ûñì|äêôÂî qå“l›‰©…Ø+= k­‡®’…ño1ü+€ÿÁ{  ‘D³qto= ŽjBcOÝ}a%pÃà[wþrâÌM:WNcÚ7·u#âá“â©.pjÏ\º}õî.OJ¦Û9ºèG·ŸÝuþ±ÄÕ®‰9ËRVѹwpß»ìÆ-lž+dO( NªÛÙ~>˜í?ÆäÚC*€3¾¡¥½[ß-ØøÂW߀'±aO¶òKZšÙó$4o“ïaf†!‘¨ÿ¦ ~ ‡Ç£²›\B„bŸ OgØVŽxŠmwßèïg\©‰9‘Bå@ȯ^{äœOå¸X`ˆ›75ƒ› dK3sÜäæý€aÍäá¤EÞÚbH Ì=dãñÇ»®~J.êr‹$ANòpW¿Ôª¡ÛÕ£Oá5fD8PRïÝ“ÒùD•°œ@å[`pTóÿ´z;™oÁü&椶þµ{Ïâ(v@•ó—nܹûÌÆÖ 8 yófå½g p‹'×·ôÃß½ÿâ ’ÿô³ÉÏsÍ„"õÔŽÃÓ²aÇ1*‡AÔ¶Š±Ãw÷ÞBú6ݲqTálfæxmJï‚©/%+ž…lDj,žffAÕÆ6ߢ³…¦f?,ƒ€|›™c®?Åæ;bñÔÛ/?fÖÀe0öó—ŸîÞ}JGgòã³:._{ §¥_UAÅv²¨­ÛŽÀʱׄ"Ÿð&7¿rëîãd×ñ›2—`EŠ"°Ú+´D£ËÞÿlÝ©™äòa+kW±4(³dsbî¤_tsÑÀ‹üå¯+1x&Gá ›c Žýgp…ƱkØaj†SÅ~A;‘'×ڕο}7óàÁK†µ* ºÕÏíéYî^¿~?0²š-ð‚óx/^ü‹«×í§2l ´ ‘±nÓ‘—_‘Ûï‘ð¤På°t§Ð…U]WŸDú÷|N.^ÏåÉŒzZçÚ˜Óÿ:£ç¹R¿Ø/´ÁE‘jÁÓþÉ¢äŠ=`h\ºÆ3,³uñØ—Y$T—EeXIÌW¯§¿L#ÁͦTp7XƒþǃC`ŽÎÚö®ñ™t±¦n±©–θ«R½5Y˧îþ>{åÅlvYŽ,tƨ£%U‰.l½¹äR¶üL¦¦Kk7MXm~ýန‘ŒÞ×IOÄÞ…æ )x<éߠи!© $ºðÀ­º•'´ýuc;_¾™¥°D&fx ï½û/î‚÷4®Ü[ß}ëÎSX9sæ ı•Ũ²¡š-Z ‹_¾|íèÚQ$–ú›˜X€gÚ¨œ³?]|¬?ô$³~§ƒs P²Î)´%­~oÛŠT®|Ô<ôXŸÔ^A¡ñ±¶kX[zßÇè¦_Îqp°…îÇ üÞº|žƒÒS³íÜS3 <Þ±û—ç/¾Àå¡,%©o¾Ï,è¡sDÊà KšœœaLÂê±^:H\ƒLaŸ»p§güyí@ ‘XuuÝg¶yrü!2uþ£:b”é\ 6ÏÃ]SŸÚ[Ñ{µ~b¦n /š¢°œÐ¬Î531ÅPYbUÂpzÿ÷ˆùfæhwûPý¬–Mðƒâ¦¾…C[暘ÁïïÜööí4H·wMP„·tt.· êáÙ“æXè O¹yë,¾÷ÉÎN?§3m3r%òÐ_Ž\†õŸgK+»ÚReh‹ïžP´b-2oxZ:*U$Åf6uŒNl¹'äí»iÑîö¯8ÖNiµ+LLÌûÇ÷5w@ø]<ŸºN8)sókWÎ5Åéñ „@9‘[Rk'äÙ»÷dn~cd\ ŽÀ‚¤1Y‚ÃG/¢\šA6í¾Ãµ£5ý“ dƒÅsn=¹ë2~Yu‰É_eŽ¡@8€™E¦ùêZJß Å£³­ë¿D&/ÉÍ-pà•eÇb[2þ1JÀ~Â?ºØ;,Ë C?tûSIýBE@µROì2jwZàépy¯Ð²ÇÏ@–={ÈÜê–µ>Á¥Àà¾Þa#°M[/º{ø½äYKt±u×} }ÆÀúdª°Å'¨²¤ûf^ë¾°¸ÂòîcÃÇå‡âÞ‹B§ G·Øˆ²¼ŽkÙektñ BÒºã[~Í]¤t½vn†ù€á4ØÄþ ìQ ;6ÚJüp ùÉ»ï*Œ` «¯Êù –Âg2Û-£|Coÿ8¬À¡OïRjrátàkttÒ³—h¦§¿æäVCizªbê\¿àtÇnpÕ.NL#.½¬o;¤ïf°!æS¬—¶¸gç§Å{ÎHÇF$¾h»«g$“'…3‡Í±Gß²¤ÎgYË‘˜æ;öÊ\™‡!pÿÏOsÿ¶@ܽíŽCò¹‡ëÛ{Í0Pžµ[Nƒ[GŽžÃSíÑ£,ÊÁÁùÃ4 û]€Ñ-Y–ÌUS‘”\ôúõG”ô¿T·Œé’[òÑ~üÓOsAÍVo¹~çrõ rðƧ]1ø _Q¯ºÄ¢íMKîtœkÙ<ݼ)ý ¬´ÀÒŒ ³²Qºùfi %w½Í@"ë¯rìÑ€’ißvdQqwíÙ ø™Ùùûï–n‚I†)NÕN|š L[Gå©Fk”âÂ[XÞGF&[Ù ­ÞMdHà Qú ð-èß?ëô…  0÷ؤܑ Ø¾”¼¶_n}8ùÙsc¦¼sGRöÊÔ­)Å•¾™d†Ž´v ÉéºQ;‰T®GÒ»øÅ,ˆ/ŠÉ®èºÙÐwË;²KäºGö¤÷ÌEQõ0ï|•u³îÔ{#Ã.?y³óðÿ•P£K]›½ÆN ÈçÎ5·wRO~SÐÖkȆ3_ýB+ Ù£Y24¡HS×÷+`(YƒÌ[…4N!YuûEòp†¥z"Ü#³5ÙãùÃØ+ôçÌÂr޵óÄùßA‚˜BŸïýúøƒ:q%Û! Vú–­‡ÎŸ¿…êI³­<‰$VcãbcÕîÞs”(!ó«É­š´ûUÕõúŒbø04ôA]üi.J$KUrÞhÁ‚߯»´ñ"²þ,2xhF—3@¦ =TI±éËS‹w´,:¦ªõ ¯ðOÌî—?Œä!•§¹!†|š™ú=Ô˜£wª½Ì @¦ÐË›Z¬|vÞ™Á™$KeçÒÕï$4kÅ‘¸1ea|€9åkbŠ7›ã­ Zí‹WŸU[TÜ’¼<¿aŽÄG $Öèæ+ð à~˜Kk 0„¾±£%óÏ«Â@s…Ù'¬¼×»¡cÈÒCHÛÔlÏøóÀȯXÙÊ(¦piC½%{àKÎ’½ .ÚçèǶ—6m¨^t<:gÜÆ) Äsì¹*ZÚ¬¡ï¼@8¶~nRV˜WÕ p#–Y+Ožº†Žþ÷>:(r¡°Ðê[µüÝ;”H@ûâö¢%¨'%PF-Ófm™W=øèÃìãYäúëÙ‰_Þ¦–í"2úíK[·œE+®tìœí;€,Úƒ´n™Ö—l#3E@ÑŸÑÂÅÓ˜BgE‚*8?»þXåêù#HÎJ$oÉêº:°ãuXÂ| Ãhâ9ÇRàX\?ß‚hyê#"V„ÃÙmÜ^E¦öÇyA•HLI¸.ÕH˜¸´4ì‰NYyÌ+¨ŸFÉ‚Ü{ðÌIæE¢Ù†ìõM\  )%¿ãÎgäú;äÜs¤cøiºé˜™Zszéú»~ML®“B[Ó4ù~þ6¤i R¼ò¾`0,©¥eà~ëÀý¦ÁG¹µ»²*§BâTºÆˆŠC¹Ã_æ!¥“ÓqÍ[í]|¡¯a±„9<[çÊÎSsâé—oC² J §ó¿½zõiÖ7aXPW¥q¤wž¡æo÷ž‹U^Ù¿XàÙ@$omÑÙÛ¿¢ 9åqÅÐíÈy 'f“*¦dEaËÀÞ«ïO>AßGFö?Ü~%:s±&²Jmv?¡CµB“^7ñyþ¤fR=‰T},h=h+ &R,¡páêÆ¡Ƕõ ¯ÜѰwzý#äÁ—™ª%[pxÒÏ¡ºc…™î—ãÇÛúHdËÖ¯cù°hù®ç†#œÂ! £¤û̬ÁÑ»ÏgÜ3À{6Ï~ù¡7î¡óvï?‡¶6˜‘ž}â ¤p1'߸ˆ¢¥1yÐ(ìüÖz¼÷²ý²í™Ùg£ËY\k]rŶã7kWÜN-J¯êÉèºU1Ž”#%ëèúÓ|‰ÎÔœðGCÀÂ4M ³RõðÔÎÃOg6ßAv’9°ÝlÝ_/^¶âüÅ˾Ipœ“ÜçÍWäæ“D2“D·‰ï¼O³tžØ|Àèhxd:ÔAtõDhF7¨'ÛRt÷å4ô0èÛÞò)ñJZ)ReýdlÄqñó î½³é 2~Yu)é=YÞ=Þ4ùvÙÔ Ä*ÓÚfs‡ÜBëó_—M ¥ȼuÓ óO´OäÏßß8p±{ò·”¶;Ëw¾á •P'íûÆn¹«ã ˆÉCÛOap´¤âÐÈ¢ÕÆnpì É*ªóÖ7¦×ï… Ø9* 9@îܘܩmyfNà Š¤íHXxÿهϾ"f‘/Om-ÂJמ½ÚÅ/”'<­käÄÌÈidð²ú’X1Žp?›wϰåðªÊoÝÐ2þtü2²ð R½ ©Ý…´BV\ùº`Ó‹´Ê±Ð¬åÚ”s ¤"¯i³[`ë4‹#,Ùp”Dµ²•ø>ù83¼éˆlßv½@'ç{O7œ»“ArôLØvòÍÇÏèäyå·g®êXÈ,žé’ÞóÖÁ5Jǹ·¿ ×? SgŸ8º††ç¬Lìcñ\€ëPña¹cß/œº?pYr é>Œdvœð Î(ªÙ~%-¯aÝÞg cê˜WßX±gXT͆®Ó¿o{\ýŒ<šEVŸ¸¤ ËÄà(@ؘ Uanjj1ÇNªn]uP¦ˆ`p¿ò¯ù"¯ô¥w.\¹Î{õ‚@*š{7˜Á†€!Ž(:C¤ á$îšì3·Ÿ}0tâw_‘‹¿>ŒLª0ôœÒ7º²erq߸ÄÙ—Bg×·÷\zöáÞ rã3rürðñǧÎkÚþª²ûlÃЭüÎãUKÎWôŸk[óËö·{ö½l½Q¿îSݺٲ•Ÿs»_q¸¼9Þ!EfXzÿ†;à=hVe˲˦ÊF­©pÕÜÆí0×€€n8úVê_¨¢¡vW 6ñÍÛŸ_f’2‹4i;Eê…:Ç1­ñWKU}çÀƒ3/¾"Ïf‘íïG&¶wÔµËä^?îd1˜VáÙw_ûåî§‘ÉëÈÄ dý5dÁØe‰2Ý+›ZÀa33ÎÕ0í™[$žaž¡µIõ'“[n±Ù–sì%~VvÞ‰y½Z}™½s_(9uãËèÖ‹|g-t»˜cM}{ßÏ ¯gŸˆb€ä“4"óÍ ¦÷ÿ>‹À,ñòóìÈ®GÀ S\HÆ”Ìw\ÒÖQ=ºóöÑ{o/¾AξA.½GÖí¾Eeðá L¶M×’õ»ß)©^Ÿ˜G¦ \CV_zøë’CH÷^¤sÛ×´Æ#v.‘<ÝC4öÔLŒf``ObCך;|om™È«sè*ëc†cU7Âìãî GÛèOQ,“ÛO<~‹?ÿ€ÅwìgX« Îº%¥ ƒ·_N?ü¹ùj:%·ÙN£ËÞ†™š¾Ûö5ßÎexÇí÷7‘Í‘ž·‡F&Fdä6XYÙþdÐPðŒÃµsóŠ(\p`Í/ŸÖ­­þR;ò9¯ë·ÒE{ô9¡™K]‚ ˜lk£Ä%­“ÅQëj¡œçÜtóIŲ}8\Û=‡ß®=‹Á…úÓ²%ÏáÔuäÖdÕºcA±4gˆ±.m%ç‘qþÎ׋w‘3·U;ߊ\ãૈ´!¯ bÃÐ\Õ2–S9°r÷Ç‘ýÈÐ>d`÷LlÞJ•%!’¨:.¯j8|æÙØÔµŽ¡ƒ e½‘E;³;fu>Éh:ÿ·‚ž‡eýW—î›uøD§48ºG“È,pŒNg®³"†eåäÞRÓ¶›h“à’Ò÷ŽKªDü‚¥»ÀJÝ𓳗f/\E¶MN@M÷ŒGæx®‰®aíÌÖÏžEöAš»ö‰d!õûÌ-H$ «¸f”ÍEŸ*tömX±ùù¢‰éöuÓm«?•uß9~áqMëÚŠÊ:G©/‘Ä0Üâý6H›˜a™ÄŒHlêŸ|]»ôqe߃ÒÅwãŠ6 BÀ]@½ÂÎI¥ò “yêù¶®V7…G ò…2½—~IHîmþþܽ!yû‚s÷çîVDtÑ0˜ßÐ2]¤ôK™¿ì¦–$s{Nn¹·fû;'M5ƒ®`Ï1<+»mï÷{ö½‡AóîlC6´‰ƒ?¥öàØý5›žŽL>éYy-«¨¯¸v©O(OËëºKež£k÷{ø¤„&u緞˟1»é|zýÙšî‹ß_¿ûû®Ó/†¦ž®šzÔØ}`í¾¯‹ÇÞ÷Œ¿ ÏHÊë±w‰á‹µòÀ¯˜AuêFMÆ6±{,Íp£w‹Å LŽ:¦"ZZ7ª+23̱º¨‚‰÷šæo„Þ,÷J³ò¨À×uìžÚöj˶§‹Vþ ʃ%ñƒ"jÑ>í¦ kIËY¸|Õ;áëÝC× +W{z…–U÷Ân8\—¶~|7ŸogNKÏ­i¯ë:ž\±?±âp\éÁè¢]~1½Vv¾æ²qr¦2„2pWŸÔÊ®U+^øiâ}5ñnŠ Ž }“Êv‚ ½ñ)2 vÆþáå$¦”/”·->È·–ÁÝÒòÁµëoÅÆ×ð%‘ÖÁÛ!2Eò²ñ‡ã“÷Æ&”W­$‘Ù!Éë@yœ<âÝjX–Ò¶ËM»Û{·.>Ú;|Î' M©Šhh^ljŠ¡±DåÕKœåžL–„ØR¨ÐÄ,ÔçOér·„goÒfLøD/±sI P­ ;ào7F D†Hìbëà)qÑè’-Ðw Ï³ç°Ø\#*ÝR£«ó†ëKŠÊW/áP‘>¿óðÊÑÛÁÚBQÜMØ(üŒæK I-Ãkž ­¼^V1–ÔÃà{qx2ߨ.‰“R²IhçÑ5xª®mgeË⦋–brE¹ùµõ ­pBG•UØ»l¢¾ëÈ‘S÷Ví¸PP;”2˜<ªI\©Ž_é¿Ò3´ÍFM¤ €ÁЛ\Ö6r<‰ËsÐ`°”?žÆ£,Q l.dÄÓ/'t×Kj7EÅ”Ÿ9¸%÷<]¾úADáY–ë|XѦ YJ35!…=ýWúú/t-9–¶ š‹6-MDžÀðPÅç÷å–ŽVå–¯Ï.]ëéç¾bx󊡱èØ4*KlÐTס¿’hB;y¬gH“wTŸ*j‰2²O¡ëQêzdêj¡s,“ïIbØy Ö¹wüçFFãâ ”ÐØ& ŽÌwŒ¬oÝ"w ÎÀYzaéªûK'>ÆÏjŽc38NÁEçÍ0uHÑÂþkí O´.Øï©ˆp÷Ÿg)T¹ûeY`É¡ñ ¿x¹GXz^wNÉhjþ@Rî >µG,u’y“¨‚˜”ÊÚÆžÔÒ•…UK" ¼Rh,!lh‰­<^®©s×¶»i;Á\C:\C£¦]$Õ4ä^ aß³ù€%T3ÇÊQ­…»…2¨²º~­@ˆ>öa µ%ÛÛ–ß\}ðSzë6غUÛû/± Mªí¼Vß¼¯¦nstlOxƒ+ñ ¯‘xÄ„è«üB²œäZ6K×›º0*y¡.ia\Îj}Z›Zg'örtÑø‡$FÖ®^2þ¦¬cBn™n ³ð‡%P e1ʰy@£WÔ‰#‹/§~{7ÇøÀ=æ!öwàk™»ÎÑ9O+}b‹K—[ñÄ€¦Mü@ï¦ßv]›.i[eÁ{'Ž[¹TÀ•Ó7¥ï+)Ÿ(.)*[ß S$xúgh¢x¶nÎÞ¹*M‚Ò7ÊÓ;Á/¤HÓ¬oÒè꽃K%nÑö’@,žDŠƒÂø…¦÷úú¸xh UŒ)ôlY –ÈÁà0?£Ô7 }À±ú‘â˜ce-3Çs¼}cò º-y )4ï€{`Eçøõ=W¿,Z¹…Æ´r(Ѫp îÖLÏêÏÈêKÏìöË<£å¾i^A¹6"•wH¦Ò?N©NÇÝ;ÎÝ;ÙG[î\¦ *õÑVÇ築Jírt‹ý€”B¥Ñ9þÁÉÉ)y,¶UUÃ#q[‘O¤£ÏùlÚŒöj–ßÃÀ¨eT:ÏÚQròzyÖÎ Ò>‰»©%S“§?L¾Á³s¶’fJÃ7Ñù$†£R·$¥pcBrÈ®>¶Î’´ˆo§’)â\¼bý#jøö>rï´ôÂî²ÖÍiÅcþºwu¾‹ožÜ'ß'¬ÖK[ϳórDü£¨IDATj¶ÀR,0„°ðDM ^hƒÞ讃Dý“úßÐÿ`õ}*à<ª.°z ¤1J/]JZ«@(‡“°„þ¡glnÛÒí]÷ ÉÅ8|—y’ å¿F{y$d/:ia¸®(4Ãarp†O@–•­™aï,HNms–A= |Å3äÚôÚ]óÆ—í´S–“™ŽT¦•íh'‹¶wI”{èÕéš t¿€ouRxR‡Pä“ÙK"3Ü|’õÙ«1Hœ>©¾yðŽ•µ#̧l¾»À1Ô7´ÜQ™#ò˸æ°ô2‡‚¾!gÿI}pï› Á® Œm´¿#1` ¡ØOwàñ"õJ¯XÐÎ=’ÌUëÚb2‡ãò¶øD.÷¨ MhµEòlUžÚ&¾8È3 Ì'0ÄÀÃ+Æ]©—ºE¤Vî&’¹NŠâ…w$r5z#ÄRøèxÖRã¬/rôð Î$Rù úжpžH¡þÉ”<è_ðÁäÒ™œ9K>‡Ëÿ Ã_`xF IéŸc+² ;PiV~ê¤À :S©06Hc”&|~PX½Â+ÙEÓ( »'i¶Þámx–6¹ÇÉ-ÆÃ'ÍÙ-ÌÙ-\æ.uæòeJ¿¸à„EÆÇãî~º¨tãÙ¸|‰µÈZá\< ÞüLCpè†À?3` eq¿`£ö½ë¨÷,ƒAÊ0X¼ƒ4ÈÙ3–d©¦ó<TšÀt;{O®m€$ÌÜݪZ \=z…—ÞIªv÷K ˆë3Ç1‚’V€VyGÌŸDîénÕvbo©k8ìD2­ƒ4 ƒi)ar‚Ã2Å(&è2“Åö‚R£Ì1¸ Pù7b`phßa˜ÃùÞõñÞh€}¥Î—{DiÖ¶Šaé¢ô‰S†Ä/Ôeûè…§ôE¥u©CŠå.AnNÞ6Òhž4\Éi¹ û‘,X`ã1–ºØ;ª¸Ö.PR8­4ÂVië-ÄÐy ú‚‘L¡o  à É@¡ÿä=jl0K Zf/ غaˆVT®›§&_¡ÒËä2•c$€aÇe²"G•£T -yN0±Â"l±€îèà-Q2 ïî©vvÇàhÀx<ÙŠÆC€uô¥?ô½&uúãŠߨhh#û;éÿéý÷ƒ†Aš Í©V\¾”‰O¶æ ¤Î®Áb¥@¤qñ¯ö «°²Q@…¾cmëaëàe'R ”2÷hCˆ#Ð=Õi$H®ŒrtH Ù®5¸´!¡g¢¼7b 2¾a0®Pÿ†ŠÊèÿè½å?¼ÿÓ ]‚Weó¤@qãDÉäØÉÜ"DN¾,®=ÌdÞ ”Ú&:Û}Ë+Ø{Cá |€ôÀ~¾½/ÇÚƒ/ 1Åh,úª%Ùèú·À0>£þh½Ôï!PÍù^=ÿ§ÀÿÝ ;8`@6pD&™Æ…ý`0µ 2x +k©½“¿ƒƒmÇxJ¼r¹B•aÔ¡“éö.~XDå“8"ª¼'‘iúJù¦Ñc&íû´Ð¿a˜óï9ÿê=÷›±þf Ã~ª‡'á‰TžŒ#Yâ(6?ýl‚'²ù\kWžüƒ)ƒ½Â¢†ÁcñD‰ò·£F ãç?¾ý'†oÿ5ìþ‹ØÿÀõoÞ£ÆA›"Óø <›lxŸD¦%px"è/L5èÃ,@¢õC¢‚gúý÷ÏßâMF10þÃ0~K6¬ÿáOH¬ÿ }Š%³µOIEND®B`‚codequery-0.21.0/scintilla/doc/SciWord.jpg000066400000000000000000000140241310136352400203740ustar00rootroot00000000000000ÿØÿàJFIFGGÿþCreated with The GIMPÿÛC      ÿÛC  ÿÂN"ÿÄÿÄÿÚ øb\^çß ƒf"µNfÚépbZ”„×Gäõ¹8¥&§…Š}LíqWë£|b¹#T.3hxµx˜äUÕ¦-Å] ЪX½¾¦¼k¶¥ã +ož­Ñ±ô=ÃP1+…k2ózNÿH|ƒÓç»é>Ûùʵ!¢õŽo&,Ðn Õå,^U±ZIoßÚ­£ä¯u×E6¨ê£êVå®U j¹Àô!Wg]¶"n)lÚlÅM¦ •ñÇÄÇîl‡ôV!ÑA{oê|~Èû7 霗4ì„ ÍÀ¨ôÕ ]bø/*)6¦9¦¹$<%{hT ô3-Á‹à ¢ê\’³¬4:—¼Ôôtѳf½£˜Õz¥Î3›ÒyÉÕ£³ÊZ“ʤä»-Ȇê”S:ÄULؽp,ïxM"ÞyR¾Þq¡ÌÞŽ¬ _zö®;r7jZ/¦Ë-muíš\‚Ì„-Ó¦J‡°Â¿©aÏÁ®þDÅ—ÐT{Œ›,øHôt5˜ðO™ÈMwÝUÎkme͈ŒÆµKÿÄ-!"#34 %12B$5DÿÚû0¦Àé… ! ¡‹»WÜU~(ÙÂÉ……µm[VÕÌÈ*:ùCQtŽŠ¾Ì­^ÿ©q¢½{™NOTëûË{@e:ÜL¢Z²ûÎRxÑzü™ •¯Õ'ÎAå2Ùì¡:ïsâ ä¨ùžI„Ü)Ñ”Ûòêku2ó»«"d·+k#í2[••‘ö3!õz]­2rÍô•E2Ãü€EmA{nc„O;O+O)œÌòæhmiä3È`¹„7´,LÿÄ*!13AQaqÑ"2‘ÁÿÚ?'Q®Q;ÁŒòÜ€‘2Á:•Ù¸¦r°Ná;„ ¿ëÚYa«W“¹¿‹ýG} D½î b1ßdM\¾ó»xQ¹_¨a°°Øìxæ_]‰f«_-<k¿ù1Žé¶a×gêWc°ÒÎW¯–Y[ò娆ê,P·¯·Ö |{¾CùûL/{-ou¹%¹ó;ŸÛdØíîDøW‹Ûõ=NO0ܦ~Ó+’ø3-ì[ô­¯‘lÄùþ¿™‡ò­ý2‘fÅGS»¼Ý¿Ä«Ã‘ù—oQñCù©¥ WìvóöõØÝžÏ= ßùŽ3R»ßÏO‡¯]¤Ÿ´ë™«Îí‰u^¡…ˆÂP5M€ÌeãU€ýf2ñ®À~¢c¦ñÚ虈(¸3°•ïcù„nV TCX3¡gHBp¬N•‚¥buˆiS @ŸÿÄ6 !1"Aqr2Qa R‘Á#3@Bbc¡±0P‚ÿÚ?öòÙ_0´Öˆš*Ÿ»è´ZmËTb{}Bˆ5µ?1@®p£òˆ`Yý×wo—úDoO”mÑg$¬îb¹Å²³àv‹]EVñr{ˆLùðj+Õb¢t‘µ±ÛÊ«—Årö*˜ tÓ=u3FÛ®¹;¢ÃþmQPžg]º{LΛÙ8е Øh,w›P[É¥ hÕ}NYÿ3éXyð­ÑÒ4W/ÙLp“ ðïp-δÈp© ~³ßGˆÝ¨gÈCMKA»Ñ~çmk£¼ W ²3¸*dxòˆ^X4fÍìD y×G+[¼„{ T*;{/¡…+]J—W%/â}j†kF“yËcÇ¢ˆÐ‹FÇ nŒš‚5jûYü«]ã±E‘„T9T"‡„æ‹¡@: ·Ã#U7Ò? ^œ3¦ªšgþ-V©Ù­ÚÿÿÄ&!1AQaq‘¡±ÁÑð ñÿÚ?!7#‰Ô#ù%.Q€×ˆæOì -È5ÚâŠ`DD"Yј‰//-`\tŸS9Ì¡k#U¯¨ËÒ'_@ˆÝ.V®è¿½%‘I]¥d­bVÎmã ¶Þ[Ž%£&·>Ò~ÏÆ'ǃ¿ò˜’œÒ‰][áÚ:巈Ś Ö¯â w´ÿ&.Ó¾Vw3yÇ}»Œñ€{ )L*¶««k8³.󓳘¶TÊ9Â\¸ÎË0¨ÁSWáäu¬êmÔá½E!LÖ×ÅžÓî ùÓô~1>)ŸŸùKsºŒÅÙî½Á™½Ø²&@.Þ%Nm*POE'؈ý—'¥Öû…æñÇù% žÐ§Úæu¦e.³g\­_±ýD(×óMÓH5wÄ›bRº¿‘HSçíüf|ûI÷QüÉú¿ýL}ÿ‘jÊàmòñ’œô?ˆ‡¶È¼ùw› ´›ý ‡ƒ ¤Ìjˆv ÐÆ£áï3¥ÄBZOO¼~l§B1¯CòOµÖ ý›‚ö ¯—ö#ZµH Ïne–ÚÓ™>'ߘ9Å…èGuªþ|ºJÅ÷ßê#º aˆÐ8ìÄ[®›wå ›Ü¢Ízkq X³êJqfOR!šõÏïõ(nj×¹­Ü˸h‹йˆ\Á¸´cšâ²¢¢¹ü}yÌEqœÏÿÄ%!1AQaq¡±‘ÁÑðñÿÚ?!˜î°VsXf~„nY(f#xœM¨_P…Á?‰ŠÀZºNƒÞ% ¬[kgNæ¾dÀ†4 ¤itj°V>δŒã„ýKÞx7„ÔÓks(*þQÜì|1Xíðe.R…Šq H+V¦6®¤G\g´8L6¿‡Ã;WˆÇðÒЙn«×ê ÷v[Ç]¥Ð^fÒ?E8?¾"ã4C&°B5¯•ßÛÞ¼×M;ÂsP ¾H hQÜ‚£¬ÏvQ¡ŠEÓõˬ[ƒžºKqHdz/Å4̵}1Û¼±¸º›ð˜fëÌ3˜æêlª™. ;B# eÔÓ—9s`n 8ŸÿÄ'!1AQaq‘¡±ÁÑðáñ ÿÚ?â#ˆÎ¢3LÒ3¼Aû*± ¨§$ %6ê1¡£èî~/Ô¦ÑT÷~‚<èÆØ0%òõìBRª´B‰DÞ°†¶Äh‹‹î*&¥ËÝÄ¥«‹c<“Oü;K ì@òúäxŽ&3dWi­ÇÄAˆòJ¬€pû<0ñ¢õæÄ´ƒ®&–â÷|GTfÒ—ÊvïÓ»Sž”´|ÅhÌáwŒ6·Âæp ?Xjiâršï0¿XúËp¥àŠþ r€±ÜHj‘è1-ŸáЧXVl\Xlu_¯Ä ÕsiÒÁO–`ÓeµWC¾ÙÑôDˆPbT¶Y2– >L‰ñè¬ÐBX¶æ\ÑšÅMS½A«DŠ7ƒB 0^¢¡`8V_ @ ©h#æ_ z©<ËÂüA*ôƒ²‰O¬ÍÎ0QÒZxÛ‰#âø7í•ñ” fD0|`øˆÑ¸(÷ag [^WŦa€µDr]°ÍvÍ-–ÌRvµž`ÔàHÕ±¹†ñIG©¢d¨ œ•r¸Ã|ÅJªdµº*,*`ß‹,üC~ËâAÙ¼$z‡«;ù4x[‰¶¥Z‡’âijqJèœ>ag>ùƒ/Ù-³ÈY Ç”é»Â>KÃe/QÅ´‹AѪ cÓ‘þ!lØŒvÌ@{ 6[átÍ묻Ȫ£äbqô»*P¬gæÁ+°¾§èa—j¨wm¸`j™=Ø&]P£Þ<Ô2— ¡mï8;yfØ”@ ×VØ`U‚²QGæ0ŠËy,ä» ÝÜ®¡M¶•ïyaE`ßk·¬´¸„×5öJ ~uñ[æ=X¹)›n£¡•\ 4x_Dº—ïE–ŸD敎°IO¡z£kú™;²†ŽLËîþaŸØÄ63A§~ £ý¯8ÜM«‚Ù^S?pRuþÚî±òÂúdßyb‰Då²_œJxðë6†œ÷x‡‘ž)z´¶V²öû~%ÓÛ}Ç?|0½„Ý©†é2VüçâP;䣨ÐÈêåõ~åÆ+ÏÐþ“y–|RÜ¡.1¯®8‚ §²ûE³ó”c3üÐDp'†;¬L0¯—’ÍŸÓ÷–i¯ÔÌ'•§ö©Þω¨ PâÕr¶ÓWÒ¯ñYOP†–B]®®È¼þôå†-f~¬Q6öÜS©â:à!¥´mXoô`tÕý=%Àe=¡uñu’]—€ò|“&Ϻ.áy¹ejáíîL¾‡˜.ÁoÜLäëêTNVÝðA´Âe†(íWíˆý¤z™»%Z«ìv¡PãbuüðÙo½Ù– ’dÅÿ’×ìÆÚëõéq«}Švºöõœ®!ôo“G é§ÔŸÝDlæ&Y´kÑîk~® ²qù²°[{M#ÙîWMˆŠ,üȈ'ΠZG¿ô.<.yÄ~â)°˜Ì°“Yˆ«øéJ`4_YiÀËÌ0ðA7æb „È!ƒ­èš¨li¸Í™çEà3‡I0(ª¦/eÈóRˆÝg.óWÌÐØëå•=• ö›†œA”~â!š¹ˆF²´ Ëô6‡© u±•ò¯Ã÷c•ò½Ã„Êãl§‘s˜„TòŠV[·ÌK8„‹T1Ÿ¹Ê˜øQÖˆ¡²Ásæ^Œ|ÂÍ~Ýâ!Ê[Gí[ÓÞ%¶žb– uwe‘í/£ Ñûǯ†ZxÓÀyû‹Yߘ;oq£pN~áó¶!…|5 nUnß1bÍD,fs¥¾à«kî\ZËsj[oÌïó-o˜œ_Ygi3Lj…ù¨´bNçqcýË?¤­q²=õj+Ë+pÀ9ˆ‹çU¶âÜÿÙcodequery-0.21.0/scintilla/doc/ScintillaDoc.html000066400000000000000000016076711310136352400215770ustar00rootroot00000000000000 Scintilla Documentation
Scintilla icon Scintilla

Scintilla Documentation

Last edited 7 December 2016 NH

There is an overview of the internal design of Scintilla.
Some notes on using Scintilla.
How to use the Scintilla Edit Control on Windows.
A simple sample using Scintilla from C++ on Windows.
A simple sample using Scintilla from Visual Basic.
Bait is a tiny sample using Scintilla on GTK+.
A detailed description of how to write a lexer, including a discussion of folding.
How to implement a lexer in the container.
How to implement folding.
Beginner's Guide to lexing and folding.
The coding style used in Scintilla and SciTE is worth following if you want to contribute code to Scintilla but is not compulsory.

Introduction

The Windows version of Scintilla is a Windows Control. As such, its primary programming interface is through Windows messages. Early versions of Scintilla emulated much of the API defined by the standard Windows Edit and RichEdit controls but those APIs are now deprecated in favour of Scintilla's own, more consistent API. In addition to messages performing the actions of a normal Edit control, Scintilla allows control of syntax styling, folding, markers, autocompletion and call tips.

The GTK+ version also uses messages in a similar way to the Windows version. This is different to normal GTK+ practice but made it easier to implement rapidly.

Scintilla also builds with Cocoa on OS X and with Qt, and follows the conventions of those platforms.

Scintilla does not properly support right-to-left languages like Arabic and Hebrew. While text in these languages may appear correct, it is not possible to interact with this text as is normal with other editing components.

This documentation describes the individual messages and notifications used by Scintilla. It does not describe how to link them together to form a useful editor. For now, the best way to work out how to develop using Scintilla is to see how SciTE uses it. SciTE exercises most of Scintilla's facilities.

In the descriptions that follow, the messages are described as function calls with zero, one or two arguments. These two arguments are the standard wParam and lParam familiar to Windows programmers. These parameters are integers that are large enough to hold pointers, and the return value is also an integer large enough to contain a pointer. Although the commands only use the arguments described, because all messages have two arguments whether Scintilla uses them or not, it is strongly recommended that any unused arguments are set to 0. This allows future enhancement of messages without the risk of breaking existing code. Common argument types are:

bool Arguments expect the values 0 for false and 1 for true.
int Arguments are 32-bit or 64-bit signed integers depending on the platform. Equivalent to intptr_t.
const char * Arguments point at text that is being passed to Scintilla but not modified. The text may be zero terminated or another argument may specify the character count, the description will make this clear.
char * Arguments point at text buffers that Scintilla will fill with text. In some cases, another argument will tell Scintilla the buffer size. In others, you must make sure that the buffer is big enough to hold the requested text. If a NULL pointer (0) is passed then, for SCI_* calls, the length that should be allocated, not including any terminating NUL, is returned. Some calls (marked "NUL-terminated") add a NUL character to the result but other calls do not: to generically handle both types, allocate one more byte than indicated and set it to NUL.
colour Colours are set using the RGB format (Red, Green, Blue). The intensity of each colour is set in the range 0 to 255. If you have three such intensities, they are combined as: red | (green << 8) | (blue << 16). If you set all intensities to 255, the colour is white. If you set all intensities to 0, the colour is black. When you set a colour, you are making a request. What you will get depends on the capabilities of the system and the current screen mode.
alpha Translucency is set using an alpha value. Alpha ranges from 0 (SC_ALPHA_TRANSPARENT) which is completely transparent to 255 (SC_ALPHA_OPAQUE) which is opaque. The value 256 (SC_ALPHA_NOALPHA) is opaque and uses code that is not alpha-aware and may be faster. Not all platforms support translucency and only some Scintilla features implement translucency. The default alpha value for most features is SC_ALPHA_NOALPHA.
<unused> This is an unused argument. Setting it to 0 will ensure compatibility with future enhancements.

Contents

Text retrieval and modification Searching and replacing Overtype
Cut, copy and paste Error handling Undo and Redo
Selection and information Multiple Selection and Virtual Space Scrolling and automatic scrolling
White space Cursor Mouse capture
Line endings Words Styling
Style definition Caret, selection, and hotspot styles Character representations
Margins Annotations Other settings
Brace highlighting Tabs and Indentation Guides Markers
Indicators Autocompletion User lists
Call tips Keyboard commands Key bindings
Popup edit menu Macro recording Printing
Direct access Multiple views Background loading and saving
Folding Line wrapping Zooming
Long lines Accessibility Lexer
Lexer objects Notifications Images
GTK+ Provisional messages Deprecated messages
Edit messages never supported by Scintilla Removed features Building Scintilla

Messages with names of the form SCI_SETxxxxx often have a companion SCI_GETxxxxx. To save tedious repetition, if the SCI_GETxxxxx message returns the value set by the SCI_SETxxxxx message, the SET routine is described and the GET routine is left to your imagination.

Text retrieval and modification

Each byte in a Scintilla document is associated with a byte of styling information. The combination of a character byte and a style byte is called a cell. Style bytes are interpreted an index into an array of styles.

In this document, 'character' normally refers to a byte even when multi-byte characters are used. Lengths measure the numbers of bytes, not the amount of characters in those bytes.

Positions within the Scintilla document refer to a character or the gap before that character. The first character in a document is 0, the second 1 and so on. If a document contains nLen characters, the last character is numbered nLen-1. The caret exists between character positions and can be located from before the first character (0) to after the last character (nLen).

There are places where the caret can not go where two character bytes make up one character. This occurs when a DBCS character from a language like Japanese is included in the document or when line ends are marked with the CP/M standard of a carriage return followed by a line feed. The INVALID_POSITION constant (-1) represents an invalid position within the document.

All lines of text in Scintilla are the same height, and this height is calculated from the largest font in any current style. This restriction is for performance; if lines differed in height then calculations involving positioning of text would require the text to be styled first.

SCI_GETTEXT(int length, char *text) → int
SCI_SETTEXT(<unused>, const char *text)
SCI_SETSAVEPOINT
SCI_GETLINE(int line, char *text) → int
SCI_REPLACESEL(<unused>, const char *text)
SCI_SETREADONLY(bool readOnly)
SCI_GETREADONLY → bool
SCI_GETTEXTRANGE(<unused>, Sci_TextRange *tr) → int
SCI_ALLOCATE(int bytes)
SCI_ADDTEXT(int length, const char *text)
SCI_ADDSTYLEDTEXT(int length, cell *c)
SCI_APPENDTEXT(int length, const char *text)
SCI_INSERTTEXT(int pos, const char *text)
SCI_CHANGEINSERTION(int length, const char *text)
SCI_CLEARALL
SCI_DELETERANGE(int start, int lengthDelete)
SCI_CLEARDOCUMENTSTYLE
SCI_GETCHARAT(int pos) → int
SCI_GETSTYLEAT(int pos) → int
SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange *tr) → int
SCI_RELEASEALLEXTENDEDSTYLES
SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles) → int
SCI_TARGETASUTF8(<unused>, char *s) → int
SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded) → int
SCI_SETLENGTHFORENCODE(int bytes)

SCI_GETTEXT(int length, char *text NUL-terminated) → int
This returns length-1 characters of text from the start of the document plus one terminating 0 character. To collect all the text in a document, use SCI_GETLENGTH to get the number of characters in the document (nLen), allocate a character buffer of length nLen+1 bytes, then call SCI_GETTEXT(nLen+1, char *text). If the text argument is 0 then the length that should be allocated to store the entire document is returned. If you then save the text, you should use SCI_SETSAVEPOINT to mark the text as unmodified.

See also: SCI_GETSELTEXT, SCI_GETCURLINE, SCI_GETLINE, SCI_GETSTYLEDTEXT, SCI_GETTEXTRANGE

SCI_SETTEXT(<unused>, const char *text)
This replaces all the text in the document with the zero terminated text string you pass in.

SCI_SETSAVEPOINT
This message tells Scintilla that the current state of the document is unmodified. This is usually done when the file is saved or loaded, hence the name "save point". As Scintilla performs undo and redo operations, it notifies the container that it has entered or left the save point with SCN_SAVEPOINTREACHED and SCN_SAVEPOINTLEFT notification messages, allowing the container to know if the file should be considered dirty or not.

See also: SCI_EMPTYUNDOBUFFER, SCI_GETMODIFY

SCI_GETLINE(int line, char *text) → int
This fills the buffer defined by text with the contents of the nominated line (lines start at 0). The buffer is not terminated by a 0 character. It is up to you to make sure that the buffer is long enough for the text, use SCI_LINELENGTH(int line). The returned value is the number of characters copied to the buffer. The returned text includes any end of line characters. If you ask for a line number outside the range of lines in the document, 0 characters are copied. If the text argument is 0 then the length that should be allocated to store the entire line is returned.

See also: SCI_GETCURLINE, SCI_GETSELTEXT, SCI_GETTEXTRANGE, SCI_GETSTYLEDTEXT, SCI_GETTEXT

SCI_REPLACESEL(<unused>, const char *text)
The currently selected text between the anchor and the current position is replaced by the 0 terminated text string. If the anchor and current position are the same, the text is inserted at the caret position. The caret is positioned after the inserted text and the caret is scrolled into view.

SCI_SETREADONLY(bool readOnly)
SCI_GETREADONLY → bool
These messages set and get the read-only flag for the document. If you mark a document as read only, attempts to modify the text cause the SCN_MODIFYATTEMPTRO notification.

SCI_GETTEXTRANGE(<unused>, Sci_TextRange *tr) → int
This collects the text between the positions cpMin and cpMax and copies it to lpstrText (see struct Sci_TextRange in Scintilla.h). If cpMax is -1, text is returned to the end of the document. The text is 0 terminated, so you must supply a buffer that is at least 1 character longer than the number of characters you wish to read. The return value is the length of the returned text not including the terminating 0.

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETCURLINE, SCI_GETSTYLEDTEXT, SCI_GETTEXT

SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange *tr) → int
This collects styled text into a buffer using two bytes for each cell, with the character at the lower address of each pair and the style byte at the upper address. Characters between the positions cpMin and cpMax are copied to lpstrText (see struct Sci_TextRange in Scintilla.h). Two 0 bytes are added to the end of the text, so the buffer that lpstrText points at must be at least 2*(cpMax-cpMin)+2 bytes long. No check is made for sensible values of cpMin or cpMax. Positions outside the document return character codes and style bytes of 0.

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETCURLINE, SCI_GETTEXTRANGE, SCI_GETTEXT

SCI_ALLOCATE(int bytes)
Allocate a document buffer large enough to store a given number of bytes. The document will not be made smaller than its current contents.

SCI_ADDTEXT(int length, const char *text)
This inserts the first length characters from the string text at the current position. This will include any 0's in the string that you might have expected to stop the insert operation. The current position is set at the end of the inserted text, but it is not scrolled into view.

SCI_ADDSTYLEDTEXT(int length, cell *c)
This behaves just like SCI_ADDTEXT, but inserts styled text.

SCI_APPENDTEXT(int length, const char *text)
This adds the first length characters from the string text to the end of the document. This will include any 0's in the string that you might have expected to stop the operation. The current selection is not changed and the new text is not scrolled into view.

SCI_INSERTTEXT(int pos, const char *text)
This inserts the zero terminated text string at position pos or at the current position if pos is -1. If the current position is after the insertion point then it is moved along with its surrounding text but no scrolling is performed.

SCI_CHANGEINSERTION(int length, const char *text)
This may only be called from a SC_MOD_INSERTCHECK notification handler and will change the text being inserted to that provided.

SCI_CLEARALL
Unless the document is read-only, this deletes all the text.

SCI_DELETERANGE(int start, int lengthDelete)
Deletes a range of text in the document.

SCI_CLEARDOCUMENTSTYLE
When wanting to completely restyle the document, for example after choosing a lexer, the SCI_CLEARDOCUMENTSTYLE can be used to clear all styling information and reset the folding state.

SCI_GETCHARAT(int pos) → int
This returns the character at pos in the document or 0 if pos is negative or past the end of the document.

SCI_GETSTYLEAT(int pos) → int
This returns the style at pos in the document, or 0 if pos is negative or past the end of the document.

SCI_RELEASEALLEXTENDEDSTYLES
SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles) → int
Extended styles are used for features like textual margins and annotations as well as internally by Scintilla. They are outside the range 0..255 used for the styles bytes associated with document bytes. These functions manage the use of extended styles to ensures that components cooperate in defining styles. SCI_RELEASEALLEXTENDEDSTYLES releases any extended styles allocated by the container. SCI_ALLOCATEEXTENDEDSTYLES allocates a range of style numbers after the byte style values and returns the number of the first allocated style. Ranges for margin and annotation styles should be allocated before calling SCI_MARGINSETSTYLEOFFSET or SCI_ANNOTATIONSETSTYLEOFFSET.

Sci_TextRange and Sci_CharacterRange
These structures are defined to be exactly the same shape as the Win32 TEXTRANGE and CHARRANGE, so that older code that treats Scintilla as a RichEdit will work.

In a future release the type Sci_PositionCR will be redefined to be 64-bits when Scintilla is built for 64-bits on all platforms.

typedef long Sci_PositionCR;

struct Sci_CharacterRange {
    Sci_PositionCR cpMin;
    Sci_PositionCR cpMax;
};

struct Sci_TextRange {
    struct Sci_CharacterRange chrg;
    char *lpstrText;
};

Specific to GTK+, Cocoa and Windows only: Access to encoded text

SCI_TARGETASUTF8(<unused>, char *s) → int
This method retrieves the value of the target encoded as UTF-8 which is the default encoding of GTK+ so is useful for retrieving text for use in other parts of the user interface, such as find and replace dialogs. The length of the encoded text in bytes is returned. Cocoa uses UTF-16 which is easily converted from UTF-8 so this method can be used to perform the more complex work of transcoding from the various encodings supported.

SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded) → int
SCI_SETLENGTHFORENCODE(int bytes)
SCI_ENCODEDFROMUTF8 converts a UTF-8 string into the document's encoding which is useful for taking the results of a find dialog, for example, and receiving a string of bytes that can be searched for in the document. Since the text can contain nul bytes, the SCI_SETLENGTHFORENCODE method can be used to set the length that will be converted. If set to -1, the length is determined by finding a nul byte. The length of the converted string is returned.

Searching

There are methods to search for text and for regular expressions. Most applications should use SCI_SEARCHINTARGET as the basis for their search implementations. Other calls augment this or were implemented before SCI_SEARCHINTARGET.

The base regular expression support is limited and should only be used for simple cases and initial development. The C++ runtime <regex> library may be used by setting the SCFIND_CXX11REGEX search flag. The C++11 <regex> support may be disabled by compiling Scintilla with NO_CXX11_REGEX defined. A different regular expression library can be integrated into Scintilla or can be called from the container using direct access to the buffer contents through SCI_GETCHARACTERPOINTER.

Search and replace using the target

Searching can be performed within the target range with SCI_SEARCHINTARGET, which uses a counted string to allow searching for null characters. It returns the position of the start of the matching text range or -1 for failure, in which case the target is not moved. The flags used by SCI_SEARCHINTARGET such as SCFIND_MATCHCASE, SCFIND_WHOLEWORD, SCFIND_WORDSTART, and SCFIND_REGEXP can be set with SCI_SETSEARCHFLAGS.

SCI_SETTARGETSTART(int start)
SCI_GETTARGETSTART → position
SCI_SETTARGETEND(int end)
SCI_GETTARGETEND → position
SCI_SETTARGETRANGE(int start, int end)
SCI_TARGETFROMSELECTION
SCI_TARGETWHOLEDOCUMENT
SCI_SETSEARCHFLAGS(int searchFlags)
SCI_GETSEARCHFLAGS → int
SCI_SEARCHINTARGET(int length, const char *text) → int
SCI_GETTARGETTEXT(<unused>, char *text) → int
SCI_REPLACETARGET(int length, const char *text) → int
SCI_REPLACETARGETRE(int length, const char *text) → int
SCI_GETTAG(int tagNumber, char *tagValue) → int

SCI_SETTARGETSTART(int start)
SCI_GETTARGETSTART → position
SCI_SETTARGETEND(int end)
SCI_GETTARGETEND → position
SCI_SETTARGETRANGE(int start, int end)
These functions set and return the start and end of the target. When searching you can set start greater than end to find the last matching text in the target rather than the first matching text. The target is also set by a successful SCI_SEARCHINTARGET.

SCI_TARGETFROMSELECTION
Set the target start and end to the start and end positions of the selection.

SCI_TARGETWHOLEDOCUMENT
Set the target start to the start of the document and target end to the end of the document.

SCI_SETSEARCHFLAGS(int searchFlags)
SCI_GETSEARCHFLAGS → int
These get and set the searchFlags used by SCI_SEARCHINTARGET. There are several option flags including a simple regular expression search.

SCI_SEARCHINTARGET(int length, const char *text) → int
This searches for the first occurrence of a text string in the target defined by SCI_SETTARGETSTART and SCI_SETTARGETEND. The text string is not zero terminated; the size is set by length. The search is modified by the search flags set by SCI_SETSEARCHFLAGS. If the search succeeds, the target is set to the found text and the return value is the position of the start of the matching text. If the search fails, the result is -1.

SCI_GETTARGETTEXT(<unused>, char *text) → int
Retrieve the value in the target.

SCI_REPLACETARGET(int length, const char *text) → int
If length is -1, text is a zero terminated string, otherwise length sets the number of character to replace the target with. After replacement, the target range refers to the replacement text. The return value is the length of the replacement string.
Note that the recommended way to delete text in the document is to set the target to the text to be removed, and to perform a replace target with an empty string.

SCI_REPLACETARGETRE(int length, const char *text) → int
This replaces the target using regular expressions. If length is -1, text is a zero terminated string, otherwise length is the number of characters to use. The replacement string is formed from the text string with any sequences of \1 through \9 replaced by tagged matches from the most recent regular expression search. \0 is replaced with all the matched text from the most recent search. After replacement, the target range refers to the replacement text. The return value is the length of the replacement string.

SCI_GETTAG(int tagNumber, char *tagValue NUL-terminated) → int
Discover what text was matched by tagged expressions in a regular expression search. This is useful if the application wants to interpret the replacement string itself.

See also: SCI_FINDTEXT

searchFlags
Several of the search routines use flag options, which include a simple regular expression search. Combine the flag options by adding them:

SCFIND_MATCHCASE A match only occurs with text that matches the case of the search string.
SCFIND_WHOLEWORD A match only occurs if the characters before and after are not word characters as defined by SCI_SETWORDCHARS.
SCFIND_WORDSTART A match only occurs if the character before is not a word character as defined by SCI_SETWORDCHARS.
SCFIND_REGEXP The search string should be interpreted as a regular expression. Uses Scintilla's base implementation unless combined with SCFIND_CXX11REGEX.
SCFIND_POSIX Treat regular expression in a more POSIX compatible manner by interpreting bare ( and ) for tagged sections rather than \( and \). Has no effect when SCFIND_CXX11REGEX is set.
SCFIND_CXX11REGEX This flag may be set to use C++11 <regex> instead of Scintilla's basic regular expressions. If the regular expression is invalid then -1 is returned and status is set to SC_STATUS_WARN_REGEX. The ECMAScript flag is set on the regex object and UTF-8 documents will exhibit Unicode-compliant behaviour. For MSVC, where wchar_t is 16-bits, the reular expression ".." will match a single astral-plane character. There may be other differences between compilers. Must also have SCFIND_REGEXP set.

In a regular expression, using Scintilla's base implementation, special characters interpreted are:

. Matches any character
\( This marks the start of a region for tagging a match.
\) This marks the end of a tagged region.
\n Where n is 1 through 9 refers to the first through ninth tagged region when replacing. For example, if the search string was Fred\([1-9]\)XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY. \0 refers to all of the matching text.
\< This matches the start of a word using Scintilla's definitions of words.
\> This matches the end of a word using Scintilla's definition of words.
\x This allows you to use a character x that would otherwise have a special meaning. For example, \[ would be interpreted as [ and not as the start of a character set.
[...] This indicates a set of characters, for example, [abc] means any of the characters a, b or c. You can also use ranges, for example [a-z] for any lower case character.
[^...] The complement of the characters in the set. For example, [^A-Za-z] means any character except an alphabetic character.
^ This matches the start of a line (unless used inside a set, see above).
$ This matches the end of a line.
* This matches 0 or more times. For example, Sa*m matches Sm, Sam, Saam, Saaam and so on.
+ This matches 1 or more times. For example, Sa+m matches Sam, Saam, Saaam and so on.

Regular expressions will only match ranges within a single line, never matching over multiple lines.

When using SCFIND_CXX11REGEX more features are available, generally similar to regular expression support in JavaScript. See the documentation of your C++ runtime for details on what is supported.

SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ft) → position
SCI_SEARCHANCHOR
SCI_SEARCHNEXT(int searchFlags, const char *text) → int
SCI_SEARCHPREV(int searchFlags, const char *text) → int

SCI_FINDTEXT(int searchFlags, Sci_TextToFind *ft) → position
This message searches for text in the document. It does not use or move the current selection. The searchFlags argument controls the search type, which includes regular expression searches.

You can search backwards to find the previous occurrence of a search string by setting the end of the search range before the start.

The Sci_TextToFind structure is defined in Scintilla.h; set chrg.cpMin and chrg.cpMax with the range of positions in the document to search. You can search backwards by setting chrg.cpMax less than chrg.cpMin. Set the lpstrText member of Sci_TextToFind to point at a zero terminated text string holding the search pattern. If your language makes the use of Sci_TextToFind difficult, you should consider using SCI_SEARCHINTARGET instead.

The return value is -1 if the search fails or the position of the start of the found text if it succeeds. The chrgText.cpMin and chrgText.cpMax members of Sci_TextToFind are filled in with the start and end positions of the found text.

See also: SCI_SEARCHINTARGET

Sci_TextToFind
This structure is defined to have exactly the same shape as the Win32 structure FINDTEXTEX for old code that treated Scintilla as a RichEdit control.

struct Sci_TextToFind {
    struct Sci_CharacterRange chrg;     // range to search
    const char *lpstrText;                // the search pattern (zero terminated)
    struct Sci_CharacterRange chrgText; // returned as position of matching text
};

SCI_SEARCHANCHOR
SCI_SEARCHNEXT(int searchFlags, const char *text) → int
SCI_SEARCHPREV(int searchFlags, const char *text) → int
These messages provide relocatable search support. This allows multiple incremental interactive searches to be macro recorded while still setting the selection to found text so the find/select operation is self-contained. These three messages send SCN_MACRORECORD notifications if macro recording is enabled.

SCI_SEARCHANCHOR sets the search start point used by SCI_SEARCHNEXT and SCI_SEARCHPREV to the start of the current selection, that is, the end of the selection that is nearer to the start of the document. You should always call this before calling either of SCI_SEARCHNEXT or SCI_SEARCHPREV.

SCI_SEARCHNEXT and SCI_SEARCHPREV search for the next and previous occurrence of the zero terminated search string pointed at by text. The search is modified by the searchFlags.

The return value is -1 if nothing is found, otherwise the return value is the start position of the matching text. The selection is updated to show the matched text, but is not scrolled into view.

See also: SCI_SEARCHINTARGET, SCI_FINDTEXT

Overtype

SCI_SETOVERTYPE(bool overType)
SCI_GETOVERTYPE → bool

SCI_SETOVERTYPE(bool overType)
SCI_GETOVERTYPE → bool
When overtype is enabled, each typed character replaces the character to the right of the text caret. When overtype is disabled, characters are inserted at the caret. SCI_GETOVERTYPE returns true (1) if overtyping is active, otherwise false (0) will be returned. Use SCI_SETOVERTYPE to set the overtype mode.

Cut, copy and paste

SCI_CUT
SCI_COPY
SCI_PASTE
SCI_CLEAR
SCI_CANPASTE → bool
SCI_COPYRANGE(int start, int end)
SCI_COPYTEXT(int length, const char *text)
SCI_COPYALLOWLINE
SCI_SETPASTECONVERTENDINGS(bool convert)
SCI_GETPASTECONVERTENDINGS → bool

SCI_CUT
SCI_COPY
SCI_PASTE
SCI_CLEAR
SCI_CANPASTE → bool
SCI_COPYALLOWLINE
These commands perform the standard tasks of cutting and copying data to the clipboard, pasting from the clipboard into the document, and clearing the document. SCI_CANPASTE returns non-zero if the document isn't read-only and if the selection doesn't contain protected text. If you need a "can copy" or "can cut", use SCI_GETSELECTIONEMPTY(), which will be zero if there are any non-empty selection ranges implying that a copy or cut to the clipboard should work.

GTK+ does not really support SCI_CANPASTE and always returns true unless the document is read-only.

On X, the clipboard is asynchronous and may require several messages between the destination and source applications. Data from SCI_PASTE will not arrive in the document immediately.

SCI_COPYALLOWLINE works the same as SCI_COPY except that if the selection is empty then the current line is copied. On Windows, an extra "MSDEVLineSelect" marker is added to the clipboard which is then used in SCI_PASTE to paste the whole line before the current line.

SCI_COPYRANGE(int start, int end)
SCI_COPYTEXT(int length, const char *text)

SCI_COPYRANGE copies a range of text from the document to the system clipboard and SCI_COPYTEXT copies a supplied piece of text to the system clipboard.

SCI_SETPASTECONVERTENDINGS(bool convert)
SCI_GETPASTECONVERTENDINGS → bool
If this property is set then when text is pasted any line ends are converted to match the document's end of line mode as set with SCI_SETEOLMODE. Defaults to true.

Error handling

SCI_SETSTATUS(int status)
SCI_GETSTATUS → int

SCI_SETSTATUS(int status)
SCI_GETSTATUS → int
If an error occurs, Scintilla may set an internal error number that can be retrieved with SCI_GETSTATUS. To clear the error status call SCI_SETSTATUS(0). Status values from 1 to 999 are errors and status SC_STATUS_WARN_START (1000) and above are warnings. The currently defined statuses are:

SC_STATUS_OK 0 No failures
SC_STATUS_FAILURE 1 Generic failure
SC_STATUS_BADALLOC 2 Memory is exhausted
SC_STATUS_WARN_REGEX 1001 Regular expression is invalid

Undo and Redo

Scintilla has multiple level undo and redo. It will continue to collect undoable actions until memory runs out. Scintilla saves actions that change the document. Scintilla does not save caret and selection movements, view scrolling and the like. Sequences of typing or deleting are compressed into single transactions to make it easier to undo and redo at a sensible level of detail. Sequences of actions can be combined into transactions that are undone as a unit. These sequences occur between SCI_BEGINUNDOACTION and SCI_ENDUNDOACTION messages. These transactions can be nested and only the top-level sequences are undone as units.

SCI_UNDO
SCI_CANUNDO → bool
SCI_EMPTYUNDOBUFFER
SCI_REDO
SCI_CANREDO → bool
SCI_SETUNDOCOLLECTION(bool collectUndo)
SCI_GETUNDOCOLLECTION → bool
SCI_BEGINUNDOACTION
SCI_ENDUNDOACTION
SCI_ADDUNDOACTION(int token, int flags)

SCI_UNDO
SCI_CANUNDO → bool
SCI_UNDO undoes one action, or if the undo buffer has reached a SCI_ENDUNDOACTION point, all the actions back to the corresponding SCI_BEGINUNDOACTION.

SCI_CANUNDO returns 0 if there is nothing to undo, and 1 if there is. You would typically use the result of this message to enable/disable the Edit menu Undo command.

SCI_REDO
SCI_CANREDO → bool
SCI_REDO undoes the effect of the last SCI_UNDO operation.

SCI_CANREDO returns 0 if there is no action to redo and 1 if there are undo actions to redo. You could typically use the result of this message to enable/disable the Edit menu Redo command.

SCI_EMPTYUNDOBUFFER
This command tells Scintilla to forget any saved undo or redo history. It also sets the save point to the start of the undo buffer, so the document will appear to be unmodified. This does not cause the SCN_SAVEPOINTREACHED notification to be sent to the container.

See also: SCI_SETSAVEPOINT

SCI_SETUNDOCOLLECTION(bool collectUndo)
SCI_GETUNDOCOLLECTION → bool
You can control whether Scintilla collects undo information with SCI_SETUNDOCOLLECTION. Pass in true (1) to collect information and false (0) to stop collecting. If you stop collection, you should also use SCI_EMPTYUNDOBUFFER to avoid the undo buffer being unsynchronized with the data in the buffer.

You might wish to turn off saving undo information if you use the Scintilla to store text generated by a program (a Log view) or in a display window where text is often deleted and regenerated.

SCI_BEGINUNDOACTION
SCI_ENDUNDOACTION
Send these two messages to Scintilla to mark the beginning and end of a set of operations that you want to undo all as one operation but that you have to generate as several operations. Alternatively, you can use these to mark a set of operations that you do not want to have combined with the preceding or following operations if they are undone.

SCI_ADDUNDOACTION(int token, int flags)
The container can add its own actions into the undo stack by calling SCI_ADDUNDOACTION and an SCN_MODIFIED notification will be sent to the container with the SC_MOD_CONTAINER flag when it is time to undo (SC_PERFORMED_UNDO) or redo (SC_PERFORMED_REDO) the action. The token argument supplied is returned in the token field of the notification.

For example, if the container wanted to allow undo and redo of a 'toggle bookmark' command then it could call SCI_ADDUNDOACTION(line, 0) each time the command is performed. Then when it receives a notification to undo or redo it toggles a bookmark on the line given by the token field. If there are different types of commands or parameters that need to be stored into the undo stack then the container should maintain a stack of its own for the document and use the current position in that stack as the argument to SCI_ADDUNDOACTION(line). SCI_ADDUNDOACTION commands are not combined together into a single undo transaction unless grouped with SCI_BEGINUNDOACTION and SCI_ENDUNDOACTION.

The flags argument can be UNDO_MAY_COALESCE (1) if the container action may be coalesced along with any insertion and deletion actions into a single compound action, otherwise 0. Coalescing treats coalescible container actions as transparent so will still only group together insertions that look like typing or deletions that look like multiple uses of the Backspace or Delete keys.

Selection and information

Scintilla maintains a selection that stretches between two points, the anchor and the current position. If the anchor and the current position are the same, there is no selected text. Positions in the document range from 0 (before the first character), to the document size (after the last character). If you use messages, there is nothing to stop you setting a position that is in the middle of a CRLF pair, or in the middle of a 2 byte character. However, keyboard commands will not move the caret into such positions.

SCI_GETTEXTLENGTH → int
SCI_GETLENGTH → int
SCI_GETLINECOUNT → int
SCI_LINESONSCREEN → int
SCI_GETMODIFY → bool
SCI_SETSEL(int anchor, int caret)
SCI_GOTOPOS(int caret)
SCI_GOTOLINE(int line)
SCI_SETCURRENTPOS(int caret)
SCI_GETCURRENTPOS → position
SCI_SETANCHOR(int anchor)
SCI_GETANCHOR → position
SCI_SETSELECTIONSTART(int anchor)
SCI_GETSELECTIONSTART → position
SCI_SETSELECTIONEND(int caret)
SCI_GETSELECTIONEND → position
SCI_SETEMPTYSELECTION(int caret)
SCI_SELECTALL
SCI_LINEFROMPOSITION(int pos) → int
SCI_POSITIONFROMLINE(int line) → position
SCI_GETLINEENDPOSITION(int line) → position
SCI_LINELENGTH(int line) → int
SCI_GETCOLUMN(int pos) → int
SCI_FINDCOLUMN(int line, int column) → int
SCI_POSITIONFROMPOINT(int x, int y) → position
SCI_POSITIONFROMPOINTCLOSE(int x, int y) → position
SCI_CHARPOSITIONFROMPOINT(int x, int y) → position
SCI_CHARPOSITIONFROMPOINTCLOSE(int x, int y) → position
SCI_POINTXFROMPOSITION(<unused>, int pos) → int
SCI_POINTYFROMPOSITION(<unused>, int pos) → int
SCI_HIDESELECTION(bool hide)
SCI_GETSELTEXT(<unused>, char *text) → int
SCI_GETCURLINE(int length, char *text) → int
SCI_SELECTIONISRECTANGLE → bool
SCI_SETSELECTIONMODE(int selectionMode)
SCI_GETSELECTIONMODE → int
SCI_GETLINESELSTARTPOSITION(int line) → position
SCI_GETLINESELENDPOSITION(int line) → position
SCI_MOVECARETINSIDEVIEW
SCI_POSITIONBEFORE(int pos) → position
SCI_POSITIONAFTER(int pos) → position
SCI_POSITIONRELATIVE(int pos, int relative) → position
SCI_COUNTCHARACTERS(int start, int end) → int
SCI_TEXTWIDTH(int style, const char *text) → int
SCI_TEXTHEIGHT(int line) → int
SCI_CHOOSECARETX
SCI_MOVESELECTEDLINESUP
SCI_MOVESELECTEDLINESDOWN
SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool mouseSelectionRectangularSwitch)
SCI_GETMOUSESELECTIONRECTANGULARSWITCH → bool

SCI_GETTEXTLENGTH → int
SCI_GETLENGTH → int
Both these messages return the length of the document in bytes.

SCI_GETLINECOUNT → int
This returns the number of lines in the document. An empty document contains 1 line. A document holding only an end of line sequence has 2 lines.

SCI_LINESONSCREEN → int
This returns the number of complete lines visible on the screen. With a constant line height, this is the vertical space available divided by the line separation. Unless you arrange to size your window to an integral number of lines, there may be a partial line visible at the bottom of the view.

SCI_GETMODIFY → bool
This returns non-zero if the document is modified and 0 if it is unmodified. The modified status of a document is determined by the undo position relative to the save point. The save point is set by SCI_SETSAVEPOINT, usually when you have saved data to a file.

If you need to be notified when the document becomes modified, Scintilla notifies the container that it has entered or left the save point with the SCN_SAVEPOINTREACHED and SCN_SAVEPOINTLEFT notification messages.

SCI_SETSEL(int anchor, int caret)
This message sets both the anchor and the current position. If caret is negative, it means the end of the document. If anchor is negative, it means remove any selection (i.e. set the anchor to the same position as caret). The caret is scrolled into view after this operation.

SCI_GOTOPOS(int caret)
This removes any selection, sets the caret at caret and scrolls the view to make the caret visible, if necessary. It is equivalent to SCI_SETSEL(caret, caret). The anchor position is set the same as the current position.

SCI_GOTOLINE(int line)
This removes any selection and sets the caret at the start of line number line and scrolls the view (if needed) to make it visible. The anchor position is set the same as the current position. If line is outside the lines in the document (first line is 0), the line set is the first or last.

SCI_SETCURRENTPOS(int caret)
This sets the current position and creates a selection between the anchor and the current position. The caret is not scrolled into view.

See also: SCI_SCROLLCARET

SCI_GETCURRENTPOS → position
This returns the current position.

SCI_SETANCHOR(int anchor)
This sets the anchor position and creates a selection between the anchor position and the current position. The caret is not scrolled into view.

See also: SCI_SCROLLCARET

SCI_GETANCHOR → position
This returns the current anchor position.

SCI_SETSELECTIONSTART(int anchor)
SCI_SETSELECTIONEND(int caret)
These set the selection based on the assumption that the anchor position is less than the current position. They do not make the caret visible. The table shows the positions of the anchor and the current position after using these messages.

New value for anchor caret
SCI_SETSELECTIONSTART anchor Max(anchor, current)
SCI_SETSELECTIONEND Min(anchor, caret) caret

See also: SCI_SCROLLCARET

SCI_GETSELECTIONSTART → position
SCI_GETSELECTIONEND → position
These return the start and end of the selection without regard to which end is the current position and which is the anchor. SCI_GETSELECTIONSTART returns the smaller of the current position or the anchor position. SCI_GETSELECTIONEND returns the larger of the two values.

SCI_SETEMPTYSELECTION(int caret)
This removes any selection and sets the caret at caret. The caret is not scrolled into view.

SCI_SELECTALL
This selects all the text in the document. The current position is not scrolled into view.

SCI_LINEFROMPOSITION(int pos) → int
This message returns the line that contains the position pos in the document. The return value is 0 if pos <= 0. The return value is the last line if pos is beyond the end of the document.

SCI_POSITIONFROMLINE(int line) → position
This returns the document position that corresponds with the start of the line. If line is negative, the position of the line holding the start of the selection is returned. If line is greater than the lines in the document, the return value is -1. If line is equal to the number of lines in the document (i.e. 1 line past the last line), the return value is the end of the document.

SCI_GETLINEENDPOSITION(int line) → position
This returns the position at the end of the line, before any line end characters. If line is the last line in the document (which does not have any end of line characters) or greater, the result is the size of the document. If line is negative the result is undefined.

SCI_LINELENGTH(int line) → int
This returns the length of the line, including any line end characters. If line is negative or beyond the last line in the document, the result is 0. If you want the length of the line not including any end of line characters, use SCI_GETLINEENDPOSITION(line) - SCI_POSITIONFROMLINE(line).

SCI_GETSELTEXT(<unused>, char *text NUL-terminated) → int
This copies the currently selected text and a terminating 0 byte to the text buffer. The buffer size should be determined by calling with a NULL pointer for the text argument SCI_GETSELTEXT(0,0). This allows for rectangular and discontiguous selections as well as simple selections. See Multiple Selection for information on how multiple and rectangular selections and virtual space are copied.

See also: SCI_GETCURLINE, SCI_GETLINE, SCI_GETTEXT, SCI_GETSTYLEDTEXT, SCI_GETTEXTRANGE

SCI_GETCURLINE(int length, char *text NUL-terminated) → int
This retrieves the text of the line containing the caret and returns the position within the line of the caret. Pass in char* text pointing at a buffer large enough to hold the text you wish to retrieve and a terminating 0 character. Set length to the length of the buffer which must be at least 1 to hold the terminating 0 character. If the text argument is 0 then the length that should be allocated to store the entire current line is returned.

See also: SCI_GETSELTEXT, SCI_GETLINE, SCI_GETTEXT, SCI_GETSTYLEDTEXT, SCI_GETTEXTRANGE

SCI_SELECTIONISRECTANGLE → bool
This returns 1 if the current selection is in rectangle mode, 0 if not.

SCI_SETSELECTIONMODE(int selectionMode)
SCI_GETSELECTIONMODE → int
The two functions set and get the selection mode, which can be stream (SC_SEL_STREAM=0) or rectangular (SC_SEL_RECTANGLE=1) or by lines (SC_SEL_LINES=2) or thin rectangular (SC_SEL_THIN=3). When set in these modes, regular caret moves will extend or reduce the selection, until the mode is cancelled by a call with same value or with SCI_CANCEL. The get function returns the current mode even if the selection was made by mouse or with regular extended moves. SC_SEL_THIN is the mode after a rectangular selection has been typed into and ensures that no characters are selected.

SCI_GETLINESELSTARTPOSITION(int line) → position
SCI_GETLINESELENDPOSITION(int line) → position
Retrieve the position of the start and end of the selection at the given line with INVALID_POSITION returned if no selection on this line.

SCI_MOVECARETINSIDEVIEW
If the caret is off the top or bottom of the view, it is moved to the nearest line that is visible to its current position. Any selection is lost.

SCI_POSITIONBEFORE(int pos) → position
SCI_POSITIONAFTER(int pos) → position
These messages return the position before and after another position in the document taking into account the current code page. The minimum position returned is 0 and the maximum is the last position in the document. If called with a position within a multi byte character will return the position of the start/end of that character.

SCI_POSITIONRELATIVE(int pos, int relative) → position
Count a number of whole characters before or after the argument position and return that position. The minimum position returned is 0 and the maximum is the last position in the document. If the position goes past the document end then 0 is returned.

SCI_COUNTCHARACTERS(int start, int end) → int
Returns the number of whole characters between two positions..

SCI_TEXTWIDTH(int style, const char *text) → int
This returns the pixel width of a string drawn in the given style which can be used, for example, to decide how wide to make the line number margin in order to display a given number of numerals.

SCI_TEXTHEIGHT(int line) → int
This returns the height in pixels of a particular line. Currently all lines are the same height.

SCI_GETCOLUMN(int pos) → int
This message returns the column number of a position pos within the document taking the width of tabs into account. This returns the column number of the last tab on the line before pos, plus the number of characters between the last tab and pos. If there are no tab characters on the line, the return value is the number of characters up to the position on the line. In both cases, double byte characters count as a single character. This is probably only useful with monospaced fonts.

SCI_FINDCOLUMN(int line, int column) → int
This message returns the position of a column on a line taking the width of tabs into account. It treats a multi-byte character as a single column. Column numbers, like lines start at 0.

SCI_POSITIONFROMPOINT(int x, int y) → position
SCI_POSITIONFROMPOINTCLOSE(int x, int y) → position
SCI_POSITIONFROMPOINT finds the closest character position to a point and SCI_POSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the window or not close to any characters.

SCI_CHARPOSITIONFROMPOINT(int x, int y) → position
SCI_CHARPOSITIONFROMPOINTCLOSE(int x, int y) → position
SCI_CHARPOSITIONFROMPOINT finds the closest character to a point and SCI_CHARPOSITIONFROMPOINTCLOSE is similar but returns -1 if the point is outside the window or not close to any characters. This is similar to the previous methods but finds characters rather than inter-character positions.

SCI_POINTXFROMPOSITION(<unused>, int pos) → int
SCI_POINTYFROMPOSITION(<unused>, int pos) → int
These messages return the x and y display pixel location of text at position pos in the document.

SCI_HIDESELECTION(bool hide)
The normal state is to make the selection visible by drawing it as set by SCI_SETSELFORE and SCI_SETSELBACK. However, if you hide the selection, it is drawn as normal text.

SCI_CHOOSECARETX
Scintilla remembers the x value of the last position horizontally moved to explicitly by the user and this value is then used when moving vertically such as by using the up and down keys. This message sets the current x position of the caret as the remembered value.

SCI_MOVESELECTEDLINESUP
Move the selected lines up one line, shifting the line above after the selection. The selection will be automatically extended to the beginning of the selection's first line and the end of the selection's last line. If nothing was selected, the line the cursor is currently at will be selected.

SCI_MOVESELECTEDLINESDOWN
Move the selected lines down one line, shifting the line below before the selection. The selection will be automatically extended to the beginning of the selection's first line and the end of the selection's last line. If nothing was selected, the line the cursor is currently at will be selected.

SCI_SETMOUSESELECTIONRECTANGULARSWITCH(bool mouseSelectionRectangularSwitch)
SCI_GETMOUSESELECTIONRECTANGULARSWITCH → bool
Enable or disable the ability to switch to rectangular selection mode while making a selection with the mouse. When this option is turned on, mouse selections in stream mode can be switched to rectangular mode by pressing the corresponding modifier key. They then stick to rectangular mode even when the modifier key is released again. When this option is turned off, mouse selections will always stick to the mode the selection was started in. It is off by default.

Multiple Selection and Virtual Space

SCI_SETMULTIPLESELECTION(bool multipleSelection)
SCI_GETMULTIPLESELECTION → bool
SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
SCI_GETADDITIONALSELECTIONTYPING → bool
SCI_SETMULTIPASTE(int multiPaste)
SCI_GETMULTIPASTE → int
SCI_SETVIRTUALSPACEOPTIONS(int virtualSpaceOptions)
SCI_GETVIRTUALSPACEOPTIONS → int
SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)
SCI_GETRECTANGULARSELECTIONMODIFIER → int

SCI_GETSELECTIONS → int
SCI_GETSELECTIONEMPTY → bool
SCI_CLEARSELECTIONS
SCI_SETSELECTION(int caret, int anchor)
SCI_ADDSELECTION(int caret, int anchor)
SCI_DROPSELECTIONN(int selection)
SCI_SETMAINSELECTION(int selection)
SCI_GETMAINSELECTION → int

SCI_SETSELECTIONNCARET(int selection, int caret)
SCI_GETSELECTIONNCARET(int selection) → position
SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, int space)
SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection) → int
SCI_SETSELECTIONNANCHOR(int selection, int anchor)
SCI_GETSELECTIONNANCHOR(int selection) → position
SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, int space)
SCI_GETSELECTIONNANCHORVIRTUALSPACE(int selection) → int
SCI_SETSELECTIONNSTART(int selection, int anchor)
SCI_GETSELECTIONNSTART(int selection) → position
SCI_SETSELECTIONNEND(int selection, int caret)
SCI_GETSELECTIONNEND(int selection) → position

SCI_SETRECTANGULARSELECTIONCARET(int caret)
SCI_GETRECTANGULARSELECTIONCARET → position
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(int space)
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE → int
SCI_SETRECTANGULARSELECTIONANCHOR(int anchor)
SCI_GETRECTANGULARSELECTIONANCHOR → position
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(int space)
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE → int

SCI_SETADDITIONALSELALPHA(alpha alpha)
SCI_GETADDITIONALSELALPHA → int
SCI_SETADDITIONALSELFORE(colour fore)
SCI_SETADDITIONALSELBACK(colour back)
SCI_SETADDITIONALCARETFORE(colour fore)
SCI_GETADDITIONALCARETFORE → colour
SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)
SCI_GETADDITIONALCARETSBLINK → bool
SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)
SCI_GETADDITIONALCARETSVISIBLE → bool

SCI_SWAPMAINANCHORCARET
SCI_ROTATESELECTION
SCI_MULTIPLESELECTADDNEXT
SCI_MULTIPLESELECTADDEACH

There may be multiple selections active at one time. More selections are made by holding down the Ctrl key while dragging with the mouse. The most recent selection is the main selection and determines which part of the document is shown automatically. Any selection apart from the main selection is called an additional selection. The calls in the previous section operate on the main selection. There is always at least one selection. The selection can be simplified down to just the main selection by SCI_CANCEL which is normally mapped to the Esc key.

Rectangular selections are handled as multiple selections although the original rectangular range is remembered so that subsequent operations may be handled differently for rectangular selections. For example, pasting a rectangular selection places each piece in a vertical column.

Virtual space is space beyond the end of each line. The caret may be moved into virtual space but no real space will be added to the document until there is some text typed or some other text insertion command is used.

When discontiguous selections are copied to the clipboard, each selection is added to the clipboard text in order with no delimiting characters. For rectangular selections the document's line end is added after each line's text. Rectangular selections are always copied from top line to bottom, not in the in order of selection.Virtual space is not copied.

SCI_SETMULTIPLESELECTION(bool multipleSelection)
SCI_GETMULTIPLESELECTION → bool
Enable or disable multiple selection. When multiple selection is disabled, it is not possible to select multiple ranges by holding down the Ctrl key while dragging with the mouse.

SCI_SETADDITIONALSELECTIONTYPING(bool additionalSelectionTyping)
SCI_GETADDITIONALSELECTIONTYPING → bool
Whether typing, new line, cursor left/right/up/down, backspace, delete, home, and end work with multiple selections simultaneously. Also allows selection and word and line deletion commands.

SCI_SETMULTIPASTE(int multiPaste)
SCI_GETMULTIPASTE → int
When pasting into multiple selections, the pasted text can go into just the main selection with SC_MULTIPASTE_ONCE=0 or into each selection with SC_MULTIPASTE_EACH=1. SC_MULTIPASTE_ONCE is the default.

SCI_SETVIRTUALSPACEOPTIONS(int virtualSpaceOptions)
SCI_GETVIRTUALSPACEOPTIONS → int
Virtual space can be enabled or disabled for rectangular selections or in other circumstances or in both. There are three bit flags SCVS_RECTANGULARSELECTION=1, SCVS_USERACCESSIBLE=2, and SCVS_NOWRAPLINESTART=4 which can be set independently. SCVS_NONE=0, the default, disables all use of virtual space.

SCVS_NOWRAPLINESTART prevents left arrow movement and selection from wrapping to the previous line. This is most commonly desired in conjunction with virtual space but is an independent setting so works without virtual space.

SCI_SETRECTANGULARSELECTIONMODIFIER(int modifier)
SCI_GETRECTANGULARSELECTIONMODIFIER → int
On GTK+, the key used to indicate that a rectangular selection should be created when combined with a mouse drag can be set. The three possible values are SCMOD_CTRL=2 (default), SCMOD_ALT=4 or SCMOD_SUPER=8. Since SCMOD_ALT is often already used by a window manager, the window manager may need configuring to allow this choice. SCMOD_SUPER is often a system dependent modifier key such as the Left Windows key on a Windows keyboard or the Command key on a Mac.

SCI_GETSELECTIONS → int
Return the number of selections currently active. There is always at least one selection.

SCI_GETSELECTIONEMPTY → bool
Return 1 if every selected range is empty else 0.

SCI_CLEARSELECTIONS
Set a single empty selection at 0 as the only selection.

SCI_SETSELECTION(int caret, int anchor)
Set a single selection from anchor to caret as the only selection.

SCI_ADDSELECTION(int caret, int anchor)
Add a new selection from anchor to caret as the main selection retaining all other selections as additional selections. Since there is always at least one selection, to set a list of selections, the first selection should be added with SCI_SETSELECTION and later selections added with SCI_ADDSELECTION

SCI_DROPSELECTIONN(int selection)
If there are multiple selections, remove the indicated selection. If this was the main selection then make the previous selection the main and if it was the first then the last selection becomes main. If there is only one selection, or there is no selection selection, then there is no effect.

SCI_SETMAINSELECTION(int selection)
SCI_GETMAINSELECTION → int
One of the selections is the main selection which is used to determine what range of text is automatically visible. The main selection may be displayed in different colours or with a differently styled caret. Only an already existing selection can be made main.

SCI_SETSELECTIONNCARET(int selection, int caret)
SCI_GETSELECTIONNCARET(int selection) → position
SCI_SETSELECTIONNCARETVIRTUALSPACE(int selection, int space)
SCI_GETSELECTIONNCARETVIRTUALSPACE(int selection) → int
SCI_SETSELECTIONNANCHOR(int selection, int anchor)
SCI_GETSELECTIONNANCHOR(int selection) → position
SCI_SETSELECTIONNANCHORVIRTUALSPACE(int selection, int space)
SCI_GETSELECTIONNANCHORVIRTUALSPACE(int selection) → int
Set or query the position and amount of virtual space for the caret and anchor of each already existing selection.

SCI_SETSELECTIONNSTART(int selection, int anchor)
SCI_GETSELECTIONNSTART(int selection) → position
SCI_SETSELECTIONNEND(int selection, int caret)
SCI_GETSELECTIONNEND(int selection) → position
Set or query the start and end position of each already existing selection. Mostly of use to query each range for its text. The selection parameter is zero-based.

SCI_SETRECTANGULARSELECTIONCARET(int caret)
SCI_GETRECTANGULARSELECTIONCARET → position
SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE(int space)
SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE → int
SCI_SETRECTANGULARSELECTIONANCHOR(int anchor)
SCI_GETRECTANGULARSELECTIONANCHOR → position
SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE(int space)
SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE → int
Set or query the position and amount of virtual space for the caret and anchor of the rectangular selection. After setting the rectangular selection, this is broken down into multiple selections, one for each line.

SCI_SETADDITIONALSELALPHA(alpha alpha)
SCI_GETADDITIONALSELALPHA → int
SCI_SETADDITIONALSELFORE(colour fore)
SCI_SETADDITIONALSELBACK(colour back)
Modify the appearance of additional selections so that they can be differentiated from the main selection which has its appearance set with SCI_SETSELALPHA, SCI_GETSELALPHA, SCI_SETSELFORE, and SCI_SETSELBACK. SCI_SETADDITIONALSELFORE and SCI_SETADDITIONALSELBACK calls have no effect until SCI_SETSELFORE and SCI_SETSELBACK are called with useSelection*Colour value set to true. Subsequent calls to SCI_SETSELFORE, and SCI_SETSELBACK will overwrite the values set by SCI_SETADDITIONALSEL* functions.

SCI_SETADDITIONALCARETFORE(colour fore)
SCI_GETADDITIONALCARETFORE → colour
SCI_SETADDITIONALCARETSBLINK(bool additionalCaretsBlink)
SCI_GETADDITIONALCARETSBLINK → bool
Modify the appearance of additional carets so that they can be differentiated from the main caret which has its appearance set with SCI_SETCARETFORE, SCI_GETCARETFORE, SCI_SETCARETPERIOD, and SCI_GETCARETPERIOD.

SCI_SETADDITIONALCARETSVISIBLE(bool additionalCaretsVisible)
SCI_GETADDITIONALCARETSVISIBLE → bool
Determine whether to show additional carets (defaults to true).

SCI_SWAPMAINANCHORCARET
SCI_ROTATESELECTION
SCI_MULTIPLESELECTADDNEXT
SCI_MULTIPLESELECTADDEACH
These commands may be assigned to keys to make it possible to manipulate multiple selections. SCI_SWAPMAINANCHORCARET moves the caret to the opposite end of the main selection. SCI_ROTATESELECTION makes the next selection be the main selection.
SCI_MULTIPLESELECTADDNEXT adds the next occurrence of the main selection within the target to the set of selections as main. If the current selection is empty then select word around caret. The current searchFlags are used so the application may choose case sensitivity and word search options.
SCI_MULTIPLESELECTADDEACH is similar to SCI_MULTIPLESELECTADDNEXT but adds multiple occurrences instead of just one.

Scrolling and automatic scrolling

SCI_SETFIRSTVISIBLELINE(int displayLine)
SCI_GETFIRSTVISIBLELINE → int
SCI_SETXOFFSET(int xOffset)
SCI_GETXOFFSET → int
SCI_LINESCROLL(int columns, int lines)
SCI_SCROLLCARET
SCI_SCROLLRANGE(int secondary, int primary)
SCI_SETXCARETPOLICY(int caretPolicy, int caretSlop)
SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop)
SCI_SETVISIBLEPOLICY(int visiblePolicy, int visibleSlop)
SCI_SETHSCROLLBAR(bool visible)
SCI_GETHSCROLLBAR → bool
SCI_SETVSCROLLBAR(bool visible)
SCI_GETVSCROLLBAR → bool
SCI_SETSCROLLWIDTH(int pixelWidth)
SCI_GETSCROLLWIDTH → int
SCI_SETSCROLLWIDTHTRACKING(bool tracking)
SCI_GETSCROLLWIDTHTRACKING → bool
SCI_SETENDATLASTLINE(bool endAtLastLine)
SCI_GETENDATLASTLINE → bool

SCI_SETFIRSTVISIBLELINE(int displayLine)
SCI_GETFIRSTVISIBLELINE → int
These messages retrieve and set the line number of the first visible line in the Scintilla view. The first line in the document is numbered 0. The value is a visible line rather than a document line.

SCI_SETXOFFSET(int xOffset)
SCI_GETXOFFSET → int
The xOffset is the horizontal scroll position in pixels of the start of the text view. A value of 0 is the normal position with the first text column visible at the left of the view.

SCI_LINESCROLL(int columns, int lines)
This will attempt to scroll the display by the number of columns and lines that you specify. Positive line values increase the line number at the top of the screen (i.e. they move the text upwards as far as the user is concerned), Negative line values do the reverse.

The column measure is the width of a space in the default style. Positive values increase the column at the left edge of the view (i.e. they move the text leftwards as far as the user is concerned). Negative values do the reverse.

See also: SCI_SETXOFFSET

SCI_SCROLLCARET
If the current position (this is the caret if there is no selection) is not visible, the view is scrolled to make it visible according to the current caret policy.

SCI_SCROLLRANGE(int secondary, int primary)
Scroll the argument positions and the range between them into view giving priority to the primary position then the secondary position. The behaviour is similar to SCI_SCROLLCARET with the primary position used instead of the caret. An effort is then made to ensure that the secondary position and range between are also visible. This may be used to make a search match visible.

SCI_SETXCARETPOLICY(int caretPolicy, int caretSlop)
SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop)
These set the caret policy. The value of caretPolicy is a combination of CARET_SLOP, CARET_STRICT, CARET_JUMPS and CARET_EVEN.

CARET_SLOP If set, we can define a slop value: caretSlop. This value defines an unwanted zone (UZ) where the caret is... unwanted. This zone is defined as a number of pixels near the vertical margins, and as a number of lines near the horizontal margins. By keeping the caret away from the edges, it is seen within its context. This makes it likely that the identifier that the caret is on can be completely seen, and that the current line is seen with some of the lines following it, which are often dependent on that line.
CARET_STRICT If set, the policy set by CARET_SLOP is enforced... strictly. The caret is centred on the display if caretSlop is not set, and cannot go in the UZ if caretSlop is set.
CARET_JUMPS If set, the display is moved more energetically so the caret can move in the same direction longer before the policy is applied again. '3UZ' notation is used to indicate three time the size of the UZ as a distance to the margin.
CARET_EVEN If not set, instead of having symmetrical UZs, the left and bottom UZs are extended up to right and top UZs respectively. This way, we favour the displaying of useful information: the beginning of lines, where most code reside, and the lines after the caret, for example, the body of a function.

slop strict jumps even Caret can go to the margin On reaching limit (going out of visibility
or going into the UZ) display is...
0 0 0 0 Yes moved to put caret on top/on right
0 0 0 1 Yes moved by one position
0 0 1 0 Yes moved to put caret on top/on right
0 0 1 1 Yes centred on the caret
0 1 - 0 Caret is always on top/on right of display -
0 1 - 1 No, caret is always centred -
1 0 0 0 Yes moved to put caret out of the asymmetrical UZ
1 0 0 1 Yes moved to put caret out of the UZ
1 0 1 0 Yes moved to put caret at 3UZ of the top or right margin
1 0 1 1 Yes moved to put caret at 3UZ of the margin
1 1 - 0 Caret is always at UZ of top/right margin -
1 1 0 1 No, kept out of UZ moved by one position
1 1 1 0 No, kept out of UZ moved to put caret at 3UZ of the margin

SCI_SETVISIBLEPOLICY(int visiblePolicy, int visibleSlop)
This determines how the vertical positioning is determined when SCI_ENSUREVISIBLEENFORCEPOLICY is called. It takes VISIBLE_SLOP and VISIBLE_STRICT flags for the policy parameter. It is similar in operation to SCI_SETYCARETPOLICY(int caretPolicy, int caretSlop).

SCI_SETHSCROLLBAR(bool visible)
SCI_GETHSCROLLBAR → bool
The horizontal scroll bar is only displayed if it is needed for the assumed width. If you never wish to see it, call SCI_SETHSCROLLBAR(0). Use SCI_SETHSCROLLBAR(1) to enable it again. SCI_GETHSCROLLBAR returns the current state. The default state is to display it when needed.

See also: SCI_SETSCROLLWIDTH.

SCI_SETVSCROLLBAR(bool visible)
SCI_GETVSCROLLBAR → bool
By default, the vertical scroll bar is always displayed when required. You can choose to hide or show it with SCI_SETVSCROLLBAR and get the current state with SCI_GETVSCROLLBAR.

See also: SCI_LINESCROLL

SCI_SETSCROLLWIDTH(int pixelWidth)
SCI_GETSCROLLWIDTH → int
For performance, Scintilla does not measure the display width of the document to determine the properties of the horizontal scroll bar. Instead, an assumed width is used. These messages set and get the document width in pixels assumed by Scintilla. The default value is 2000. To ensure the width of the currently visible lines can be scrolled use SCI_SETSCROLLWIDTHTRACKING

SCI_SETSCROLLWIDTHTRACKING(bool tracking)
SCI_GETSCROLLWIDTHTRACKING → bool
If scroll width tracking is enabled then the scroll width is adjusted to ensure that all of the lines currently displayed can be completely scrolled. This mode never adjusts the scroll width to be narrower.

SCI_SETENDATLASTLINE(bool endAtLastLine)
SCI_GETENDATLASTLINE → bool
SCI_SETENDATLASTLINE sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). Setting this to false allows scrolling one page below the last line.

White space

SCI_SETVIEWWS(int viewWS)
SCI_GETVIEWWS → int
SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
SCI_SETWHITESPACEBACK(bool useSetting, colour back)
SCI_SETWHITESPACESIZE(int size)
SCI_GETWHITESPACESIZE → int
SCI_SETTABDRAWMODE(int tabDrawMode)
SCI_GETTABDRAWMODE → int
SCI_SETEXTRAASCENT(int extraAscent)
SCI_GETEXTRAASCENT → int
SCI_SETEXTRADESCENT(int extraDescent)
SCI_GETEXTRADESCENT → int

SCI_SETVIEWWS(int viewWS)
SCI_GETVIEWWS → int
White space can be made visible which may be useful for languages in which white space is significant, such as Python. Space characters appear as small centred dots and tab characters as light arrows pointing to the right. There are also ways to control the display of end of line characters. The two messages set and get the white space display mode. The viewWS argument can be one of:

SCWS_INVISIBLE 0 The normal display mode with white space displayed as an empty background colour.
SCWS_VISIBLEALWAYS 1 White space characters are drawn as dots and arrows,
SCWS_VISIBLEAFTERINDENT 2 White space used for indentation is displayed normally but after the first visible character, it is shown as dots and arrows.
SCWS_VISIBLEONLYININDENT 3 White space used for indentation is displayed as dots and arrows.

The effect of using any other viewWS value is undefined.

SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
SCI_SETWHITESPACEBACK(bool useSetting, colour back)
By default, the colour of visible white space is determined by the lexer in use. The foreground and/or background colour of all visible white space can be set globally, overriding the lexer's colours with SCI_SETWHITESPACEFORE and SCI_SETWHITESPACEBACK.

SCI_SETWHITESPACESIZE(int size)
SCI_GETWHITESPACESIZE → int
SCI_SETWHITESPACESIZE sets the size of the dots used for mark space characters. The SCI_GETWHITESPACESIZE message retrieves the current size.

SCI_SETTABDRAWMODE(int tabDrawMode)
SCI_GETTABDRAWMODE → int
These two messages get and set how tab characters are drawn when white space is visible. The tabDrawMode argument can be one of:

SCTD_LONGARROW 0 The default mode of an arrow stretching until the tabstop.
SCTD_STRIKEOUT 1 A horizontal line stretching until the tabstop.

The effect of using any other tabDrawMode value is undefined.

SCI_SETEXTRAASCENT(int extraAscent)
SCI_GETEXTRAASCENT → int
SCI_SETEXTRADESCENT(int extraDescent)
SCI_GETEXTRADESCENT → int
Text is drawn with the base of each character on a 'baseline'. The height of a line is found from the maximum that any style extends above the baseline (its 'ascent'), added to the maximum that any style extends below the baseline (its 'descent'). Space may be added to the maximum ascent (SCI_SETEXTRAASCENT) and the maximum descent (SCI_SETEXTRADESCENT) to allow for more space between lines. This may done to make the text easier to read or to accommodate underlines or highlights.

Cursor

SCI_SETCURSOR(int cursorType)
SCI_GETCURSOR → int

SCI_SETCURSOR(int cursorType)
SCI_GETCURSOR → int
The cursor is normally chosen in a context sensitive way, so it will be different over the margin than when over the text. When performing a slow action, you may wish to change to a wait cursor. You set the cursor type with SCI_SETCURSOR. The cursorType argument can be:

SC_CURSORNORMAL -1 The normal cursor is displayed.
SC_CURSORWAIT  4 The wait cursor is displayed when the mouse is over or owned by the Scintilla window.

Cursor values 1 through 7 have defined cursors, but only SC_CURSORWAIT is usefully controllable. Other values of cursorType cause a pointer to be displayed. The SCI_GETCURSOR message returns the last cursor type you set, or SC_CURSORNORMAL (-1) if you have not set a cursor type.

Mouse capture

SCI_SETMOUSEDOWNCAPTURES(bool captures)
SCI_GETMOUSEDOWNCAPTURES → bool
SCI_SETMOUSEWHEELCAPTURES(bool captures)
SCI_GETMOUSEWHEELCAPTURES → bool

SCI_SETMOUSEDOWNCAPTURES(bool captures)
SCI_GETMOUSEDOWNCAPTURES → bool
When the mouse is pressed inside Scintilla, it is captured so future mouse movement events are sent to Scintilla. This behaviour may be turned off with SCI_SETMOUSEDOWNCAPTURES(0).

SCI_SETMOUSEWHEELCAPTURES(bool captures)
SCI_GETMOUSEWHEELCAPTURES → bool
On Windows, Scintilla captures all WM_MOUSEWHEEL messages if it has the focus, even if the mouse pointer is nowhere near the Scintilla editor window. This behavior can be changed with SCI_SETMOUSEWHEELCAPTURES(0) so that Scintilla passes the WM_MOUSEWHEEL messages to its parent window. Scintilla will still react to the mouse wheel if the mouse pointer is over the editor window.

Line endings

Scintilla can handle the major line end conventions and, depending on settings and the current lexer also support additional Unicode line ends.

Scintilla can interpret any of the Macintosh (\r), Unix (\n) and Windows (\r\n) line ends. When the user presses the Enter key, one of these line end strings is inserted into the buffer. The default is \r\n in Windows and \n in Unix, but this can be changed with the SCI_SETEOLMODE message. You can also convert the entire document to one of these line endings with SCI_CONVERTEOLS. Finally, you can choose to display the line endings with SCI_SETVIEWEOL.

For the UTF-8 encoding, three additional Unicode line ends, Next Line (NEL=U+0085), Line Separator (LS=U+2028), and Paragraph Separator (PS=U+2029) may optionally be interpreted when Unicode line ends is turned on and the current lexer also supports Unicode line ends.

SCI_SETEOLMODE(int eolMode)
SCI_GETEOLMODE → int
SCI_CONVERTEOLS(int eolMode)
SCI_SETVIEWEOL(bool visible)
SCI_GETVIEWEOL → bool
SCI_GETLINEENDTYPESSUPPORTED → int
SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)
SCI_GETLINEENDTYPESALLOWED → int
SCI_GETLINEENDTYPESACTIVE → int

SCI_SETEOLMODE(int eolMode)
SCI_GETEOLMODE → int
SCI_SETEOLMODE sets the characters that are added into the document when the user presses the Enter key. You can set eolMode to one of SC_EOL_CRLF (0), SC_EOL_CR (1), or SC_EOL_LF (2). The SCI_GETEOLMODE message retrieves the current state.

SCI_CONVERTEOLS(int eolMode)
This message changes all the end of line characters in the document to match eolMode. Valid values are: SC_EOL_CRLF (0), SC_EOL_CR (1), or SC_EOL_LF (2).

SCI_SETVIEWEOL(bool visible)
SCI_GETVIEWEOL → bool
Normally, the end of line characters are hidden, but SCI_SETVIEWEOL allows you to display (or hide) them by setting visible true (or false). The visible rendering of the end of line characters is similar to (CR), (LF), or (CR)(LF). SCI_GETVIEWEOL returns the current state.

SCI_GETLINEENDTYPESSUPPORTED → int
SCI_GETLINEENDTYPESSUPPORTED reports the different types of line ends supported by the current lexer. This is a bit set although there is currently only a single choice with either SC_LINE_END_TYPE_DEFAULT (0) or SC_LINE_END_TYPE_UNICODE (1). These values are also used by the other messages concerned with Unicode line ends.

SCI_SETLINEENDTYPESALLOWED(int lineEndBitSet)
SCI_GETLINEENDTYPESALLOWED → int
By default, only the ASCII line ends are interpreted. Unicode line ends may be requested with SCI_SETLINEENDTYPESALLOWED(SC_LINE_END_TYPE_UNICODE) but this will be ineffective unless the lexer also allows you Unicode line ends. SCI_GETLINEENDTYPESALLOWED returns the current state.

SCI_GETLINEENDTYPESACTIVE → int
SCI_GETLINEENDTYPESACTIVE reports the set of line ends currently interpreted by Scintilla. It is SCI_GETLINEENDTYPESSUPPORTED & SCI_GETLINEENDTYPESALLOWED.

Words

There is support for selecting, navigating by, and searching for words.

Words are contiguous sequences of characters from a particular set of characters. 4 categories define words: word, whitespace, punctuation, and line ends with each category having a role in word functions. Double clicking selects the word at that point, which may be a sequence of word, punctuation, or whitespace bytes. Line ends are not selected by double clicking but do act as word separators.

Words are defined in terms of characters and the sets of characters in each category can be customized to an extent. The NUL character (0) is always a space as the APIs to set categories use NUL-terminated strings. For single-byte encodings a category may be assigned to any character (1 to 0xFF). For multi-byte encodings a category may be assigned to characters from 1 to 0x7F with static behaviour from 0x80. For UTF-8, characters from 0x80 will use a category based on their Unicode general category. For Asian encodings, code pages 932, 936, 949, 950, and 1361, characters from 0x80 are treated as word characters.

Identifiers in programming languages are often sequences of words with capitalisation (aCamelCaseIdentifier) or underscores (an_under_bar_ident) used to mark word boundaries. The SCI_WORDPART* commands are used for moving between word parts: SCI_WORDPARTLEFT, SCI_WORDPARTLEFTEXTEND, SCI_WORDPARTRIGHT, and SCI_WORDPARTRIGHTEXTEND.

SCI_WORDENDPOSITION(int pos, bool onlyWordCharacters) → int
SCI_WORDSTARTPOSITION(int pos, bool onlyWordCharacters) → int
SCI_ISRANGEWORD(int start, int end) → bool
SCI_SETWORDCHARS(<unused>, const char *characters)
SCI_GETWORDCHARS(<unused>, char *characters) → int
SCI_SETWHITESPACECHARS(<unused>, const char *characters)
SCI_GETWHITESPACECHARS(<unused>, char *characters) → int
SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)
SCI_GETPUNCTUATIONCHARS(<unused>, char *characters) → int
SCI_SETCHARSDEFAULT

SCI_WORDENDPOSITION(int pos, bool onlyWordCharacters) → int
SCI_WORDSTARTPOSITION(int pos, bool onlyWordCharacters) → int
These messages return the start and end of words using the same definition of words as used internally within Scintilla. You can set your own list of characters that count as words with SCI_SETWORDCHARS. The position sets the start or the search, which is forwards when searching for the end and backwards when searching for the start.

SCI_ISRANGEWORD(int start, int end) → bool
Is the range start..end a word or set of words? This message checks that start is at a word start transition and that end is at a word end transition. It does not check whether there are any spaces inside the range.

SCI_ISRANGEWORD(int start, int end) → bool

Set onlyWordCharacters to true (1) to stop searching at the first non-word character in the search direction. If onlyWordCharacters is false (0), the first character in the search direction sets the type of the search as word or non-word and the search stops at the first non-matching character. Searches are also terminated by the start or end of the document.

If "w" represents word characters and "." represents non-word characters and "|" represents the position and true or false is the state of onlyWordCharacters:

Initial state end, true end, false start, true start, false
..ww..|..ww.. ..ww..|..ww.. ..ww....|ww.. ..ww..|..ww.. ..ww|....ww..
....ww|ww.... ....wwww|.... ....wwww|.... ....|wwww.... ....|wwww....
..ww|....ww.. ..ww|....ww.. ..ww....|ww.. ..|ww....ww.. ..|ww....ww..
..ww....|ww.. ..ww....ww|.. ..ww....ww|.. ..ww....|ww.. ..ww|....ww..

SCI_SETWORDCHARS(<unused>, const char *characters)
This message defines which characters are members of the word category. The character categories are set to default values before processing this function. For example, if you don't allow '_' in your set of characters use:
SCI_SETWORDCHARS(0, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");

SCI_GETWORDCHARS(<unused>, char *characters) → int
This fills the characters parameter with all the characters included in words. The characters parameter must be large enough to hold all of the characters. If the characters parameter is 0 then the length that should be allocated to store the entire set is returned.

For multi-byte encodings, this API will not return meaningful values for 0x80 and above.

SCI_SETWHITESPACECHARS(<unused>, const char *characters)
SCI_GETWHITESPACECHARS(<unused>, char *characters) → int
Similar to SCI_SETWORDCHARS, this message allows the user to define which chars Scintilla considers as whitespace. Setting the whitespace chars allows the user to fine-tune Scintilla's behaviour doing such things as moving the cursor to the start or end of a word; for example, by defining punctuation chars as whitespace, they will be skipped over when the user presses ctrl+left or ctrl+right. This function should be called after SCI_SETWORDCHARS as it will reset the whitespace characters to the default set. SCI_GETWHITESPACECHARS behaves similarly to SCI_GETWORDCHARS.

SCI_SETPUNCTUATIONCHARS(<unused>, const char *characters)
SCI_GETPUNCTUATIONCHARS(<unused>, char *characters) → int
Similar to SCI_SETWORDCHARS and SCI_SETWHITESPACECHARS, this message allows the user to define which chars Scintilla considers as punctuation. SCI_GETPUNCTUATIONCHARS behaves similarly to SCI_GETWORDCHARS.

SCI_SETCHARSDEFAULT
Use the default sets of word and whitespace characters. This sets whitespace to space, tab and other characters with codes less than 0x20, with word characters set to alphanumeric and '_'.

Word keyboard commands are:

  • SCI_WORDLEFT
  • SCI_WORDLEFTEXTEND
  • SCI_WORDRIGHT
  • SCI_WORDRIGHTEXTEND
  • SCI_WORDLEFTEND
  • SCI_WORDLEFTENDEXTEND
  • SCI_WORDRIGHTEND
  • SCI_WORDRIGHTENDEXTEND
  • SCI_WORDPARTLEFT
  • SCI_WORDPARTLEFTEXTEND
  • SCI_WORDPARTRIGHT
  • SCI_WORDPARTRIGHTEXTEND
  • SCI_DELWORDLEFT
  • SCI_DELWORDRIGHT
  • SCI_DELWORDRIGHTEND

Styling

The styling messages allow you to assign styles to text. If your styling needs can be met by one of the standard lexers, or if you can write your own, then a lexer is probably the easiest way to style your document. If you choose to use the container to do the styling you can use the SCI_SETLEXER command to select SCLEX_CONTAINER, in which case the container is sent a SCN_STYLENEEDED notification each time text needs styling for display. As another alternative, you might use idle time to style the document. Even if you use a lexer, you might use the styling commands to mark errors detected by a compiler. The following commands can be used.

SCI_GETENDSTYLED → position
SCI_STARTSTYLING(int start, int unused)
SCI_SETSTYLING(int length, int style)
SCI_SETSTYLINGEX(int length, const char *styles)
SCI_SETIDLESTYLING(int idleStyling)
SCI_GETIDLESTYLING → int
SCI_SETLINESTATE(int line, int state)
SCI_GETLINESTATE(int line) → int
SCI_GETMAXLINESTATE → int

SCI_GETENDSTYLED → position
Scintilla keeps a record of the last character that is likely to be styled correctly. This is moved forwards when characters after it are styled and moved backwards if changes are made to the text of the document before it. Before drawing text, this position is checked to see if any styling is needed and, if so, a SCN_STYLENEEDED notification message is sent to the container. The container can send SCI_GETENDSTYLED to work out where it needs to start styling. Scintilla will always ask to style whole lines.

SCI_STARTSTYLING(int start, int unused)
This prepares for styling by setting the styling position start to start at. The unused argument was used in earlier versions but is now ignored. After SCI_STARTSTYLING, send multiple SCI_SETSTYLING messages for each lexical entity to style or send SCI_SETSTYLINGEX to style in blocks.

SCI_SETSTYLING(int length, int style)
This message sets the style of length characters starting at the styling position and then increases the styling position by length, ready for the next call. SCI_STARTSTYLING should be called before the first call to this.

SCI_SETSTYLINGEX(int length, const char *styles)
As an alternative to SCI_SETSTYLING, which applies the same style to each byte, you can use this message which specifies the styles for each of length bytes from the styling position and then increases the styling position by length, ready for the next call. SCI_STARTSTYLING should be called before the first call to this.

SCI_SETIDLESTYLING(int idleStyling)
SCI_GETIDLESTYLING → int
By default, SC_IDLESTYLING_NONE (0), syntax styling is performed for all the currently visible text before displaying it. On very large files, this may make scrolling down slow. With SC_IDLESTYLING_TOVISIBLE (1), a small amount of styling is performed before display and then further styling is performed incrementally in the background as an idle-time task. This may result in the text initially appearing uncoloured and then, some time later, it is coloured. Text after the currently visible portion may be styled in the background with SC_IDLESTYLING_AFTERVISIBLE (2). To style both before and after the visible text in the background use SC_IDLESTYLING_ALL (3).

Since wrapping also needs to perform styling and also uses idle time, this setting has no effect when the document is displayed wrapped.

SCI_SETLINESTATE(int line, int state)
SCI_GETLINESTATE(int line) → int
As well as the 8 bits of lexical state stored for each character there is also an integer stored for each line. This can be used for longer lived parse states such as what the current scripting language is in an ASP page. Use SCI_SETLINESTATE to set the integer value and SCI_GETLINESTATE to get the value. Changing the value produces a SC_MOD_CHANGELINESTATE notification.

SCI_GETMAXLINESTATE → int
This returns the last line that has any line state.

Style definition

While the style setting messages mentioned above change the style numbers associated with text, these messages define how those style numbers are interpreted visually. There are 256 lexer styles that can be set, numbered 0 to STYLE_MAX (255). There are also some predefined numbered styles starting at 32, The following STYLE_* constants are defined.

STYLE_DEFAULT 32 This style defines the attributes that all styles receive when the SCI_STYLECLEARALL message is used.
STYLE_LINENUMBER 33 This style sets the attributes of the text used to display line numbers in a line number margin. The background colour set for this style also sets the background colour for all margins that do not have any folding mask bits set. That is, any margin for which mask & SC_MASK_FOLDERS is 0. See SCI_SETMARGINMASKN for more about masks.
STYLE_BRACELIGHT 34 This style sets the attributes used when highlighting braces with the SCI_BRACEHIGHLIGHT message and when highlighting the corresponding indentation with SCI_SETHIGHLIGHTGUIDE.
STYLE_BRACEBAD 35 This style sets the display attributes used when marking an unmatched brace with the SCI_BRACEBADLIGHT message.
STYLE_CONTROLCHAR 36 This style sets the font used when drawing control characters. Only the font, size, bold, italics, and character set attributes are used and not the colour attributes. See also: SCI_SETCONTROLCHARSYMBOL.
STYLE_INDENTGUIDE 37 This style sets the foreground and background colours used when drawing the indentation guides.
STYLE_CALLTIP 38 Call tips normally use the font attributes defined by STYLE_DEFAULT. Use of SCI_CALLTIPUSESTYLE causes call tips to use this style instead. Only the font face name, font size, foreground and background colours and character set attributes are used.
STYLE_FOLDDISPLAYTEXT 39 This is the style used for drawing text tags attached to folded text.
STYLE_LASTPREDEFINED 39 To make it easier for client code to discover the range of styles that are predefined, this is set to the style number of the last predefined style.
STYLE_MAX 255 This is not a style but is the number of the maximum style that can be set. Styles between STYLE_LASTPREDEFINED and STYLE_MAX may be used.

For each style you can set the font name, size and use of bold, italic and underline, foreground and background colour and the character set. You can also choose to hide text with a given style, display all characters as upper or lower case and fill from the last character on a line to the end of the line (for embedded languages). There is also an experimental attribute to make text read-only.

It is entirely up to you how you use styles. If you want to use syntax colouring you might use style 0 for white space, style 1 for numbers, style 2 for keywords, style 3 for strings, style 4 for preprocessor, style 5 for operators, and so on.

SCI_STYLERESETDEFAULT
SCI_STYLECLEARALL
SCI_STYLESETFONT(int style, const char *fontName)
SCI_STYLEGETFONT(int style, char *fontName) → int
SCI_STYLESETSIZE(int style, int sizePoints)
SCI_STYLEGETSIZE(int style) → int
SCI_STYLESETSIZEFRACTIONAL(int style, int sizeHundredthPoints)
SCI_STYLEGETSIZEFRACTIONAL(int style) → int
SCI_STYLESETBOLD(int style, bool bold)
SCI_STYLEGETBOLD(int style) → bool
SCI_STYLESETWEIGHT(int style, int weight)
SCI_STYLEGETWEIGHT(int style) → int
SCI_STYLESETITALIC(int style, bool italic)
SCI_STYLEGETITALIC(int style) → bool
SCI_STYLESETUNDERLINE(int style, bool underline)
SCI_STYLEGETUNDERLINE(int style) → bool
SCI_STYLESETFORE(int style, colour fore)
SCI_STYLEGETFORE(int style) → colour
SCI_STYLESETBACK(int style, colour back)
SCI_STYLEGETBACK(int style) → colour
SCI_STYLESETEOLFILLED(int style, bool eolFilled)
SCI_STYLEGETEOLFILLED(int style) → bool
SCI_STYLESETCHARACTERSET(int style, int characterSet)
SCI_STYLEGETCHARACTERSET(int style) → int
SCI_STYLESETCASE(int style, int caseVisible)
SCI_STYLEGETCASE(int style) → int
SCI_STYLESETVISIBLE(int style, bool visible)
SCI_STYLEGETVISIBLE(int style) → bool
SCI_STYLESETCHANGEABLE(int style, bool changeable)
SCI_STYLEGETCHANGEABLE(int style) → bool
SCI_STYLESETHOTSPOT(int style, bool hotspot)
SCI_STYLEGETHOTSPOT(int style) → bool

SCI_STYLERESETDEFAULT
This message resets STYLE_DEFAULT to its state when Scintilla was initialised.

SCI_STYLECLEARALL
This message sets all styles to have the same attributes as STYLE_DEFAULT. If you are setting up Scintilla for syntax colouring, it is likely that the lexical styles you set will be very similar. One way to set the styles is to:
1. Set STYLE_DEFAULT to the common features of all styles.
2. Use SCI_STYLECLEARALL to copy this to all styles.
3. Set the style attributes that make your lexical styles different.

SCI_STYLESETFONT(int style, const char *fontName)
SCI_STYLEGETFONT(int style, char *fontName NUL-terminated) → int
SCI_STYLESETSIZE(int style, int sizePoints)
SCI_STYLEGETSIZE(int style) → int
SCI_STYLESETSIZEFRACTIONAL(int style, int sizeHundredthPoints)
SCI_STYLEGETSIZEFRACTIONAL(int style) → int
SCI_STYLESETBOLD(int style, bool bold)
SCI_STYLEGETBOLD(int style) → bool
SCI_STYLESETWEIGHT(int style, int weight)
SCI_STYLEGETWEIGHT(int style) → int
SCI_STYLESETITALIC(int style, bool italic)
SCI_STYLEGETITALIC(int style) → bool
These messages (plus SCI_STYLESETCHARACTERSET) set the font attributes that are used to match the fonts you request to those available.

The fontName is a zero terminated string holding the name of a font. Under Windows, only the first 32 characters of the name are used, the name is decoded as UTF-8, and the name is not case sensitive. For internal caching, Scintilla tracks fonts by name and does care about the casing of font names, so please be consistent. On GTK+, Pango is used to display text and the name is sent directly to Pango without transformation. On Qt, the name is decoded as UTF-8. On Cocoa, the name is decoded as MacRoman.

Sizes can be set to a whole number of points with SCI_STYLESETSIZE or to a fractional point size in hundredths of a point with SCI_STYLESETSIZEFRACTIONAL by multiplying the size by 100 (SC_FONT_SIZE_MULTIPLIER). For example, a text size of 9.4 points is set with SCI_STYLESETSIZEFRACTIONAL(<style>, 940).

The weight or boldness of a font can be set with SCI_STYLESETBOLD or SCI_STYLESETWEIGHT. The weight is a number between 1 and 999 with 1 being very light and 999 very heavy. While any value can be used, fonts often only support between 2 and 4 weights with three weights being common enough to have symbolic names: SC_WEIGHT_NORMAL (400), SC_WEIGHT_SEMIBOLD (600), and SC_WEIGHT_BOLD (700). The SCI_STYLESETBOLD message takes a boolean argument with 0 choosing SC_WEIGHT_NORMAL and 1 SC_WEIGHT_BOLD.

SCI_STYLESETUNDERLINE(int style, bool underline)
SCI_STYLEGETUNDERLINE(int style) → bool
You can set a style to be underlined. The underline is drawn in the foreground colour. All characters with a style that includes the underline attribute are underlined, even if they are white space.

SCI_STYLESETFORE(int style, colour fore)
SCI_STYLEGETFORE(int style) → colour
SCI_STYLESETBACK(int style, colour back)
SCI_STYLEGETBACK(int style) → colour
Text is drawn in the foreground colour. The space in each character cell that is not occupied by the character is drawn in the background colour.

SCI_STYLESETEOLFILLED(int style, bool eolFilled)
SCI_STYLEGETEOLFILLED(int style) → bool
If the last character in the line has a style with this attribute set, the remainder of the line up to the right edge of the window is filled with the background colour set for the last character. This is useful when a document contains embedded sections in another language such as HTML pages with embedded JavaScript. By setting eolFilled to true and a consistent background colour (different from the background colour set for the HTML styles) to all JavaScript styles then JavaScript sections will be easily distinguished from HTML.

SCI_STYLESETCHARACTERSET(int style, int characterSet)
SCI_STYLEGETCHARACTERSET(int style) → int
You can set a style to use a different character set than the default. The places where such characters sets are likely to be useful are comments and literal strings. For example, SCI_STYLESETCHARACTERSET(SCE_C_STRING, SC_CHARSET_RUSSIAN) would ensure that strings in Russian would display correctly in C and C++ (SCE_C_STRING is the style number used by the C and C++ lexer to display literal strings; it has the value 6). This feature works differently on Windows and GTK+.
The default character set is SC_CHARSET_DEFAULT.

SC_CHARSET_ANSI and SC_CHARSET_DEFAULT specify European Windows code page 1252 unless the code page is set.

Character Set Windows GTK+ Cocoa
SC_CHARSET_ANSI ✓ (8859-1)
SC_CHARSET_ARABIC
SC_CHARSET_BALTIC
SC_CHARSET_CHINESEBIG5
SC_CHARSET_DEFAULT ✓ (8859-1) ✓ (8859-1)
SC_CHARSET_EASTEUROPE
SC_CHARSET_GB2312
SC_CHARSET_GREEK
SC_CHARSET_HANGUL
SC_CHARSET_HEBREW
SC_CHARSET_JOHAB
SC_CHARSET_MAC
SC_CHARSET_OEM
SC_CHARSET_RUSSIAN ✓ (cp1251) ✓ (koi8-r) ✓ (cp1251)
SC_CHARSET_SHIFTJIS
SC_CHARSET_SYMBOL
SC_CHARSET_THAI
SC_CHARSET_TURKISH
SC_CHARSET_VIETNAMESE
SC_CHARSET_OEM866 ✓ (cp866)
SC_CHARSET_CYRILLIC ✓ (cp1251) ✓ (cp1251)
SC_CHARSET_8859_15

SCI_STYLESETCASE(int style, int caseVisible)
SCI_STYLEGETCASE(int style) → int
The value of caseVisible determines how text is displayed. You can set upper case (SC_CASE_UPPER, 1) or lower case (SC_CASE_LOWER, 2) or camel case (SC_CASE_CAMEL, 3) or display normally (SC_CASE_MIXED, 0). This does not change the stored text, only how it is displayed.

SCI_STYLESETVISIBLE(int style, bool visible)
SCI_STYLEGETVISIBLE(int style) → bool
Text is normally visible. However, you can completely hide it by giving it a style with the visible set to 0. This could be used to hide embedded formatting instructions or hypertext keywords in HTML or XML.

SCI_STYLESETCHANGEABLE(int style, bool changeable)
SCI_STYLEGETCHANGEABLE(int style) → bool
This is an experimental and incompletely implemented style attribute. The default setting is changeable set true but when set false it makes text read-only. Currently it only stops the caret from being within not-changeable text and does not yet stop deleting a range that contains not-changeable text.

SCI_STYLESETHOTSPOT(int style, bool hotspot)
SCI_STYLEGETHOTSPOT(int style) → bool
This style is used to mark ranges of text that can detect mouse clicks. The cursor changes to a hand over hotspots, and the foreground, and background colours may change and an underline appear to indicate that these areas are sensitive to clicking. This may be used to allow hyperlinks to other documents.

Caret, selection, and hotspot styles

The selection is shown by changing the foreground and/or background colours. If one of these is not set then that attribute is not changed for the selection. The default is to show the selection by changing the background to light grey and leaving the foreground the same as when it was not selected. When there is no selection, the current insertion point is marked by the text caret. This is a vertical line that is normally blinking on and off to attract the users attention.

SCI_SETSELFORE(bool useSetting, colour fore)
SCI_SETSELBACK(bool useSetting, colour back)
SCI_SETSELALPHA(alpha alpha)
SCI_GETSELALPHA → int
SCI_SETSELEOLFILLED(bool filled)
SCI_GETSELEOLFILLED → bool
SCI_SETCARETFORE(colour fore)
SCI_GETCARETFORE → colour
SCI_SETCARETLINEVISIBLE(bool show)
SCI_GETCARETLINEVISIBLE → bool
SCI_SETCARETLINEBACK(colour back)
SCI_GETCARETLINEBACK → colour
SCI_SETCARETLINEBACKALPHA(alpha alpha)
SCI_GETCARETLINEBACKALPHA → int
SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)
SCI_GETCARETLINEVISIBLEALWAYS → bool
SCI_SETCARETPERIOD(int periodMilliseconds)
SCI_GETCARETPERIOD → int
SCI_SETCARETSTYLE(int caretStyle)
SCI_GETCARETSTYLE → int
SCI_SETCARETWIDTH(int pixelWidth)
SCI_GETCARETWIDTH → int
SCI_SETHOTSPOTACTIVEFORE(bool useSetting, colour fore)
SCI_GETHOTSPOTACTIVEFORE → colour
SCI_SETHOTSPOTACTIVEBACK(bool useSetting, colour back)
SCI_GETHOTSPOTACTIVEBACK → colour
SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)
SCI_GETHOTSPOTACTIVEUNDERLINE → bool
SCI_SETHOTSPOTSINGLELINE(bool singleLine)
SCI_GETHOTSPOTSINGLELINE → bool
SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
SCI_GETCARETSTICKY → int
SCI_TOGGLECARETSTICKY

SCI_SETSELFORE(bool useSetting, colour fore)
SCI_SETSELBACK(bool useSetting, colour back)
You can choose to override the default selection colouring with these two messages. The colour you provide is used if you set useSelection*Colour to true. If it is set to false, the default styled colouring is used and the fore or back argument has no effect.

SCI_SETSELALPHA(alpha alpha)
SCI_GETSELALPHA → int
The selection can be drawn translucently in the selection background colour by setting an alpha value.

SCI_SETSELEOLFILLED(bool filled)
SCI_GETSELEOLFILLED → bool
The selection can be drawn up to the right hand border by setting this property.

SCI_SETCARETFORE(colour fore)
SCI_GETCARETFORE → colour
The colour of the caret can be set with SCI_SETCARETFORE and retrieved with SCI_GETCARETFORE.

SCI_SETCARETLINEVISIBLE(bool show)
SCI_GETCARETLINEVISIBLE → bool
SCI_SETCARETLINEBACK(colour back)
SCI_GETCARETLINEBACK → colour
SCI_SETCARETLINEBACKALPHA(alpha alpha)
SCI_GETCARETLINEBACKALPHA → int
You can choose to make the background colour of the line containing the caret different with these messages. To do this, set the desired background colour with SCI_SETCARETLINEBACK, then use SCI_SETCARETLINEVISIBLE(true) to enable the effect. You can cancel the effect with SCI_SETCARETLINEVISIBLE(false). The two SCI_GETCARET* functions return the state and the colour. This form of background colouring has highest priority when a line has markers that would otherwise change the background colour. The caret line may also be drawn translucently which allows other background colours to show through. This is done by setting the alpha (translucency) value by calling SCI_SETCARETLINEBACKALPHA. When the alpha is not SC_ALPHA_NOALPHA, the caret line is drawn after all other features so will affect the colour of all other features.

SCI_SETCARETLINEVISIBLEALWAYS(bool alwaysVisible)
SCI_GETCARETLINEVISIBLEALWAYS → bool
Choose to make the caret line always visible even when the window is not in focus. Default behaviour SCI_SETCARETLINEVISIBLEALWAYS(false) the caret line is only visible when the window is in focus.

SCI_SETCARETPERIOD(int periodMilliseconds)
SCI_GETCARETPERIOD → int
The rate at which the caret blinks can be set with SCI_SETCARETPERIOD which determines the time in milliseconds that the caret is visible or invisible before changing state. Setting the period to 0 stops the caret blinking. The default value is 500 milliseconds. SCI_GETCARETPERIOD returns the current setting.

SCI_SETCARETSTYLE(int caretStyle)
SCI_GETCARETSTYLE → int
The style of the caret can be set with SCI_SETCARETSTYLE to be a line caret (CARETSTYLE_LINE=1), a block caret (CARETSTYLE_BLOCK=2) or to not draw at all (CARETSTYLE_INVISIBLE=0). The default value is the line caret (CARETSTYLE_LINE=1). You can determine the current caret style setting using SCI_GETCARETSTYLE.

The block character draws most combining and multibyte character sequences successfully, though some fonts like Thai Fonts (and possibly others) can sometimes appear strange when the cursor is positioned at these characters, which may result in only drawing a part of the cursor character sequence. This is most notable on Windows platforms.

SCI_SETCARETWIDTH(int pixelWidth)
SCI_GETCARETWIDTH → int
The width of the line caret can be set with SCI_SETCARETWIDTH to a value of 0, 1, 2 or 3 pixels. The default width is 1 pixel. You can read back the current width with SCI_GETCARETWIDTH. A width of 0 makes the caret invisible (added at version 1.50), similar to setting the caret style to CARETSTYLE_INVISIBLE (though not interchangeable). This setting only affects the width of the cursor when the cursor style is set to line caret mode, it does not affect the width for a block caret.

SCI_SETHOTSPOTACTIVEFORE(bool useSetting, colour fore)
SCI_GETHOTSPOTACTIVEFORE → colour
SCI_SETHOTSPOTACTIVEBACK(bool useSetting, colour back)
SCI_GETHOTSPOTACTIVEBACK → colour
SCI_SETHOTSPOTACTIVEUNDERLINE(bool underline)
SCI_GETHOTSPOTACTIVEUNDERLINE → bool
SCI_SETHOTSPOTSINGLELINE(bool singleLine)
SCI_GETHOTSPOTSINGLELINE → bool
While the cursor hovers over text in a style with the hotspot attribute set, the default colouring can be modified and an underline drawn with these settings. Single line mode stops a hotspot from wrapping onto next line.

SCI_SETCARETSTICKY(int useCaretStickyBehaviour)
SCI_GETCARETSTICKY → int
SCI_TOGGLECARETSTICKY
These messages set, get or toggle the caretSticky setting which controls when the last position of the caret on the line is saved.

When set to SC_CARETSTICKY_OFF (0), the sticky flag is off; all text changes (and all caret position changes) will remember the caret's new horizontal position when moving to different lines. This is the default.

When set to SC_CARETSTICKY_ON (1), the sticky flag is on, and the only thing which will cause the editor to remember the horizontal caret position is moving the caret with mouse or keyboard (left/right arrow keys, home/end keys, etc).

When set to SC_CARETSTICKY_WHITESPACE (2), the caret acts like mode 0 (sticky off) except under one special case; when space or tab characters are inserted. (Including pasting only space/tabs -- undo, redo, etc. do not exhibit this behaviour..).

SCI_TOGGLECARETSTICKY switches from SC_CARETSTICKY_ON and SC_CARETSTICKY_WHITESPACE to SC_CARETSTICKY_OFF and from SC_CARETSTICKY_OFF to SC_CARETSTICKY_ON.

Character representations

Some characters, such as control characters and invalid bytes, do not have a visual glyph or use a glyph that is hard to distinguish.

Control characters (characters with codes less than 32, or between 128 and 159 in some encodings) are displayed by Scintilla using their mnemonics inverted in a rounded rectangle. These mnemonics come from the early days of signalling, though some are still used (LF = Line Feed, BS = Back Space, CR = Carriage Return, for example).

For the low 'C0' values: "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US".

For the high 'C1' values: "PAD", "HOP", "BPH", "NBH", "IND", "NEL", "SSA", "ESA", "HTS", "HTJ", "VTS", "PLD", "PLU", "RI", "SS2", "SS3", "DCS", "PU1", "PU2", "STS", "CCH", "MW", "SPA", "EPA", "SOS", "SGCI", "SCI", "CSI", "ST", "OSC", "PM", "APC".

Invalid bytes are shown in a similar way with an 'x' followed by their value in hexadecimal, like "xFE".

SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation) → int
SCI_CLEARREPRESENTATION(const char *encodedCharacter)
SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_GETCONTROLCHARSYMBOL → int

SCI_SETREPRESENTATION(const char *encodedCharacter, const char *representation)
SCI_GETREPRESENTATION(const char *encodedCharacter, char *representation NUL-terminated) → int
SCI_CLEARREPRESENTATION(const char *encodedCharacter)
Any character, including those normally displayed as mnemonics may be represented by a string inverted in a rounded rectangle.

For example, the Ohm sign Ω U+2126 looks very similar to the Greek Omega character Ω U+03C9 so, for the UTF-8 encoding, to distinguish the Ohm sign as "U+2126 Ω" this call could be made: SCI_SETREPRESENTATION("\xe2\x84\xa6", "U+2126 \xe2\x84\xa6")

The encodedCharacter parameter is a NUL-terminated string of the bytes for one character in the current encoding. This can not be used to set a representation for multiple-character strings.

The NUL (0) character is a special case since the encodedCharacter parameter is NUL terminated, the NUL character is specified as an empty string.

SCI_SETCONTROLCHARSYMBOL(int symbol)
SCI_GETCONTROLCHARSYMBOL → int
The mnemonics may be replaced by a nominated symbol with an ASCII code in the range 32 to 255. If you set a symbol value less than 32, all control characters are displayed as mnemonics. The symbol you set is rendered in the font of the style set for the character. You can read back the current symbol with the SCI_GETCONTROLCHARSYMBOL message. The default symbol value is 0.

Margins

There may be multiple margins to the left of the text display plus a gap either side of the text. 5 margins are allocated initially numbered from 0 to SC_MAX_MARGIN (4) but this may be changed by calling SCI_SETMARGINS. Each margin can be set to display only symbols, line numbers, or text with SCI_SETMARGINTYPEN. Textual margins may also display symbols. The markers that can be displayed in each margin are set with SCI_SETMARGINMASKN. Any markers not associated with a visible margin will be displayed as changes in background colour in the text. A width in pixels can be set for each margin. Margins with a zero width are ignored completely. You can choose if a mouse click in a margin sends a SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container or selects a line of text.

Using a margin number outside the valid range has no effect. By default, margin 0 is set to display line numbers, but is given a width of 0, so it is hidden. Margin 1 is set to display non-folding symbols and is given a width of 16 pixels, so it is visible. Margin 2 is set to display the folding symbols, but is given a width of 0, so it is hidden. Of course, you can set the margins to be whatever you wish.

Styled text margins used to show revision and blame information:

Styled text margins used to show revision and blame information

SCI_SETMARGINS(int margins)
SCI_GETMARGINS → int
SCI_SETMARGINTYPEN(int margin, int marginType)
SCI_GETMARGINTYPEN(int margin) → int
SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
SCI_GETMARGINWIDTHN(int margin) → int
SCI_SETMARGINMASKN(int margin, int mask)
SCI_GETMARGINMASKN(int margin) → int
SCI_SETMARGINSENSITIVEN(int margin, bool sensitive)
SCI_GETMARGINSENSITIVEN(int margin) → bool
SCI_SETMARGINCURSORN(int margin, int cursor)
SCI_GETMARGINCURSORN(int margin) → int
SCI_SETMARGINBACKN(int margin, colour back)
SCI_GETMARGINBACKN(int margin) → colour
SCI_SETMARGINLEFT(<unused>, int pixelWidth)
SCI_GETMARGINLEFT → int
SCI_SETMARGINRIGHT(<unused>, int pixelWidth)
SCI_GETMARGINRIGHT → int
SCI_SETFOLDMARGINCOLOUR(bool useSetting, colour back)
SCI_SETFOLDMARGINHICOLOUR(bool useSetting, colour fore)
SCI_MARGINSETTEXT(int line, const char *text)
SCI_MARGINGETTEXT(int line, char *text) → int
SCI_MARGINSETSTYLE(int line, int style)
SCI_MARGINGETSTYLE(int line) → int
SCI_MARGINSETSTYLES(int line, const char *styles)
SCI_MARGINGETSTYLES(int line, char *styles) → int
SCI_MARGINTEXTCLEARALL
SCI_MARGINSETSTYLEOFFSET(int style)
SCI_MARGINGETSTYLEOFFSET → int
SCI_SETMARGINOPTIONS(int marginOptions)
SCI_GETMARGINOPTIONS → int

SCI_SETMARGINS(int margins)
SCI_GETMARGINS → int
Allocate the number of margins or find the number of margins currently allocated.

SCI_SETMARGINTYPEN(int margin, int marginType)
SCI_GETMARGINTYPEN(int margin) → int
These two routines set and get the type of a margin. The margin argument should be 0, 1, 2, 3 or 4. You can use the predefined constants SC_MARGIN_SYMBOL (0) and SC_MARGIN_NUMBER (1) to set a margin as either a line number or a symbol margin. A margin with application defined text may use SC_MARGIN_TEXT (4) or SC_MARGIN_RTEXT (5) to right justify the text. By convention, margin 0 is used for line numbers and the next two are used for symbols. You can also use the constants SC_MARGIN_BACK (2), SC_MARGIN_FORE (3), and SC_MARGIN_COLOUR (6) for symbol margins that set their background colour to match the STYLE_DEFAULT background and foreground colours or a specified colour.

SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
SCI_GETMARGINWIDTHN(int margin) → int
These routines set and get the width of a margin in pixels. A margin with zero width is invisible. By default, Scintilla sets margin 1 for symbols with a width of 16 pixels, so this is a reasonable guess if you are not sure what would be appropriate. Line number margins widths should take into account the number of lines in the document and the line number style. You could use something like SCI_TEXTWIDTH(STYLE_LINENUMBER, "_99999") to get a suitable width.

SCI_SETMARGINMASKN(int margin, int mask)
SCI_GETMARGINMASKN(int margin) → int
The mask is a 32-bit value. Each bit corresponds to one of 32 logical symbols that can be displayed in a margin that is enabled for symbols. There is a useful constant, SC_MASK_FOLDERS (0xFE000000 or -33554432), that is a mask for the 7 logical symbols used to denote folding. You can assign a wide range of symbols and colours to each of the 32 logical symbols, see Markers for more information. If (mask & SC_MASK_FOLDERS)==0, the margin background colour is controlled by style 33 (STYLE_LINENUMBER).

You add logical markers to a line with SCI_MARKERADD. If a line has an associated marker that does not appear in the mask of any margin with a non-zero width, the marker changes the background colour of the line. For example, suppose you decide to use logical marker 10 to mark lines with a syntax error and you want to show such lines by changing the background colour. The mask for this marker is 1 shifted left 10 times (1<<10) which is 0x400. If you make sure that no symbol margin includes 0x400 in its mask, any line with the marker gets the background colour changed.

To set a non-folding margin 1 use SCI_SETMARGINMASKN(1, ~SC_MASK_FOLDERS) which is the default set by Scintilla. To set a folding margin 2 use SCI_SETMARGINMASKN(2, SC_MASK_FOLDERS). ~SC_MASK_FOLDERS is 0x1FFFFFF in hexadecimal or 33554431 decimal. Of course, you may need to display all 32 symbols in a margin, in which case use SCI_SETMARGINMASKN(margin, -1).

SCI_SETMARGINSENSITIVEN(int margin, bool sensitive)
SCI_GETMARGINSENSITIVEN(int margin) → bool
Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a sensitive margin sends a SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container. Margins that are not sensitive act as selection margins which make it easy to select ranges of lines. By default, all margins are insensitive.

SCI_SETMARGINCURSORN(int margin, int cursor)
SCI_GETMARGINCURSORN(int margin) → int
A reversed arrow cursor is normally shown over all margins. This may be changed to a normal arrow with SCI_SETMARGINCURSORN(margin, SC_CURSORARROW) or restored to a reversed arrow with SCI_SETMARGINCURSORN(margin, SC_CURSORREVERSEARROW).

SCI_SETMARGINBACKN(int margin, colour back)
SCI_GETMARGINBACKN(int margin) → colour
A margin of type SC_MARGIN_COLOUR may have its colour set with SCI_SETMARGINBACKN.

SCI_SETMARGINLEFT(<unused>, int pixelWidth)
SCI_GETMARGINLEFT → int
SCI_SETMARGINRIGHT(<unused>, int pixelWidth)
SCI_GETMARGINRIGHT → int
These messages set and get the width of the blank margin on both sides of the text in pixels. The default is to one pixel on each side.

SCI_SETFOLDMARGINCOLOUR(bool useSetting, colour back)
SCI_SETFOLDMARGINHICOLOUR(bool useSetting, colour fore)
These messages allow changing the colour of the fold margin and fold margin highlight. On Windows the fold margin colour defaults to ::GetSysColor(COLOR_3DFACE) and the fold margin highlight colour to ::GetSysColor(COLOR_3DHIGHLIGHT).

SCI_MARGINSETTEXT(int line, const char *text)
SCI_MARGINGETTEXT(int line, char *text) → int
SCI_MARGINSETSTYLE(int line, int style)
SCI_MARGINGETSTYLE(int line) → int
SCI_MARGINSETSTYLES(int line, const char *styles)
SCI_MARGINGETSTYLES(int line, char *styles) → int
SCI_MARGINTEXTCLEARALL
Text margins are created with the type SC_MARGIN_TEXT or SC_MARGIN_RTEXT. A different string may be set for each line with SCI_MARGINSETTEXT. The whole of the text margin on a line may be displayed in a particular style with SCI_MARGINSETSTYLE or each character may be individually styled with SCI_MARGINSETSTYLES which uses an array of bytes with each byte setting the style of the corresponding text byte similar to SCI_SETSTYLINGEX. Setting a text margin will cause a SC_MOD_CHANGEMARGIN notification to be sent.

Only some style attributes are active in text margins: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet.

SCI_MARGINSETSTYLEOFFSET(int style)
SCI_MARGINGETSTYLEOFFSET → int
Margin styles may be completely separated from standard text styles by setting a style offset. For example, SCI_MARGINSETSTYLEOFFSET(256) would allow the margin styles to be numbered from 256 up to 511 so they do not overlap styles set by lexers. Each style number set with SCI_MARGINSETSTYLE or SCI_MARGINSETSTYLES has the offset added before looking up the style.

Always call SCI_ALLOCATEEXTENDEDSTYLES before SCI_MARGINSETSTYLEOFFSET and use the result as the argument to SCI_MARGINSETSTYLEOFFSET.

SCI_SETMARGINOPTIONS(int marginOptions)
SCI_GETMARGINOPTIONS → int
Define margin options by enabling appropriate bit flags. At the moment, only one flag is available SC_MARGINOPTION_SUBLINESELECT=1, which controls how wrapped lines are selected when clicking on margin in front of them. If SC_MARGINOPTION_SUBLINESELECT is set only sub line of wrapped line is selected, otherwise whole wrapped line is selected. Margin options are set to SC_MARGINOPTION_NONE=0 by default.

Annotations

Annotations are read-only lines of text underneath each line of editable text. An annotation may consist of multiple lines separated by '\n'. Annotations can be used to display an assembler version of code for debugging or to show diagnostic messages inline or to line up different versions of text in a merge tool.

Annotations count as display lines for the methods SCI_VISIBLEFROMDOCLINE and SCI_DOCLINEFROMVISIBLE

Annotations used for inline diagnostics:

Annotations used for inline diagnostics

SCI_ANNOTATIONSETTEXT(int line, const char *text)
SCI_ANNOTATIONGETTEXT(int line, char *text) → int
SCI_ANNOTATIONSETSTYLE(int line, int style)
SCI_ANNOTATIONGETSTYLE(int line) → int
SCI_ANNOTATIONSETSTYLES(int line, const char *styles)
SCI_ANNOTATIONGETSTYLES(int line, char *styles) → int
SCI_ANNOTATIONGETLINES(int line) → int
SCI_ANNOTATIONCLEARALL
SCI_ANNOTATIONSETVISIBLE(int visible)
SCI_ANNOTATIONGETVISIBLE → int
SCI_ANNOTATIONSETSTYLEOFFSET(int style)
SCI_ANNOTATIONGETSTYLEOFFSET → int

SCI_ANNOTATIONSETTEXT(int line, const char *text)
SCI_ANNOTATIONGETTEXT(int line, char *text) → int
SCI_ANNOTATIONSETSTYLE(int line, int style)
SCI_ANNOTATIONGETSTYLE(int line) → int
SCI_ANNOTATIONSETSTYLES(int line, const char *styles)
SCI_ANNOTATIONGETSTYLES(int line, char *styles) → int
SCI_ANNOTATIONGETLINES(int line) → int
SCI_ANNOTATIONCLEARALL
A different string may be set for each line with SCI_ANNOTATIONSETTEXT. To clear annotations call SCI_ANNOTATIONSETTEXT with a NULL pointer. The whole of the text ANNOTATION on a line may be displayed in a particular style with SCI_ANNOTATIONSETSTYLE or each character may be individually styled with SCI_ANNOTATIONSETSTYLES which uses an array of bytes with each byte setting the style of the corresponding text byte similar to SCI_SETSTYLINGEX. The text must be set first as it specifies how long the annotation is so how many bytes of styling to read. Setting an annotation will cause a SC_MOD_CHANGEANNOTATION notification to be sent.

The number of lines annotating a line can be retrieved with SCI_ANNOTATIONGETLINES. All the lines can be cleared of annotations with SCI_ANNOTATIONCLEARALL which is equivalent to clearing each line (setting to 0) and then deleting other memory used for this feature.

Only some style attributes are active in annotations: font, size/sizeFractional, bold/weight, italics, fore, back, and characterSet.

SCI_ANNOTATIONSETVISIBLE(int visible)
SCI_ANNOTATIONGETVISIBLE → int
Annotations can be made visible in a view and there is a choice of display style when visible. The two messages set and get the annotation display mode. The visible argument can be one of:

ANNOTATION_HIDDEN 0 Annotations are not displayed.
ANNOTATION_STANDARD 1 Annotations are drawn left justified with no adornment.
ANNOTATION_BOXED 2 Annotations are indented to match the text and are surrounded by a box.
ANNOTATION_INDENTED 3 Annotations are indented to match the text.

SCI_ANNOTATIONSETSTYLEOFFSET(int style)
SCI_ANNOTATIONGETSTYLEOFFSET → int
Annotation styles may be completely separated from standard text styles by setting a style offset. For example, SCI_ANNOTATIONSETSTYLEOFFSET(512) would allow the annotation styles to be numbered from 512 up to 767 so they do not overlap styles set by lexers (or margins if margins offset is 256). Each style number set with SCI_ANNOTATIONSETSTYLE or SCI_ANNOTATIONSETSTYLES has the offset added before looking up the style.

Always call SCI_ALLOCATEEXTENDEDSTYLES before SCI_ANNOTATIONSETSTYLEOFFSET and use the result as the argument to SCI_ANNOTATIONSETSTYLEOFFSET.

Other settings

SCI_SETBUFFEREDDRAW(bool buffered)
SCI_GETBUFFEREDDRAW → bool
SCI_SETPHASESDRAW(int phases)
SCI_GETPHASESDRAW → int
SCI_SETTWOPHASEDRAW(bool twoPhase)
SCI_GETTWOPHASEDRAW → bool
SCI_SETTECHNOLOGY(int technology)
SCI_GETTECHNOLOGY → int
SCI_SETFONTQUALITY(int fontQuality)
SCI_GETFONTQUALITY → int
SCI_SETCODEPAGE(int codePage)
SCI_GETCODEPAGE → int
SCI_SETIMEINTERACTION(int imeInteraction)
SCI_GETIMEINTERACTION → int
SCI_GRABFOCUS
SCI_SETFOCUS(bool focus)
SCI_GETFOCUS → bool

To forward a message (WM_XXXX, WPARAM, LPARAM) to Scintilla, you can use SendMessage(hScintilla, WM_XXXX, WPARAM, LPARAM) where hScintilla is the handle to the Scintilla window you created as your editor.

While we are on the subject of forwarding messages in Windows, the top level window should forward any WM_SETTINGCHANGE messages to Scintilla (this is currently used to collect changes to mouse settings, but could be used for other user interface items in the future).

SCI_SETBUFFEREDDRAW(bool buffered)
SCI_GETBUFFEREDDRAW → bool
These messages turn buffered drawing on or off and report the buffered drawing state. Buffered drawing draws each line into a bitmap rather than directly to the screen and then copies the bitmap to the screen. This avoids flickering although it does take longer. The default is for drawing to be buffered on Win32 and GTK+ and to not be buffered on Cocoa and Qt. Buffered drawing is not supported on Cocoa.

Current platforms perform window buffering so it is almost always better for this option to be turned off. For Win32 and GTK+, client code should turn off buffering at initialisation. There are some older platforms and unusual modes where buffering may still be useful.

SCI_SETPHASESDRAW(int phases)
SCI_GETPHASESDRAW → int
There are several orders in which the text area may be drawn offering a trade-off between speed and allowing all pixels of text to be seen even when they overlap other elements.

In single phase drawing (SC_PHASES_ONE) each run of characters in one style is drawn along with its background. If a character overhangs the end of a run, such as in "V_" where the "V" is in a different style from the "_", then this can cause the right hand side of the "V" to be overdrawn by the background of the "_" which cuts it off.

Two phase drawing (SC_PHASES_TWO) fixes this by drawing all the backgrounds of a line first and then drawing the text in transparent mode. Lines are drawn separately and no line will overlap another so any pixels that overlap into another line such as extreme ascenders and descenders on characters will be cut off. Two phase drawing may flicker more than single phase unless buffered drawing is on or the platform is naturally buffered. The default is for drawing to be two phase.

Multiple phase drawing (SC_PHASES_MULTIPLE) draws the whole area multiple times, once for each feature, building up the the appearance in layers or phases. The coloured backgrounds for all lines are drawn before any text and then all the text is drawn in transparent mode over this combined background without clipping text to the line boundaries. This allows extreme ascenders and descenders to overflow into the adjacent lines. This mode is incompatible with buffered drawing and will act as SC_PHASES_TWO if buffered drawing is turned on. Multiple phase drawing is slower than two phase drawing. Setting the layout cache with SCI_SETLAYOUTCACHE(SC_CACHE_PAGE) or higher can ensure that multiple phase drawing is not significantly slower.

SCI_SETTWOPHASEDRAW(bool twoPhase)
SCI_GETTWOPHASEDRAW → bool
This property has been replaced with the preceding PHASESDRAW property which is more general, allowing multiple phase drawing as well as one and two phase drawing.

SCI_SETTECHNOLOGY(int technology)
SCI_GETTECHNOLOGY → int
The technology property allows choosing between different drawing APIs and options. On most platforms, the only choice is SC_TECHNOLOGY_DEFAULT (0). On Windows Vista or later, SC_TECHNOLOGY_DIRECTWRITE (1), SC_TECHNOLOGY_DIRECTWRITERETAIN (2), or SC_TECHNOLOGY_DIRECTWRITEDC (3) can be chosen to use the Direct2D and DirectWrite APIs for higher quality antialiased drawing. SC_TECHNOLOGY_DIRECTWRITERETAIN differs from SC_TECHNOLOGY_DIRECTWRITE by requesting that the frame is retained after being presented which may prevent drawing failures on some cards and drivers. SC_TECHNOLOGY_DIRECTWRITEDC differs from SC_TECHNOLOGY_DIRECTWRITE by using DirectWrite to draw into a GDI DC. Since Direct2D buffers drawing, Scintilla's buffering can be turned off with SCI_SETBUFFEREDDRAW(0). Since SC_TECHNOLOGY_DIRECTWRITERETAIN and SC_TECHNOLOGY_DIRECTWRITEDC are provisional, they may be changed or removed in a future release if a better solution is found.

SCI_SETFONTQUALITY(int fontQuality)
SCI_GETFONTQUALITY → int
Manage font quality (antialiasing method). Currently, the following values are available on Windows: SC_EFF_QUALITY_DEFAULT (backward compatible), SC_EFF_QUALITY_NON_ANTIALIASED, SC_EFF_QUALITY_ANTIALIASED, SC_EFF_QUALITY_LCD_OPTIMIZED.

In case it is necessary to squeeze more options into this property, only a limited number of bits defined by SC_EFF_QUALITY_MASK (0xf) will be used for quality.

SCI_SETCODEPAGE(int codePage)
SCI_GETCODEPAGE → int
Scintilla has some support for Japanese, Chinese and Korean DBCS. Use this message with codePage set to the code page number to set Scintilla to use code page information to ensure double byte characters are treated as one character rather than two. This also stops the caret from moving between the two bytes in a double byte character. Do not use this message to choose between different single byte character sets: it doesn't do that. Call with codePage set to zero to disable DBCS support. The default is SCI_SETCODEPAGE(0).

Code page SC_CP_UTF8 (65001) sets Scintilla into Unicode mode with the document treated as a sequence of characters expressed in UTF-8. The text is converted to the platform's normal Unicode encoding before being drawn by the OS and thus can display Hebrew, Arabic, Cyrillic, and Han characters. Languages which can use two characters stacked vertically in one horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported.

Code page can be set to 932 (Japanese Shift-JIS), 936 (Simplified Chinese GBK), 949 (Korean Unified Hangul Code), 950 (Traditional Chinese Big5), or 1361 (Korean Johab) although these may require installation of language specific support.

SCI_SETIMEINTERACTION(int imeInteraction)
SCI_GETIMEINTERACTION → int
When entering text in Chinese, Japanese, or Korean an Input Method Editor (IME) may be displayed. The IME may be an extra window appearing above Scintilla or may be displayed by Scintilla itself as text. On some platforms there is a choice between the two techniques. A windowed IME SC_IME_WINDOWED (0) may be more similar in appearance and behaviour to the IME in other applications. An inline IME SC_IME_INLINE (1) may work better with some Scintilla features such as rectangular and multiple selection.

The windowed behaviour can be chosen with SCI_SETIMEINTERACTION(SC_IME_WINDOWED) and the inline behaviour with SCI_SETIMEINTERACTION(SC_IME_INLINE). Scintilla may ignore this call in some cases. For example, the inline behaviour might only be supported for some languages.

SCI_GRABFOCUS
SCI_SETFOCUS(bool focus)
SCI_GETFOCUS → bool
Scintilla can be told to grab the focus with this message. This is needed more on GTK+ where focus handling is more complicated than on Windows.

The internal focus flag can be set with SCI_SETFOCUS. This is used by clients that have complex focus requirements such as having their own window that gets the real focus but with the need to indicate that Scintilla has the logical focus.

Brace highlighting

SCI_BRACEHIGHLIGHT(int posA, int posB)
SCI_BRACEBADLIGHT(int pos)
SCI_BRACEHIGHLIGHTINDICATOR(bool useSetting, int indicator)
SCI_BRACEBADLIGHTINDICATOR(bool useSetting, int indicator)
SCI_BRACEMATCH(int pos, int maxReStyle) → position

SCI_BRACEHIGHLIGHT(int posA, int posB)
Up to two characters can be highlighted in a 'brace highlighting style', which is defined as style number STYLE_BRACELIGHT (34). If you have enabled indent guides, you may also wish to highlight the indent that corresponds with the brace. You can locate the column with SCI_GETCOLUMN and highlight the indent with SCI_SETHIGHLIGHTGUIDE.

SCI_BRACEBADLIGHT(int pos)
If there is no matching brace then the brace badlighting style, style STYLE_BRACEBAD (35), can be used to show the brace that is unmatched. Using a position of INVALID_POSITION (-1) removes the highlight.

SCI_BRACEHIGHLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight matching braces instead of changing their style.

SCI_BRACEBADLIGHTINDICATOR(bool useSetting, int indicator)
Use specified indicator to highlight non matching brace instead of changing its style.

SCI_BRACEMATCH(int pos, int maxReStyle) → position
The SCI_BRACEMATCH message finds a corresponding matching brace given pos, the position of one brace. The brace characters handled are '(', ')', '[', ']', '{', '}', '<', and '>'. The search is forwards from an opening brace and backwards from a closing brace. If the character at position is not a brace character, or a matching brace cannot be found, the return value is -1. Otherwise, the return value is the position of the matching brace.

A match only occurs if the style of the matching brace is the same as the starting brace or the matching brace is beyond the end of styling. Nested braces are handled correctly. The maxReStyle parameter must currently be 0 - it may be used in the future to limit the length of brace searches.

Tabs and Indentation Guides

Indentation (the white space at the start of a line) is often used by programmers to clarify program structure and in some languages, for example Python, it may be part of the language syntax. Tabs are normally used in editors to insert a tab character or to pad text with spaces up to the next tab.

When Scintilla is laying out a section of text, text after a tab character will usually be displayed at the next multiple of TABWIDTH columns from the left. However, it is also possible to explicitly set tabstops in pixels for each line.

Scintilla can be set to treat tab and backspace in the white space at the start of a line in a special way: inserting a tab indents the line to the next indent position rather than just inserting a tab at the current character position and backspace unindents the line rather than deleting a character. Scintilla can also display indentation guides (vertical lines) to help you to generate code.

SCI_SETTABWIDTH(int tabWidth)
SCI_GETTABWIDTH → int
SCI_CLEARTABSTOPS(int line)
SCI_ADDTABSTOP(int line, int x)
SCI_GETNEXTTABSTOP(int line, int x) → int
SCI_SETUSETABS(bool useTabs)
SCI_GETUSETABS → bool
SCI_SETINDENT(int indentSize)
SCI_GETINDENT → int
SCI_SETTABINDENTS(bool tabIndents)
SCI_GETTABINDENTS → bool
SCI_SETBACKSPACEUNINDENTS(bool bsUnIndents)
SCI_GETBACKSPACEUNINDENTS → bool
SCI_SETLINEINDENTATION(int line, int indentation)
SCI_GETLINEINDENTATION(int line) → int
SCI_GETLINEINDENTPOSITION(int line) → position
SCI_SETINDENTATIONGUIDES(int indentView)
SCI_GETINDENTATIONGUIDES → int
SCI_SETHIGHLIGHTGUIDE(int column)
SCI_GETHIGHLIGHTGUIDE → int

SCI_SETTABWIDTH(int tabWidth)
SCI_GETTABWIDTH → int
SCI_SETTABWIDTH sets the size of a tab as a multiple of the size of a space character in STYLE_DEFAULT. The default tab width is 8 characters. There are no limits on tab sizes, but values less than 1 or large values may have undesirable effects.

SCI_CLEARTABSTOPS(int line)
SCI_ADDTABSTOP(int line, int x)
SCI_GETNEXTTABSTOP(int line, int x) → int
SCI_CLEARTABSTOPS clears explicit tabstops on a line. SCI_ADDTABSTOP adds an explicit tabstop at the specified distance from the left (in pixels), and SCI_GETNEXTTABSTOP gets the next explicit tabstop position set after the given x position, or zero if there aren't any. Changing tab stops produces a SC_MOD_CHANGETABSTOPS notification.

SCI_SETUSETABS(bool useTabs)
SCI_GETUSETABS → bool
SCI_SETUSETABS determines whether indentation should be created out of a mixture of tabs and spaces or be based purely on spaces. Set useTabs to false (0) to create all tabs and indents out of spaces. The default is true. You can use SCI_GETCOLUMN to get the column of a position taking the width of a tab into account.

SCI_SETINDENT(int indentSize)
SCI_GETINDENT → int
SCI_SETINDENT sets the size of indentation in terms of the width of a space in STYLE_DEFAULT. If you set a width of 0, the indent size is the same as the tab size. There are no limits on indent sizes, but values less than 0 or large values may have undesirable effects.

SCI_SETTABINDENTS(bool tabIndents)
SCI_GETTABINDENTS → bool
SCI_SETBACKSPACEUNINDENTS(bool bsUnIndents)
SCI_GETBACKSPACEUNINDENTS → bool

Inside indentation white space, the tab and backspace keys can be made to indent and unindent rather than insert a tab character or delete a character with the SCI_SETTABINDENTS and SCI_SETBACKSPACEUNINDENTS functions.

SCI_SETLINEINDENTATION(int line, int indentation)
SCI_GETLINEINDENTATION(int line) → int
The amount of indentation on a line can be discovered and set with SCI_GETLINEINDENTATION and SCI_SETLINEINDENTATION. The indentation is measured in character columns, which correspond to the width of space characters.

SCI_GETLINEINDENTPOSITION(int line) → position
This returns the position at the end of indentation of a line.

SCI_SETINDENTATIONGUIDES(int indentView)
SCI_GETINDENTATIONGUIDES → int
Indentation guides are dotted vertical lines that appear within indentation white space every indent size columns. They make it easy to see which constructs line up especially when they extend over multiple pages. Style STYLE_INDENTGUIDE (37) is used to specify the foreground and background colour of the indentation guides.

There are 4 indentation guide views. SC_IV_NONE turns the feature off but the other 3 states determine how far the guides appear on empty lines.

SC_IV_NONE No indentation guides are shown.
SC_IV_REAL Indentation guides are shown inside real indentation white space.
SC_IV_LOOKFORWARD Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line. If the previous non-empty line was a fold header then indentation guides are shown for one more level of indent than that line. This setting is good for Python.
SC_IV_LOOKBOTH Indentation guides are shown beyond the actual indentation up to the level of the next non-empty line or previous non-empty line whichever is the greater. This setting is good for most languages.

SCI_SETHIGHLIGHTGUIDE(int column)
SCI_GETHIGHLIGHTGUIDE → int
When brace highlighting occurs, the indentation guide corresponding to the braces may be highlighted with the brace highlighting style, STYLE_BRACELIGHT (34). Set column to 0 to cancel this highlight.

Markers

There are 32 markers, numbered 0 to MARKER_MAX (31), and you can assign any combination of them to each line in the document. Markers appear in the selection margin to the left of the text. If the selection margin is set to zero width, the background colour of the whole line is changed instead. Marker numbers 25 to 31 are used by Scintilla in folding margins, and have symbolic names of the form SC_MARKNUM_*, for example SC_MARKNUM_FOLDEROPEN.

Marker numbers 0 to 24 have no pre-defined function; you can use them to mark syntax errors or the current point of execution, break points, or whatever you need marking. If you do not need folding, you can use all 32 for any purpose you wish.

Each marker number has a symbol associated with it. You can also set the foreground and background colour for each marker number, so you can use the same symbol more than once with different colouring for different uses. Scintilla has a set of symbols you can assign (SC_MARK_*) or you can use characters. By default, all 32 markers are set to SC_MARK_CIRCLE with a black foreground and a white background.

The markers are drawn in the order of their numbers, so higher numbered markers appear on top of lower numbered ones. Markers try to move with their text by tracking where the start of their line moves. When a line is deleted, its markers are combined, by an OR operation, with the markers of the next line.

SCI_MARKERDEFINE(int markerNumber, int markerSymbol)
SCI_MARKERDEFINEPIXMAP(int markerNumber, const char *pixmap)
SCI_RGBAIMAGESETWIDTH(int width)
SCI_RGBAIMAGESETHEIGHT(int height)
SCI_RGBAIMAGESETSCALE(int scalePercent)
SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)
SCI_MARKERSYMBOLDEFINED(int markerNumber) → int
SCI_MARKERSETFORE(int markerNumber, colour fore)
SCI_MARKERSETBACK(int markerNumber, colour back)
SCI_MARKERSETBACKSELECTED(int markerNumber, colour back)
SCI_MARKERENABLEHIGHLIGHT(bool enabled)
SCI_MARKERSETALPHA(int markerNumber, alpha alpha)
SCI_MARKERADD(int line, int markerNumber) → int
SCI_MARKERADDSET(int line, int markerSet)
SCI_MARKERDELETE(int line, int markerNumber)
SCI_MARKERDELETEALL(int markerNumber)
SCI_MARKERGET(int line) → int
SCI_MARKERNEXT(int lineStart, int markerMask) → int
SCI_MARKERPREVIOUS(int lineStart, int markerMask) → int
SCI_MARKERLINEFROMHANDLE(int markerHandle) → int
SCI_MARKERDELETEHANDLE(int markerHandle)

SCI_MARKERDEFINE(int markerNumber, int markerSymbol)
This message associates a marker number in the range 0 to 31 with one of the marker symbols or an ASCII character. The general-purpose marker symbols currently available are:
SC_MARK_CIRCLE, SC_MARK_ROUNDRECT, SC_MARK_ARROW, SC_MARK_SMALLRECT, SC_MARK_SHORTARROW, SC_MARK_EMPTY, SC_MARK_ARROWDOWN, SC_MARK_MINUS, SC_MARK_PLUS, SC_MARK_ARROWS, SC_MARK_DOTDOTDOT, SC_MARK_BACKGROUND, SC_MARK_LEFTRECT, SC_MARK_FULLRECT, SC_MARK_BOOKMARK, and SC_MARK_UNDERLINE.

The SC_MARK_BACKGROUND marker changes the background colour of the line only. The SC_MARK_FULLRECT symbol mirrors this, changing only the margin background colour. SC_MARK_UNDERLINE draws an underline across the text. The SC_MARK_EMPTY symbol is invisible, allowing client code to track the movement of lines. You would also use it if you changed the folding style and wanted one or more of the SC_FOLDERNUM_* markers to have no associated symbol.

Applications may use the marker symbol SC_MARK_AVAILABLE to indicate that plugins may allocate that marker number.

There are also marker symbols designed for use in the folding margin in a flattened tree style.
SC_MARK_BOXMINUS, SC_MARK_BOXMINUSCONNECTED, SC_MARK_BOXPLUS, SC_MARK_BOXPLUSCONNECTED, SC_MARK_CIRCLEMINUS, SC_MARK_CIRCLEMINUSCONNECTED, SC_MARK_CIRCLEPLUS, SC_MARK_CIRCLEPLUSCONNECTED, SC_MARK_LCORNER, SC_MARK_LCORNERCURVE, SC_MARK_TCORNER, SC_MARK_TCORNERCURVE, and SC_MARK_VLINE.

Characters can be used as markers by adding the ASCII value of the character to SC_MARK_CHARACTER (10000). For example, to use 'A' (ASCII code 65) as marker number 1 use:
SCI_MARKERDEFINE(1, SC_MARK_CHARACTER+65).

The marker numbers SC_MARKNUM_FOLDER and SC_MARKNUM_FOLDEROPEN are used for showing that a fold is present and open or closed. Any symbols may be assigned for this purpose although the (SC_MARK_PLUS, SC_MARK_MINUS) pair or the (SC_MARK_ARROW, SC_MARK_ARROWDOWN) pair are good choices. As well as these two, more assignments are needed for the flattened tree style: SC_MARKNUM_FOLDEREND, SC_MARKNUM_FOLDERMIDTAIL, SC_MARKNUM_FOLDEROPENMID, SC_MARKNUM_FOLDERSUB, and SC_MARKNUM_FOLDERTAIL. The bits used for folding are specified by SC_MASK_FOLDERS, which is commonly used as an argument to SCI_SETMARGINMASKN when defining a margin to be used for folding.

This table shows which SC_MARK_* symbols should be assigned to which SC_MARKNUM_* marker numbers to obtain four folding styles: Arrow (mimics Macintosh), plus/minus shows folded lines as '+' and opened folds as '-', Circle tree, Box tree.

SC_MARKNUM_* Arrow Plus/minus Circle tree Box tree
FOLDEROPEN ARROWDOWN MINUS CIRCLEMINUS BOXMINUS
FOLDER ARROW PLUS CIRCLEPLUS BOXPLUS
FOLDERSUB EMPTY EMPTY VLINE VLINE
FOLDERTAIL EMPTY EMPTY LCORNERCURVE LCORNER
FOLDEREND EMPTY EMPTY CIRCLEPLUSCONNECTED BOXPLUSCONNECTED
FOLDEROPENMID EMPTY EMPTY CIRCLEMINUSCONNECTED BOXMINUSCONNECTED
FOLDERMIDTAIL EMPTY EMPTY TCORNERCURVE TCORNER

Marker samples

SCI_MARKERDEFINEPIXMAP(int markerNumber, const char *pixmap)
Markers can be set to pixmaps with this message. The XPM format is used for the pixmap. Pixmaps use the SC_MARK_PIXMAP marker symbol.

SCI_RGBAIMAGESETWIDTH(int width)
SCI_RGBAIMAGESETHEIGHT(int height)
SCI_RGBAIMAGESETSCALE(int scalePercent)
SCI_MARKERDEFINERGBAIMAGE(int markerNumber, const char *pixels)
Markers can be set to translucent pixmaps with this message. The RGBA format is used for the pixmap. The width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and SCI_RGBAIMAGESETHEIGHT messages.

A scale factor in percent may be set with SCI_RGBAIMAGESETSCALE. This is useful on OS X with a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is displayed using a screen pixel. The default scale, 100, will stretch each image pixel to cover 4 screen pixels on a retina display.

Pixmaps use the SC_MARK_RGBAIMAGE marker symbol.

SCI_MARKERSYMBOLDEFINED(int markerNumber) → int
Returns the symbol defined for a markerNumber with SCI_MARKERDEFINE or SC_MARK_PIXMAP if defined with SCI_MARKERDEFINEPIXMAP or SC_MARK_RGBAIMAGE if defined with SCI_MARKERDEFINERGBAIMAGE.

SCI_MARKERSETFORE(int markerNumber, colour fore)
SCI_MARKERSETBACK(int markerNumber, colour back)
These two messages set the foreground and background colour of a marker number.
SCI_MARKERSETBACKSELECTED(int markerNumber, colour back)
This message sets the highlight background colour of a marker number when its folding block is selected. The default colour is #FF0000.

SCI_MARKERENABLEHIGHLIGHT(bool enabled)
This message allows to enable/disable the highlight folding block when it is selected. (i.e. block that contains the caret)

SCI_MARKERSETALPHA(int markerNumber, alpha alpha)
When markers are drawn in the content area, either because there is no margin for them or they are of SC_MARK_BACKGROUND or SC_MARK_UNDERLINE types, they may be drawn translucently by setting an alpha value.

SCI_MARKERADD(int line, int markerNumber) → int
This message adds marker number markerNumber to a line. The message returns -1 if this fails (illegal line number, out of memory) or it returns a marker handle number that identifies the added marker. You can use this returned handle with SCI_MARKERLINEFROMHANDLE to find where a marker is after moving or combining lines and with SCI_MARKERDELETEHANDLE to delete the marker based on its handle. The message does not check the value of markerNumber, nor does it check if the line already contains the marker.

SCI_MARKERADDSET(int line, int markerSet)
This message can add one or more markers to a line with a single call, specified in the same "one-bit-per-marker" 32-bit integer format returned by SCI_MARKERGET (and used by the mask-based marker search functions SCI_MARKERNEXT and SCI_MARKERPREVIOUS). As with SCI_MARKERADD, no check is made to see if any of the markers are already present on the targeted line.

SCI_MARKERDELETE(int line, int markerNumber)
This searches the given line number for the given marker number and deletes it if it is present. If you added the same marker more than once to the line, this will delete one copy each time it is used. If you pass in a marker number of -1, all markers are deleted from the line.

SCI_MARKERDELETEALL(int markerNumber)
This removes markers of the given number from all lines. If markerNumber is -1, it deletes all markers from all lines.

SCI_MARKERGET(int line) → int
This returns a 32-bit integer that indicates which markers were present on the line. Bit 0 is set if marker 0 is present, bit 1 for marker 1 and so on.

SCI_MARKERNEXT(int lineStart, int markerMask) → int
SCI_MARKERPREVIOUS(int lineStart, int markerMask) → int
These messages search efficiently for lines that include a given set of markers. The search starts at line number lineStart and continues forwards to the end of the file (SCI_MARKERNEXT) or backwards to the start of the file (SCI_MARKERPREVIOUS). The markerMask argument should have one bit set for each marker you wish to find. Set bit 0 to find marker 0, bit 1 for marker 1 and so on. The message returns the line number of the first line that contains one of the markers in markerMask or -1 if no marker is found.

SCI_MARKERLINEFROMHANDLE(int markerHandle) → int
The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches the document for the marker with this handle and returns the line number that contains it or -1 if it is not found.

SCI_MARKERDELETEHANDLE(int markerHandle)
The markerHandle argument is an identifier for a marker returned by SCI_MARKERADD. This function searches the document for the marker with this handle and deletes the marker if it is found.

Indicators

Indicators are used to display additional information over the top of styling. They can be used to show, for example, syntax errors, deprecated names and bad indentation by drawing underlines under text or boxes around text.

Indicators may have a different "hover" colour and style when the mouse is over them or the caret is moved into them. This may be used, for example, to indicate that a URL can be clicked.

Indicators may be displayed as simple underlines, squiggly underlines, a line of small 'T' shapes, a line of diagonal hatching, a strike-out or a rectangle around the text. They may also be invisible when used to track pieces of content for the application as INDIC_HIDDEN.

The SCI_INDIC* messages allow you to get and set the visual appearance of the indicators. They all use an indicator argument in the range 0 to INDIC_MAX(35) to set the indicator to style. To prevent interference the set of indicators is divided up into a range for use by lexers (0..7) a range for use by containers (8=INDIC_CONTAINER .. 31=INDIC_IME-1) and a range for IME indicators (32=INDIC_IME .. 35=INDIC_IME_MAX).

Indicators are stored in a format similar to run length encoding which is efficient in both speed and storage for sparse information.

An indicator may store different values for each range but normally all values are drawn the same. The SCI_INDICSETFLAGS API may be used to display different colours for different values.

Originally, Scintilla used a different technique for indicators but this has been removed and the APIs perform no action. While both techniques were supported, the term "modern indicators" was used for the newer implementation.

SCI_INDICSETSTYLE(int indicator, int indicatorStyle)
SCI_INDICGETSTYLE(int indicator) → int
SCI_INDICSETFORE(int indicator, colour fore)
SCI_INDICGETFORE(int indicator) → colour
SCI_INDICSETALPHA(int indicator, alpha alpha)
SCI_INDICGETALPHA(int indicator) → int
SCI_INDICSETOUTLINEALPHA(int indicator, alpha alpha)
SCI_INDICGETOUTLINEALPHA(int indicator) → int
SCI_INDICSETUNDER(int indicator, bool under)
SCI_INDICGETUNDER(int indicator) → bool
SCI_INDICSETHOVERSTYLE(int indicator, int indicatorStyle)
SCI_INDICGETHOVERSTYLE(int indicator) → int
SCI_INDICSETHOVERFORE(int indicator, colour fore)
SCI_INDICGETHOVERFORE(int indicator) → colour
SCI_INDICSETFLAGS(int indicator, int flags)
SCI_INDICGETFLAGS(int indicator) → int

SCI_SETINDICATORCURRENT(int indicator)
SCI_GETINDICATORCURRENT → int
SCI_SETINDICATORVALUE(int value)
SCI_GETINDICATORVALUE → int
SCI_INDICATORFILLRANGE(int start, int lengthFill)
SCI_INDICATORCLEARRANGE(int start, int lengthClear)
SCI_INDICATORALLONFOR(int pos) → int
SCI_INDICATORVALUEAT(int indicator, int pos) → int
SCI_INDICATORSTART(int indicator, int pos) → int
SCI_INDICATOREND(int indicator, int pos) → int
SCI_FINDINDICATORSHOW(int start, int end)
SCI_FINDINDICATORFLASH(int start, int end)
SCI_FINDINDICATORHIDE

SCI_INDICSETSTYLE(int indicator, int indicatorStyle)
SCI_INDICGETSTYLE(int indicator) → int
These two messages set and get the style for a particular indicator. The indicator styles currently available are:
Indicator samples

Symbol Value Visual effect
INDIC_PLAIN 0 Underlined with a single, straight line.
INDIC_SQUIGGLE 1 A squiggly underline. Requires 3 pixels of descender space.
INDIC_TT 2 A line of small T shapes.
INDIC_DIAGONAL 3 Diagonal hatching.
INDIC_STRIKE 4 Strike out.
INDIC_HIDDEN 5 An indicator with no visual effect.
INDIC_BOX 6 A rectangle around the text.
INDIC_ROUNDBOX 7 A rectangle with rounded corners around the text using translucent drawing with the interior usually more transparent than the border. You can use SCI_INDICSETALPHA and SCI_INDICSETOUTLINEALPHA to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour.
INDIC_STRAIGHTBOX 8 A rectangle around the text using translucent drawing with the interior usually more transparent than the border. You can use SCI_INDICSETALPHA and SCI_INDICSETOUTLINEALPHA to control the alpha transparency values. The default alpha values are 30 for fill colour and 50 for outline colour. This indicator does not colour the top pixel of the line so that indicators on contiguous lines are visually distinct and disconnected.
INDIC_FULLBOX 16 A rectangle around the text using translucent drawing similar to INDIC_STRAIGHTBOX but covering the entire character area.
INDIC_DASH 9 A dashed underline.
INDIC_DOTS 10 A dotted underline.
INDIC_SQUIGGLELOW 11 Similar to INDIC_SQUIGGLE but only using 2 vertical pixels so will fit under small fonts.
INDIC_DOTBOX 12 A dotted rectangle around the text using translucent drawing. Translucency alternates between the alpha and outline alpha settings with the top-left pixel using the alpha setting. SCI_INDICSETALPHA and SCI_INDICSETOUTLINEALPHA control the alpha transparency values. The default values are 30 for alpha and 50 for outline alpha. To avoid excessive memory allocation the maximum width of a dotted box is 4000 pixels.
INDIC_SQUIGGLEPIXMAP 13 A version of INDIC_SQUIGGLE that draws using a pixmap instead of as a series of line segments for performance. Measured to be between 3 and 6 times faster than INDIC_SQUIGGLE on GTK+. Appearance will not be as good as INDIC_SQUIGGLE on OS X in HiDPI mode.
INDIC_COMPOSITIONTHICK 14 A 2-pixel thick underline located at the bottom of the line to try to avoid touching the character base. Each side is inset 1 pixel so that different indicators in this style covering a range appear isolated. This is similar to an appearance used for the target in Asian language input composition.
INDIC_COMPOSITIONTHIN 15 A 1-pixel thick underline located just before the bottom of the line. Each side is inset 1 pixel so that different indicators in this style covering a range appear isolated. This is similar to an appearance used for non-target ranges in Asian language input composition.
INDIC_TEXTFORE 17 Change the colour of the text to the indicator's fore colour.
INDIC_POINT 18 Draw a triangle below the start of the indicator range.
INDIC_POINTCHARACTER 19 Draw a triangle below the centre of the first character of the indicator range.

The default indicator styles are equivalent to:
SCI_INDICSETSTYLE(0, INDIC_SQUIGGLE);
SCI_INDICSETSTYLE(1, INDIC_TT);
SCI_INDICSETSTYLE(2, INDIC_PLAIN);

SCI_INDICSETFORE(int indicator, colour fore)
SCI_INDICGETFORE(int indicator) → colour
These two messages set and get the colour used to draw an indicator. The default indicator colours are equivalent to:
SCI_INDICSETFORE(0, 0x007f00); (dark green)
SCI_INDICSETFORE(1, 0xff0000); (light blue)
SCI_INDICSETFORE(2, 0x0000ff); (light red)

SCI_INDICSETALPHA(int indicator, alpha alpha)
SCI_INDICGETALPHA(int indicator) → int
These two messages set and get the alpha transparency used for drawing the fill colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from 0 (completely transparent) to 255 (no transparency).

SCI_INDICSETOUTLINEALPHA(int indicator, alpha alpha)
SCI_INDICGETOUTLINEALPHA(int indicator) → int
These two messages set and get the alpha transparency used for drawing the outline colour of the INDIC_ROUNDBOX and INDIC_STRAIGHTBOX rectangle. The alpha value can range from 0 (completely transparent) to 255 (no transparency).

SCI_INDICSETUNDER(int indicator, bool under)
SCI_INDICGETUNDER(int indicator) → bool
These two messages set and get whether an indicator is drawn under text or over(default). Drawing under text works only for indicators when two phase drawing is enabled.

SCI_INDICSETHOVERSTYLE(int indicator, int indicatorStyle)
SCI_INDICGETHOVERSTYLE(int indicator) → int
SCI_INDICSETHOVERFORE(int indicator, colour fore)
SCI_INDICGETHOVERFORE(int indicator) → colour
These messages set and get the colour and style used to draw indicators when the mouse is over them or the caret moved into them. The mouse cursor also changes when an indicator is drawn in hover style. The default is for the hover appearance to be the same as the normal appearance and calling SCI_INDICSETFORE or SCI_INDICSETSTYLE will also reset the hover attribute.

SCI_INDICSETFLAGS(int indicator, int flags)
SCI_INDICGETFLAGS(int indicator) → int
These messages set and get the flags associated with an indicator. There is currently one flag defined, SC_INDICFLAG_VALUEFORE: when this flag is set the colour used by the indicator is not from the indicator's fore setting but instead from the value of the indicator at that point in the file. This allows many colours to be displayed for a single indicator. The value is an RGB integer colour that has been ored with SC_INDICVALUEBIT(0x1000000) when calling SCI_SETINDICATORVALUE. To find the colour from the value, and the value with SC_INDICVALUEMASK(0xFFFFFF).

SCI_SETINDICATORCURRENT(int indicator)
SCI_GETINDICATORCURRENT → int
These two messages set and get the indicator that will be affected by calls to SCI_INDICATORFILLRANGE(int start, int lengthFill) and SCI_INDICATORCLEARRANGE(int start, int lengthClear).

SCI_SETINDICATORVALUE(int value)
SCI_GETINDICATORVALUE → int
These two messages set and get the value that will be set by calls to SCI_INDICATORFILLRANGE.

SCI_INDICATORFILLRANGE(int start, int lengthFill)
SCI_INDICATORCLEARRANGE(int start, int lengthClear)
These two messages fill or clear a range for the current indicator. SCI_INDICATORFILLRANGE fills with the the current value.

SCI_INDICATORALLONFOR(int pos) → int
Retrieve a bitmap value representing which indicators are non-zero at a position. Only the first 32 indicators are represented in the result so no IME indicators are included.

SCI_INDICATORVALUEAT(int indicator, int pos) → int
Retrieve the value of a particular indicator at a position.

SCI_INDICATORSTART(int indicator, int pos) → int
SCI_INDICATOREND(int indicator, int pos) → int
Find the start or end of a range with one value from a position within the range. Can be used to iterate through the document to discover all the indicator positions.

OS X Find Indicator

On OS X search matches are highlighted with an animated gold rounded rectangle. The indicator shows, then briefly grows 25% and shrinks to the original size to draw the user's attention. While this feature is currently only implemented on OS X, it may be implemented on other platforms in the future.

SCI_FINDINDICATORSHOW(int start, int end)
SCI_FINDINDICATORFLASH(int start, int end)
These two messages show and animate the find indicator. The indicator remains visible with SCI_FINDINDICATORSHOW and fades out after showing for half a second with SCI_FINDINDICATORFLASH. SCI_FINDINDICATORSHOW behaves similarly to the OS X TextEdit and Safari applications and is best suited to editing documentation where the search target is often a word. SCI_FINDINDICATORFLASH is similar to Xcode and is suited to editing source code where the match will often be located next to operators which would otherwise be hidden under the indicator's padding.

SCI_FINDINDICATORHIDE
This message hides the find indicator.

Earlier versions of Scintilla allowed partitioning style bytes between style numbers and indicators and provided APIs for setting and querying this.

Autocompletion

Autocompletion displays a list box showing likely identifiers based upon the user's typing. The user chooses the currently selected item by pressing the tab character or another character that is a member of the fillup character set defined with SCI_AUTOCSETFILLUPS. Autocompletion is triggered by your application. For example, in C if you detect that the user has just typed fred. you could look up fred, and if it has a known list of members, you could offer them in an autocompletion list. Alternatively, you could monitor the user's typing and offer a list of likely items once their typing has narrowed down the choice to a reasonable list. As yet another alternative, you could define a key code to activate the list.

When the user makes a selection from the list the container is sent a SCN_AUTOCSELECTION notification message. On return from the notification Scintilla will insert the selected text and the container is sent a SCN_AUTOCCOMPLETED notification message unless the autocompletion list has been cancelled, for example by the container sending SCI_AUTOCCANCEL.

To make use of autocompletion you must monitor each character added to the document. See SciTEBase::CharAdded() in SciTEBase.cxx for an example of autocompletion.

SCI_AUTOCSHOW(int lengthEntered, const char *itemList)
SCI_AUTOCCANCEL
SCI_AUTOCACTIVE → bool
SCI_AUTOCPOSSTART → position
SCI_AUTOCCOMPLETE
SCI_AUTOCSTOPS(<unused>, const char *characterSet)
SCI_AUTOCSETSEPARATOR(int separatorCharacter)
SCI_AUTOCGETSEPARATOR → int
SCI_AUTOCSELECT(<unused>, const char *select)
SCI_AUTOCGETCURRENT → int
SCI_AUTOCGETCURRENTTEXT(<unused>, char *text) → int
SCI_AUTOCSETCANCELATSTART(bool cancel)
SCI_AUTOCGETCANCELATSTART → bool
SCI_AUTOCSETFILLUPS(<unused>, const char *characterSet)
SCI_AUTOCSETCHOOSESINGLE(bool chooseSingle)
SCI_AUTOCGETCHOOSESINGLE → bool
SCI_AUTOCSETIGNORECASE(bool ignoreCase)
SCI_AUTOCGETIGNORECASE → bool
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR → int
SCI_AUTOCSETMULTI(int multi)
SCI_AUTOCGETMULTI → int
SCI_AUTOCSETORDER(int order)
SCI_AUTOCGETORDER → int
SCI_AUTOCSETAUTOHIDE(bool autoHide)
SCI_AUTOCGETAUTOHIDE → bool
SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)
SCI_AUTOCGETDROPRESTOFWORD → bool
SCI_REGISTERIMAGE(int type, const char *xpmData)
SCI_REGISTERRGBAIMAGE(int type, const char *pixels)
SCI_CLEARREGISTEREDIMAGES
SCI_AUTOCSETTYPESEPARATOR(int separatorCharacter)
SCI_AUTOCGETTYPESEPARATOR → int
SCI_AUTOCSETMAXHEIGHT(int rowCount)
SCI_AUTOCGETMAXHEIGHT → int
SCI_AUTOCSETMAXWIDTH(int characterCount)
SCI_AUTOCGETMAXWIDTH → int

SCI_AUTOCSHOW(int lengthEntered, const char *itemList)
This message causes a list to be displayed. lengthEntered is the number of characters of the word already entered and itemList is the list of words separated by separator characters. The initial separator character is a space but this can be set or got with SCI_AUTOCSETSEPARATOR and SCI_AUTOCGETSEPARATOR.

With default settings, the list of words should be in sorted order. If set to ignore case mode with SCI_AUTOCSETIGNORECASE, then strings are matched after being converted to upper case. One result of this is that the list should be sorted with the punctuation characters '[', '\', ']', '^', '_', and '`' sorted after letters. Alternative handling of list order may be specified with SCI_AUTOCSETORDER

SCI_AUTOCCANCEL
This message cancels any displayed autocompletion list. When in autocompletion mode, the list should disappear when the user types a character that can not be part of the autocompletion, such as '.', '(' or '[' when typing an identifier. A set of characters that will cancel autocompletion can be specified with SCI_AUTOCSTOPS.

SCI_AUTOCACTIVE → bool
This message returns non-zero if there is an active autocompletion list and zero if there is not.

SCI_AUTOCPOSSTART → position
This returns the value of the current position when SCI_AUTOCSHOW started display of the list.

SCI_AUTOCCOMPLETE
This message triggers autocompletion. This has the same effect as the tab key.

SCI_AUTOCSTOPS(<unused>, const char *characterSet)
The characterSet argument is a string containing a list of characters that will automatically cancel the autocompletion list. When you start the editor, this list is empty.

SCI_AUTOCSETSEPARATOR(int separatorCharacter)
SCI_AUTOCGETSEPARATOR → int
These two messages set and get the separator character used to separate words in the SCI_AUTOCSHOW list. The default is the space character.

SCI_AUTOCSELECT(<unused>, const char *select)
SCI_AUTOCGETCURRENT → int
This message selects an item in the autocompletion list. It searches the list of words for the first that matches select. By default, comparisons are case sensitive, but you can change this with SCI_AUTOCSETIGNORECASE. The match is character by character for the length of the select string. That is, if select is "Fred" it will match "Frederick" if this is the first item in the list that begins with "Fred". If an item is found, it is selected. If the item is not found, the autocompletion list closes if auto-hide is true (see SCI_AUTOCSETAUTOHIDE).
The current selection index can be retrieved with SCI_AUTOCGETCURRENT.

SCI_AUTOCGETCURRENTTEXT(<unused>, char *text NUL-terminated) → int
This message retrieves the current selected text in the autocompletion list. Normally the SCN_AUTOCSELECTION notification is used instead.

The value is copied to the text buffer, returning the length (not including the terminating 0). If not found, an empty string is copied to the buffer and 0 is returned.

If the value argument is 0 then the length that should be allocated to store the value is returned; again, the terminating 0 is not included.

SCI_AUTOCSETCANCELATSTART(bool cancel)
SCI_AUTOCGETCANCELATSTART → bool
The default behaviour is for the list to be cancelled if the caret moves to the location it was at when the list was displayed. By calling this message with a false argument, the list is not cancelled until the caret moves at least one character before the word being completed.

SCI_AUTOCSETFILLUPS(<unused>, const char *characterSet)
If a fillup character is typed with an autocompletion list active, the currently selected item in the list is added into the document, then the fillup character is added. Common fillup characters are '(', '[' and '.' but others are possible depending on the language. By default, no fillup characters are set.

SCI_AUTOCSETCHOOSESINGLE(bool chooseSingle)
SCI_AUTOCGETCHOOSESINGLE → bool
If you use SCI_AUTOCSETCHOOSESINGLE(1) and a list has only one item, it is automatically added and no list is displayed. The default is to display the list even if there is only a single item.

SCI_AUTOCSETIGNORECASE(bool ignoreCase)
SCI_AUTOCGETIGNORECASE → bool
By default, matching of characters to list members is case sensitive. These messages let you set and get case sensitivity.

SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR → int
When autocompletion is set to ignore case (SCI_AUTOCSETIGNORECASE), by default it will nonetheless select the first list member that matches in a case sensitive way to entered characters. This corresponds to a behaviour property of SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE (0). If you want autocompletion to ignore case at all, choose SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE (1).

SCI_AUTOCSETMULTI(int multi)
SCI_AUTOCGETMULTI → int
When autocompleting with multiple selections present, the autocompleted text can go into just the main selection with SC_MULTIAUTOC_ONCE (0) or into each selection with SC_MULTIAUTOC_EACH (1). The default is SC_MULTIAUTOC_ONCE.

SCI_AUTOCSETORDER(int order)
SCI_AUTOCGETORDER → int
The default setting SC_ORDER_PRESORTED (0) requires that the list be provided in alphabetical sorted order.

Sorting the list can be done by Scintilla instead of the application with SC_ORDER_PERFORMSORT (1). This will take additional time.

Applications that wish to prioritize some values and show the list in order of priority instead of alphabetical order can use SC_ORDER_CUSTOM (2). This requires extra processing in SCI_AUTOCSHOW to create a sorted index.

Setting the order should be done before calling SCI_AUTOCSHOW.

SCI_AUTOCSETAUTOHIDE(bool autoHide)
SCI_AUTOCGETAUTOHIDE → bool
By default, the list is cancelled if there are no viable matches (the user has typed characters that no longer match a list entry). If you want to keep displaying the original list, set autoHide to false. This also effects SCI_AUTOCSELECT.

SCI_AUTOCSETDROPRESTOFWORD(bool dropRestOfWord)
SCI_AUTOCGETDROPRESTOFWORD → bool
When an item is selected, any word characters following the caret are first erased if dropRestOfWord is set true. The default is false.

SCI_REGISTERIMAGE(int type, const char *xpmData)
SCI_REGISTERRGBAIMAGE(int type, const char *pixels)
SCI_CLEARREGISTEREDIMAGES
SCI_AUTOCSETTYPESEPARATOR(int separatorCharacter)
SCI_AUTOCGETTYPESEPARATOR → int
Autocompletion list items may display an image as well as text. Each image is first registered with an integer type. Then this integer is included in the text of the list separated by a '?' from the text. For example, "fclose?2 fopen" displays image 2 before the string "fclose" and no image before "fopen". The images are in either the XPM format (SCI_REGISTERIMAGE) or RGBA format (SCI_REGISTERRGBAIMAGE). For SCI_REGISTERRGBAIMAGE the width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and SCI_RGBAIMAGESETHEIGHT messages. The set of registered images can be cleared with SCI_CLEARREGISTEREDIMAGES and the '?' separator changed with SCI_AUTOCSETTYPESEPARATOR.

SCI_AUTOCSETMAXHEIGHT(int rowCount)
SCI_AUTOCGETMAXHEIGHT → int
Get or set the maximum number of rows that will be visible in an autocompletion list. If there are more rows in the list, then a vertical scrollbar is shown. The default is 5.

SCI_AUTOCSETMAXWIDTH(int characterCount)
SCI_AUTOCGETMAXWIDTH → int
Get or set the maximum width of an autocompletion list expressed as the number of characters in the longest item that will be totally visible. If zero (the default) then the list's width is calculated to fit the item with the most characters. Any items that cannot be fully displayed within the available width are indicated by the presence of ellipsis.

User lists

User lists use the same internal mechanisms as autocompletion lists, and all the calls listed for autocompletion work on them; you cannot display a user list at the same time as an autocompletion list is active. They differ in the following respects:

SCI_USERLISTSHOW(int listType, const char *itemList)

o The SCI_AUTOCSETCHOOSESINGLE message has no effect.
o When the user makes a selection you are sent a SCN_USERLISTSELECTION notification message rather than SCN_AUTOCSELECTION.

BEWARE: if you have set fillup characters or stop characters, these will still be active with the user list, and may result in items being selected or the user list cancelled due to the user typing into the editor.

SCI_USERLISTSHOW(int listType, const char *itemList)
The listType parameter is returned to the container as the wParam field of the SCNotification structure. It must be greater than 0 as this is how Scintilla tells the difference between an autocompletion list and a user list. If you have different types of list, for example a list of buffers and a list of macros, you can use listType to tell which one has returned a selection.

Call tips

Call tips are small windows displaying the arguments to a function and are displayed after the user has typed the name of the function. They normally display characters using the font facename, size and character set defined by STYLE_DEFAULT. You can choose to use STYLE_CALLTIP to define the facename, size, foreground and background colours and character set with SCI_CALLTIPUSESTYLE. This also enables support for Tab characters. There is some interaction between call tips and autocompletion lists in that showing a call tip cancels any active autocompletion list, and vice versa.

Call tips are not implemented on Qt.

Call tips can highlight part of the text within them. You could use this to highlight the current argument to a function by counting the number of commas (or whatever separator your language uses). See SciTEBase::CharAdded() in SciTEBase.cxx for an example of call tip use.

The mouse may be clicked on call tips and this causes a SCN_CALLTIPCLICK notification to be sent to the container. Small up and down arrows may be displayed within a call tip by, respectively, including the characters '\001', or '\002'. This is useful for showing that there are overloaded variants of one function name and that the user can click on the arrows to cycle through the overloads.

Alternatively, call tips can be displayed when you leave the mouse pointer for a while over a word in response to the SCN_DWELLSTART notification and cancelled in response to SCN_DWELLEND. This method could be used in a debugger to give the value of a variable, or during editing to give information about the word under the pointer.

SCI_CALLTIPSHOW(int pos, const char *definition)
SCI_CALLTIPCANCEL
SCI_CALLTIPACTIVE → bool
SCI_CALLTIPPOSSTART → position
SCI_CALLTIPSETPOSSTART(int posStart)
SCI_CALLTIPSETHLT(int highlightStart, int highlightEnd)
SCI_CALLTIPSETBACK(colour back)
SCI_CALLTIPSETFORE(colour fore)
SCI_CALLTIPSETFOREHLT(colour fore)
SCI_CALLTIPUSESTYLE(int tabSize)
SCI_CALLTIPSETPOSITION(bool above)

SCI_CALLTIPSHOW(int pos, const char *definition)
This message starts the process by displaying the call tip window. If a call tip is already active, this has no effect.
pos is the position in the document at which to align the call tip. The call tip text is aligned to start 1 line below this character unless you have included up and/or down arrows in the call tip text in which case the tip is aligned to the right-hand edge of the rightmost arrow. The assumption is that you will start the text with something like "\001 1 of 3 \002".
definition is the call tip text. This can contain multiple lines separated by '\n' (Line Feed, ASCII code 10) characters. Do not include '\r' (Carriage Return, ASCII code 13), as this will most likely print as an empty box. '\t' (Tab, ASCII code 9) is supported if you set a tabsize with SCI_CALLTIPUSESTYLE.
The position of the caret is remembered here so that the call tip can be cancelled automatically if subsequent deletion moves the caret before this position.

SCI_CALLTIPCANCEL
This message cancels any displayed call tip. Scintilla will also cancel call tips for you if you use any keyboard commands that are not compatible with editing the argument list of a function. Call tips are cancelled if you delete back past the position where the caret was when the tip was triggered.

SCI_CALLTIPACTIVE → bool
This returns 1 if a call tip is active and 0 if it is not active.

SCI_CALLTIPPOSSTART → position
SCI_CALLTIPSETPOSSTART(int posStart)
This message returns or sets the value of the current position when SCI_CALLTIPSHOW started to display the tip.

SCI_CALLTIPSETHLT(int highlightStart, int highlightEnd)
This sets the region of the call tips text to display in a highlighted style. highlightStart is the zero-based index into the string of the first character to highlight and highlightEnd is the index of the first character after the highlight. highlightEnd must be greater than highlightStart; highlightEnd-highlightStart is the number of characters to highlight. Highlights can extend over line ends if this is required.

Unhighlighted text is drawn in a mid grey. Selected text is drawn in a dark blue. The background is white. These can be changed with SCI_CALLTIPSETBACK, SCI_CALLTIPSETFORE, and SCI_CALLTIPSETFOREHLT.

SCI_CALLTIPSETBACK(colour back)
The background colour of call tips can be set with this message; the default colour is white. It is not a good idea to set a dark colour as the background as the default colour for normal calltip text is mid grey and the default colour for highlighted text is dark blue. This also sets the background colour of STYLE_CALLTIP.

SCI_CALLTIPSETFORE(colour fore)
The colour of call tip text can be set with this message; the default colour is mid grey. This also sets the foreground colour of STYLE_CALLTIP.

SCI_CALLTIPSETFOREHLT(colour fore)
The colour of highlighted call tip text can be set with this message; the default colour is dark blue.

SCI_CALLTIPUSESTYLE(int tabSize)
This message changes the style used for call tips from STYLE_DEFAULT to STYLE_CALLTIP and sets a tab size in screen pixels. If tabsize is less than 1, Tab characters are not treated specially. Once this call has been used, the call tip foreground and background colours are also taken from the style.

SCI_CALLTIPSETPOSITION(bool above)
By default the calltip is displayed below the text, setting above to true (1) will display it above the text.

Keyboard commands

To allow the container application to perform any of the actions available to the user with keyboard, all the keyboard actions are messages. They do not take any parameters. These commands are also used when redefining the key bindings with the SCI_ASSIGNCMDKEY message.

SCI_LINEDOWN SCI_LINEDOWNEXTEND SCI_LINEDOWNRECTEXTEND SCI_LINESCROLLDOWN
SCI_LINEUP SCI_LINEUPEXTEND SCI_LINEUPRECTEXTEND SCI_LINESCROLLUP
SCI_PARADOWN SCI_PARADOWNEXTEND SCI_PARAUP SCI_PARAUPEXTEND
SCI_CHARLEFT SCI_CHARLEFTEXTEND SCI_CHARLEFTRECTEXTEND
SCI_CHARRIGHT SCI_CHARRIGHTEXTEND SCI_CHARRIGHTRECTEXTEND
SCI_WORDLEFT SCI_WORDLEFTEXTEND SCI_WORDRIGHT SCI_WORDRIGHTEXTEND
SCI_WORDLEFTEND SCI_WORDLEFTENDEXTEND SCI_WORDRIGHTEND SCI_WORDRIGHTENDEXTEND
SCI_WORDPARTLEFT SCI_WORDPARTLEFTEXTEND SCI_WORDPARTRIGHT SCI_WORDPARTRIGHTEXTEND
SCI_HOME SCI_HOMEEXTEND SCI_HOMERECTEXTEND
SCI_HOMEDISPLAY SCI_HOMEDISPLAYEXTEND SCI_HOMEWRAP SCI_HOMEWRAPEXTEND
SCI_VCHOME SCI_VCHOMEEXTEND SCI_VCHOMERECTEXTEND
SCI_VCHOMEWRAP SCI_VCHOMEWRAPEXTEND SCI_VCHOMEDISPLAY SCI_VCHOMEDISPLAYEXTEND
SCI_LINEEND SCI_LINEENDEXTEND SCI_LINEENDRECTEXTEND
SCI_LINEENDDISPLAY SCI_LINEENDDISPLAYEXTEND SCI_LINEENDWRAP SCI_LINEENDWRAPEXTEND
SCI_DOCUMENTSTART SCI_DOCUMENTSTARTEXTEND SCI_DOCUMENTEND SCI_DOCUMENTENDEXTEND
SCI_PAGEUP SCI_PAGEUPEXTEND SCI_PAGEUPRECTEXTEND
SCI_PAGEDOWN SCI_PAGEDOWNEXTEND SCI_PAGEDOWNRECTEXTEND
SCI_STUTTEREDPAGEUP SCI_STUTTEREDPAGEUPEXTEND
SCI_STUTTEREDPAGEDOWN SCI_STUTTEREDPAGEDOWNEXTEND
SCI_DELETEBACK SCI_DELETEBACKNOTLINE
SCI_DELWORDLEFT SCI_DELWORDRIGHT SCI_DELWORDRIGHTEND
SCI_DELLINELEFT SCI_DELLINERIGHT SCI_LINEDELETE
SCI_LINECUT SCI_LINECOPY SCI_LINETRANSPOSE SCI_LINEDUPLICATE
SCI_LOWERCASE SCI_UPPERCASE SCI_CANCEL SCI_EDITTOGGLEOVERTYPE
SCI_NEWLINE SCI_FORMFEED SCI_TAB SCI_BACKTAB
SCI_SELECTIONDUPLICATE SCI_VERTICALCENTRECARET
SCI_MOVESELECTEDLINESUP SCI_MOVESELECTEDLINESDOWN
SCI_SCROLLTOSTART SCI_SCROLLTOEND

The SCI_*EXTEND messages extend the selection.

The SCI_*RECTEXTEND messages extend the rectangular selection (and convert regular selection to rectangular one, if any).

The SCI_WORDPART* commands are used to move between word segments marked by capitalisation (aCamelCaseIdentifier) or underscores (an_under_bar_ident).

The SCI_WORD[LEFT|RIGHT]END* commands are similar to SCI_WORD[LEFT|RIGHT]* but move between word ends instead of word starts.

The SCI_HOME* commands move the caret to the start of the line, while the SCI_VCHOME* commands move the caret to the first non-blank character of the line (ie. just after the indentation) unless it is already there; in this case, it acts as SCI_HOME*.

The SCI_[HOME|LINEEND]DISPLAY* commands are used when in line wrap mode to allow movement to the start or end of display lines as opposed to the normal SCI_[HOME|LINEEND] commands which move to the start or end of document lines.

The SCI_[[VC]HOME|LINEEND]WRAP* commands are like their namesakes SCI_[[VC]HOME|LINEEND]* except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like SCI_[HOME|LINEEND]DISPLAY*, but if the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for SCI_[[VC]HOME|LINEEND]*.

The SCI_SCROLLTO[START|END] commands scroll the document to the start or end without changing the selection. These commands match OS X platform conventions for the behaviour of the home and end keys. Scintilla can be made to match OS X applications by binding the home and end keys to these commands.

The SCI_CANCEL command cancels autocompletion and calltip display and drops any additional selections.

Key bindings

There is a default binding of keys to commands that is defined in the Scintilla source in the file KeyMap.cxx by the constant KeyMap::MapDefault[]. This table maps key definitions to SCI_* messages with no parameters (mostly the keyboard commands discussed above, but any Scintilla command that has no arguments can be mapped). You can change the mapping to suit your own requirements.

SCI_ASSIGNCMDKEY(int keyDefinition, int sciCommand)
SCI_CLEARCMDKEY(int keyDefinition)
SCI_CLEARALLCMDKEYS
SCI_NULL

keyDefinition
A key definition contains the key code in the low 16-bits and the key modifiers in the high 16-bits. To combine keyCode and keyMod set:

keyDefinition = keyCode + (keyMod << 16)

The key code is a visible or control character or a key from the SCK_* enumeration, which contains:
SCK_ADD, SCK_BACK, SCK_DELETE, SCK_DIVIDE, SCK_DOWN, SCK_END, SCK_ESCAPE, SCK_HOME, SCK_INSERT, SCK_LEFT, SCK_MENU, SCK_NEXT (Page Down), SCK_PRIOR (Page Up), SCK_RETURN, SCK_RIGHT, SCK_RWIN, SCK_SUBTRACT, SCK_TAB, SCK_UP, and SCK_WIN.

The modifiers are a combination of zero or more of SCMOD_ALT, SCMOD_CTRL, SCMOD_SHIFT, SCMOD_META, and SCMOD_SUPER. On OS X, the Command key is mapped to SCMOD_CTRL and the Control key to SCMOD_META. SCMOD_SUPER is only available on GTK+ which is commonly the Windows key. If you are building a table, you might want to use SCMOD_NORM, which has the value 0, to mean no modifiers.

SCI_ASSIGNCMDKEY(int keyDefinition, int sciCommand)
This assigns the given key definition to a Scintilla command identified by sciCommand. sciCommand can be any SCI_* command that has no arguments.

SCI_CLEARCMDKEY(int keyDefinition)
This makes the given key definition do nothing by assigning the action SCI_NULL to it.

SCI_CLEARALLCMDKEYS
This command removes all keyboard command mapping by setting an empty mapping table.

SCI_NULL
The SCI_NULL does nothing and is the value assigned to keys that perform no action. SCI_NULL ensures that keys do not propagate to the parent window as that may cause focus to move. If you want the standard platform behaviour use the constant 0 instead.

Popup edit menu

SCI_USEPOPUP(int popUpMode)

SCI_USEPOPUP(int popUpMode)
Clicking the wrong button on the mouse pops up a short default editing menu. This may be turned off with SCI_USEPOPUP(SC_POPUP_NEVER). If you turn it off, context menu commands (in Windows, WM_CONTEXTMENU) will not be handled by Scintilla, so the parent of the Scintilla window will have the opportunity to handle the message.

Symbol Value Meaning
SC_POPUP_NEVER 0 Never show default editing menu.
SC_POPUP_ALL 1 Show default editing menu if clicking on scintilla.
SC_POPUP_TEXT 2 Show default editing menu only if clicking on text area.

Macro recording

Start and stop macro recording mode. In macro recording mode, actions are reported to the container through SCN_MACRORECORD notifications. It is then up to the container to record these actions for future replay.

SCI_STARTRECORD
SCI_STOPRECORD

SCI_STARTRECORD
SCI_STOPRECORD
These two messages turn macro recording on and off.

Printing

SCI_FORMATRANGE can be used to draw the text onto a display surface which can include a printer display surface. Printed output shows text styling as on the screen, but it hides all margins except a line number margin. All special marker effects are removed and the selection and caret are hidden.

Different platforms use different display surface ID types to print on. On Windows, these are HDCs., on GTK+ 3.x cairo_t *, and on Cocoa CGContextRef is used.

SCI_FORMATRANGE(bool draw, Sci_RangeToFormat *fr) → position
SCI_SETPRINTMAGNIFICATION(int magnification)
SCI_GETPRINTMAGNIFICATION → int
SCI_SETPRINTCOLOURMODE(int mode)
SCI_GETPRINTCOLOURMODE → int
SCI_SETPRINTWRAPMODE(int wrapMode)
SCI_GETPRINTWRAPMODE → int

SCI_FORMATRANGE(bool draw, Sci_RangeToFormat *fr) → position
This call renders a range of text into a device context. If you use this for printing, you will probably want to arrange a page header and footer; Scintilla does not do this for you. See SciTEWin::Print() in SciTEWinDlg.cxx for an example. Each use of this message renders a range of text into a rectangular area and returns the position in the document of the next character to print.

draw controls if any output is done. Set this to false if you are paginating (for example, if you use this with MFC you will need to paginate in OnBeginPrinting() before you output each page.

struct Sci_Rectangle { int left; int top; int right; int bottom; };

struct Sci_RangeToFormat {
    Sci_SurfaceID hdc;        // The Surface ID we print to
    Sci_SurfaceID hdcTarget;  // The Surface ID we use for measuring (may be same as hdc)
    Sci_Rectangle rc;         // Rectangle in which to print
    Sci_Rectangle rcPage;     // Physically printable page size
    Sci_CharacterRange chrg;  // Range of characters to print
};

On Windows, hdc and hdcTarget should both be set to the device context handle of the output device (usually a printer). If you print to a metafile these will not be the same as Windows metafiles (unlike extended metafiles) do not implement the full API for returning information. In this case, set hdcTarget to the screen DC.
rcPage is the rectangle {0, 0, maxX, maxY} where maxX+1 and maxY+1 are the number of physically printable pixels in x and y.
rc is the rectangle to render the text in (which will, of course, fit within the rectangle defined by rcPage).
chrg.cpMin and chrg.cpMax define the start position and maximum position of characters to output. All of each line within this character range is drawn.

On Cocoa, the surface IDs for printing (draw=1) should be the graphics port of the current context ((CGContextRef) [[NSGraphicsContext currentContext] graphicsPort]) when the view's drawRect method is called. The Surface IDs are not really used for measurement (draw=0) but can be set to a bitmap context (created with CGBitmapContextCreate) to avoid runtime warnings.

On GTK+, the surface IDs to use can be found from the printing context with gtk_print_context_get_cairo_context(context).

chrg.cpMin and chrg.cpMax define the start position and maximum position of characters to output. All of each line within this character range is drawn.

When printing, the most tedious part is always working out what the margins should be to allow for the non-printable area of the paper and printing a header and footer. If you look at the printing code in SciTE, you will find that most of it is taken up with this. The loop that causes Scintilla to render text is quite simple if you strip out all the margin, non-printable area, header and footer code.

SCI_SETPRINTMAGNIFICATION(int magnification)
SCI_GETPRINTMAGNIFICATION → int
SCI_GETPRINTMAGNIFICATION lets you to print at a different size than the screen font. magnification is the number of points to add to the size of each screen font. A value of -3 or -4 gives reasonably small print. You can get this value with SCI_GETPRINTMAGNIFICATION.

SCI_SETPRINTCOLOURMODE(int mode)
SCI_GETPRINTCOLOURMODE → int
These two messages set and get the method used to render coloured text on a printer that is probably using white paper. It is especially important to consider the treatment of colour if you use a dark or black screen background. Printing white on black uses up toner and ink very many times faster than the other way around. You can set the mode to one of:

Symbol Value Purpose
SC_PRINT_NORMAL 0 Print using the current screen colours. This is the default.
SC_PRINT_INVERTLIGHT 1 If you use a dark screen background this saves ink by inverting the light value of all colours and printing on a white background.
SC_PRINT_BLACKONWHITE 2 Print all text as black on a white background.
SC_PRINT_COLOURONWHITE 3 Everything prints in its own colour on a white background.
SC_PRINT_COLOURONWHITEDEFAULTBG 4 Everything prints in its own colour on a white background except that line numbers use their own background colour.

SCI_SETPRINTWRAPMODE(int wrapMode)
SCI_GETPRINTWRAPMODE → int
These two functions get and set the printer wrap mode. wrapMode can be set to SC_WRAP_NONE (0), SC_WRAP_WORD (1) or SC_WRAP_CHAR (2). The default is SC_WRAP_WORD, which wraps printed output so that all characters fit into the print rectangle. If you set SC_WRAP_NONE, each line of text generates one line of output and the line is truncated if it is too long to fit into the print area.
SC_WRAP_WORD tries to wrap only between words as indicated by white space or style changes although if a word is longer than a line, it will be wrapped before the line end. SC_WRAP_CHAR is preferred to SC_WRAP_WORD for Asian languages where there is no white space between words.

Direct access

SCI_GETDIRECTFUNCTION → int
SCI_GETDIRECTPOINTER → int
SCI_GETCHARACTERPOINTER → int
SCI_GETRANGEPOINTER(int start, int lengthRange) → int
SCI_GETGAPPOSITION → position

On Windows, the message-passing scheme used to communicate between the container and Scintilla is mediated by the operating system SendMessage function and can lead to bad performance when calling intensively. To avoid this overhead, Scintilla provides messages that allow you to call the Scintilla message function directly. The code to do this in C/C++ is of the form:

#include "Scintilla.h"
SciFnDirect pSciMsg = (SciFnDirect)SendMessage(hSciWnd, SCI_GETDIRECTFUNCTION, 0, 0);
sptr_t pSciWndData = (sptr_t)SendMessage(hSciWnd, SCI_GETDIRECTPOINTER, 0, 0);

// now a wrapper to call Scintilla directly
sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
    return pSciMsg(pSciWndData, iMessage, wParam, lParam);
}

SciFnDirect, sptr_t and uptr_t are declared in Scintilla.h. hSciWnd is the window handle returned when you created the Scintilla window.

While faster, this direct calling will cause problems if performed from a different thread to the native thread of the Scintilla window in which case SendMessage(hSciWnd, SCI_*, wParam, lParam) should be used to synchronize with the window's thread.

This feature also works on GTK+ but has no significant impact on speed.

From version 1.47 on Windows, Scintilla exports a function called Scintilla_DirectFunction that can be used the same as the function returned by SCI_GETDIRECTFUNCTION. This saves you the call to SCI_GETDIRECTFUNCTION and the need to call Scintilla indirectly via the function pointer.

SCI_GETDIRECTFUNCTION → int
This message returns the address of the function to call to handle Scintilla messages without the overhead of passing through the Windows messaging system. You need only call this once, regardless of the number of Scintilla windows you create.

SCI_GETDIRECTPOINTER → int
This returns a pointer to data that identifies which Scintilla window is in use. You must call this once for each Scintilla window you create. When you call the direct function, you must pass in the direct pointer associated with the target window.

SCI_GETCHARACTERPOINTER → int
SCI_GETRANGEPOINTER(int start, int lengthRange) → int
SCI_GETGAPPOSITION → position
Grant temporary direct read-only access to the memory used by Scintilla to store the document.

SCI_GETCHARACTERPOINTER moves the gap within Scintilla so that the text of the document is stored consecutively and ensure there is a NUL character after the text, then returns a pointer to the first character. Applications may then pass this to a function that accepts a character pointer such as a regular expression search or a parser. The pointer should not be written to as that may desynchronize the internal state of Scintilla.

Since any action in Scintilla may change its internal state this pointer becomes invalid after any call or by allowing user interface activity. The application should reacquire the pointer after making any call to Scintilla or performing any user-interface calls such as modifying a progress indicator.

This call takes similar time to inserting a character at the end of the document and this may include moving the document contents. Specifically, all the characters after the document gap are moved to before the gap. This compacted state should persist over calls and user interface actions that do not change the document contents so reacquiring the pointer afterwards is very quick. If this call is used to implement a global replace operation, then each replacement will move the gap so if SCI_GETCHARACTERPOINTER is called after each replacement then the operation will become O(n^2) rather than O(n). Instead, all matches should be found and remembered, then all the replacements performed.

SCI_GETRANGEPOINTER provides direct access to just the range requested. The gap is not moved unless it is within the requested range so this call can be faster than SCI_GETCHARACTERPOINTER. This can be used by application code that is able to act on blocks of text or ranges of lines.

SCI_GETGAPPOSITION returns the current gap position. This is a hint that applications can use to avoid calling SCI_GETRANGEPOINTER with a range that contains the gap and consequent costs of moving the gap.

Multiple views

A Scintilla window and the document that it displays are separate entities. When you create a new window, you also create a new, empty document. Each document has a reference count that is initially set to 1. The document also has a list of the Scintilla windows that are linked to it so when any window changes the document, all other windows in which it appears are notified to cause them to update. The system is arranged in this way so that you can work with many documents in a single Scintilla window and so you can display a single document in multiple windows (for use with splitter windows).

Although these messages use document *doc, to ensure compatibility with future releases of Scintilla you should treat doc as an opaque void*. That is, you can use and store the pointer as described in this section but you should not dereference it.

SCI_GETDOCPOINTER → document *
SCI_SETDOCPOINTER(<unused>, document *doc)
SCI_CREATEDOCUMENT → document *
SCI_ADDREFDOCUMENT(<unused>, document *doc)
SCI_RELEASEDOCUMENT(<unused>, document *doc)

SCI_GETDOCPOINTER → document *
This returns a pointer to the document currently in use by the window. It has no other effect.

SCI_SETDOCPOINTER(<unused>, document *doc)
This message does the following:
1. It removes the current window from the list held by the current document.
2. It reduces the reference count of the current document by 1.
3. If the reference count reaches 0, the document is deleted.
4. doc is set as the new document for the window.
5. If doc was 0, a new, empty document is created and attached to the window.
6. If doc was not 0, its reference count is increased by 1.

SCI_CREATEDOCUMENT → document *
This message creates a new, empty document and returns a pointer to it. This document is not selected into the editor and starts with a reference count of 1. This means that you have ownership of it and must either reduce its reference count by 1 after using SCI_SETDOCPOINTER so that the Scintilla window owns it or you must make sure that you reduce the reference count by 1 with SCI_RELEASEDOCUMENT before you close the application to avoid memory leaks.

SCI_ADDREFDOCUMENT(<unused>, document *doc)
This increases the reference count of a document by 1. If you want to replace the current document in the Scintilla window and take ownership of the current document, for example if you are editing many documents in one window, do the following:
1. Use SCI_GETDOCPOINTER to get a pointer to the document, doc.
2. Use SCI_ADDREFDOCUMENT(0, doc) to increment the reference count.
3. Use SCI_SETDOCPOINTER(0, docNew) to set a different document or SCI_SETDOCPOINTER(0, 0) to set a new, empty document.

SCI_RELEASEDOCUMENT(<unused>, document *doc)
This message reduces the reference count of the document identified by doc. doc must be the result of SCI_GETDOCPOINTER or SCI_CREATEDOCUMENT and must point at a document that still exists. If you call this on a document with a reference count of 1 that is still attached to a Scintilla window, bad things will happen. To keep the world spinning in its orbit you must balance each call to SCI_CREATEDOCUMENT or SCI_ADDREFDOCUMENT with a call to SCI_RELEASEDOCUMENT.

Background loading and saving

To ensure a responsive user interface, applications may decide to load and save documents using a separate thread from the user interface.

Loading in the background

SCI_CREATELOADER(int bytes) → int

An application can load all of a file into a buffer it allocates on a background thread and then add the data in that buffer into a Scintilla document on the user interface thread. That technique uses extra memory to store a complete copy of the file and also means that the time that Scintilla takes to perform initial line end discovery blocks the user interface.

To avoid these issues, a loader object may be created and used to load the file. The loader object supports the ILoader interface.

SCI_CREATELOADER(int bytes) → int
Create an object that supports the ILoader interface which can be used to load data and then be turned into a Scintilla document object for attachment to a view object. The bytes argument determines the initial memory allocation for the document as it is more efficient to allocate once rather than rely on the buffer growing as data is added. If SCI_CREATELOADER fails then 0 is returned.

ILoader

class ILoader {
public:
        virtual int SCI_METHOD Release() = 0;
        // Returns a status code from SC_STATUS_*
        virtual int SCI_METHOD AddData(char *data, int length) = 0;
        virtual void * SCI_METHOD ConvertToDocument() = 0;
};

The application should call the AddData method with each block of data read from the file. AddData will return SC_STATUS_OK unless a failure, such as memory exhaustion occurs. If a failure occurs in AddData or in a file reading call then loading can be abandoned and the loader released with the Release call. When the whole file has been read, ConvertToDocument should be called to produce a Scintilla document pointer. The newly created document will have a reference count of 1 in the same way as a document pointer returned from SCI_CREATEDOCUMENT. There is no need to call Release after ConvertToDocument.

Saving in the background

An application that wants to save in the background should lock the document with SCI_SETREADONLY(1) to prevent modifications and retrieve a pointer to the unified document contents with SCI_GETCHARACTERPOINTER. The buffer of a locked document will not move so the pointer is valid until the application calls SCI_SETREADONLY(0).

If the user tries to performs a modification while the document is locked then a SCN_MODIFYATTEMPTRO notification is sent to the application. The application may then decide to ignore the modification or to terminate the background saving thread and reenable modification before returning from the notification.

Folding

The fundamental operation in folding is making lines invisible or visible. Line visibility is a property of the view rather than the document so each view may be displaying a different set of lines. From the point of view of the user, lines are hidden and displayed using fold points. Generally, the fold points of a document are based on the hierarchical structure of the document contents. In Python, the hierarchy is determined by indentation and in C++ by brace characters. This hierarchy can be represented within a Scintilla document object by attaching a numeric "fold level" to each line. The fold level is most easily set by a lexer, but you can also set it with messages.

It is up to your code to set the connection between user actions and folding and unfolding. The best way to see how this is done is to search the SciTE source code for the messages used in this section of the documentation and see how they are used. You will also need to use markers and a folding margin to complete your folding implementation. The "fold" property should be set to "1" with SCI_SETPROPERTY("fold", "1") to enable folding.

SCI_VISIBLEFROMDOCLINE(int docLine) → int
SCI_DOCLINEFROMVISIBLE(int displayLine) → int
SCI_SHOWLINES(int lineStart, int lineEnd)
SCI_HIDELINES(int lineStart, int lineEnd)
SCI_GETLINEVISIBLE(int line) → bool
SCI_GETALLLINESVISIBLE → bool
SCI_SETFOLDLEVEL(int line, int level)
SCI_GETFOLDLEVEL(int line) → int
SCI_SETAUTOMATICFOLD(int automaticFold)
SCI_GETAUTOMATICFOLD → int
SCI_SETFOLDFLAGS(int flags)
SCI_GETLASTCHILD(int line, int level) → int
SCI_GETFOLDPARENT(int line) → int
SCI_SETFOLDEXPANDED(int line, bool expanded)
SCI_GETFOLDEXPANDED(int line) → bool
SCI_CONTRACTEDFOLDNEXT(int lineStart) → int
SCI_TOGGLEFOLD(int line)
SCI_TOGGLEFOLDSHOWTEXT(int line, const char *text)
SCI_FOLDDISPLAYTEXTSETSTYLE(int style)
SCI_FOLDLINE(int line, int action)
SCI_FOLDCHILDREN(int line, int action)
SCI_FOLDALL(int action)
SCI_EXPANDCHILDREN(int line, int level)
SCI_ENSUREVISIBLE(int line)
SCI_ENSUREVISIBLEENFORCEPOLICY(int line)

SCI_VISIBLEFROMDOCLINE(int docLine) → int
When some lines are hidden and/or annotations are displayed, then a particular line in the document may be displayed at a different position to its document position. If no lines are hidden and there are no annotations, this message returns docLine. Otherwise, this returns the display line (counting the very first visible line as 0). The display line of an invisible line is the same as the previous visible line. The display line number of the first line in the document is 0. If lines are hidden and docLine is outside the range of lines in the document, the return value is -1. Lines can occupy more than one display line if they wrap.

SCI_DOCLINEFROMVISIBLE(int displayLine) → int
When some lines are hidden and/or annotations are displayed, then a particular line in the document may be displayed at a different position to its document position. This message returns the document line number that corresponds to a display line (counting the display line of the first line in the document as 0). If displayLine is less than or equal to 0, the result is 0. If displayLine is greater than or equal to the number of displayed lines, the result is the number of lines in the document.

SCI_SHOWLINES(int lineStart, int lineEnd)
SCI_HIDELINES(int lineStart, int lineEnd)
SCI_GETLINEVISIBLE(int line) → bool
SCI_GETALLLINESVISIBLE → bool
The first two messages mark a range of lines as visible or invisible and then redraw the display. SCI_GETLINEVISIBLE reports on the visible state of a line and returns 1 if it is visible and 0 if it is not visible. SCI_GETALLLINESVISIBLE returns 1 if all lines are visible and 0 if some lines are hidden. These messages have no effect on fold levels or fold flags. The first line can not be hidden.

SCI_SETFOLDLEVEL(int line, int level)
SCI_GETFOLDLEVEL(int line) → int
These two messages set and get a 32-bit value that contains the fold level of a line and some flags associated with folding. The fold level is a number in the range 0 to SC_FOLDLEVELNUMBERMASK (0x0FFF). However, the initial fold level is set to SC_FOLDLEVELBASE (0x400) to allow unsigned arithmetic on folding levels. There are two addition flag bits. SC_FOLDLEVELWHITEFLAG indicates that the line is blank and allows it to be treated slightly different then its level may indicate. For example, blank lines should generally not be fold points and will be considered part of the preceding section even though they may have a lesser fold level. SC_FOLDLEVELHEADERFLAG indicates that the line is a header (fold point).

Use SCI_GETFOLDLEVEL(line) & SC_FOLDLEVELNUMBERMASK to get the fold level of a line. Likewise, use SCI_GETFOLDLEVEL(line) & SC_FOLDLEVEL*FLAG to get the state of the flags. To set the fold level you must or in the associated flags. For instance, to set the level to thisLevel and mark a line as being a fold point use: SCI_SETFOLDLEVEL(line, thisLevel | SC_FOLDLEVELHEADERFLAG).

If you use a lexer, you should not need to use SCI_SETFOLDLEVEL as this is far better handled by the lexer. You will need to use SCI_GETFOLDLEVEL to decide how to handle user folding requests. If you do change the fold levels, the folding margin will update to match your changes.

SCI_SETFOLDFLAGS(int flags)
In addition to showing markers in the folding margin, you can indicate folds to the user by drawing lines in the text area. The lines are drawn in the foreground colour set for STYLE_DEFAULT. Bits set in flags determine where folding lines are drawn:

Symbol Value Effect
1 Experimental feature that has been removed.
SC_FOLDFLAG_LINEBEFORE_EXPANDED 2 Draw above if expanded
SC_FOLDFLAG_LINEBEFORE_CONTRACTED 4 Draw above if not expanded
SC_FOLDFLAG_LINEAFTER_EXPANDED 8 Draw below if expanded
SC_FOLDFLAG_LINEAFTER_CONTRACTED 16 Draw below if not expanded
SC_FOLDFLAG_LEVELNUMBERS 64 display hexadecimal fold levels in line margin to aid debugging of folding. The appearance of this feature may change in the future.
SC_FOLDFLAG_LINESTATE 128 display hexadecimal line state in line margin to aid debugging of lexing and folding. May not be used at the same time as SC_FOLDFLAG_LEVELNUMBERS.

This message causes the display to redraw.

SCI_GETLASTCHILD(int line, int level) → int
This message searches for the next line after line, that has a folding level that is less than or equal to level and then returns the previous line number. If you set level to -1, level is set to the folding level of line line. If from is a fold point, SCI_GETLASTCHILD(from, -1) returns the last line that would be in made visible or hidden by toggling the fold state.

SCI_GETFOLDPARENT(int line) → int
This message returns the line number of the first line before line that is marked as a fold point with SC_FOLDLEVELHEADERFLAG and has a fold level less than the line. If no line is found, or if the header flags and fold levels are inconsistent, the return value is -1.

SCI_TOGGLEFOLD(int line)
SCI_TOGGLEFOLDSHOWTEXT(int line, const char *text)
Each fold point may be either expanded, displaying all its child lines, or contracted, hiding all the child lines. These messages toggle the folding state of the given line as long as it has the SC_FOLDLEVELHEADERFLAG set. These messages take care of folding or expanding all the lines that depend on the line. The display updates after this message.

An optional text tag may be shown to the right of the folded text with the text argument to SCI_TOGGLEFOLDSHOWTEXT. The text is drawn with the STYLE_FOLDDISPLAYTEXT style.

SCI_FOLDDISPLAYTEXTSETSTYLE(int style)
This message changes the appearance of fold text tags.

Symbol Value Effect
SC_FOLDDISPLAYTEXT_HIDDEN 0 Do not display the text tags. This is the default.
SC_FOLDDISPLAYTEXT_STANDARD 1 Display the text tags.
SC_FOLDDISPLAYTEXT_BOXED 2 Display the text tags with a box drawn around them.

SCI_SETFOLDEXPANDED(int line, bool expanded)
SCI_GETFOLDEXPANDED(int line) → bool
These messages set and get the expanded state of a single line. The set message has no effect on the visible state of the line or any lines that depend on it. It does change the markers in the folding margin. If you ask for the expansion state of a line that is outside the document, the result is false (0).

If you just want to toggle the fold state of one line and handle all the lines that are dependent on it, it is much easier to use SCI_TOGGLEFOLD. You would use the SCI_SETFOLDEXPANDED message to process many folds without updating the display until you had finished. See SciTEBase::FoldAll() and SciTEBase::Expand() for examples of the use of these messages.

SCI_FOLDLINE(int line, int action)
SCI_FOLDCHILDREN(int line, int action)
SCI_FOLDALL(int action)
These messages provide a higher-level approach to folding instead of setting expanded flags and showing or hiding individual lines.

An individual fold can be contracted/expanded/toggled with SCI_FOLDLINE. To affect all child folds as well call SCI_FOLDCHILDREN.

To affect the entire document call SCI_FOLDALL. With SC_FOLDACTION_TOGGLE the first fold header in the document is examined to decide whether to expand or contract.

Symbol Value Effect
SC_FOLDACTION_CONTRACT 0 Contract.
SC_FOLDACTION_EXPAND 1 Expand.
SC_FOLDACTION_TOGGLE 2 Toggle between contracted and expanded.

SCI_EXPANDCHILDREN(int line, int level)
This is used to respond to a change to a line causing its fold level or whether it is a header to change, perhaps when adding or removing a '{'.

By the time the container has received the notification that the line has changed, the fold level has already been set, so the container has to use the previous level in this call so that any range hidden underneath this line can be shown.

SCI_SETAUTOMATICFOLD(int automaticFold)
SCI_GETAUTOMATICFOLD → int
Instead of implementing all the logic for handling folding in the container, Scintilla can provide behaviour that is adequate for many applications. The automaticFold argument is a bit set defining which of the 3 pieces of folding implementation should be enabled. Most applications should be able to use the SC_AUTOMATICFOLD_SHOW and SC_AUTOMATICFOLD_CHANGE flags unless they wish to implement quite different behaviour such as defining their own fold structure. SC_AUTOMATICFOLD_CLICK is more likely to be set off when an application would like to add or change click behaviour such as showing method headers only when Shift+Alt is used in conjunction with a click.

Symbol Value Effect
SC_AUTOMATICFOLD_SHOW 1 Automatically show lines as needed. This avoids sending the SCN_NEEDSHOWN notification.
SC_AUTOMATICFOLD_CLICK 2 Handle clicks in fold margin automatically. This avoids sending the SCN_MARGINCLICK notification for folding margins.
SC_AUTOMATICFOLD_CHANGE 4 Show lines as needed when fold structure is changed. The SCN_MODIFIED notification is still sent unless it is disabled by the container.

SCI_CONTRACTEDFOLDNEXT(int lineStart) → int
Search efficiently for lines that are contracted fold headers. This is useful when saving the user's folding when switching documents or saving folding with a file. The search starts at line number lineStart and continues forwards to the end of the file. lineStart is returned if it is a contracted fold header otherwise the next contracted fold header is returned. If there are no more contracted fold headers then -1 is returned.

SCI_ENSUREVISIBLE(int line)
SCI_ENSUREVISIBLEENFORCEPOLICY(int line)
A line may be hidden because more than one of its parent lines is contracted. Both these message travels up the fold hierarchy, expanding any contracted folds until they reach the top level. The line will then be visible. If you use SCI_ENSUREVISIBLEENFORCEPOLICY, the vertical caret policy set by SCI_SETVISIBLEPOLICY is then applied.

Line wrapping

SCI_SETWRAPMODE(int wrapMode)
SCI_GETWRAPMODE → int
SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
SCI_GETWRAPVISUALFLAGS → int
SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)
SCI_GETWRAPVISUALFLAGSLOCATION → int
SCI_SETWRAPINDENTMODE(int wrapIndentMode)
SCI_GETWRAPINDENTMODE → int
SCI_SETWRAPSTARTINDENT(int indent)
SCI_GETWRAPSTARTINDENT → int
SCI_SETLAYOUTCACHE(int cacheMode)
SCI_GETLAYOUTCACHE → int
SCI_SETPOSITIONCACHE(int size)
SCI_GETPOSITIONCACHE → int
SCI_LINESSPLIT(int pixelWidth)
SCI_LINESJOIN
SCI_WRAPCOUNT(int docLine) → int

By default, Scintilla does not wrap lines of text. If you enable line wrapping, lines wider than the window width are continued on the following lines. Lines are broken after space or tab characters or between runs of different styles. If this is not possible because a word in one style is wider than the window then the break occurs after the last character that completely fits on the line. The horizontal scroll bar does not appear when wrap mode is on.

For wrapped lines Scintilla can draw visual flags (little arrows) at end of a a subline of a wrapped line and at begin of the next subline. These can be enabled individually, but if Scintilla draws the visual flag at the beginning of the next subline this subline will be indented by one char. Independent from drawing a visual flag at the begin the subline can have an indention.

Much of the time used by Scintilla is spent on laying out and drawing text. The same text layout calculations may be performed many times even when the data used in these calculations does not change. To avoid these unnecessary calculations in some circumstances, the line layout cache can store the results of the calculations. The cache is invalidated whenever the underlying data, such as the contents or styling of the document changes. Caching the layout of the whole document has the most effect, making dynamic line wrap as much as 20 times faster but this requires 7 times the memory required by the document contents plus around 80 bytes per line.

Wrapping is not performed immediately there is a change but is delayed until the display is redrawn. This delay improves performance by allowing a set of changes to be performed and then wrapped and displayed once. Because of this, some operations may not occur as expected. If a file is read and the scroll position moved to a particular line in the text, such as occurs when a container tries to restore a previous editing session, then the scroll position will have been determined before wrapping so an unexpected range of text will be displayed. To scroll to the position correctly, delay the scroll until the wrapping has been performed by waiting for an initial SCN_PAINTED notification.

SCI_SETWRAPMODE(int wrapMode)
SCI_GETWRAPMODE → int
Set wrapMode to SC_WRAP_WORD (1) to enable wrapping on word or style boundaries, SC_WRAP_CHAR (2) to enable wrapping between any characters, SC_WRAP_WHITESPACE (3) to enable wrapping on whitespace, and SC_WRAP_NONE (0) to disable line wrapping. SC_WRAP_CHAR is preferred for Asian languages where there is no white space between words.

SCI_SETWRAPVISUALFLAGS(int wrapVisualFlags)
SCI_GETWRAPVISUALFLAGS → int
You can enable the drawing of visual flags to indicate a line is wrapped. Bits set in wrapVisualFlags determine which visual flags are drawn.

Symbol Value Effect
SC_WRAPVISUALFLAG_NONE 0 No visual flags
SC_WRAPVISUALFLAG_END 1 Visual flag at end of subline of a wrapped line.
SC_WRAPVISUALFLAG_START 2 Visual flag at begin of subline of a wrapped line.
Subline is indented by at least 1 to make room for the flag.
SC_WRAPVISUALFLAG_MARGIN 4 Visual flag in line number margin.

SCI_SETWRAPVISUALFLAGSLOCATION(int wrapVisualFlagsLocation)
SCI_GETWRAPVISUALFLAGSLOCATION → int
You can set whether the visual flags to indicate a line is wrapped are drawn near the border or near the text. Bits set in wrapVisualFlagsLocation set the location to near the text for the corresponding visual flag.

Symbol Value Effect
SC_WRAPVISUALFLAGLOC_DEFAULT 0 Visual flags drawn near border
SC_WRAPVISUALFLAGLOC_END_BY_TEXT 1 Visual flag at end of subline drawn near text
SC_WRAPVISUALFLAGLOC_START_BY_TEXT 2 Visual flag at beginning of subline drawn near text

SCI_SETWRAPINDENTMODE(int wrapIndentMode)
SCI_GETWRAPINDENTMODE → int
Wrapped sublines can be indented to the position of their first subline or one more indent level. The default is SC_WRAPINDENT_FIXED. The modes are:

Symbol Value Effect
SC_WRAPINDENT_FIXED 0 Wrapped sublines aligned to left of window plus amount set by SCI_SETWRAPSTARTINDENT
SC_WRAPINDENT_SAME 1 Wrapped sublines are aligned to first subline indent
SC_WRAPINDENT_INDENT 2 Wrapped sublines are aligned to first subline indent plus one more level of indentation

SCI_SETWRAPSTARTINDENT(int indent)
SCI_GETWRAPSTARTINDENT → int
SCI_SETWRAPSTARTINDENT sets the size of indentation of sublines for wrapped lines in terms of the average character width in STYLE_DEFAULT. There are no limits on indent sizes, but values less than 0 or large values may have undesirable effects.
The indention of sublines is independent of visual flags, but if SC_WRAPVISUALFLAG_START is set an indent of at least 1 is used.

SCI_SETLAYOUTCACHE(int cacheMode)
SCI_GETLAYOUTCACHE → int
You can set cacheMode to one of the symbols in the table:

Symbol Value Layout cached for these lines
SC_CACHE_NONE 0 No lines are cached.
SC_CACHE_CARET 1 The line containing the text caret. This is the default.
SC_CACHE_PAGE 2 Visible lines plus the line containing the caret.
SC_CACHE_DOCUMENT 3 All lines in the document.

SCI_SETPOSITIONCACHE(int size)
SCI_GETPOSITIONCACHE → int
The position cache stores position information for short runs of text so that their layout can be determined more quickly if the run recurs. The size in entries of this cache can be set with SCI_SETPOSITIONCACHE.

SCI_LINESSPLIT(int pixelWidth)
Split a range of lines indicated by the target into lines that are at most pixelWidth wide. Splitting occurs on word boundaries wherever possible in a similar manner to line wrapping. When pixelWidth is 0 then the width of the window is used.

SCI_LINESJOIN
Join a range of lines indicated by the target into one line by removing line end characters. Where this would lead to no space between words, an extra space is inserted.

SCI_WRAPCOUNT(int docLine) → int
Document lines can occupy more than one display line if they wrap and this returns the number of display lines needed to wrap a document line.

Zooming

Scintilla incorporates a "zoom factor" that lets you make all the text in the document larger or smaller in steps of one point. The displayed point size never goes below 2, whatever zoom factor you set. You can set zoom factors in the range -10 to +20 points.

SCI_ZOOMIN
SCI_ZOOMOUT
SCI_SETZOOM(int zoomInPoints)
SCI_GETZOOM → int

SCI_ZOOMIN
SCI_ZOOMOUT
SCI_ZOOMIN increases the zoom factor by one point if the current zoom factor is less than 20 points. SCI_ZOOMOUT decreases the zoom factor by one point if the current zoom factor is greater than -10 points.

SCI_SETZOOM(int zoomInPoints)
SCI_GETZOOM → int
These messages let you set and get the zoom factor directly. There is no limit set on the factors you can set, so limiting yourself to -10 to +20 to match the incremental zoom functions is a good idea.

Long lines

You can choose to mark lines that exceed a given length by drawing a vertical line or by colouring the background of characters that exceed the set length.

SCI_SETEDGEMODE(int edgeMode)
SCI_GETEDGEMODE → int
SCI_SETEDGECOLUMN(int column)
SCI_GETEDGECOLUMN → int
SCI_SETEDGECOLOUR(colour edgeColour)
SCI_GETEDGECOLOUR → colour

SCI_MULTIEDGEADDLINE(int column, colour edgeColour)
SCI_MULTIEDGECLEARALL

SCI_SETEDGEMODE(int edgeMode)
SCI_GETEDGEMODE → int
These two messages set and get the mode used to display long lines. You can set one of the values in the table:

Symbol Value Long line display mode
EDGE_NONE 0 Long lines are not marked. This is the default state.
EDGE_LINE 1 A vertical line is drawn at the column number set by SCI_SETEDGECOLUMN. This works well for monospaced fonts. The line is drawn at a position based on the width of a space character in STYLE_DEFAULT, so it may not work very well if your styles use proportional fonts or if your style have varied font sizes or you use a mixture of bold, italic and normal text.
EDGE_BACKGROUND 2 The background colour of characters after the column limit is changed to the colour set by SCI_SETEDGECOLOUR. This is recommended for proportional fonts.
EDGE_MULTILINE 3 This is similar to EDGE_LINE but in contrary to showing only one single line a configurable set of vertical lines can be shown simultaneously. This edgeMode uses a completely independent dataset that can only be configured by using the SCI_MULTIEDGE* messages.

SCI_SETEDGECOLUMN(int column)
SCI_GETEDGECOLUMN → int
These messages set and get the column number at which to display the long line marker. When drawing lines, the column sets a position in units of the width of a space character in STYLE_DEFAULT. When setting the background colour, the column is a character count (allowing for tabs) into the line.

SCI_SETEDGECOLOUR(colour edgeColour)
SCI_GETEDGECOLOUR → colour
These messages set and get the colour of the marker used to show that a line has exceeded the length set by SCI_SETEDGECOLUMN.

SCI_MULTIEDGEADDLINE(int column, colour edgeColour)
SCI_MULTIEDGECLEARALL
SCI_MULTIEDGEADDLINE adds a new vertical edge to the view. The edge will be displayed at the given column number. The resulting edge position depends on the metric of a space character in STYLE_DEFAULT. All the edges can be cleared with SCI_MULTIEDGECLEARALL.

Accessibility

Scintilla supports some platform accessibility features. This support differs between platforms. On GTK+ and Cocoa the platform accessibility APIs are implemented sufficiently to make screen readers work. On Win32, the system caret is manipulated to help screen readers.

SCI_SETACCESSIBILITY(int accessibility)
SCI_GETACCESSIBILITY → int

SCI_SETACCESSIBILITY(int accessibility)
SCI_GETACCESSIBILITY → int
These messages may enable or disable accessibility and report its current status.

On most platforms, accessibility is either implemented or not implemented and this can be discovered with SCI_GETACCESSIBILITY with SCI_SETACCESSIBILITY performing no action. On GTK+, there are storage and performance costs to accessibility, so it can be disabled by calling SCI_SETACCESSIBILITY.

Symbol Value Accessibility status
SC_ACCESSIBILITY_DISABLED 0 Accessibility is disabled.
SC_ACCESSIBILITY_ENABLED 1 Accessibility is enabled.

Lexer

If you define the symbol SCI_LEXER when building Scintilla, (this is sometimes called the SciLexer version of Scintilla), lexing support for a wide range of programming languages is included and the messages in this section are supported. If you want to set styling and fold points for an unsupported language you can either do this in the container or better still, write your own lexer following the pattern of one of the existing ones.

Scintilla also supports external lexers. These are DLLs (on Windows) or .so modules (on GTK+/Linux) that export three functions: GetLexerCount, GetLexerName, and GetLexerFactory. See externalLexer.cxx for more.

SCI_SETLEXER(int lexer)
SCI_GETLEXER → int
SCI_SETLEXERLANGUAGE(<unused>, const char *language)
SCI_GETLEXERLANGUAGE(<unused>, char *language) → int
SCI_LOADLEXERLIBRARY(<unused>, const char *path)
SCI_COLOURISE(int start, int end)
SCI_CHANGELEXERSTATE(int start, int end) → int
SCI_PROPERTYNAMES(<unused>, char *names) → int
SCI_PROPERTYTYPE(const char *name) → int
SCI_DESCRIBEPROPERTY(const char *name, char *description) → int
SCI_SETPROPERTY(const char *key, const char *value)
SCI_GETPROPERTY(const char *key, char *value) → int
SCI_GETPROPERTYEXPANDED(const char *key, char *value) → int
SCI_GETPROPERTYINT(const char *key, int defaultValue) → int
SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions) → int
SCI_SETKEYWORDS(int keyWordSet, const char *keyWords)
SCI_GETSUBSTYLEBASES(<unused>, char *styles) → int
SCI_DISTANCETOSECONDARYSTYLES → int
SCI_ALLOCATESUBSTYLES(int styleBase, int numberStyles) → int
SCI_FREESUBSTYLES
SCI_GETSUBSTYLESSTART(int styleBase) → int
SCI_GETSUBSTYLESLENGTH(int styleBase) → int
SCI_GETSTYLEFROMSUBSTYLE(int subStyle) → int
SCI_GETPRIMARYSTYLEFROMSTYLE(int style) → int
SCI_SETIDENTIFIERS(int style, const char *identifiers)
SCI_PRIVATELEXERCALL(int operation, int pointer) → int

SCI_SETLEXER(int lexer)
SCI_GETLEXER → int
You can select the lexer to use with an integer code from the SCLEX_* enumeration in Scintilla.h. There are two codes in this sequence that do not use lexers: SCLEX_NULL to select no lexing action and SCLEX_CONTAINER which sends the SCN_STYLENEEDED notification to the container whenever a range of text needs to be styled. You cannot use the SCLEX_AUTOMATIC value; this identifies additional external lexers that Scintilla assigns unused lexer numbers to.

SCI_SETLEXERLANGUAGE(<unused>, const char *language)
SCI_GETLEXERLANGUAGE(<unused>, char *language NUL-terminated) → int
SCI_SETLEXERLANGUAGE lets you select a lexer by name, and is the only method if you are using an external lexer or if you have written a lexer module for a language of your own and do not wish to assign it an explicit lexer number. To select an existing lexer, set language to match the (case sensitive) name given to the module, for example "ada" or "python", not "Ada" or "Python". To locate the name for the built-in lexers, open the relevant Lex*.cxx file and search for LexerModule. The third argument in the LexerModule constructor is the name to use.

To test if your lexer assignment worked, use SCI_GETLEXER before and after setting the new lexer to see if the lexer number changed.

SCI_GETLEXERLANGUAGE retrieves the name of the lexer.

SCI_LOADLEXERLIBRARY(<unused>, const char *path)
Load a lexer implemented in a shared library. This is a .so file on GTK+/Linux or a .DLL file on Windows.

SCI_COLOURISE(int start, int end)
This requests the current lexer or the container (if the lexer is set to SCLEX_CONTAINER) to style the document between start and end. If end is -1, the document is styled from start to the end. If the "fold" property is set to "1" and your lexer or container supports folding, fold levels are also set. This message causes a redraw.

SCI_CHANGELEXERSTATE(int start, int end) → int
Indicate that the internal state of a lexer has changed over a range and therefore there may be a need to redraw.

SCI_PROPERTYNAMES(<unused>, char *names NUL-terminated) → int
SCI_PROPERTYTYPE(const char *name) → int
SCI_DESCRIBEPROPERTY(const char *name, char *description NUL-terminated) → int
Information may be retrieved about the properties that can be set for the current lexer. This information is only available for newer lexers. SCI_PROPERTYNAMES returns a string with all of the valid properties separated by "\n". If the lexer does not support this call then an empty string is returned. Properties may be boolean (SC_TYPE_BOOLEAN), integer (SC_TYPE_INTEGER), or string (SC_TYPE_STRING) and this is found with SCI_PROPERTYTYPE. A description of a property in English is returned by SCI_DESCRIBEPROPERTY.

SCI_SETPROPERTY(const char *key, const char *value)
You can communicate settings to lexers with keyword:value string pairs. There is no limit to the number of keyword pairs you can set, other than available memory. key is a case sensitive keyword, value is a string that is associated with the keyword. If there is already a value string associated with the keyword, it is replaced. If you pass a zero length string, the message does nothing. Both key and value are used without modification; extra spaces at the beginning or end of key are significant.

The value string can refer to other keywords. For example, SCI_SETPROPERTY("foldTimes10", "$(fold)0") stores the string "$(fold)0", but when this is accessed, the $(fold) is replaced by the value of the "fold" keyword (or by nothing if this keyword does not exist).

Currently the "fold" property is defined for most of the lexers to set the fold structure if set to "1". SCLEX_PYTHON understands "tab.timmy.whinge.level" as a setting that determines how to indicate bad indentation. Most keywords have values that are interpreted as integers. Search the lexer sources for GetPropertyInt to see how properties are used.

There is a convention for naming properties used by lexers so that the set of properties can be found by scripts. Property names should start with "lexer.<lexer>." or "fold.<lexer>." when they apply to one lexer or start with "lexer." or "fold." if they apply to multiple lexers.

Applications may discover the set of properties used by searching the source code of lexers for lines that contain GetProperty and a double quoted string and extract the value of the double quoted string as the property name. The scintilla/scripts/LexGen.py script does this and can be used as an example. Documentation for the property may be located above the call as a multi-line comment starting with
// property <property-name>

SCI_GETPROPERTY(const char *key, char *value NUL-terminated) → int
Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied buffer and return the length (not including the terminating 0). If not found, copy an empty string to the buffer and return 0.

Note that "keyword replacement" as described in SCI_SETPROPERTY will not be performed.

If the value argument is 0 then the length that should be allocated to store the value is returned; again, the terminating 0 is not included.

SCI_GETPROPERTYEXPANDED(const char *key, char *value) → int
Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied buffer and return the length (not including the terminating 0). If not found, copy an empty string to the buffer and return 0.

Note that "keyword replacement" as described in SCI_SETPROPERTY will be performed.

If the value argument is 0 then the length that should be allocated to store the value (including any indicated keyword replacement) is returned; again, the terminating 0 is not included.

SCI_GETPROPERTYINT(const char *key, int defaultValue) → int
Lookup a keyword:value pair using the specified key; if found, interpret the value as an integer and return it. If not found (or the value is an empty string) then return the supplied default. If the keyword:value pair is found but is not a number, then return 0.

Note that "keyword replacement" as described in SCI_SETPROPERTY will be performed before any numeric interpretation.

SCI_SETKEYWORDS(int keyWordSet, const char *keyWords)
You can set up to 9 lists of keywords for use by the current lexer. keyWordSet can be 0 to 8 (actually 0 to KEYWORDSET_MAX) and selects which keyword list to replace. keyWords is a list of keywords separated by spaces, tabs, "\n" or "\r" or any combination of these. It is expected that the keywords will be composed of standard ASCII printing characters, but there is nothing to stop you using any non-separator character codes from 1 to 255 (except common sense).

How these keywords are used is entirely up to the lexer. Some languages, such as HTML may contain embedded languages, VBScript and JavaScript are common for HTML. For HTML, key word set 0 is for HTML, 1 is for JavaScript and 2 is for VBScript, 3 is for Python, 4 is for PHP and 5 is for SGML and DTD keywords. Review the lexer code to see examples of keyword list. A fully conforming lexer sets the fourth argument of the LexerModule constructor to be a list of strings that describe the uses of the keyword lists.

Alternatively, you might use set 0 for general keywords, set 1 for keywords that cause indentation and set 2 for keywords that cause unindentation. Yet again, you might have a simple lexer that colours keywords and you could change languages by changing the keywords in set 0. There is nothing to stop you building your own keyword lists into the lexer, but this means that the lexer must be rebuilt if more keywords are added.

SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions NUL-terminated) → int
A description of all of the keyword sets separated by "\n" is returned by SCI_DESCRIBEKEYWORDSETS.

Substyles

Lexers may support several different sublanguages and each sublanguage may want to style some number of sets of identifiers (or similar lexemes such as documentation keywords) uniquely. Preallocating a large number for each purpose would exhaust the number of allowed styles quickly. This is alleviated by substyles which allow the application to determine how many sets of identifiers to allocate for each purpose. Lexers have to explicitly support this feature by implementing the methods in ILexerWithSubStyles.

SCI_GETSUBSTYLEBASES(<unused>, char *styles NUL-terminated) → int
Fill styles with a byte for each style that can be split into substyles.

SCI_DISTANCETOSECONDARYSTYLES → int
Returns the distance between a primary style and its corresponding secondary style.

SCI_ALLOCATESUBSTYLES(int styleBase, int numberStyles) → int
Allocate some number of substyles for a particular base style returning the first substyle number allocated. Substyles are allocated contiguously.

SCI_FREESUBSTYLES
Free all allocated substyles.

SCI_GETSUBSTYLESSTART(int styleBase) → int
SCI_GETSUBSTYLESLENGTH(int styleBase) → int
Return the start and length of the substyles allocated for a base style.

SCI_GETSTYLEFROMSUBSTYLE(int subStyle) → int
For a sub style, return the base style, else return the argument.

SCI_GETPRIMARYSTYLEFROMSTYLE(int style) → int
For a secondary style, return the primary style, else return the argument.

SCI_SETIDENTIFIERS(int style, const char *identifiers)
Similar to SCI_SETKEYWORDS but for substyles. The prefix feature available with SCI_SETKEYWORDS is not implemented for SCI_SETIDENTIFIERS.

SCI_PRIVATELEXERCALL(int operation, int pointer) → int
Call into a lexer in a way not understood by Scintilla.

Lexer Objects

Lexers are programmed as objects that implement the ILexer interface and that interact with the document they are lexing through the IDocument interface. Previously lexers were defined by providing lexing and folding functions but creating an object to handle the interaction of a lexer with a document allows the lexer to store state information that can be used during lexing. For example a C++ lexer may store a set of preprocessor definitions or variable declarations and style these depending on their role.

A set of helper classes allows older lexers defined by functions to be used in Scintilla.

ILexer

class ILexer {
public:
    virtual int SCI_METHOD Version() const = 0;
    virtual void SCI_METHOD Release() = 0;
    virtual const char * SCI_METHOD PropertyNames() = 0;
    virtual int SCI_METHOD PropertyType(const char *name) = 0;
    virtual const char * SCI_METHOD DescribeProperty(const char *name) = 0;
    virtual Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) = 0;
    virtual const char * SCI_METHOD DescribeWordListSets() = 0;
    virtual Sci_Position SCI_METHOD WordListSet(int n, const char *wl) = 0;
    virtual void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0;
    virtual void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0;
    virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0;
};

The types Sci_Position and Sci_PositionU are used for positions and line numbers in the document. Before release 3.6.0 the types int and unsigned int were used instead and, for 3.6.0, Sci_Position is defined as int and Sci_PositionU is defined as unsigned int. In a future release, 64-bit builds will define these as 64-bit types to allow documents larger than 2 GB.

The return values from PropertySet and WordListSet are used to indicate whether the change requires performing lexing or folding over any of the document. It is the position at which to restart lexing and folding or -1 if the change does not require any extra work on the document. A simple approach is to return 0 if there is any possibility that a change requires lexing the document again while an optimisation could be to remember where a setting first affects the document and return that position.

Version returns an enumerated value specifying which version of the interface is implemented: lvOriginal for ILexer and lvSubStyles for ILexerWithSubStyles.

Release is called to destroy the lexer object.

PrivateCall allows for direct communication between the application and a lexer. An example would be where an application maintains a single large data structure containing symbolic information about system headers (like Windows.h) and provides this to the lexer where it can be applied to each document. This avoids the costs of constructing the system header information for each document. This is invoked with the SCI_PRIVATELEXERCALL API.

Fold is called with the exact range that needs folding. Previously, lexers were called with a range that started one line before the range that needs to be folded as this allowed fixing up the last line from the previous folding. The new approach allows the lexer to decide whether to backtrack or to handle this more efficiently.

ILexerWithSubStyles

To allow lexers to report which line ends they support, and to support substyles, Ilexer is extended to ILexerWithSubStyles.

class ILexerWithSubStyles : public ILexer {
public:
        virtual int SCI_METHOD LineEndTypesSupported() = 0;
        virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0;
        virtual int SCI_METHOD SubStylesStart(int styleBase) = 0;
        virtual int SCI_METHOD SubStylesLength(int styleBase) = 0;
        virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0;
        virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0;
        virtual void SCI_METHOD FreeSubStyles() = 0;
        virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0;
        virtual int SCI_METHOD DistanceToSecondaryStyles() = 0;
        virtual const char * SCI_METHOD GetSubStyleBases() = 0;
};

IDocument

class IDocument {
public:
        virtual int SCI_METHOD Version() const = 0;
        virtual void SCI_METHOD SetErrorStatus(int status) = 0;
        virtual Sci_Position SCI_METHOD Length() const = 0;
        virtual void SCI_METHOD GetCharRange(char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const = 0;
        virtual char SCI_METHOD StyleAt(Sci_Position position) const = 0;
        virtual Sci_Position SCI_METHOD LineFromPosition(Sci_Position position) const = 0;
        virtual Sci_Position SCI_METHOD LineStart(Sci_Position line) const = 0;
        virtual int SCI_METHOD GetLevel(Sci_Position line) const = 0;
        virtual int SCI_METHOD SetLevel(Sci_Position line, int level) = 0;
        virtual int SCI_METHOD GetLineState(Sci_Position line) const = 0;
        virtual int SCI_METHOD SetLineState(Sci_Position line, int state) = 0;
        virtual void SCI_METHOD StartStyling(Sci_Position position, char mask) = 0;
        virtual bool SCI_METHOD SetStyleFor(Sci_Position length, char style) = 0;
        virtual bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) = 0;
        virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0;
        virtual void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength) = 0;
        virtual void SCI_METHOD ChangeLexerState(Sci_Position start, Sci_Position end) = 0;
        virtual int SCI_METHOD CodePage() const = 0;
        virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0;
        virtual const char * SCI_METHOD BufferPointer() = 0;
        virtual int SCI_METHOD GetLineIndentation(Sci_Position line) = 0;
};

Scintilla tries to minimize the consequences of modifying text to only relex and redraw the line of the change where possible. Lexer objects contain their own private extra state which can affect later lines. For example, if the C++ lexer is greying out inactive code segments then changing the statement #define BEOS 0 to #define BEOS 1 may require restyling and redisplaying later parts of the document. The lexer can call ChangeLexerState to signal to the document that it should relex and display more.

For StartStyling the mask argument has no effect. It was used in version 3.4.2 and earlier.

SetErrorStatus is used to notify the document of exceptions. Exceptions should not be thrown over build boundaries as the two sides may be built with different compilers or incompatible exception options.

IDocumentWithLineEnd

To allow lexers to determine the end position of a line and thus more easily support Unicode line ends IDocument is extended to IDocumentWithLineEnd.

GetRelativePosition navigates the document by whole characters, returning INVALID_POSITION for movement beyond the start and end of the document.

GetCharacterAndWidth provides a standard conversion from UTF-8 bytes to a UTF-32 character or from DBCS to a 16 bit value. Bytes in invalid UTF-8 are reported individually with values 0xDC80+byteValue, which are not valid Unicode code points. The pWidth argument can be NULL if the caller does not need to know the number of bytes in the character.

class IDocumentWithLineEnd : public IDocument {
public:
        virtual Sci_Position SCI_METHOD LineEnd(Sci_Position line) const = 0;
        virtual Sci_Position SCI_METHOD GetRelativePosition(Sci_Position positionStart, Sci_Position characterOffset) const = 0;
        virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0;
};

The ILexer, ILexerWithSubStyles, IDocument, and IDocumentWithLineEnd interfaces may be expanded in the future with extended versions (ILexer2...). The Version method indicates which interface is implemented and thus which methods may be called.

Notifications

Notifications are sent (fired) from the Scintilla control to its container when an event has occurred that may interest the container.

Notifications are sent using the WM_NOTIFY message on Windows.

On GTK+, the "sci-notify" signal is sent and the signal handler should have the signature handler(GtkWidget *, gint, SCNotification *notification, gpointer userData).

On Cocoa, a delegate implementing the ScintillaNotificationProtocol may be set to receive notifications or the ScintillaView class may be subclassed and the notification: method overridden. Overriding notification: allows the subclass to control whether default handling is performed.

The container is passed a SCNotification structure containing information about the event.

struct Sci_NotifyHeader {   // This matches the Win32 NMHDR structure
    void *hwndFrom;     // environment specific window handle/pointer
    uptr_t idFrom;        // CtrlID of the window issuing the notification
    unsigned int code;  // The SCN_* notification code
};

struct SCNotification {
	struct Sci_NotifyHeader nmhdr;
	Sci_Position position;
	/* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */
	/* SCN_MARGINRIGHTCLICK, SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, */
	/* SCN_CALLTIPCLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */
	/* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */
	/* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */

	int ch;
	/* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETE, SCN_AUTOCSELECTION, */
	/* SCN_USERLISTSELECTION */
	int modifiers;
	/* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */
	/* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */

	int modificationType;	/* SCN_MODIFIED */
	const char *text;
	/* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */

	Sci_Position length;		/* SCN_MODIFIED */
	Sci_Position linesAdded;	/* SCN_MODIFIED */
	int message;	/* SCN_MACRORECORD */
	uptr_t wParam;	/* SCN_MACRORECORD */
	sptr_t lParam;	/* SCN_MACRORECORD */
	Sci_Position line;		/* SCN_MODIFIED */
	int foldLevelNow;	/* SCN_MODIFIED */
	int foldLevelPrev;	/* SCN_MODIFIED */
	int margin;		/* SCN_MARGINCLICK, SCN_MARGINRIGHTCLICK */
	int listType;	/* SCN_USERLISTSELECTION */
	int x;			/* SCN_DWELLSTART, SCN_DWELLEND */
	int y;		/* SCN_DWELLSTART, SCN_DWELLEND */
	int token;		/* SCN_MODIFIED with SC_MOD_CONTAINER */
	int annotationLinesAdded;	/* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */
	int updated;	/* SCN_UPDATEUI */
	int listCompletionMethod;
	/* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION */

};

The notification messages that your container can choose to handle and the messages associated with them are:

SCN_STYLENEEDED
SCN_CHARADDED
SCN_SAVEPOINTREACHED
SCN_SAVEPOINTLEFT
SCN_MODIFYATTEMPTRO
SCN_KEY
SCN_DOUBLECLICK
SCN_UPDATEUI
SCN_MODIFIED
SCN_MACRORECORD
SCN_MARGINCLICK
SCN_NEEDSHOWN
SCN_PAINTED
SCN_USERLISTSELECTION
SCN_URIDROPPED
SCN_DWELLSTART
SCN_DWELLEND
SCN_ZOOM
SCN_HOTSPOTCLICK
SCN_HOTSPOTDOUBLECLICK
SCN_HOTSPOTRELEASECLICK
SCN_INDICATORCLICK
SCN_INDICATORRELEASE
SCN_CALLTIPCLICK
SCN_AUTOCSELECTION
SCN_AUTOCCANCELLED
SCN_AUTOCCHARDELETED
SCN_FOCUSIN
SCN_FOCUSOUT
SCN_AUTOCCOMPLETED
SCN_MARGINRIGHTCLICK

The following SCI_* messages are associated with these notifications:

SCI_SETMODEVENTMASK(int eventMask)
SCI_GETMODEVENTMASK → int
SCI_SETMOUSEDWELLTIME(int periodMilliseconds)
SCI_GETMOUSEDWELLTIME → int
SCI_SETIDENTIFIER(int identifier)
SCI_GETIDENTIFIER → int

The following additional notifications are sent using a secondary "command" method and should be avoided in new code as the primary "notification" method provides all the same events with richer information. The WM_COMMAND message is used on Windows. This emulates the Windows Edit control. Only the lower 16 bits of the control's ID is passed in these notifications.

On GTK+, the "command" signal is sent and the signal handler should have the signature handler(GtkWidget *, gint wParam, gpointer lParam, gpointer userData).

SCEN_CHANGE
SCEN_SETFOCUS
SCEN_KILLFOCUS

SCI_SETIDENTIFIER(int identifier)
SCI_GETIDENTIFIER → int
These two messages set and get the identifier of the Scintilla instance which is included in notifications as the idFrom field. When an application creates multiple Scintilla widgets, this allows the source of each notification to be found. On Windows, this value is initialised in the CreateWindow call and stored as the GWLP_ID attribute of the window. The value should be small, preferably less than 16 bits, rather than a pointer as some of the functions will only transmit 16 or 32 bits.

SCN_STYLENEEDED
If you used SCI_SETLEXER(SCLEX_CONTAINER) to make the container act as the lexer, you will receive this notification when Scintilla is about to display or print text that requires styling. You are required to style the text from the line that contains the position returned by SCI_GETENDSTYLED up to the position passed in SCNotification.position. Symbolically, you need code of the form:

    startPos = SCI_GETENDSTYLED()
    lineNumber = SCI_LINEFROMPOSITION(startPos);
    startPos = SCI_POSITIONFROMLINE(lineNumber);
    MyStyleRoutine(startPos, SCNotification.position);

SCN_CHARADDED
This is sent when the user types an ordinary text character (as opposed to a command character) that is entered into the text. The container can use this to decide to display a call tip or an auto completion list. The character is in SCNotification.ch. This notification is sent before the character has been styled so processing that depends on styling should instead be performed in the SCN_UPDATEUI notification.

SCN_SAVEPOINTREACHED
SCN_SAVEPOINTLEFT
Sent to the container when the save point is entered or left, allowing the container to display a "document dirty" indicator and change its menus.
See also: SCI_SETSAVEPOINT, SCI_GETMODIFY

SCN_MODIFYATTEMPTRO
When in read-only mode, this notification is sent to the container if the user tries to change the text. This can be used to check the document out of a version control system. You can set the read-only state of a document with SCI_SETREADONLY.

SCN_KEY
Reports all keys pressed but not consumed by Scintilla. Used on GTK+ because of some problems with keyboard focus and is not sent by the Windows version. SCNotification.ch holds the key code and SCNotification.modifiers holds the modifiers. This notification is sent if the modifiers include SCMOD_ALT or SCMOD_CTRL and the key code is less than 256.

SCN_DOUBLECLICK
The mouse button was double clicked in editor. The position field is set to the text position of the double click, the line field is set to the line of the double click, and the modifiers field is set to the key modifiers held down in a similar manner to SCN_KEY.

SCN_UPDATEUI
Either the text or styling of the document has changed or the selection range or scroll position has changed. Now would be a good time to update any container UI elements that depend on document or view state. The updated field is set to the bit set of things changed since the previous notification.

Symbol Value Meaning
SC_UPDATE_CONTENT 0x01 Contents, styling or markers have been changed.
SC_UPDATE_SELECTION 0x02 Selection has been changed.
SC_UPDATE_V_SCROLL 0x04 Scrolled vertically.
SC_UPDATE_H_SCROLL 0x08 Scrolled horizontally.

SCN_MODIFIED
This notification is sent when the text or styling of the document changes or is about to change. You can set a mask for the notifications that are sent to the container with SCI_SETMODEVENTMASK. The notification structure contains information about what changed, how the change occurred and whether this changed the number of lines in the document. No modifications may be performed while in a SCN_MODIFIED event. The SCNotification fields used are:

Field Usage
modificationType A set of flags that identify the change(s) made. See the next table.
position Start position of a text or styling change. Set to 0 if not used.
length Length of the change in bytes when the text or styling changes. Set to 0 if not used.
linesAdded Number of added lines. If negative, the number of deleted lines. Set to 0 if not used or no lines added or deleted.
text Valid for text changes, not for style changes. If we are collecting undo information this holds a pointer to the text that is handed to the Undo system, otherwise it is zero. For user performed SC_MOD_BEFOREDELETE the text field is 0.
line The line number at which a fold level or marker change occurred. This is 0 if unused and may be -1 if more than one line changed.
foldLevelNow The new fold level applied to the line or 0 if this field is unused.
foldLevelPrev The previous folding level of the line or 0 if this field is unused.

The SCNotification.modificationType field has bits set to tell you what has been done. The SC_MOD_* bits correspond to actions. The SC_PERFORMED_* bits tell you if the action was done by the user, or the result of Undo or Redo of a previous action.

Symbol Value Meaning SCNotification fields
SC_MOD_INSERTTEXT 0x01 Text has been inserted into the document. position, length, text, linesAdded
SC_MOD_DELETETEXT 0x02 Text has been removed from the document. position, length, text, linesAdded
SC_MOD_CHANGESTYLE 0x04 A style change has occurred. position, length
SC_MOD_CHANGEFOLD 0x08 A folding change has occurred. line, foldLevelNow, foldLevelPrev
SC_PERFORMED_USER 0x10 Information: the operation was done by the user. None
SC_PERFORMED_UNDO 0x20 Information: this was the result of an Undo. None
SC_PERFORMED_REDO 0x40 Information: this was the result of a Redo. None
SC_MULTISTEPUNDOREDO 0x80 This is part of a multi-step Undo or Redo transaction. None
SC_LASTSTEPINUNDOREDO 0x100 This is the final step in an Undo or Redo transaction. None
SC_MOD_CHANGEMARKER 0x200 One or more markers has changed in a line. line
SC_MOD_BEFOREINSERT 0x400 Text is about to be inserted into the document. position, if performed by user then text in bytes, length in bytes
SC_MOD_BEFOREDELETE 0x800 Text is about to be deleted from the document. position, length
SC_MOD_CHANGEINDICATOR 0x4000 An indicator has been added or removed from a range of text. position, length
SC_MOD_CHANGELINESTATE 0x8000 A line state has changed because SCI_SETLINESTATE was called. line
SC_MOD_CHANGETABSTOPS 0x200000 The explicit tab stops on a line have changed because SCI_CLEARTABSTOPS or SCI_ADDTABSTOP was called. line
SC_MOD_LEXERSTATE 0x80000 The internal state of a lexer has changed over a range. position, length
SC_MOD_CHANGEMARGIN 0x10000 A text margin has changed. line
SC_MOD_CHANGEANNOTATION 0x20000 An annotation has changed. line
SC_MOD_INSERTCHECK 0x100000 Text is about to be inserted. The handler may change the text being inserted by calling SCI_CHANGEINSERTION. No other modifications may be made in this handler. position, length, text
SC_MULTILINEUNDOREDO 0x1000 This is part of an Undo or Redo with multi-line changes. None
SC_STARTACTION 0x2000 This is set on a SC_PERFORMED_USER action when it is the first or only step in an undo transaction. This can be used to integrate the Scintilla undo stack with an undo stack in the container application by adding a Scintilla action to the container's stack for the currently opened container transaction or to open a new container transaction if there is no open container transaction. None
SC_MOD_CONTAINER 0x40000 This is set on for actions that the container stored into the undo stack with SCI_ADDUNDOACTION. token
SC_MODEVENTMASKALL 0x1FFFFF This is a mask for all valid flags. This is the default mask state set by SCI_SETMODEVENTMASK. None

SCEN_CHANGE
SCEN_CHANGE (768) is fired when the text (not the style) of the document changes. This notification is sent using the WM_COMMAND message on Windows and the "command" signal on GTK+ as this is the behaviour of the standard Edit control (SCEN_CHANGE has the same value as the Windows Edit control EN_CHANGE). No other information is sent. If you need more detailed information use SCN_MODIFIED. You can filter the types of changes you are notified about with SCI_SETMODEVENTMASK.

SCI_SETMODEVENTMASK(int eventMask)
SCI_GETMODEVENTMASK → int
These messages set and get an event mask that determines which document change events are notified to the container with SCN_MODIFIED and SCEN_CHANGE. For example, a container may decide to see only notifications about changes to text and not styling changes by calling SCI_SETMODEVENTMASK(SC_MOD_INSERTTEXT|SC_MOD_DELETETEXT).

The possible notification types are the same as the modificationType bit flags used by SCN_MODIFIED: SC_MOD_INSERTTEXT, SC_MOD_DELETETEXT, SC_MOD_CHANGESTYLE, SC_MOD_CHANGEFOLD, SC_PERFORMED_USER, SC_PERFORMED_UNDO, SC_PERFORMED_REDO, SC_MULTISTEPUNDOREDO, SC_LASTSTEPINUNDOREDO, SC_MOD_CHANGEMARKER, SC_MOD_BEFOREINSERT, SC_MOD_BEFOREDELETE, SC_MULTILINEUNDOREDO, and SC_MODEVENTMASKALL.

SCEN_SETFOCUS
SCEN_KILLFOCUS
SCEN_SETFOCUS (512) is fired when Scintilla receives focus and SCEN_KILLFOCUS (256) when it loses focus. These notifications are sent using the WM_COMMAND message on Windows and the "command" signal on GTK+ as this is the behaviour of the standard Edit control. Unfortunately, these codes do not match the Windows Edit notification codes EN_SETFOCUS (256) and EN_KILLFOCUS (512). It is now too late to change the Scintilla codes as clients depend on the current values.

SCN_MACRORECORD
The SCI_STARTRECORD and SCI_STOPRECORD messages enable and disable macro recording. When enabled, each time a recordable change occurs, the SCN_MACRORECORD notification is sent to the container. It is up to the container to record the action. To see the complete list of SCI_* messages that are recordable, search the Scintilla source Editor.cxx for Editor::NotifyMacroRecord. The fields of SCNotification set in this notification are:

Field Usage
message The SCI_* message that caused the notification.
wParam The value of wParam in the SCI_* message.
lParam The value of lParam in the SCI_* message.

SCN_MARGINCLICK
SCN_MARGINRIGHTCLICK
These notifications tell the container that the mouse was clicked or right clicked inside a margin that was marked as sensitive (see SCI_SETMARGINSENSITIVEN). This can be used to perform folding or to place breakpoints. The following SCNotification fields are used:

Field Usage
modifiers The appropriate combination of SCI_SHIFT, SCI_CTRL and SCI_ALT to indicate the keys that were held down at the time of the margin click.
position The position of the start of the line in the document that corresponds to the margin click.
margin The margin number that was clicked.

SCN_NEEDSHOWN
Scintilla has determined that a range of lines that is currently invisible should be made visible. An example of where this may be needed is if the end of line of a contracted fold point is deleted. This message is sent to the container in case it wants to make the line visible in some unusual way such as making the whole document visible. Most containers will just ensure each line in the range is visible by calling SCI_ENSUREVISIBLE. The position and length fields of SCNotification indicate the range of the document that should be made visible. The container code will be similar to the following code skeleton:

firstLine = SCI_LINEFROMPOSITION(scn.position)
lastLine = SCI_LINEFROMPOSITION(scn.position+scn.length-1)
for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next

SCN_PAINTED
Painting has just been done. Useful when you want to update some other widgets based on a change in Scintilla, but want to have the paint occur first to appear more responsive. There is no other information in SCNotification.

SCN_USERLISTSELECTION
The user has selected an item in a user list. The SCNotification fields used are:

Field Usage
listType This is set to the listType parameter from the SCI_USERLISTSHOW message that initiated the list.
text The text of the selection.
position The position the list was displayed at.
ch If a fillup character was the method of selection, the used character, otherwise 0.
listCompletionMethod A value indicating the way in which the completion occurred. See the table below.

See the SCN_AUTOCCOMPLETED notification for the possible values for listCompletionMethod.

SCN_URIDROPPED
Only on the GTK+ version. Indicates that the user has dragged a URI such as a file name or Web address onto Scintilla. The container could interpret this as a request to open the file. The text field of SCNotification points at the URI text.

SCN_DWELLSTART
SCN_DWELLEND
SCN_DWELLSTART is generated when the user keeps the mouse in one position for the dwell period (see SCI_SETMOUSEDWELLTIME). SCN_DWELLEND is generated after a SCN_DWELLSTART and the mouse is moved or other activity such as key press indicates the dwell is over. Both notifications set the same fields in SCNotification:

Field Usage
position This is the nearest position in the document to the position where the mouse pointer was lingering.
x, y Where the pointer lingered. The position field is set to SCI_POSITIONFROMPOINTCLOSE(x, y).

SCI_SETMOUSEDWELLTIME(int periodMilliseconds)
SCI_GETMOUSEDWELLTIME → int
These two messages set and get the time the mouse must sit still, in milliseconds, to generate a SCN_DWELLSTART notification. If set to SC_TIME_FOREVER, the default, no dwell events are generated.

SCN_ZOOM
This notification is generated when the user zooms the display using the keyboard or the SCI_SETZOOM method is called. This notification can be used to recalculate positions, such as the width of the line number margin to maintain sizes in terms of characters rather than pixels. SCNotification has no additional information.

SCN_HOTSPOTCLICK
SCN_HOTSPOTDOUBLECLICK
SCN_HOTSPOTRELEASECLICK
These notifications are generated when the user clicks or double clicks on text that is in a style with the hotspot attribute set. This notification can be used to link to variable definitions or web pages. In the notification handler, you should avoid calling any function that modifies the current selection or caret position. The position field is set the text position of the click or double click and the modifiers field set to the key modifiers held down in a similar manner to SCN_KEY. Only the state of the Ctrl key is reported for SCN_HOTSPOTRELEASECLICK.

SCN_INDICATORCLICK
SCN_INDICATORRELEASE
These notifications are generated when the user clicks or releases the mouse on text that has an indicator. The position field is set the text position of the click or double click and the modifiers field set to the key modifiers held down in a similar manner to SCN_KEY.

SCN_CALLTIPCLICK
This notification is generated when the user clicks on a calltip. This notification can be used to display the next function prototype when a function name is overloaded with different arguments. The position field is set to 1 if the click is in an up arrow, 2 if in a down arrow, and 0 if elsewhere.

SCN_AUTOCSELECTION
The user has selected an item in an autocompletion list. The notification is sent before the selection is inserted. Automatic insertion can be cancelled by sending a SCI_AUTOCCANCEL message before returning from the notification. The SCNotification fields used are:

Field Usage
position The start position of the word being completed.
text The text of the selection.
ch If a fillup character was the method of selection, the used character, otherwise 0.
listCompletionMethod A value indicating the way in which the completion occurred. See the table below.

Symbol Value Meaning
SC_AC_FILLUP 1 A fillup character triggered the completion. The character used is in ch.
SC_AC_DOUBLECLICK 2 A double-click triggered the completion. ch is 0.
SC_AC_TAB 3 The tab key or SCI_TAB triggered the completion. ch is 0.
SC_AC_NEWLINE 4 A new line or SCI_NEWLINE triggered the completion. ch is 0.
SC_AC_COMMAND 5 The SCI_AUTOCSELECT message triggered the completion. ch is 0.

SCN_AUTOCCANCELLED
The user has cancelled an autocompletion list. There is no other information in SCNotification.

SCN_AUTOCCHARDELETED
The user deleted a character while autocompletion list was active. There is no other information in SCNotification.

SCN_FOCUSIN
SCN_FOCUSOUT
SCN_FOCUSIN (2028) is fired when Scintilla receives focus and SCN_FOCUSOUT (2029) when it loses focus.

SCN_AUTOCCOMPLETED
This notification is generated after an autocompletion has inserted its text. The fields are identical to the SCN_AUTOCSELECTION notification.

Images

Two formats are supported for images used in margin markers and autocompletion lists, RGBA and XPM.

RGBA

The RGBA format allows translucency with an alpha value for each pixel. It is simpler than XPM and more capable.

The data is a sequence of 4 byte pixel values starting with the pixels for the top line, with the leftmost pixel first, then continuing with the pixels for subsequent lines. There is no gap between lines for alignment reasons.

Each pixel consists of, in order, a red byte, a green byte, a blue byte and an alpha byte. The colour bytes are not premultiplied by the alpha value. That is, a fully red pixel that is 25% opaque will be [FF, 00, 00, 3F]

Since the RGBA pixel data does not include any size information the width and height must previously been set with the SCI_RGBAIMAGESETWIDTH and SCI_RGBAIMAGESETHEIGHT messages.

GUI platforms often include functions for reading image file formats like PNG into memory in the RGBA form or a similar form. If there is no suitable platform support, the LodePNG and picoPNG libraries are small libraries for loading and decoding PNG files available under a BSD-style license.

RGBA format is supported on Windows, GTK+ and OS X Cocoa.

XPM

The XPM format is described here. Scintilla is only able to handle XPM pixmaps that use one character per pixel with no named colours. There may be a completely transparent colour named "None".

There are two forms of data structure used for XPM images, the first "lines form" format is well suited to embedding an image inside C source code and the "text form" is suited to reading from a file. In the lines form, an array of strings is used with the first string indicating the dimensions and number of colours used. This is followed by a string for each colour and that section is followed by the image with one string per line. The text form contains the same data as one null terminated block formatted as C source code starting with a "/* XPM */" comment to mark the format.

Either format may be used with Scintilla APIs with the bytes at the location pointed to examined to determine which format: if the bytes start with "/* XPM */" then it is treated as text form, otherwise it is treated as lines form.

XPM format is supported on on all platforms.

GTK+

On GTK+, the following functions create a Scintilla widget, communicate with it and allow resources to be released after all Scintilla widgets have been destroyed.

GtkWidget *scintilla_new()
void scintilla_set_id(ScintillaObject *sci, uptr_t id)
sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
void scintilla_release_resources()

GtkWidget *scintilla_new()
Create a new Scintilla widget. The returned pointer can be added to a container and displayed in the same way as other widgets.

void scintilla_set_id(ScintillaObject *sci, uptr_t id)
Set the control ID which will be used in the idFrom field of the Sci_NotifyHeader structure of all notifications for this instance. This is equivalent to SCI_SETIDENTIFIER.

sptr_t scintilla_send_message(ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam)
The main entry point allows sending any of the messages described in this document.

void scintilla_release_resources()
Call this to free any remaining resources after all the Scintilla widgets have been destroyed.

Provisional messages

Complex new features may be added as 'provisional' to allow further changes to the API. Provisional features may even be removed if experience shows they are a mistake.

Provisional features are displayed in this document with a distinctive background colour.

There are currently no provisional messages. The SC_TECHNOLOGY_DIRECTWRITERETAIN and SC_TECHNOLOGY_DIRECTWRITEDC values for SCI_SETTECHNOLOGY are provisional.

Some developers may want to only use features that are stable and have graduated from provisional status. To avoid using provisional messages compile with the symbol SCI_DISABLE_PROVISIONAL defined.

Deprecated messages and notifications

The following messages are currently supported to emulate existing Windows controls, but they will be removed in future versions of Scintilla. If you use these messages you should replace them with the Scintilla equivalent.

WM_GETTEXT(int length, char *text)
WM_SETTEXT(<unused>, const char *text)
EM_GETLINE(int line, char *text)
EM_REPLACESEL(<unused>, const char *text)
EM_SETREADONLY
EM_GETTEXTRANGE(<unused>, TEXTRANGE *tr)
WM_CUT
WM_COPY
WM_PASTE
WM_CLEAR
WM_UNDO
EM_CANUNDO
EM_EMPTYUNDOBUFFER
WM_GETTEXTLENGTH
EM_GETFIRSTVISIBLELINE
EM_GETLINECOUNT
EM_GETMODIFY
EM_SETMODIFY(bool isModified)
EM_GETRECT(RECT *rect)
EM_GETSEL(int *start, int *end)
EM_EXGETSEL(<unused>, CHARRANGE *cr)
EM_SETSEL(int start, int end)
EM_EXSETSEL(<unused>, CHARRANGE *cr)
EM_GETSELTEXT(<unused>, char *text)
EM_LINEFROMCHAR(int position)
EM_EXLINEFROMCHAR(int position)
EM_LINEINDEX(int line)
EM_LINELENGTH(int position)
EM_SCROLL(int line)
EM_LINESCROLL(int column, int line)
EM_SCROLLCARET()
EM_CANPASTE
EM_CHARFROMPOS(<unused>, POINT *location)
EM_POSFROMCHAR(int position, POINT *location)
EM_SELECTIONTYPE
EM_HIDESELECTION(bool hide)
EM_FINDTEXT(int flags, FINDTEXTEX *ft)
EM_FINDTEXTEX(int flags, FINDTEXTEX *ft)
EM_GETMARGINS
EM_SETMARGINS(EC_LEFTMARGIN or EC_RIGHTMARGIN or EC_USEFONTINFO, int val)
EM_FORMATRANGE

The following are features that are only included if you define INCLUDE_DEPRECATED_FEATURES in Scintilla.h. To ensure future compatibility you should change them as indicated.

SCI_SETKEYSUNICODE(bool keysUnicode)
SCI_GETKEYSUNICODE → bool
SCI_SETSTYLEBITS(int bits)
SCI_GETSTYLEBITS → int
SCI_GETSTYLEBITSNEEDED → int

SCI_SETKEYSUNICODE(bool keysUnicode) Deprecated
SCI_GETKEYSUNICODE → bool Deprecated
On Windows, Scintilla no longer supports narrow character windows so input is always treated as Unicode.

The following are features that should be removed from calling code but are still defined to avoid breaking callers.

SCI_SETSTYLEBITS(int bits) Deprecated
SCI_GETSTYLEBITS → int Deprecated
SCI_GETSTYLEBITSNEEDED → int Deprecated
INDIC0_MASK, INDIC1_MASK, INDIC2_MASK, INDICS_MASK Deprecated
Scintilla no longer supports style byte indicators. The last version to support style byte indicators was 3.4.2. Any use of these symbols should be removed and replaced with standard indicators. SCI_GETSTYLEBITS and SCI_GETSTYLEBITSNEEDED always return 8, indicating that 8 bits are used for styling and there are 256 styles.

Edit messages never supported by Scintilla

EM_GETWORDBREAKPROC EM_GETWORDBREAKPROCEX
EM_SETWORDBREAKPROC EM_SETWORDBREAKPROCEX
EM_GETWORDWRAPMODE EM_SETWORDWRAPMODE
EM_LIMITTEXT EM_EXLIMITTEXT
EM_SETRECT EM_SETRECTNP
EM_FMTLINES
EM_GETHANDLE EM_SETHANDLE
EM_GETPASSWORDCHAR EM_SETPASSWORDCHAR
EM_SETTABSTOPS
EM_FINDWORDBREAK
EM_GETCHARFORMAT EM_SETCHARFORMAT
EM_GETOLEINTERFACE EM_SETOLEINTERFACE
EM_SETOLECALLBACK
EM_GETPARAFORMAT EM_SETPARAFORMAT
EM_PASTESPECIAL
EM_REQUESTRESIZE
EM_GETBKGNDCOLOR EM_SETBKGNDCOLOR
EM_STREAMIN EM_STREAMOUT
EM_GETIMECOLOR EM_SETIMECOLOR
EM_GETIMEOPTIONS EM_SETIMEOPTIONS
EM_GETOPTIONS EM_SETOPTIONS
EM_GETPUNCTUATION EM_SETPUNCTUATION
EM_GETTHUMB
EM_GETEVENTMASK
EM_SETEVENTMASK
EM_DISPLAYBAND
EM_SETTARGETDEVICE

Scintilla tries to be a superset of the standard windows Edit and RichEdit controls wherever that makes sense. As it is not intended for use in a word processor, some edit messages can not be sensibly handled. Unsupported messages have no effect.

Removed features

These features have now been removed completely.

SC_CP_DBCS Removed in 2016 with release 3.7.1
This was used to set a DBCS (Double Byte Character Set) mode on GTK+. An explicit DBCS code page should be used when calling SCI_SETCODEPAGE

SCI_SETUSEPALETTE(bool usePalette) Removed in 2016 with release 3.7.1
SCI_GETUSEPALETTE → bool Removed in 2016 with release 3.7.1
Scintilla no longer supports palette mode. The last version to support palettes was 2.29. Any calls to these methods must be removed.

Previous versions of Scintilla allowed indicators to be stored in bits of each style byte. This was deprecated in 2007 and removed in 2014 with release 3.4.3. All uses of style byte indicators should be replaced with standard indicators.

Building Scintilla

To build Scintilla or SciTE, see the README file present in both the Scintilla and SciTE directories. The compiler must support C++11. For Windows, GCC 4.8 or Microsoft Visual C++ 2015 can be used for building. For GTK+, GCC 4.8 or newer should be used. GTK+ 2.18+ and 3.x are supported with glib 2.22+. The version of GTK+ installed should be detected automatically. When both GTK+ 2 and GTK+ 3 are present, building for GTK+ 3.x requires defining GTK3 on the command line.

Static linking

On Windows, Scintilla is normally used as a dynamic library as a .DLL file. If you want to link Scintilla directly into your application .EXE or .DLL file, then the STATIC_BUILD preprocessor symbol should be defined and Scintilla_RegisterClasses called. STATIC_BUILD prevents compiling the DllMain function which will conflict with any DllMain defined in your code. Scintilla_RegisterClasses takes the HINSTANCE of your application and ensures that the "Scintilla" window class is registered.

Ensuring lexers are linked into Scintilla

Depending on the compiler and linker used, the lexers may be stripped out. This is most often caused when building a static library. To ensure the lexers are linked in, the Scintilla_LinkLexers() function may be called.

Changing set of lexers

To change the set of lexers in Scintilla, add and remove lexer source files (Lex*.cxx) from the scintilla/lexers directory and run the scripts/LexGen.py script from the scripts directory to update the make files and Catalogue.cxx. LexGen.py requires Python 2.5 or later. If you do not have access to Python, you can hand edit Catalogue.cxx in a simple-minded way, following the patterns of other lexers. The important thing is to include LINK_LEXER(lmMyLexer); to correspond with the LexerModule lmMyLexer(...); in your lexer source code.

Building with an alternative Regular Expression implementation

A simple interface provides support for switching the Regular Expressions engine at compile time. You must implement RegexSearchBase for your chosen engine, look at the built-in implementation BuiltinRegex to see how this is done. You then need to implement the factory method CreateRegexSearch to create an instance of your class. You must disable the built-in implementation by defining SCI_OWNREGEX.

codequery-0.21.0/scintilla/doc/ScintillaDownload.html000066400000000000000000000050401310136352400226160ustar00rootroot00000000000000 Download Scintilla
Scintilla icon Download Scintilla
Windows   GTK+/Linux  

Download.

The license for using Scintilla or SciTE is similar to that of Python containing very few restrictions.

Release 3.7.4

Source Code

The source code package contains all of the source code for Scintilla but no binary executable code and is available in
  • zip format (1600K) commonly used on Windows
  • tgz format (1400K) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.

Windows Executable Code

There is no download available containing only the Scintilla DLL. However, it is included in the SciTE executable full download as SciLexer.DLL.

SciTE is a good demonstration of Scintilla.

Previous versions can be downloaded from the history page.

codequery-0.21.0/scintilla/doc/ScintillaHistory.html000066400000000000000000014061141310136352400225200ustar00rootroot00000000000000 Scintilla and SciTE
Scintilla icon Scintilla and SciTE

History of Scintilla and SciTE

Contributors

Thanks to all the people that have contributed patches, bug reports and suggestions.

Source code and documentation have been contributed by

Atsuo Ishimoto Mark Hammond Francois Le Coguiec Dale Nagata
Ralf Reinhardt Philippe Lhoste Andrew McKinlay Stephan R. A. Deibel
Hans Eckardt Vassili Bourdo Maksim Lin Robin Dunn
John Ehresman Steffen Goeldner Deepak S. DevelopMentor
Yann Gaillard Aubin Paul Jason Diamond Ahmad Baitalmal
Paul Winwood Maxim Baranov Ragnar Højland Christian Obrecht
Andreas Neukoetter Adam Gates Steve Lhomme Ferdinand Prantl
Jan Dries Markus Gritsch Tahir Karaca Ahmad Zawawi
Laurent le Tynevez Walter Braeu Ashley Cambrell Garrett Serack
Holger Schmidt ActiveState James Larcombe Alexey Yutkin
Jan Hercek Richard Pecl Edward K. Ream Valery Kondakoff
Smári McCarthy Clemens Wyss Simon Steele Serge A. Baranov
Xavier Nodet Willy Devaux David Clain Brendon Yenson
Vamsi Potluru Praveen Ambekar Alan Knowles Kengo Jinno
Valentin Valchev Marcos E. Wurzius Martin Alderson Robert Gustavsson
José Fonseca Holger Kiemes Francis Irving Scott Kirkwood
Brian Quinlan Ubi Michael R. Duerig Deepak T
Don Paul Beletsky Gerhard Kalab Olivier Dagenais Josh Wingstrom
Bruce Dodson Sergey Koshcheyev Chuan-jian Shen Shane Caraveo
Alexander Scripnik Ryan Christianson Martin Steffensen Jakub Vrána
The Black Horus Bernd Kreuss Thomas Lauer Mike Lansdaal
Yukihiro Nakai Jochen Tucht Greg Smith Steve Schoettler
Mauritius Thinnes Darren Schroeder Pedro Guerreiro Steven te Brinke
Dan Petitt Biswapesh Chattopadhyay Kein-Hong Man Patrizio Bekerle
Nigel Hathaway Hrishikesh Desai Sergey Puljajev Mathias Rauen
Angelo Mandato Denis Sureau Kaspar Schiess Christoph Hösler
João Paulo F Farias Ron Schofield Stefan Wosnik Marius Gheorghe
Naba Kumar Sean O'Dell Stefanos Togoulidis Hans Hagen
Jim Cape Roland Walter Brian Mosher Nicholas Nemtsev
Roy Wood Peter-Henry Mander Robert Boucher Christoph Dalitz
April White S. Umar Trent Mick Filip Yaghob
Avi Yegudin Vivi Orunitia Manfred Becker Dimitris Keletsekis
Yuiga Davide Scola Jason Boggs Reinhold Niesner
Jos van der Zande Pescuma Pavol Bosik Johannes Schmid
Blair McGlashan Mikael Hultgren Florian Balmer Hadar Raz
Herr Pfarrer Ben Key Gene Barry Niki Spahiev
Carsten Sperber Phil Reid Iago Rubio Régis Vaquette
Massimo Corà Elias Pschernig Chris Jones Josiah Reynolds
Robert Roessler rftp.com Steve Donovan Jan Martin Pettersen Sergey Philippov
Borujoa Michael Owens Franck Marcia Massimo Maria Ghisalberti
Frank Wunderlich Josepmaria Roca Tobias Engvall Suzumizaki Kimitaka
Michael Cartmell Pascal Hurni Andre Randy Butler
Georg Ritter Michael Goffioul Ben Harper Adam Strzelecki
Kamen Stanev Steve Menard Oliver Yeoh Eric Promislow
Joseph Galbraith Jeffrey Ren Armel Asselin Jim Pattee
Friedrich Vedder Sebastian Pipping Andre Arpin Stanislav Maslovski
Martin Stone Fabien Proriol mimir Nicola Civran
Snow Mitchell Foral Pieter Holtzhausen Waldemar Augustyn
Jason Haslam Sebastian Steinlechner Chris Rickard Rob McMullen
Stefan Schwendeler Cristian Adam Nicolas Chachereau Istvan Szollosi
Xie Renhui Enrico Tröger Todd Whiteman Yuval Papish
instanton Sergio Lucato VladVRO Dmitry Maslov
chupakabra Juan Carlos Arevalo Baeza Nick Treleaven Stephen Stagg
Jean-Paul Iribarren Tim Gerundt Sam Harwell Boris
Jason Oster Gertjan Kloosterman alexbodn Sergiu Dotenco
Anders Karlsson ozlooper Marko Njezic Eugen Bitter
Christoph Baumann Christopher Bean Sergey Kishchenko Kai Liu
Andreas Rumpf James Moffatt Yuzhou Xin Nic Jansma
Evan Jones Mike Lischke Eric Kidd maXmo
David Severwright Jon Strait Oliver Kiddle Etienne Girondel
Haimag Ren Andrey Moskalyov Xavi Toby Inkster
Eric Forgeot Colomban Wendling Neo Jordan Russell
Farshid Lashkari Sam Rawlins Michael Mullin Carlos SS
vim Martial Demolins Tino Weinkauf Jérôme Laforge
Udo Lechner Marco Falda Dariusz Knociński Ben Fisher
Don Gobin John Yeung Adobe Elizabeth A. Irizarry
Mike Schroeder Morten MacFly Jaime Gimeno Thomas Linder Puls
Artyom Zuikov Gerrit Occam's Razor Ben Bluemel
David Wolfendale Chris Angelico Marat Dukhan Stefan Weil
Rex Conn Ross McKay Bruno Barbieri Gordon Smith
dimitar Sébastien Granjoux zeniko James Ribe
Markus Nißl Martin Panter Mark Yen Philippe Elsass
Dimitar Zhekov Fan Yang Denis Shelomovskij darmar
John Vella Chinh Nguyen Sakshi Verma Joel B. Mohler
Isiledhel Vidya Wasi G. Hu Byron Hawkins
Alpha John Donoghue kudah Igor Shaula
Pavel Bulochkin Yosef Or Boczko Brian Griffin Özgür Emir
Neomi OmegaPhil SiegeLord Erik
TJF Mark Robinson Thomas Martitz felix
Christian Walther Ebben Robert Gieseke Mike M
nkmathew Andreas Tscharner Lee Wilmott johnsonj
Vicente Nick Gravgaard Ian Goldby Holger Stenger
danselmi Mat Berchtold Michael Staszewski Baurzhan Muftakhidinov
Erik Angelin Yusuf Ramazan Karagöz Markus Heidelberg Joe Mueller
Mika Attila JoMazM Markus Moser Stefan Küng
Jiří Techet Jonathan Hunt Serg Stetsuk Jordan Jueckstock
Yury Dubinsky Sam Hocevar Luyomi Matt Gilarde
Mark C Johannes Sasongko fstirlitz Robin Haberkorn
Pavel Sountsov Dirk Lorenzen Kasper B. Graversen Chris Mayo
Van de Bugger Tse Kit Yam SmartShare Systems Morten Brørup
Alexey Denisov jedailey oirfeodent A-R-C-A
Roberto Rossi Kenny Liu Iain Clarke desto
John Flatness

Images used in GTK+ version

  • Icons Copyright(C) 1998 by Dean S. Jones

Release 3.7.4

  • Released 21 March 2017.
  • Requires a C++11 compiler. GCC 4.8 and MSVC 2015 are supported.
  • Support dropped for Windows NT 4.
  • Accessibility support may be queried with SCI_GETACCESSIBILITY. On GTK+, accessibility may be disabled by calling SCI_SETACCESSIBILITY.
  • Lexer added for "indent" language which is styled as plain text but folded by indentation level.
  • The Progress ABL lexer handles nested comments where comment starts or ends are adjacent like "/*/*" or "*/*/".
  • In the Python lexer, improve f-string support. Add support for multiline expressions in triple quoted f-strings. Handle nested "()", "[]", and "{}" in f-string expressions and terminate expression coloring at ":" or "!". End f-string if ending quote is seen in a "{}" expression. Fix terminating single quoted f-string at EOL. Bug #1918.
  • The VHDL folder folds an "entity" on the first line of the file.
  • For IMEs, do not clear selected text when there is no composition text to show.
  • Fix to crash with fold tags where line inserted at start.
  • Fix to stream selection mode when moving caret up or down. Bug #1905.
  • Drawing fixes for fold tags include fully drawing lines and not overlapping some drawing and ensuring edges and mark underlines are visible.
  • Fix Cocoa failure to display accented character chooser for European languages by partially reverting a change made to prevent a crash with Chinese input by special-casing the Cangjie input source. Bug #1881.
  • Fix potential problems with IME on Cocoa when document contains invalid UTF-8.
  • Fix crash on Cocoa with OS X 10.9 due to accessibility API not available. Bug #1915.
  • Improved speed of accessibility code on GTK+ by using additional memory as a cache. Bug #1910.
  • Fix crash in accessibility code on GTK+ < 3.3.6 caused by previous bug fix. Bug #1907.
  • Fix to prevent double scrolling on GTK+ with X11. Bug #1901.
  • SciTE on GTK+ adds an "accessibility" property to allow disabling accessibility on GTK+ as an optimization.
  • SciTE on GTK+ has changed file chooser behaviour for some actions: overwriting an existing file shows a warning; the default session file name "SciTE.session" is shown and a "*.session" filter is applied; appropriate filters are applied when exporting; the current file name is displayed in "Save As" even when that file no longer exists.
  • SciTE fixed a bug where, on GTK+, when the output pane had focus, menu commands performed by mouse were sent instead to the edit pane.
  • SciTE on Windows 8+ further restricts the paths searched for DLLs to the application and system directories which may prevent some binary planting attacks.
  • Fix failure to load Direct2D on Windows when used on old versions of Windows. Bug #1653.

Release 3.7.3

  • Released 19 February 2017.
  • Display block caret over the character at the end of a selection to be similar to other editors.
  • In SciTE can choose colours for fold markers. Feature #1172.
  • In SciTE can hide buffer numbers in tabs. Feature #1173.
  • The Diff lexer recognizes deleted lines that start with "--- ".
  • The Lua lexer requires the first line to start with "#!" to be treated as a shebang comment, not just "#". Bug #1900.
  • The Matlab lexer requires block comment start and end to be alone on a line. Bug #1902.
  • The Python lexer supports f-strings with new styles, allows Unicode identifiers, and no longer allows @1 to be a decorator. Bug #1848.
  • Fix folding inconsistency when fold header added above a folded part. Avoid unnecessary unfolding when a deletion does not include a line end. Bug #1896.
  • Fix finalization crash on Cocoa. Bug #1909.
  • SciTE on GTK+ can have a wide divider between the panes with the split.wide property.
  • Fix display of autocompletion lists and calltips on GTK+ 3.22 on Wayland. Newer APIs used on GTK+ 3.22 as older APIs were deprecated.
  • Fix crash in accessibility code on GTK+ due to signal receipt after destruction. Bug #1907.
  • Make trackpad scrolling work on Wayland. Bug #1901.

Release 3.7.2

  • Released 30 December 2016.
  • Minimize redrawing for SCI_SETSELECTIONN* APIs. Bug #1888.
  • Use more precision to allow selecting individual lines in files with more than 16.7 million lines.
  • For Qt 5, define QT_WS_MAC or QT_WS_X11 on those platforms. Bug #1887.
  • For Cocoa, fix crash on view destruction with macOS 10.12.2. Bug #1891.
  • Fix crash on GTK+ <3.8 due to incorrect lifetime of accessibility object. More accurate reporting of attribute ranges and deletion lengths for accessibility.
  • In SciTE, if a Lua script causes a Scintilla failure exception, display error message in output pane instead of exiting. Bug #1773.

Release 3.7.1

  • Released 4 December 2016.
  • The Scintilla namespace is no longer applied to struct definitions in Scintilla.h even when SCI_NAMESPACE defined. Client code should not define SCI_NAMESPACE.
  • Structure names in Scintilla.h without prefixes are deprecated and will now only be usable with INCLUDE_DEPRECATED_FEATURES defined.
    Use the newer names with the "Sci_" prefix:
    CharacterRange → Sci_CharacterRange
    TextRange → Sci_TextRange
    TextToFind → Sci_TextToFind
    RangeToFormat → Sci_RangeToFormat
    NotifyHeader → Sci_NotifyHeader
  • Previously deprecated features SC_CP_DBCS, SCI_SETUSEPALETTE. and SCI_GETUSEPALETTE have been removed and can no longer be used in client code.
  • Accessibility support allowing screen readers to work added on GTK+ and Cocoa.
  • Textual tags may be displayed to the right on folded lines with SCI_TOGGLEFOLDSHOWTEXT. This is commonly something like "{ ... }" or "<tr>...</tr>". It is displayed with the STYLE_FOLDDISPLAYTEXT style and may have a box drawn around it with SCI_FOLDDISPLAYTEXTSETSTYLE.
  • A mouse right-click over the margin may send an SCN_MARGINRIGHTCLICK event. This only occurs when popup menus are turned off. SCI_USEPOPUP now has three states: SC_POPUP_NEVER, SC_POPUP_ALL, or SC_POPUP_TEXT.
  • INDIC_POINT and INDIC_POINTCHARACTER indicators added to display small arrows underneath positions or characters.
  • Added alternate appearance for visible tabs which looks like a horizontal line. Controlled with SCI_SETTABDRAWMODE. Feature #1165.
  • On Cocoa, a modulemap file is included to allow Scintilla to be treated as a module. This makes it easier to use Scintilla from the Swift language.
  • Baan folder accommodates sections and lexer fixes definition of SCE_BAAN_FUNCDEF.
  • EDIFACT lexer and folder added. Feature #1166.
  • JSON folder fixed where it didn't resume folding with the correct fold level.
  • Matlab folder based on syntax instead of indentation so more accurate. Bug #1692.
  • YAML lexer fixed style of references and keywords when followed by a comment. Bug #1872.
  • Margin click to select line now clears rectangular and additional selections.
  • Fixed a NULL access bug on GTK+ where the scrollbars could be used during destruction. Bug #1873.
  • A potential bug on GTK+ fixed where asynchronous clipboard could be delivered after its target Scintilla instance was destroyed.
  • Cocoa IME made more compliant with documented behaviour to avoid bugs that caused huge allocations. Bug #1881.
  • On Win32 fix EM_SETSEL to match Microsoft documentation.. Bug #1886.
  • SciTE on GTK+ allows localising tool bar tool tips. Feature #1167.
  • SciTE on Windows restores focus to edit pane after closing user strip.
  • SciTE measures files larger that 2 GB which allows it to refuse to open huge files more consistently and to show better warning messages.

Release 3.7.0

  • Released 16 October 2016.
  • Word selection, navigation, and manipulation is now performed on characters instead of bytes leading to more natural behaviour for multi-byte encodings like UTF-8. For UTF-8 characters 0x80 and above, classification into word; punctuation; space; or line-end is based on the Unicode general category of the character and is not customizable. Bug #1832.
  • Two enums changed in Scintilla.iface which may lead to changed bindings. There were 2 FontQuality enums and the first is now PhasesDraw. The prefix for FoldAction was SC_FOLDACTION and is now SC_FOLDACTION_ which is similar to other enums. These changes do not affect the standard C/C++ binding.
  • EDGE_MULTILINE and SCI_MULTIEDGEADDLINE added to allow displaying multiple vertical edges simultaneously.
  • The number of margins can be changed with SCI_SETMARGINS.
  • Margin type SC_MARGIN_COLOUR added so that the application may choose any colour for a margin with SCI_SETMARGINBACKN.
  • On Win32, mouse wheel scrolling can be restricted to only occur when the mouse is within the window.
  • The WordList class in lexlib used by lexers adds an InListAbridged method for matching keywords that have particular prefixes and/or suffixes.
  • The Baan lexer was changed significantly with more lexical states, keyword sets, and support for abridged keywords.
  • The CoffeeScript lexer styles interpolated code in strings. Bug #1865.
  • The Progress lexer "progress" has been replaced with a new lexer "abl" (Advanced Business Language) with a different set of lexical states and more functionality. The lexical state prefix has changed from SCE_4GL_ to SCE_ABL_. Feature #1143.
  • The PowerShell lexer understands the grave accent escape character. Bug #1868.
  • The YAML lexer recognizes inline comments. Bug #1660.
  • SciTE on Windows can retain coloured selection when inactive with selection.always.visible property.
  • SciTE on Windows adds a state to close.on.find to close the find strip when a match is found.
  • Fix caret position after left or right movement with rectangular selection. Bug #1861.
  • In SciTE, optional prefix argument added to scite.ConstantName method. Bug #1860.
  • On Cocoa, include ILexer.h in the public headers of the framework. Bug #1855.
  • On Cocoa, allow subclass of SCIContentView to set cursor. Bug #1863.
  • On Cocoa, recognize the numeric keypad '+', '-', and '/' keys as SCK_ADD, SCK_SUBTRACT, and SCK_DIVIDE. Bug #1867.
  • On GTK+ 3.21+ fix incorrect font size in auto-completion list. Bug #1859.
  • Fix SciTE crash when command.mode ends with comma. Bug #1857.
  • SciTE on Windows has a full size toolbar icon for "Close".

Release 3.6.7

  • Released 4 September 2016.
  • C++11 range-based for loops used in SciTE so GCC 4.6 is now the minimum supported version.
  • SC_CHARSET_DEFAULT now means code page 1252 on Windows unless a code page is set. This prevents unexpected behaviour and crashes on East Asian systems where default locales are commonly DBCS. Projects which want to default to DBCS code pages in East Asian locales should set the code page and character set explicitly.
  • SCVS_NOWRAPLINESTART option stops left arrow from wrapping to the previous line. Most commonly wanted when virtual space is used. Bug #1648.
  • The C++ lexer can fold on #else and #elif with the fold.cpp.preprocessor.at.else property. Bug #210.
  • The errorlist lexer detects warnings from Visual C++ which do not contain line numbers.
  • The HTML lexer no longer treats "<?" inside a string in a script as potentially starting an XML document. Bug #767.
  • The HTML lexer fixes a problem resuming at a script start where the starting state continued past where it should. Bug #1849.
  • When inserting spaces for virtual space and the position is in indentation and tabs are enabled for indentation then use tabs. Bug #1850.
  • Fix fold expand when some child text not styled. Caused by fixes for Bug #1799. Bug #1842.
  • Fix key binding bug on Cocoa for control+. Bug #1854.
  • Fix scroll bar size warnings on GTK+ caused by #1831. Bug #1851.
  • Small fixes for GTK+ makefile. Bug #1844. Bug #1845. Bug #1846.
  • Fix SciTE indentation after code like "void function () {}".
  • Fix SciTE global regex replace of "^" with something which missed the line after empty lines with LF line ends. Bug #1839.
  • Fix SciTE on GTK+ 3.20 bug where toggle buttons on find and replace strips did not show active state. Bug #1853.

Release 3.6.6

  • Released 24 May 2016.
  • C++ 11 <regex> support built by default. Can be disabled by defining NO_CXX11_REGEX.
  • SciTE_USERHOME environment variable allows separate location for writeable properties files. Feature #965.
  • GObject introspection supports notify and command events.
  • The Progress lexer now allows comments preceded by a tab.
  • Scripts reading Scintilla.iface file include comments for enu and lex definitions. Bug #1829.
  • Fix crashes on GTK+ if idle work active when destroyed. Bug #1827.
  • Fixed bugs when used on GTK+ 3.20. Bug #1825. Bug #1831.
  • Fix SciTE search field background with dark theme on GTK+ 2.x. Bug #1826.
  • Fixed bug on Win32 that allowed resizing autocompletion from bottom when it was located above the caret.
  • On Win32, when using a screen reader and selecting text using Shift+Arrow, fix bug when scrolling made the caret stay at the same screen location so the screen reader did not speak the added or removed selection.

Release 3.6.5

  • Released 26 April 2016.
  • JSON lexer added. Feature #1140.
  • The C++ lexer fixes a bug with multi-line strings with line continuation where the string style overflowed after an edit. Bug #1824.
  • The Python lexer treats '@' as an operator except when it is the first visible character on a line. This is for Python 3.5.
  • The Rust lexer allows '?' as an operator. Feature #1146.
  • Doubled size of compiled regex buffer. Bug #1822.
  • For GTK+, the Super modifier key can be used in key bindings. Feature #1142.
  • For GTK+, fix some crashes when using multiple threads.
  • Platform layer font cache removed on GTK+ as platform-independent caches are used. This avoids the use of thread locking and initialisation of threads so any GTK+ applications that rely on Scintilla initialising threads will have to do that themselves.
  • SciTE bug fixed with exported HTML where extra line shown. Bug #1816.
  • SciTE on Windows fixes bugs with pop-up menus in the find and replace strips. For the replace strip, menu choices change the state. For the find strip, menu choices are reflected in the appearance of their corresponding buttons.
  • SciTE on Windows on high DPI displays fixes the height of edit boxes in user strips.

Release 3.6.4

  • Released 13 March 2016.
  • SciTE allows setting the autocompletion type separator character.
  • The C++ folder folds code on '(' and ')' to allow multi-line calls to be folded. Feature #1138.
  • For the HTML lexer, limit the extent of Mako line comments to finish before the line end characters.
  • Folds unfolded when two fold regions are merged by either deleting an intervening line or changing its fold level by adding characters. This was fixed both in Scintilla and in SciTE's equivalent code. Bug #1799.
  • The Progress lexer supports hexadecimal numeric literals, single-line comments, abbreviated keywords and extends nested comments to unlimited levels.
  • Ruby lexer treats alternate hash key syntax "key:" as a symbol. Bug #1810.
  • Rust lexer handles bracketed Unicode string escapes like "\u{123abc}". Bug #1809.
  • For GTK+ on Windows fix 64-bit build which was broken in 3.6.3.
  • For Qt, release builds have assertions turned off.
  • For Qt on Windows, fix compilation failure for Qt 4.x.
  • IME target range displayed on Qt for OS X.
  • On Windows, make clipboard operations more robust by retrying OpenClipboard if it fails as this may occur when another application has opened the clipboard.
  • On Windows back out change that removed use of def file to ensure Scintilla_DirectFunction exported without name mangling. Bug #1813.
  • On GTK+ and Qt over Win32 in Korean fix bug caused by last release's word input change.
  • For SciTE, more descriptive error messages are displayed when there are problems loading the Lua startup script. Feature #1139.

Release 3.6.3

  • Released 18 January 2016.
  • Allow painting without first styling all visible text then styling in the background using idle-time. This helps performance when scrolling down in very large documents. Can also incrementally style after the visible area to the end of the document so that the document is already styled when the user scrolls to it.
  • Support GObject introspection on GTK+.
  • SciTE supports pasting to each selection with the selection.multipaste setting. Feature #1123.
  • SciTE can optionally display a read-only indicator on tabs and in the Buffers menu.
  • Bash lexer flags incomplete here doc delimiters as syntax errors. Bug #1789.
    Support added for using '#' in non-comment ways as is possible with zsh. Bug #1794.
    Recognize more characters as here-doc delimiters. Bug #1778.
  • Errorlist lexer highlights warning messages from the Microsoft linker.
  • Errorlist lexer fixes bug with final line in escape sequence recognition mode.
  • Lua lexer includes '&' and '|' bitwise operators for Lua 5.3. Bug #1790.
  • Perl lexer updated for Perl 5.20 and 5.22.
    Allow '_' for subroutine prototypes. Bug #1791.
    Double-diamond operator <<>>.
    Hexadecimal floating point literals.
    Repetition in list assignment. Bug #1793.
    Highlight changed subroutine prototype syntax for Perl 5.20. Bug #1797.
    Fix module ::-syntax when special characters such as 'x' are used.
    Added ' and " detection as prefix chars for x repetition operator. Bug #1800.
  • Visual Prolog lexer recognizes numbers more accurately and allows non-ASCII verbatim quoting characters. Feature #1130.
  • Send SCN_UPDATEUI with SC_UPDATE_SELECTION when the application changes multiple selection.
  • Expand folded areas before deleting fold header line. Bug #1796.
  • Treat Unicode line ends like common line ends when maintaining fold state.
  • Highlight whole run for hover indicator when wrapped. Bug #1784.
  • On Cocoa, fix crash when autocompletion list closed during scroll bounce-back. Bug #1788.
  • On Windows, fix non-BMP input through WM_CHAR and allow WM_UNICHAR to work with non-BMP characters and on non-Unicode documents. Bug #1779.
  • On Windows using DirectWrite, for ligatures and other character clusters, display caret and selections part-way through clusters so that the caret doesn't stick to the end of the cluster making it easier to understand editing actions.
  • On Windows, Scintilla no longer uses a .DEF file during linking as it duplicates source code directives.
  • On GTK+ and Qt, Korean input by word fixed.
  • On GTK+, Qt, and Win32 block IME input when document is read-only or any selected text is protected.
  • On GTK+ on OS X, fix warning during destruction. Bug #1777.
  • Fix SciTE crashes when using LPEG lexers.

Release 3.6.2

  • Released 6 November 2015.
  • Whitespace may be made visible just in indentation.
  • Whitespace dots are centred when larger than 1 pixel.
  • The Scintilla framework on Cocoa now contains version numbers.
  • SciTE's standard properties collect values from all active .properties file to produce the Language menu and the file types pull-down in the File open dialog.
  • The single executable version of SciTE, Sc1, uses 'module' statements within its embedded properties. This makes it act more like the full distribution allowing languages to be turned on and off by setting imports.include and imports.exclude. The default imports.exclude property adds eiffel, erlang, ps, and pov so these languages are turned off by default.
  • SciTE adds an output.blank.margin.left property to allow setting the output pane margin to a different width than the edit pane.
  • CoffeeScript lexer highlights ranges correctly. Bug #1765.
  • Markdown lexer treats line starts consistently to always highlight *foo* or similar at line start. Bug #1766.
  • Optimise marker redrawing by only drawing affected lines when markers shown in the text.
  • On Cocoa, timers and idling now work in modal dialogs. This also stops some crashes.
  • On Cocoa, fix crashes when deleting a ScintillaView. These crashes could occur when scrolling at the time the ScintillaView was deleted although there may have been other cases.
  • On GTK+ 2.x, fix height of lines in autocompletion lists. Bug #1774.
  • Fix bug with SCI_LINEENDDISPLAY where the caret moved to the next document line instead of the end of the display line. Bug #1772.
  • Report error (SC_STATUS_FAILURE) when negative length passed to SCI_SETSTYLING. Bug #1768.
  • When SC_MARK_UNDERLINE is not assigned to a margin, stop drawing the whole line.
  • When reverting an untitled document in SciTE, just clear it with no message about a file. Bug #1764.
  • SciTE on GTK+ allows use of Ctrl+A (Select All) inside find and replace strips. Bug #1769.

Release 3.6.1

  • Released 15 September 2015.
  • The oldest version of GTK+ supported now is 2.18 and for glib it is 2.22.
  • On GTK+, SC_CHARSET_OEM866 added to allow editing Russian files encoded in code page 866. Feature #1019.
  • On Windows, reconversion is performed when requested by the IME.
  • CoffeeScript lexer adds lexical class for instance properties and fixes some cases of regex highlighting. Bug #1749.
  • The errorlist lexer understands some ANSI escape sequences to change foreground colour and intensity. This is sufficient to colour diagnostic output from gcc and clang when -fdiagnostics-color set.
  • The errorlist lexer allows the line number to be 0 in GCC errors as some tools report whole file errors as line 0.
  • MySql lexer fixes empty comments /**/ so the comment state does not continue.
  • VHDL folder supports "protected" keyword.
  • Treat CRLF line end as two characters in SCI_COUNTCHARACTERS. Bug #1757.
  • On GTK+ 3.x, fix height of lines in autocompletion lists to match the font. Switch from deprecated style calls to CSS styling. Removed setting list colours on GTK+ 3.16+ as no longer appears needed.
  • On GTK+, avoid "Invalid rectangle passed" warning messages by never reporting the client rectangle with a negative width or height. Bug #1743.
  • On Cocoa, copy Sci_Position.h into the framework so clients can build.
  • On Cocoa fix bug with drag and drop that could lead to crashes. Bug #1751.
  • Fix SciTE disk exhaustion bug by reporting failures when writing files. Bug #1760.
  • Fix find strip in SciTE on Windows XP to be visible.
  • SciTE on Windows changes the way it detects that a tool has finished executing to ensure all output data from the process is read.
  • SciTE on Windows improves the time taken to read output from tools that produce a large amount of output by a factor of around 10.
  • On GTK+ the keyboard command for View | End of Line was changed to Ctrl+Shift+N to avoid clash with Search | Selection Add Next. Bug #1750.

Release 3.6.0

  • Released 3 August 2015.
  • External interfaces use the Sci_Position and Sci_PositionU typedefs instead of int and unsigned int to allow for changes to a 64-bit interface on 64-bit platforms in the future. Applications and external lexers should start using the new type names so that they will be compatible when the 64-bit change occurs. There is also Sci_PositionCR (long) for use in the Sci_CharacterRange struct which will also eventually become 64-bit.
  • Multiple selection now works over more key commands. The new multiple-selection handling commands include horizontal movement and selection commands, line up and down movement and selection commands, word and line deletion commands, and line end insertion. This change in behaviours is conditional on setting the SCI_SETADDITIONALSELECTIONTYPING property.
  • Autocompletion lists send an SCN_AUTOCCOMPLETED notification after the text has been inserted. Feature #1109.
  • The case mode style attribute can now be SC_CASE_CAMEL.
  • The Python lexer supports substyles for identifiers.
  • SciTE adds support for substyles.
  • SciTE's Export as RTF and Copy as RTF commands support UTF-8.
  • SciTE can display autocompletion on all IME input with ime.autocomplete property.
  • SciTE properties files now discard trailing white space on variable names.
  • Calling SCI_SETIDENTIFIERS resets styling to ensure any added identifier are highlighted.
  • Avoid candidate box randomly popping up away from edit pane with (especially Japanese) IME input.
  • On Cocoa fix problems with positioning of autocompletion lists near screen edge or under dock. Cancel autocompletion when window moved. Bug #1740.
  • Fix drawing problem when control characters are in a hidden style as they then have a zero width rectangle to draw but modify that rectangle in a way that clears some pixels.
  • Report error when attempt to resize buffer to more than 2GB with SC_STATUS_FAILURE.
  • Fix bug on GTK+ with scroll bars leaking. Bug #1742.
  • LexOthers.cxx file split into one file per lexer: LexBatch, LexDiff, LexErrorList, LexMake, LexNull, and LexProps.
  • SciTE exporters handle styles > 127 correctly now.
  • SciTE on Windows can scale window element sizes based on the system DPI setting.
  • SciTE implements find.in.files.close.on.find on all platforms, not just Windows.

Release 3.5.7

  • Released 20 June 2015.
  • Added SCI_MULTIPLESELECTADDNEXT to add the next occurrence of the main selection within the target to the set of selections as main. If the current selection is empty then select word around caret. SCI_MULTIPLESELECTADDEACH adds each occurrence of the main selection within the target to the set of selections.
  • SciTE adds "Selection Add Next" and "Selection Add Each" commands to the Search menu.
  • Added SCI_ISRANGEWORD to determine if the parameters are at the start and end of a word.
  • Added SCI_TARGETWHOLEDOCUMENT to set the target to the whole document.
  • Verilog lexer recognises protected regions and the folder folds protected regions.
  • A performance problem with markers when deleting many lines was fixed. Bug #1733.
  • On Cocoa fix crash when ScintillaView destroyed if no autocompletion ever displayed. Bug #1728.
  • On Cocoa fix crash in drag and drop.
  • On GTK+ 3.4+, when there are both horizontal and vertical scrollbars, draw the lower-right corner so that it does not appear black when text selected. Bug #1611.
  • Fixed most calls deprecated in GTK+ 3.16. Does not fix style override calls as they are more complex.
  • SciTE on GTK+ 3.x uses a different technique for highlighting the search strip when there is no match which is more compatible with future and past versions and different themes.

Release 3.5.6

  • Released 26 May 2015.
  • On Qt, use fractional positioning calls and avoid rounding to ensure consistency.
  • SCI_TARGETASUTF8 and SCI_ENCODEDFROMUTF8 implemented on Win32 as well as GTK+ and Cocoa.
  • C++ lexer fixes empty backquoted string. Bug #1711.
  • C++ lexer fixes #undef directive. Bug #1719.
  • Fortran folder fixes handling of "selecttype" and "selectcase". Bug #1724.
  • Verilog folder folds interface definitions.
  • VHDL folder folds units declarations and fixes a case insensitivity bug with not treating "IS" the same as "is".
  • Fix bug when drawing text margins in buffered mode which would use default encoding instead of chosen encoding. Bug #1703.
  • Fix bug with Korean Hanja conversions in DBCS encoding on Windows.
  • Fix for reading a UTF-16 file in SciTE where a non-BMP character is split over a read buffer boundary. Bug #1710.
  • Fix bug on GTK+ 2.x for Windows where there was an ABI difference between compiler version. Bug #1726.
  • Fix undo bug on Cocoa that could lose data..
  • Fix link error on Windows when SCI_NAMESPACE used.
  • Fix exporting from SciTE when using Scintillua for lexing.
  • SciTE does not report twice that a search string can not be found when "Replace" pressed. Bug #1716.
  • SciTE on GTK+ 3.x disables arrow in search combo when no entries. Bug #1717.

Release 3.5.5

  • Released 17 April 2015.
  • Scintilla on Windows is now always a wide character window so SCI_SETKEYSUNICODE has no effect and SCI_GETKEYSUNICODE always returns true. These APIs are deprecated and should not be called.
  • The wxWidgets-specific ascent member of Font has been removed which breaks compatibility with current wxStyledTextCtrl. Bug #1682.
  • IME on Qt supports multiple carets and behaves more like other platforms.
  • Always use inline IME on GTK+ for Korean.
  • SQL lexer fixes handling of '+' and '-' in numbers so the '-' in '1-1' is seen as an operator and for '1--comment' the comment is recognized.
  • TCL lexer reverts change to string handling. Bug #1642.
  • Verilog lexer fixes bugs with macro styling. Verilog folder fixes bugs with `end completing an `if* instead of `endif and fold.at.else, and implements folding at preprocessor `else.
  • VHDL lexer supports extended identifiers.
  • Fix bug on Cocoa where the calltip would display incorrectly when switching calltips and the new calltip required a taller window.
  • Fix leak on Cocoa with autocompletion lists. Bug #1706.
  • Fix potential crash on Cocoa with drag and drop. Bug #1709.
  • Fix bug on Windows when compiling with MinGW-w64 which caused text to not be drawn when in wrap mode. Bug #1705.
  • Fix SciTE bug with missing file open filters and add hex to excluded set of properties files so that its settings don't appear. Bug #1707.
  • Fix SciTE bug where files without extensions like "makefile" were not highlighted correctly.

Release 3.5.4

  • Released 8 March 2015.
  • Indicators may have a different colour and style when the mouse is over them or the caret is moved into them.
  • An indicator may display in a large variety of colours with the SC_INDICFLAG_VALUEFORE flag taking the colour from the indicator's value, which may differ for every character, instead of its foreground colour attribute.
  • On Cocoa, additional IME methods implemented so that more commands are enabled. For Japanese: Reverse Conversion, Convert to Related Character, and Search Similar Kanji can now be performed. The global definition hotkey Command+Control+D and the equivalent three finger tap gesture can be used.
  • Minimum version of Qt supported is now 4.8 due to the use of QElapsedTimer::nsecsElapsed.
  • On Windows, for Korean, the VK_HANJA key is implemented to choose Hanja for Hangul and to convert from Hanja to Hangul.
  • C++ lexer adds lexer.cpp.verbatim.strings.allow.escapes option that allows verbatim (@") strings to contain escape sequences. This should remain off (0) for C# and be turned on (1) for Objective C.
  • Rust lexer accepts new 'is'/'us' integer suffixes instead of 'i'/'u'. Bug #1098.
  • Ruby folder can fold multiline comments. Bug #1697.
  • SQL lexer fixes a bug with the q-quote operator.
  • TCL lexer fixes a bug with some strings. Bug #1642.
  • Verilog lexer handles escaped identifiers that begin with \ and end with space like \reset* . Verilog folder fixes one bug with inconsistent folding when fold.comment is on and another with typedef class statements creating a fold point, expecting an endclass statement.
  • VHDL folder fixes hang in folding when document starts with "entity".
  • Add new indicators INDIC_COMPOSITIONTHIN, INDIC_FULLBOX, and INDIC_TEXTFORE. INDIC_COMPOSITIONTHIN is a thin underline that mimics the appearance of non-target segments in OS X IME. INDIC_FULLBOX is similar to INDIC_STRAIGHTBOX but covers the entire character area which means that indicators with this style on contiguous lines may touch. INDIC_TEXTFORE changes the text foreground colour.
  • Fix adaptive scrolling speed for GTK+ on OS X with GTK Quartz backend (as opposed to X11 backend). Bug #1696.
  • Fix position of autocompletion and calltips on Cocoa when there were two screens stacked vertically.
  • Fix crash in SciTE when saving large files in background when closing application. Bug #1691.
  • Fix decoding of MSVC warnings in SciTE so that files in the C:\Program Files (x86)\ directory can be opened. This is a common location of system include files.
  • Fix compilation failure of C++11 <regex> on Windows using gcc.

Release 3.5.3

  • Released 20 January 2015.
  • Support removed for Windows 95, 98, and ME.
  • Lexers added for Motorola S-Record files, Intel hex files, and Tektronix extended hex files with folding for Intel hex files. Feature #1091. Feature #1093. Feature #1095. Feature #1096.
  • C++ folder allows folding on square brackets '['. Feature #1087.
  • Shell lexer fixes three issues with here-documents. Bug #1672.
  • Verilog lexer highlights doc comment keywords; has separate styles for input, output, and inout ports (lexer.verilog.portstyling); fixes a bug in highlighting numbers; can treat upper-case identifiers as keywords (lexer.verilog.allupperkeywords); and can use different styles for code that is inactive due to preprocessor commands (lexer.verilog.track.preprocessor, lexer.verilog.update.preprocessor).
  • When the calltip window is taller than the Scintilla window, leave it in a position that avoids overlapping the Scintilla text.
  • When a text margin is displayed, for annotation lines, use the background colour of the base line.
  • On Windows GDI, assume font names are encoded in UTF-8. This matches the Direct2D code path.
  • Fix paste for GTK+ on OS X. Bug #1677.
  • Reverted a fix on Qt where Qt 5.3 has returned to the behaviour of 4.x. Bug #1575.
  • When the mouse is on the line between margin and text changed to treat as within text. This makes the PLAT_CURSES character cell platform work better.
  • Fix a crash in SciTE when the command line is just "-close:". Bug #1675.
  • Fix unexpected dialog in SciTE on Windows when the command line has a quoted filename then ends with a space. Bug #1673.
  • On Windows and GTK+, use indicators for inline IME.
  • SciTE shuts down quicker when there is no user-written OnClose function and no directors are attached.

Release 3.5.2

  • Released 2 December 2014.
  • For OS X Cocoa switch C++ runtime to libc++ to enable use of features that will never be added to libstdc++ including those part of C++11. Scintilla will now run only on OS X 10.7 or later and only in 64-bit mode.
  • Include support for using C++11 <regex> for regular expression searches. Enabling this requires rebuilding Scintilla with a non-default option. This is a provisional feature and may change API before being made permanent.
  • Allocate indicators used for Input Method Editors after 31 which was the previous limit of indicators to ensure no clash between the use of indicators for IME and for the application.
  • ANNOTATION_INDENTED added which is similar to ANNOTATION_BOXED in terms of positioning but does not show a border. Feature #1086.
  • Allow platform overrides for drawing tab arrows, wrap markers, and line markers. Size of double click detection area is a variable. These enable better visuals and behaviour for PLAT_CURSES as it is character cell based.
  • CoffeeScript lexer fixes "/*" to not be a comment. Bug #1420.
  • VHDL folder fixes "block" keyword. Bug #1664.
  • Prevent caret blinking when holding down Delete key. Bug #1657.
  • On Windows, allow right click selection in popup menu. Feature #1080.
  • On Windows, only call ShowCaret in GDI mode as it interferes with caret drawing when using Direct2D. Bug #1643.
  • On Windows, another DirectWrite mode SC_TECHNOLOGY_DIRECTWRITEDC added which may avoid drawing failures in some circumstances by drawing into a GDI DC. This feature is provisional and may be changed or removed if a better solution is found.
  • On Windows, avoid processing mouse move events where the mouse has not moved as these can cause unexpected dwell start notifications. Bug #1670.
  • For GTK+ on Windows, avoid extra space when pasting from external application.
  • On GTK+ 2.x allow Scintilla to be used inside tool tips by changing when preedit window created. Bug #1662.
  • Support MinGW compilation under Linux. Feature #1077.

Release 3.5.1

  • Released 30 September 2014.
  • BibTeX lexer added. Feature #1071.
  • SQL lexer supports the q-quote operator as SCE_SQL_QOPERATOR(24).
  • VHDL lexer supports block comments. Bug #1527.
  • VHDL folder fixes case where "component" used before name. Bug #613.
  • Restore fractional pixel tab positioning which was truncated to whole pixels in 3.5.0. Bug #1652.
  • Allow choice between windowed and inline IME on some platforms.
  • On GTK+ cache autocomplete window to avoid platform bug where windows were sometimes lost. Bug #1649.
  • On GTK+ size autocomplete window more accurately.
  • On Windows only unregister windows classes registered. Bug #1639.
  • On Windows another DirectWrite mode SC_TECHNOLOGY_DIRECTWRITERETAIN added which may avoid drawing failures on some cards and drivers. This feature is provisional and may be changed or removed if a better solution is found.
  • On Windows support the Visual Studio 2010+ clipboard format that indicates a line copy. Bug #1636.
  • SciTE session files remember the scroll position.

Release 3.5.0

  • Released 13 August 2014.
  • Text may share space vertically so that extreme ascenders and descenders are not cut off by calling SCI_SETPHASESDRAW(SC_PHASES_MULTIPLE).
  • Separate timers are used for each type of periodic activity and they are turned on and off as required. This saves power as there are fewer wake ups. On recent releases of OS X Cocoa and Windows, coalescing timers are used to further save power. Bug #1086. Bug #1532.
  • Explicit tab stops may be set for each line.
  • On Windows and GTK+, when using Korean input methods, IME composition is moved from a separate window into the Scintilla window.
  • SciTE adds a "Clean" command to the "Tools" menu which is meant to be bound to a command like "make clean".
  • Lexer added for Windows registry files.
  • HTML lexer fixes a crash with SGML after a Mako comment. Bug #1622.
  • KiXtart lexer adds a block comment state. Feature #1053.
  • Matlab lexer fixes transpose operations like "X{1}'". Bug #1629.
  • Ruby lexer fixes bugs with the syntax of symbols including allowing a symbol to end with '?'. Bug #1627.
  • Rust lexer supports byte string literals, naked CR can be escaped in strings, and files starting with "#![" are not treated as starting with a hashbang comment. Feature #1063.
  • Bug fixed where style data was stale when deleting a rectangular selection.
  • Bug fixed where annotations disappeared when SCI_CLEARDOCUMENTSTYLE called.
  • Bug fixed where selection not redrawn after SCI_DELWORDRIGHT. Bug #1633.
  • Change the function prototypes to be complete for functions exported as "C". Bug #1618.
  • Fix a memory leak on GTK+ with autocompletion lists. Bug #1638.
  • On GTK+, use the full character width for the overstrike caret for multibyte characters.
  • On Qt, set list icon size to largest icon. Add padding on OS X. Bug #1634.
  • On Qt, fix building on FreeBSD 9.2. Bug #1635.
  • On Qt, add a get_character method on the document. Feature #1064.
  • On Qt, add SCI_* for methods to ScintillaConstants.py. Feature #1065.
  • SciTE on GTK+ crash fixed with Insert Abbreviation command.
  • For SciTE with read-only files and are.you.sure=0 reenable choice to save to another location when using Save or Close commands.
  • Fix SciTE bug where toggle bookmark did not work after multiple lines with bookmarks merged. Bug #1617.

Release 3.4.4

  • Released 3 July 2014.
  • Style byte indicators removed. They were deprecated in 2007. Standard indicators should be used instead. Some elements used by lexers no longer take number of bits or mask arguments so lexers may need to be updated for LexAccessor::StartAt, LexAccessor::SetFlags (removed), LexerModule::LexerModule.
  • When multiple selections are active, autocompletion text may be inserted at each selection with new SCI_AUTOCSETMULTI method.
  • C++ lexer fixes crash for "#define x(". Bug #1614.
  • C++ lexer fixes raw string recognition so that R"xxx(blah)xxx" is styled as SCE_C_STRINGRAW.
  • The Postscript lexer no longer marks token edges with indicators as this used style byte indicators.
  • The Scriptol lexer no longer displays indicators for poor indentation as this used style byte indicators.
  • TCL lexer fixes names of keyword sets. Bug #1615.
  • Shell lexer fixes fold matching problem caused by "<<<". Bug #1605.
  • Fix bug where indicators were not removed when fold highlighting on. Bug #1604.
  • Fix bug on Cocoa where emoji were treated as being zero width.
  • Fix crash on GTK+ with Ubuntu 12.04 and overlay scroll bars.
  • Avoid creating a Cairo context when measuring text on GTK+ as future versions of GTK+ may prohibit calling gdk_cairo_create except inside drawing handlers. This prohibition may be required on Wayland.
  • On Cocoa, the registerNotifyCallback method is now marked as deprecated so client code that uses it will display an error message. Client code should use the delegate mechanism or subclassing instead. The method will be removed in the next version.
  • On Cocoa, package Scintilla more in compliance with platform conventions. Only publish public headers in the framework headers directory. Only define the Scintilla namespace in Scintilla.h when compiling as C++. Use the Cocoa NS_ENUM and NS_OPTIONS macros for exposed enumerations. Hide internal methods from public headers. These changes are aimed towards publishing Scintilla as a module which will allow it to be used from the Swift programming language, although more changes will be needed here.
  • Fix crash in SciTE when stream comment performed at line end. Bug #1610.
  • For SciTE on Windows, display error message when common dialogs fail. Bug #156.
  • For SciTE on GTK+ fix bug with initialisation of toggle buttons in find and replace strips. Bug #1612.

Release 3.4.3

  • Released 27 May 2014.
  • Fix hangs and crashes in DLL at shutdown on Windows when using Direct2D.

Release 3.4.2

  • Released 22 May 2014.
  • Insertions can be filtered or modified by calling SCI_CHANGEINSERTION inside a handler for SC_MOD_INSERTCHECK.
  • DMIS lexer added. DMIS is a language for coordinate measuring machines. Feature #1049.
  • Line state may be displayed in the line number margin to aid in debugging lexing and folding with SC_FOLDFLAG_LINESTATE (128).
  • C++ lexer understands more preprocessor statements. #if defined SYMBOL is understood. Some macros with arguments can be understood and these may be predefined in keyword set 4 (keywords5 for SciTE) with syntax similar to CHECKVERSION(x)=(x<3). Feature #1051.
  • C++ lexer can highlight task marker keywords in comments as SCE_C_TASKMARKER.
  • C++ lexer can optionally highlight escape sequences in strings as SCE_C_ESCAPESEQUENCE.
  • C++ lexer supports Go back quoted raw string literals with lexer.cpp.backquoted.strings option. Feature #1047.
  • SciTE performs word and search match highlighting as an idle task to improve interactivity and allow use of these features on large files.
  • Bug fixed on Cocoa where previous caret lines were visible. Bug #1593.
  • Bug fixed where caret remained invisible when period set to 0. Bug #1592.
  • Fixed display flashing when scrolling with GTK+ 3.10. Bug #1567.
  • Fixed calls and constants deprecated in GTK+ 3.10.
  • Fixed bug on Windows where WM_GETTEXT did not provide data in UTF-16 for Unicode window. Bug #685.
  • For SciTE, protect access to variables used by threads with a mutex to prevent data races.
  • For SciTE on GTK+ fix thread object leaks. Display the version of GTK+ compiled against in the about box.
  • For SciTE on GTK+ 3.10, fix the size of the tab bar's content and use freedesktop.org standard icon names where possible.
  • For SciTE on Windows, fix bug where invoking help resubmitted the running program. Bug #272.
  • SciTE's highlight current word feature no longer matches the selection when it contains space.
  • For building SciTE in Visual C++, the win\SciTE.vcxproj project file should be used. The boundscheck directory and its project and solution files have been removed.

Release 3.4.1

  • Released 1 April 2014.
  • Display Unicode line ends as [LS], [PS], and [NEL] blobs.
  • Bug fixed where cursor down failed on wrapped lines. Bug #1585.
  • Caret positioning changed a little to appear inside characters less often by rounding the caret position to the pixel grid instead of truncating. Bug #1588.
  • Bug fixed where automatic indentation wrong when caret in virtual space. Bug #1586.
  • Bug fixed on Windows where WM_LBUTTONDBLCLK was no longer sent to window. Bug #1587.
  • Bug fixed with SciTE on Windows XP where black stripes appeared inside the find and replace strips.
  • Crash fixed in SciTE with recursive properties files. Bug #1507.
  • Bug fixed with SciTE where Ctrl+E before an unmatched end brace jumps to file start. Bug #315.
  • Fixed scrolling on Cocoa to avoid display glitches and be smoother.
  • Fixed crash on Cocoa when character composition used when autocompletion list active.

Release 3.4.0

  • Released 22 March 2014.
  • The Unicode line ends and substyles features added as provisional in 3.2.5 are now finalised. There are now no provisional features.
  • Added wrap mode SC_WRAP_WHITESPACE which only wraps on whitespace, not on style changes.
  • SciTE find and replace strips can perform incremental searching and temporary highlighting of all matches with the find.strip.incremental, replace.strip.incremental, and find.indicator.incremental settings.
  • SciTE default settings changed to use strips for find and replace and to draw with Direct2D and DirectWrite on Windows.
  • SciTE on Windows scales image buttons on the find and replace strips to match the current system scale factor.
  • Additional assembler lexer variant As(SCLEX_AS) for Unix assembly code which uses '#' for comments and ';' to separate statements.
  • Fix Coffeescript lexer for keyword style extending past end of word. Also fixes styling 0...myArray.length all as a number. Bug #1583.
  • Fix crashes and other bugs in Fortran folder by removing folding of do-label constructs.
  • Deleting a whole line deletes the annotations on that line instead of the annotations on the next line. Bug #1577.
  • Changed position of tall calltips to prefer lower half of screen to cut off end instead of start.
  • Fix Qt bug where double click treated as triple click. Bug #1575.
  • On Qt, selecting an item in an autocompletion list that is not currently visible positions it at the top.
  • Fix bug on Windows when resizing autocompletion list with only short strings caused the list to move.
  • On Cocoa reduce scrollable height by one line to fix bugs with moving caret up or down.
  • On Cocoa fix calltips which did not appear when they were created in an off-screen position.

Release 3.3.9

  • Released 31 January 2014.
  • Fix 3.3.8 bug where external lexers became inaccessible. Bug #1574.

Release 3.3.8

  • Released 28 January 2014.
  • DropSelectionN API added to drop a selection from a multiple selection.
  • CallTipSetPosStart API added to change the position at which backspacing removes the calltip.
  • SC_MARK_BOOKMARK marker symbol added which looks like bookmark ribbons used in book reading applications.
  • Basic lexer highlights hex, octal, and binary numbers in FreeBASIC which use the prefixes &h, &o and &b respectively. Feature #1041.
  • C++ lexer fixes bug where keyword followed immediately by quoted string continued keyword style. Bug #1564.
  • Matlab lexer treats '!' differently for Matlab and Octave languages. Bug #1571.
  • Rust lexer improved with nested comments, more compliant doc-comment detection, octal literals, NUL characters treated as valid, and highlighting of raw string literals and float literals fixed. Feature #1038. Bug #1570.
  • On Qt expose the EOLMode on the document object.
  • Fix hotspot clicking where area was off by half a character width. Bug #1562.
  • Tweaked scroll positioning by either 2 pixels or 1 pixel when caret is at left or right of view to ensure caret is inside visible area.
  • Send SCN_UPDATEUI with SC_UPDATE_SELECTION for Shift+Tab inside text.
  • On Windows update the system caret position when scrolling to help screen readers see the scroll quickly.
  • On Cocoa, GTK+, and Windows/Direct2D draw circles more accurately so that circular folding margin markers appear circular, of consistent size, and centred. Make SC_MARK_ARROWS drawing more even. Fix corners of SC_MARK_ROUNDRECT with Direct2D to be similar to other platforms.
  • SciTE uses a bookmark ribbon symbol for bookmarks as it scales better to higher resolutions than the previous blue gem bitmap.
  • SciTE will change the width of margins while running when the margin.width and fold.margin.width properties are changed.
  • SciTE on Windows can display a larger tool bar with the toolbar.large property.
  • SciTE displays a warning message when asked to open a directory. Bug #1568.

Release 3.3.7

  • Released 12 December 2013.
  • Lexer added for DMAP language. Feature #1026.
  • Basic lexer supports multiline comments in FreeBASIC. Feature #1023.
  • Bash lexer allows '#' inside words.. Bug #1553.
  • C++ lexer recognizes C++11 user-defined literals and applies lexical class SCE_C_USERLITERAL.
  • C++ lexer allows single quote characters as digit separators in numeric literals like 123'456 as this is included in C++14.
  • C++ lexer fixes bug with #include statements without " or > terminating filename. Bug #1538.
  • C++ lexer fixes split of Doxygen keywords @code{.fileExtension} and @param[in,out]. Bug #1551.
  • C++ lexer styles Doxygen keywords at end of document.
  • Cmake lexer fixes bug with empty comments. Bug #1550.
  • Fortran folder improved. Treats "else" as fold header. Feature #962.
  • Fix bug with adjacent instances of the same indicator with different values where only the first was drawn. Bug #1560.
  • For DirectWrite, use the GDI ClearType gamma value for SC_EFF_QUALITY_LCD_OPTIMIZED as this results in text that is similar in colour intensity to GDI. For the duller default DirectWrite ClearType text appearance, use SC_EFF_QUALITY_DEFAULT. Feature #887.
  • Fix another problem with drawing on Windows with Direct2D when returning from lock screen. The whole window is redrawn as just redrawing the initially required area left other areas black.
  • When scroll width is tracked, take width of annotation lines into account.
  • For Cocoa on OS X 10.9, responsive scrolling is supported.
  • On Cocoa, apply font quality setting to line numbers. Bug #1544.
  • On Cocoa, clicking in margin now sets focus. Bug #1542.
  • On Cocoa, correct cursor displayed in margin after showing dialog.
  • On Cocoa, multipaste mode now works. Bug #1541.
  • On GTK+, chain up to superclass finalize so that all finalization is performed. Bug #1549.
  • On GTK+, fix horizontal scroll bar range to not be double the needed width. Bug #1546.
  • On OS X GTK+, report control key as SCI_META for mouse down events.
  • On Qt, bug fixed with drawing of scrollbars, where previous contents were not drawn over with some themes.
  • On Qt, bug fixed with finding monitor rectangle which could lead to autocomplete showing at wrong location.
  • SciTE fix for multiple message boxes when failing to save a file with save.on.deactivate. Bug #1540.
  • SciTE on GTK+ fixes SIGCHLD handling so that Lua scripts can determine the exit status of processes they start. Bug #1557.
  • SciTE on Windows XP fixes bad display of find and replace values when using strips.

Release 3.3.6

  • Released 15 October 2013.
  • Added functions to help convert between substyles and base styles and between secondary and primary styles. SCI_GETSTYLEFROMSUBSTYLE finds the base style of substyles. Can be used to treat all substyles of a style equivalent to that style. SCI_GETPRIMARYSTYLEFROMSTYLE finds the primary style of secondary styles. StyleFromSubStyle and PrimaryStyleFromStyle methods were added to ILexerWithSubStyles so each lexer can implement these.
  • Lexer added for Rust language. Feature #1024.
  • Avoid false matches in errorlist lexer which is used for the SciTE output pane by stricter checking of ctags lines.
  • Perl lexer fixes bugs with multi-byte characters, including in HEREDOCs and PODs. Bug #1528.
  • SQL folder folds 'create view' statements. Feature #1020.
  • Visual Prolog lexer updated with better support for string literals and Unicode. Feature #1025.
  • For SCI_SETIDENTIFIERS, \t, \r, and \n are allowed as well as space between identifiers. Bug #1521.
  • Gaining and losing focus is now reported as a notification with the code set to SCN_FOCUSIN or SCN_FOCUSOUT. This allows clients to uniformly use notifications instead of commands. Since there is no longer a need for commands they will be deprecated in a future version. Clients should switch any code that currently uses SCEN_SETFOCUS or SCEN_KILLFOCUS.
  • On Cocoa, clients should use the delegate mechanism or subclass ScintillaView in preference to registerNotifyCallback: which will be deprecated in the future.
  • On Cocoa, the ScintillaView.h header hides internal implementation details from Platform.h and ScintillaCocoa.h. InnerView was renamed to SCIContentView and MarginView was renamed to SCIMarginView. dealloc removed from @interface.
  • On Cocoa, clients may customize SCIContentView by subclassing both SCIContentView and ScintillaView and implementing the contentViewClass class method on the ScintillaView subclass to return the class of the SCIContentView subclass.
  • On Cocoa, fixed appearance of alpha rectangles to use specified alpha and colour for outline as well as corner size. This makes INDIC_STRAIGHTBOX and INDIC_ROUNDBOX look correct.
  • On Cocoa, memory leak fixed for MarginView.
  • On Cocoa, make drag and drop work when destination view is empty. Bug #1534.
  • On Cocoa, drag image fixed when view scrolled.
  • On Cocoa, SCI_POSITIONFROMPOINTCLOSE fixed when view scrolled. Feature #1021.
  • On Cocoa, don't send selection change notification when scrolling. Bug #1522.
  • On Qt, turn off idle events on destruction to prevent repeatedly calling idle.
  • Qt bindings in ScintillaEdit changed to use signed first parameter.
  • Compilation errors fixed on Windows and GTK+ with SCI_NAMESPACE.
  • On Windows, building with gcc will check if Direct2D headers are available and enable Direct2D if they are.
  • Avoid attempts to redraw empty areas when lexing beyond the currently visible lines.
  • Control more attributes of indicators in SciTE with find.mark.indicator and highlight.current.word.indicator properties.
  • Fix SciTE bug with buffers becoming read-only. Bug #1525.
  • Fix linking SciTE on non-Linux Unix systems with GNU toolchain by linking to libdl. Bug #1523.
  • On Windows, SciTE's Incremental Search displays match failures by changing the background colour instead of not adding the character that caused failure.
  • Fix SciTE on GTK+ 3.x incremental search to change foreground colour when no match as changing background colour is difficult.

Release 3.3.5

  • Released 31 August 2013.
  • Characters may be represented by strings. In Unicode mode C1 control characters are represented by their mnemonics.
  • Added SCI_POSITIONRELATIVE to optimize navigation by character.
  • Option to allow mouse selection to switch to rectangular by pressing Alt after start of gesture. Feature #1007.
  • Lexer added for KVIrc script. Feature #1008.
  • Bash lexer fixed quoted HereDoc delimiters. Bug #1500.
  • MS SQL lexer fixed ';' to appear as an operator. Bug #1509.
  • Structured Text lexer fixed styling of enumeration members. Bug #1508.
  • Fixed bug with horizontal caret position when margin changed. Bug #1512.
  • Fixed bug on Cocoa where coordinates were relative to text subview instead of whole view.
  • Ensure selection redrawn correctly in two cases. When switching from stream to rectangular selection with Alt+Shift+Up. When reducing the range of an additional selection by moving mouse up. Feature #1007.
  • Copy and paste of rectangular selections compatible with Borland Delphi IDE on Windows. Feature #1002. Bug #1513.
  • Initialize extended styles to the default style.
  • On Windows, fix painting on an explicit HDC when first paint attempt abandoned.
  • Qt bindings in ScintillaEdit made to work on 64-bit Unix systems.
  • Easier access to printing on Qt with formatRange method.
  • Fixed SciTE failure to save initial buffer in single buffer mode. Bug #1339.
  • Fixed compilation problem with Visual C++ in non-English locales. Bug #1506.
  • Disable Direct2D when compiling with MinGW gcc on Windows because of changes in the recent MinGW release.
  • SciTE crash fixed for negative line.margin.width. Bug #1504.
  • SciTE fix for infinite dialog boxes when failing to automatically save a file. Bug #1503.
  • SciTE settings buffered.draw, two.phase.draw, and technology are applied to the output pane as well as the edit pane.

Release 3.3.4

  • Released 19 July 2013.
  • Handling of UTF-8 and DBCS text in lexers improved with methods ForwardBytes and GetRelativeCharacter added to StyleContext. Bug #1483.
  • For Unicode text, case-insensitive searching and making text upper or lower case is now compliant with Unicode standards on all platforms and is much faster for non-ASCII characters.
  • A CategoriseCharacter function was added to return the Unicode general category of a character which can be useful in lexers.
  • On Cocoa, the LCD Optimized font quality level turns font smoothing on.
  • SciTE 'immediate' subsystem added to allow scripts that work while tools are executed.
  • Font quality exposed in SciTE as font.quality setting.
  • On Cocoa, message:... methods simplify direct access to Scintilla and avoid call layers..
  • A68K lexer updated.
  • CoffeeScript lexer fixes a bug with comment blocks. Bug #1495
  • ECL lexer regular expression code fixed. Bug #1491.
  • errorlist lexer only recognises Perl diagnostics when there is a filename between "at" and "line". Had been triggering for MSVC errors containing "at line".
  • Haskell lexer fixed to avoid unnecessary full redraws. Don't highlight CPP inside comments when styling.within.preprocessor is on. Bug #1459.
  • Lua lexer fixes bug in labels with UTF-8 text. Bug #1483.
  • Perl lexer fixes bug in string interpolation with UTF-8 text. Bug #1483.
  • Fixed bugs with case conversion when the result was longer or shorter than the original text. Could access past end of string potentially crashing. Selection now updated to result length.
  • Fixed bug where data being inserted and removed was not being reported in notification messages. Bug was introduced in 3.3.2.
  • Word wrap bug fixed where the last line could be shown twice.
  • Word wrap bug fixed for lines wrapping too short on Windows and GTK+.
  • Word wrap performance improved.
  • Minor memory leak fixed. Bug #1487.
  • On Cocoa, fixed insertText: method which was broken when implementing a newer protocol.
  • On Cocoa, fixed a crash when performing string folding for bytes that do not represent a character in the current encoding.
  • On Qt, fixed layout problem when QApplication construction delayed.
  • On Qt, find_text reports failure with -1 as first element of return value.
  • Fixed SciTE on GTK+ bug where a tool command could be performed using the keyboard while one was already running leading to confusion and crashes. Bug #1486.
  • Fixed SciTE bug in Copy as RTF which was limited to first 32 styles. Bug #1011.
  • Fixed SciTE on Windows user strip height when the system text scaling factor is 125% or 150%.
  • Compile time checks for Digital Mars C++ removed.
  • Visual C++ 2013 supported. Bug #1492.
  • Python scripts used for building and maintenance improved and moved into scripts directory.
  • Testing scripts now work on Linux using Qt and PySide.
  • Tk platform defined. Implementation for Tk will be available separately from main Scintilla distribution.

Release 3.3.3

  • Released 2 June 2013.
  • Lexer and folder added for Structured Text language. Feature #959.
  • Out of bounds access fixed for GTK+. Bug #1480.
  • Crash fixed for GTK+ on Windows paste.
  • Bug fixed with incorrect event copying on GTK+ 3.x. Bug #1481.
  • Bug fixed with right to left locales, like Hebrew, on GTK+. Bug #1477.
  • Bug fixed with undo grouping of tab and backtab commands. Bug #1478.

Release 3.3.2

  • Released 22 May 2013.
  • Basic implementations of common folding methods added to Scintilla to make it easier for containers to implement folding.
  • Add indicator INDIC_COMPOSITIONTHICK, a thick low underline, to mimic an appearance used for Asian language input composition.
  • On Cocoa, implement font quality setting. Feature #988.
  • On Cocoa, implement automatic enabling of commands and added clear command. Feature #987.
  • C++ lexer adds style for preprocessor doc comment. Feature #990.
  • Haskell lexer and folder improved. Separate mode for literate Haskell "literatehaskell" SCLEX_LITERATEHASKELL. Bug #1459 .
  • LaTeX lexer bug fixed for Unicode character following '\'. Bug #1468 .
  • PowerShell lexer recognises here strings and doccomment keywords. #region folding added. Feature #985.
  • Fix multi-typing when two carets are located in virtual space on one line so that spaces are preserved.
  • Fixes to input composition on Cocoa and implementation of accented character input through press and hold. Set selection correctly so that changes to pieces of composition text are easier to perform. Restore undo collection after a sequence of composition actions. Composition popups appear near input.
  • Fix lexer problem where no line end was seen at end of document.
  • Fix crash on Cocoa when view deallocated. Bug #1466.
  • Fix Qt window positioning to not assume the top right of a monitor is at 0, 0.
  • Fix Qt to not track mouse when widget is hidden.
  • Qt now supports Qt 5.0. Bug #1448.
  • Fix drawing on Windows with Direct2D when returning from lock screen. The render target had to be recreated and an area would be black since the drawing was not retried.
  • Fix display of DBCS documents on Windows Direct2D/DirectWrite with default character set.
  • For SciTE on Windows, fixed most-recently-used menu when files opened through check.if.already.opened.
  • In SciTE, do not call OnSave twice when files saved asynchronously.
  • Scintilla no longer builds with Visual C++ 6.0.

Release 3.3.1

  • Released 11 April 2013.
  • Autocompletion lists can now appear in priority order or be sorted by Scintilla. Feature #981.
  • Most lexers now lex an extra NUL byte at the end of the document which makes it more likely they will classify keywords at document end correctly. Bug #574, Bug #588.
  • Haskell lexer improved in several ways. Bug #1459.
  • Matlab/Octave lexer recognises block comments and ... comments. Bug #1414.
  • Ruby lexer crash fixed with keyword at start of document.
  • The PLAT_NCURSES platform now called PLAT_CURSES as may work on other implementations.
  • Bug on Cocoa fixed where input composition with multiple selection or virtual space selection could make undo stop working.
  • Direct2D/DirectWrite mode on Windows now displays documents in non-Latin1 8-bit encodings correctly.
  • Character positioning corrected in Direct2D/DirectWrite mode on Windows to avoid text moving and cutting off lower parts of characters.
  • Position of calltip and autocompletion lists fixed on Cocoa.
  • While regular expression search in DBCS text is still not working, matching partial characters is now avoided by moving end of match to end of character.

Release 3.3.0

  • Released 30 March 2013.
  • Overlay scrollers and kinetic scrolling implemented on Cocoa.
  • To improve display smoothness, styling and UI Update notifications will, when possible, be performed in a high-priority idle task on Cocoa instead of during painting. Performing these jobs inside painting can cause paints to be abandoned and a new paint scheduled. On GTK+, the high-priority idle task is used in more cases.
  • SCI_SCROLLRANGE added to scroll the view to display a range of text. If the whole range can not be displayed, priority is given to one end.
  • C++ lexer no longer recognises raw (R"") strings when the first character after " is invalid. Bug #1454.
  • HTML lexer recognises JavaScript RegEx literals in more contexts. Bug #1412.
  • Fixed automatic display of folded text when return pressed at end of fold header and first folded line was blank. Bug #1455.
  • SCI_VISIBLEFROMDOCLINE fixed to never return a line beyond the document end.
  • SCI_LINESCROLL fixed for a negative column offset. Bug #1450.
  • On GTK+, fix tab markers so visible if indent markers are visible. Bug #1453.

Release 3.2.5

  • Released 26 February 2013.
  • To allow cooperation between different uses of extended (beyond 255) styles they should be allocated using SCI_ALLOCATEEXTENDEDSTYLES.
  • For Unicode documents, lexers that use StyleContext will retrieve whole characters instead of bytes. LexAccessor provides a LineEnd method which can be a more efficient way to handle line ends and can enable Unicode line ends.
  • The C++ lexer understands the #undef directive when determining preprocessor definitions. Feature #978.
  • The errorlist lexer recognises gcc include path diagnostics that appear before an error.
  • Folding implemented for GetText (PO) translation language. Bug #1437.
  • HTML lexer does not interrupt comment style for processing instructions. Bug #1447.
  • Fix SciTE forgetting caret x-position when switching documents. Bug #1442.
  • Fixed bug where vertical scrollbar thumb appeared at beginning of document when scrollbar shown. Bug #1446.
  • Fixed brace-highlighting bug on OS X 10.8 where matching brace is on a different line.
  • Provisional features are new features that may change or be removed if they cause problems but should become permanent if they work well. For this release Unicode line ends and substyles are provisional features.

Release 3.2.4

  • Released 17 January 2013.
  • Caret line highlight can optionally remain visible when window does not have focus. Feature #964.
  • Delegate mechanism for notifications added on Cocoa.
  • NUL characters in selection are copied to clipboard as spaces to avoid truncating at the NUL. Bug #1289.
  • C++ lexer fixes problem with showing inactive sections when preprocessor lines contain trailing comment. Bug #1413.
  • C++ lexer fixes problem with JavaScript regular expressions with '/' in character ranges. Bug #1415.
  • LaTeX folder added. Feature #970.
  • LaTeX lexer improves styling of math environments. Feature #970.
  • MySQL lexer implements hidden commands.
  • Only produce a single undo step when autocompleting a single word. Bug #1421.
  • Fixed crash when printing lines longer than 8000 characters. Bug #1430.
  • Fixed problem in character movement extends selection mode where reversing direction collapsed the selection.
  • Memory issues fixed on Cocoa, involving object ownership, lifetime of timers, and images held by the info bar. Bug #1436.
  • Cocoa key binding for Alt+Delete changed to delete previous word to be more compatible with platform standards.
  • Fixed crash on Cocoa with scrollbar when there is no scrolling possible. Bug #1416.
  • On Cocoa with retina display fixed positioning of autocompletion lists.
  • Fixed SciTE on Windows failure to run a batch file with a name containing a space by quoting the path in the properties file. Bug #1423.
  • Fixed scaling bug when printing on GTK+. Bug #1427.
  • SciTE on GTK toolbar.detachable feature removed.
  • Fixed some background saving bugs in SciTE. Bug #1366. Bug #1339.

Release 3.2.3

  • Released 21 October 2012.
  • Improve speed when performing multiple searches.
  • SciTE adds definition of PLAT_UNIX for both PLAT_GTK and PLAT_MAC to allow consolidation of settings valid on all Unix variants.
  • Signal autoCompleteCancelled added on Qt.
  • Bash lexer supports nested delimiter pairs. Feature #3569352. Bug #1515556. Bug #3008483. Bug #3512208. Bug #3515392.
  • For C/C++, recognise exponent in floating point hexadecimal literals. Bug #3576454.
  • For C #include statements, do not treat // in the path as a comment. Bug #3519260.
  • Lexer for GetText translations (PO) improved with additional styles and single instance limitation fixed.
  • Ruby for loop folding fixed. Bug #3240902. Bug #3567391.
  • Ruby recognition of here-doc after class or instance variable fixed. Bug #3567809.
  • SQL folding of loop and case fixed. Bug #3567905.
  • SQL folding of case with assignment fixed. Bug #3571820.
  • Fix hang when removing all characters from indicator at end of document.
  • Fix failure of \xhh in regular expression search for values greater than 0x79.
  • On Cocoa on OS X 10.8, fix inverted drawing of find indicator.
  • On Cocoa, fix double drawing when horizontal scroll range small and user swipes horizontally.
  • On Cocoa, remove incorrect setting of save point when reading information through 'string' and 'selectedString'.
  • On Cocoa, fix incorrect memory management of infoBar.
  • On GTK+ 3 Ubuntu, fix crash when drawing margin.
  • On ncurses, fix excessive spacing with italics line end.
  • On Windows, search for D2D1.DLL and DWRITE.DLL in system directory to avoid loading from earlier in path where could be planted by malware.

Release 3.2.2

  • Released 31 August 2012.
  • Retina display support for Cocoa. Text size fixed. Scale factor for images implemented so they can be displayed in high definition.
  • Implement INDIC_SQUIGGLEPIXMAP as a faster version of INDIC_SQUIGGLE. Avoid poor drawing at right of INDIC_SQUIGGLE. Align INDIC_DOTBOX to pixel grid for full intensity.
  • Implement SCI_GETSELECTIONEMPTY API. Bug #3543121.
  • Added SCI_VCHOMEDISPLAY and SCI_VCHOMEDISPLAYEXTEND key commands. Feature #3561433.
  • Allow specifying SciTE Find in Files directory with find.in.directory property. Feature #3558594.
  • Override SciTE global strip.trailing.spaces with strip.trailing.spaces by pattern files. Feature #3556320.
  • Fix long XML script tag handling in XML lexer. Bug #3534190.
  • Fix rectangular selection range after backspace. Bug #3543097.
  • Send SCN_UPDATEUI with SC_UPDATE_SELECTION for backspace in virtual space. Bug #3543121.
  • Avoid problems when calltip highlight range is negative. Bug #3545938.
  • On Cocoa, fix image drawing code so that image is not accessed after being freed and is drawn in the correct location.
  • On Cocoa, limit horizontal touch scrolling to existing established width.
  • On Cocoa, decrease sensitivity of pinch-zoom.
  • Fix Cocoa drawing where style changes were not immediately visible.
  • Fix Cocoa memory leak due to reference cycle.
  • Fix Cocoa bug where notifications were sent after Scintilla was freed.
  • SciTE on OS X user shortcuts treats "Ctrl+D" as equivalent to "Ctrl+d".
  • On Windows, saving SciTE's Lua startup script causes it to run.
  • Limit time allowed to highlight current word in SciTE to 0.25 seconds to remain responsive.
  • Fixed SciTE read-only mode to stick with buffer.
  • For SciTE on Windows, enable Ctrl+Z, Ctrl+X, and Ctrl+C (Undo, Cut, and Copy) in the editable fields of find and replace strips
  • Remove limit on logical line length in SciTE .properties files. Bug #3544312.
  • Improve performance of SciTE Save As command.
  • Fix SciTE crash with empty .properties files. Bug #3545938. Bug #3555308.
  • Fix repeated letter in SciTE calltips. Bug #3545938.
  • Refine build time checking for Direct2D and DirectWrite.
  • Avoid potential build problems on Windows with MultiMon.h by explicitly checking for multi-monitor APIs.
  • Automatically disable themed drawing in SciTE when building on Windows 2000. Reenable building for Windows NT 4 on NT 4 .
  • Added ncurses platform definitions. Implementation is maintained separately as Scinterm.

Release 3.2.1

  • Released 14 July 2012.
  • In Scintilla.iface, specify features as properties instead of functions where possible and fix some enumerations.
  • In SciTE Lua scripts, string properties in Scintilla API can be retrieved as well as set using property notation.
  • Added character class APIs: SCI_SETPUNCTUATIONCHARS, SCI_GETWORDCHARS, SCI_GETWHITESPACECHARS, and SCI_GETPUNCTUATIONCHARS. Feature #3529805.
  • Less/Hss support added to CSS lexer. Feature #3532413.
  • C++ lexer style SCE_C_PREPROCESSORCOMMENT added for stream comments in preprocessor. Bug #3487406.
  • Fix incorrect styling of inactive code in C++ lexer. Bug #3533036.
  • Fix incorrect styling by C++ lexer after empty lines in preprocessor style.
  • C++ lexer option "lexer.cpp.allow.dollars" fixed so can be turned off after being on. Bug #3541461.
  • Fortran fixed format lexer fixed to style comments from column 73. Bug #3540486.
  • Fortran folder folds CRITICAL .. END CRITICAL. Bug #3540486.
  • Fortran lexer fixes styling after comment line ending with '&'. Bug #3087226.
  • Fortran lexer styles preprocessor lines so they do not trigger incorrect folding. Bug #2906275.
  • Fortran folder fixes folding of nested ifs. Bug #2809176.
  • HTML folder fixes folding of CDATA when fold.html.preprocessor=0. Bug #3540491.
  • On Cocoa, fix autocompletion font lifetime issue and row height computation.
  • In 'choose single' mode, autocompletion will close an existing list if asked to display a single entry list.
  • Fixed SCI_MARKERDELETE to only delete one marker per call. Bug #3535806.
  • Properly position caret after undoing coalesced delete operations. Bug #3523326.
  • Ensure margin is redrawn when SCI_MARGINSETSTYLE called.
  • Fix clicks in first pixel of margins to send SCN_MARGINCLICK.
  • Fix infinite loop when drawing block caret for a zero width space character at document start.
  • Crash fixed for deleting negative range.
  • For characters that overlap the beginning of their space such as italics descenders and bold serifs, allow start of text to draw 1 pixel into margin. Bug #699587. Bug #3537799.
  • Fixed problems compiling Scintilla for Qt with GCC 4.7.1 x64.
  • Fixed problem with determining GTK+ sub-platform caused when adding Qt support in 3.2.0.
  • Fix incorrect measurement of untitled file in SciTE on Linux leading to message "File ...' is 2147483647 bytes long". Bug #3537764.
  • In SciTE, fix open of selected filename with line number to go to that line.
  • Fix problem with last visible buffer closing in SciTE causing invisible buffers to be active.
  • Avoid blinking of SciTE's current word highlight when output pane changes.
  • SciTE properties files can be longer than 60K.

Release 3.2.0

  • Released 1 June 2012.
  • Platform layer added for the Qt open-source cross-platform application and user interface framework for development in C++ or in Python with the PySide bindings for Qt.
  • Direct access provided to the document bytes for ranges within Scintilla. This is similar to the existing SCI_GETCHARACTERPOINTER API but allows for better performance.
  • Ctrl+Double Click and Ctrl+Triple Click add the word or line to the set of selections. Feature #3520037.
  • A SCI_DELETERANGE API was added for deleting a range of text.
  • Line wrap markers may now be drawn in the line number margin. Feature #3518198.
  • SciTE on OS X adds option to hide hidden files in the open dialog box.
  • Lexer added for OScript language. Feature #3523197.
  • Lexer added for Visual Prolog language. Feature #3523018.
  • UTF-8 validity is checked more stringently and consistently. All 66 non-characters are now treated as invalid.
  • HTML lexer bug fixed with inconsistent highlighting for PHP when attribute on separate line from tag. Bug #3520027.
  • HTML lexer bug fixed for JavaScript block comments. Bug #3520032.
  • Annotation drawing bug fixed when box displayed with different colours on different lines. Bug #3519872.
  • On Windows with Direct2D, fix drawing with 125% and 150% DPI system settings.
  • Virtual space selection bug fixed for rectangular selections. Bug #3519246.
  • Replacing multiple selection with newline changed to only affect main selection. Bug #3522251.
  • Replacing selection with newline changed to group deletion and insertion as a single undo action. Bug #3522250.
  • Auto-completion lists on GTK+ 3 set height correctly instead of showing too few lines.
  • Mouse wheel scrolling changed to avoid GTK+ bug in recent distributions.
  • IME bug on Windows fixed for horizontal jump. Bug #3529728.
  • SciTE case-insensitive autocompletion filters equal identifiers better. Calltip arrows work with bare word identifiers. Bug #3517810.
  • SciTE bug fixed where shbang lines not setting file type when switching to file loaded in background.
  • SciTE on GTK+ shows open and save dialogs with the directory of the current file displayed.

Release 3.1.0

  • Released 20 April 2012.
  • Animated find indicator added on Cocoa.
  • Buttons can be made default in SciTE user strips.
  • SciTE allows find and replace histories to be saved in session.
  • Option added to allow case-insensitive selection in auto-completion lists. Bug #3516538.
  • Replace \0 by complete found text in regular expressions. Feature #3510979.
  • Fixed single quoted strings in bash lexer. Bug #3512208.
  • Incorrect highlighting fixed in C++ lexer for continued lines. Bug #3509317.
  • Hang fixed in diff lexer. Bug #3508602.
  • Folding improved for SQL CASE/MERGE statement. Bug #3503277.
  • Fix extra drawing of selection inside word wrap indentation. Bug #3515555.
  • Fix problem with determining the last line that needs styling when drawing. Bug #3514882.
  • Fix problems with drawing in margins. Bug #3514882.
  • Fix printing crash when using Direct2D to display on-screen. Bug #3513946.
  • Fix SciTE bug where background.*.size disabled restoration of bookmarks and positions from session. Bug #3514885.
  • Fixed the Move Selected Lines command when last line does not end with a line end character. Bug #3511023.
  • Fix word wrap indentation printing to use printer settings instead of screen settings. Bug #3512961.
  • Fix SciTE bug where executing an empty command prevented executing further commands Bug #3512976.
  • Fix SciTE bugs with focus in user strips and made strips more robust with invalid definitions.
  • Suppress SciTE regular expression option when searching with find next selection. Bug #3510985.
  • SciTE Find in Files command matches empty pattern to all files. Feature #3495918.
  • Fix scroll with mouse wheel on GTK+. Bug #3501321.
  • Fix column finding method so that tab is counted correctly. Bug #3483713.

Release 3.0.4

  • Released 8 March 2012.
  • SciTE scripts can create user interfaces as strips.
  • SciTE can save files automatically in the background.
  • Pinch zoom implemented on Cocoa.
  • ECL lexer added. Feature #3488209.
  • CPP lexer fixes styling after document comment keywords. Bug #3495445.
  • Pascal folder improves handling of some constructs. Feature #3486385.
  • XML lexer avoids entering a bad mode due to complex preprocessor instructions. Bug #3488060.
  • Duplicate command is always remembered as a distinct command for undo. Bug #3495836.
  • SciTE xml.auto.close.tags no longer closes with PHP code similar to <a $this-> Bug #3488067.
  • Fix bug where setting an indicator for the whole document would fail. Bug #3487440.
  • Crash fixed for SCI_MOVESELECTEDLINESDOWN with empty vertical selection. Bug #3496403.
  • Differences between buffered and unbuffered mode on Direct2D eliminated. Bug #3495791.
  • Font leading implemented for Direct2D to improve display of character blobs. Bug #3494744.
  • Fractional widths used for line numbers, character markers and other situations. Bug #3494492.
  • Translucent rectangles drawn using Direct2D with sharper corners. Bug #3494492.
  • RGBA markers drawn sharper when centred using Direct2D. Bug #3494202.
  • RGBA markers are drawn centred when taller than line. Bug #3494184.
  • Image marker drawing problem fixed for markers taller than line. Bug #3493503.
  • Markers are drawn horizontally off-centre based on margin type instead of dimensions. Bug #3488696.
  • Fold tail markers drawn vertically centred. Feature #3488289.
  • On Windows, Scintilla is more responsive in wrap mode. Bug #3487397.
  • Unimportant "Gdk-CRITICAL" messages are no longer displayed. Bug #3488481.
  • SciTE on Windows Find in Files sets focus to dialog when already created; allows opening dialog when a job is running. Bug #3480635. Bug #3486657.
  • Fixed problems with multiple clicks in margin and with mouse actions combined with virtual space. Bug #3484370.
  • Fixed bug with using page up and down and not returning to original line. Bug #3485669.
  • Down arrow with wrapped text no longer skips lines. Bug #1776560.
  • Fix problem with dwell ending immediately due to word wrap. Bug #3484416.
  • Wrapped lines are rewrapped more consistently while resizing window. Bug #3484179.
  • Selected line ends are highlighted more consistently. Bug #3484330.
  • Fix grey background on files that use shbang to choose language. Bug #3482777.
  • Fix failure messages from empty commands in SciTE. Bug #3480645.
  • Redrawing reduced for some marker calls. Feature #3493530.
  • Match brace and select brace commands work in SciTE output pane. Feature #3486598.
  • Performing SciTE "Show Calltip" command when a calltip is already visible shows the next calltip. Feature #3487017.
  • SciTE allows saving file even when file unchanged. Feature #3486654.
  • SciTE allows optional use of character escapes in calltips. Feature #3495239.
  • SciTE can open file:// URLs with Ctrl+Shift+O. Feature #3495389.
  • Key modifiers updated for GTK+ on OS X to match upstream changes.
  • SciTE hang when marking all occurrences of regular expressions fixed.

Release 3.0.3

  • Released 28 January 2012.
  • Printing works on GTK+ version 2.x as well as 3.x.
  • Lexer added for the AviSynth language. Feature #3475611.
  • Lexer added for the Take Command / TCC scripting language. Feature #3462462.
  • CSS lexer gains support for SCSS. Feature #3268017.
  • CPP lexer fixes problems in the preprocessor structure caused by continuation lines. Bug #3458508.
  • Errorlist lexer handles column numbers for GCC format diagnostics. In SciTE, Next Message goes to column where this can be decoded from GCC format diagnostics. Feature #3453075.
  • HTML folder fixes spurious folds on some tags. Bug #3459262.
  • Ruby lexer fixes bug where '=' at start of file caused whole file to appear as a comment. Bug #3452488.
  • SQL folder folds blocks of single line comments. Feature #3467425.
  • On Windows using Direct2D, defer invalidation of render target until completion of painting to avoid failures.
  • Further support of fractional positioning. Spaces, tabs, and single character tokens can take fractional space and wrapped lines are positioned taking fractional positions into account. Bug #3471998.
  • On Windows using Direct2D, fix extra carets appearing. Bug #3471998.
  • For autocompletion lists Page Up and Down move by the list height instead of by 5 lines. Bug #3455493.
  • For SCI_LINESCROLLDOWN/UP don't select into virtual space. Bug #3451681.
  • Fix fold highlight not being fully drawn. Bug #3469936.
  • Fix selection margin appearing black when starting in wrap mode.
  • Fix crash when changing end of document after adding an annotation. Bug #3476637.
  • Fix problems with building to make RPMs. Bug #3476149.
  • Fix problem with building on GTK+ where recent distributions could not find gmodule. Bug #3469056.
  • Fix problem with installing SciTE on GTK+ due to icon definition in .desktop file including an extension. Bug #3476117.
  • Fix SciTE bug where new buffers inherited some properties from previously opened file. Bug #3457060.
  • Fix focus when closing tab in SciTE with middle click. Focus moves to edit pane instead of staying on tab bar. Bug #3440142.
  • For SciTE on Windows fix bug where Open Selected Filename for URL would append a file extension. Feature #3459185.
  • For SciTE on Windows fix key handling of control characters in Parameters dialog so normal editing (Ctrl+C, ...) works. Bug #3459345.
  • Fix SciTE bug where files became read-only after saving. Drop the "*" dirty marker after save completes. Bug #3467432.
  • For SciTE handling of diffs with "+++" and "---" lines, also handle case where not followed by tab. Go to correct line for diff "+++" message. Bug #3467143. Bug #3467178.
  • SciTE on GTK+ now performs threaded actions even on GTK+ versions before 2.12.

Release 3.0.2

  • Released 9 December 2011.
  • SciTE saves files in the background without blocking the user interface.
  • Printing implemented in SciTE on GTK+ 3.x.
  • ILoader interface for background loading finalised and documented.
  • CoffeeScript lexer added.
  • C++ lexer fixes crash with "#if defined( XXX 1".
  • Crash with Direct2D on Windows fixed.
  • Backspace removing protected range fixed. Bug #3445911.
  • Cursor setting failure on Windows when screen saver on fixed. Bug #3438780.
  • SciTE on GTK+ hang fixed with -open:file option. Bug #3441980.
  • Failure to evaluate shbang fixed in SciTE. Bug #3441801.
  • SciTE failure to treat files starting with "<?xml" as XML fixed. Bug #3440718.
  • Made untitled tab saveable when created by closing all files. Bug #3440244.
  • SciTE crash fixed when using Scintillua.
  • SciTE revert command fixed so that undo works on individual actions instead of undoing to revert point.
  • Focus loss in SciTE when opening a recent file fixed. Bug #3440142.
  • Fixed SciTE SelLength property to measure characters instead of bytes. Bug #3283519.

Release 3.0.1

  • Released 15 November 2011.
  • SciTE on Windows now runs Lua scripts directly on the main thread instead of starting them on a secondary thread and then moving back to the main thread.
  • Highlight "else" as a keyword for TCL in the same way as other languages. Bug #1836954.
  • Fix problems with setting fonts for autocompletion lists on Windows where font handles were copied and later deleted causing a system default font to be used.
  • Fix font size used on Windows for Asian language input methods which sometimes led to IME not being visible. Bug #3436753.
  • Fixed polygon drawing on Windows so fold symbols are visible again. Bug #3433558.
  • Changed background drawing on GTK+ to allow for fractional character positioning as occurs on OS X as this avoids faint lines at lexeme boundaries.
  • Ensure pixmaps allocated before painting as there was a crash when Scintilla drew without common initialisation calls. Bug #3432354.
  • Fixed SciTE on Windows bug causing wrong caret position after indenting a selection. Bug #3433433.
  • Fixed SciTE session saving to store buffer position matching buffer. Bug #3434372.
  • Fixed leak of document objects in SciTE.
  • Recognise URL characters '?' and '%' for Open Selected command in SciTE. Bug #3429409.

Release 3.0.0

  • Released 1 November 2011.
  • Carbon platform support removed. OS X applications should switch to Cocoa.
  • On Windows Vista or newer, drawing may be performed with Direct2D and DirectWrite instead of GDI.
  • Cairo is now used for all drawing on GTK+. GDK drawing was removed.
  • Paletted display support removed.
  • Fractional font sizes can be specified.
  • Different weights of text supported on some platforms instead of just normal and bold.
  • Sub-pixel character positioning supported.
  • SciTE loads files in the background without blocking the user interface.
  • SciTE can display diagnostic messages interleaved with the text of files immediately after the line referred to by the diagnostic.
  • New API to see if all lines are visible which can be used to optimize processing fold structure notifications.
  • Scrolling optimized by avoiding invalidation of fold margin when redrawing whole window.
  • Optimized SCI_MARKERNEXT.
  • C++ lexer supports Pike hash quoted strings when turned on with lexer.cpp.hashquoted.strings.
  • Fixed incorrect line height with annotations in wrapped mode when there are multiple views. Bug #3388159.
  • Calltips may be displayed above the text as well as below. Bug #3410830.
  • For huge files SciTE only examines the first megabyte for newline discovery.
  • SciTE on GTK+ removes the fileselector.show.hidden property and check box as this was buggy and GTK+ now supports an equivalent feature. Bug #3413630.
  • SciTE on GTK+ supports mnemonics in dynamic menus.
  • SciTE on GTK+ displays the user's home directory as '~' in menus to make them shorter.

Release 2.29

  • Released 16 September 2011.
  • To automatically discover the encoding of a file when opening it, SciTE can run a program set with command.discover.properties. Feature #3324341.
  • Cairo always used for drawing on GTK+.
  • The set of properties files imported by SciTE can be controlled with the properties imports.include and imports.exclude. The import statement has been extended to allow "import *". The properties files for some languages are no longer automatically loaded by default. The properties files affected are avenue, baan, escript, lot, metapost, and mmixal.
  • C++ lexer fixed a bug with raw strings being recognised too easily. Bug #3388122.
  • LaTeX lexer improved with more states and fixes to most outstanding bugs. Bug #1493111. Bug #1856356. Bug #3081692.
  • Lua lexer updates for Lua 5.2 beta with goto labels and "\z" string escape. Feature #3386330.
  • Perl string styling highlights interpolated variables. Feature #3394258. Bug #3076629.
  • Perl lexer updated for Perl 5.14.0 with 0X and 0B numeric literal prefixes, break keyword and "+" supported in subroutine prototypes. Feature #3388802.
  • Perl bug fixed with CRLF line endings.
  • Markdown lexer fixed to not change state with "_" in middle of word. Bug #3398184.
  • Cocoa restores compatibility with OS X 10.5.
  • Mouse pointer changes over selection to an arrow near start when scrolled horizontally. Bug #3389055.
  • Indicators that finish at the end of the document no longer expand when text is appended. Bug #3378718.
  • SparseState merge fixed to check if other range is empty. Bug #3387053.
  • On Windows, autocompletion lists will scroll instead of document when mouse wheel spun. Feature #3403600.
  • SciTE performs more rapid polling for command completion so will return faster and report more accurate times.
  • SciTE resizes panes proportionally when switched between horizontal and vertical layout. Feature #3376784.
  • SciTE on GTK+ opens multiple files into a single instance more reliably. Bug #3363754.

Release 2.28

  • Released 1 August 2011.
  • GTK+ Cairo support works back to GTK+ version 2.8. Requires changing Scintilla source code to enable before GTK+ 2.22. Bug #3322351.
  • Translucent images in RGBA format can be used for margin markers and in autocompletion lists.
  • INDIC_DOTBOX added as a translucent dotted rectangular indicator.
  • Asian text input using IME works for GTK+ 3.x and GTK+ 2.x with Cairo.
  • On GTK+, IME works for Ctrl+Shift+U Unicode input in Scintilla. For SciTE, Ctrl+Shift+U is still Make Selection Uppercase.
  • Key bindings for GTK+ on OS X made compatible with Cocoa port and platform conventions.
  • Cocoa port supports different character encodings, improves scrolling performance and drag image appearance. The control ID is included in WM_COMMAND notifications. Text may be deleted by dragging to the trash. ScrollToStart and ScrollToEnd key commands added to simplify implementation of standard OS X Home and End behaviour.
  • SciTE on GTK+ uses a paned widget to contain the edit and output panes instead of custom code. This allows the divider to be moved easily on GTK+ 3 and its appearance follows GTK+ conventions more closely.
  • SciTE builds and installs on BSD. Bug #3324644.
  • Cobol supports fixed format comments. Bug #3014850.
  • Mako template language block syntax extended and ## comments recognised. Feature #3325178. Bug #3318818.
  • Folding of Mako template language within HTML fixed. Bug #3324563.
  • Python lexer has lexer.python.keywords2.no.sub.identifiers option to avoid highlighting second set of keywords following '.'. Bug #3325333.
  • Python folder fixes bug where fold would not extend to final line. Bug #3349157.
  • SciTE treats LPEG lexers the same as script lexers by setting all 8 style bits.
  • For Cocoa, crashes with unsupported font variants and memory leaks for colour objects fixed.
  • Shift-JIS lead byte ranges modified to match Windows.
  • Mouse pointer changes over selection to an arrow more consistently. Bug #3315756.
  • Bug fixed with annotations beyond end of document. Bug #3347268.
  • Incorrect drawing fixed for combination of background colour change and translucent selection. Bug #3377116.
  • Lexers initialized correctly when started at position other than start of line. Bug #3377148.
  • Fold highlight drawing fixed for some situations. Bug #3323015. Bug #3323805.
  • Case insensitive search fixed for cases where folded character uses fewer bytes than base character. Bug #3362038.
  • SciTE bookmark.alpha setting fixed. Bug #3373907.

Release 2.27

  • Released 20 June 2011.
  • On recent GTK+ 2.x versions when using Cairo, bug fixed where wrong colours were drawn.
  • SciTE on GTK+ slow performance in menu maintenance fixed. Bug #3315233.
  • Cocoa platform supports 64-bit builds and uses only non-deprecated APIs. Asian Input Method Editors are supported. Autocompletion lists and calltips implemented. Control identifier used in notifications.
  • On Cocoa, rectangular selection now uses Option/Alt key to be compatible with Apple Human Interface Guidelines and other applications. The Control key is reported with an SCMOD_META modifier bit.
  • API added for setting and retrieving the identifier number used in notifications.
  • SCI_SETEMPTYSELECTION added to set selection without scrolling or redrawing more than needed. Feature #3314877.
  • Added new indicators. INDIC_DASH and INDIC_DOTS are variants of underlines. INDIC_SQUIGGLELOW indicator added as shorter alternative to INDIC_SQUIGGLE for small fonts. Bug #3314591
  • Margin line selection can be changed to select display lines instead of document lines. Bug #3312763.
  • On Windows, SciTE can perform reverse searches by pressing Shift+Enter in the Find or Replace strips or dialogs.
  • Matlab lexer does not special case '\' in single quoted strings. Bug #948757 Bug #1755950 Bug #1888738 Bug #3316852.
  • Verilog lexer supports SystemVerilog folding and keywords.
  • Font leak fixed. Bug #3306156.
  • Automatic scrolling works for long wrapped lines. Bug #3312763.
  • Multiple typing works for cases where selections collapse together. Bug #3309906.
  • Fold expanded when needed in word wrap mode. Bug #3291579.
  • Bug fixed with edge drawn in wrong place on wrapped lines. Bug #3314807.
  • Bug fixed with unnecessary scrolling for SCI_GOTOLINE. Bug #3303406.
  • Bug fixed where extra step needed to undo SCI_CLEAR in virtual space. Bug #3159691.
  • Regular expression search fixed for \$ on last line of search range. Bug #3313746.
  • SciTE performance improved when switching to a tab with a very large file. Bug #3311421.
  • On Windows, SciTE advanced search remembers the "Search only in this style" setting. Bug #3313344.
  • On GTK+, SciTE opens help using "xdg-open" instead of "netscape" as "netscape" no longer commonly installed. Bug #3314377.
  • SciTE script lexers can use 256 styles.
  • SciTE word highlight works for words containing DBCS characters. Bug #3315173.
  • Compilation fixed for wxWidgets. Bug #3306156.

Release 2.26

  • Released 25 May 2011.
  • Folding margin symbols can be highlighted for the current folding block. Feature #3147069.
  • Selected lines can be moved up or down together. Feature #3304850.
  • SciTE can highlight all occurrences of the current word or selected text. Feature #3291636.
  • Experimental GTK+ 3.0 support: build with "make GTK3=1".
  • INDIC_STRAIGHTBOX added. Is similar to INDIC_ROUNDBOX but without rounded corners. Bug #3290435.
  • Can show brace matching and mismatching with indicators instead of text style. Translucency of outline can be altered for INDIC_ROUNDBOX and INDIC_STRAIGHTBOX. Feature #3290434.
  • SciTE can automatically indent python by examining previous line for scope-starting ':' with indent.python.colon.
  • Batch file lexer allows braces '(' or ')' inside variable names.
  • The cpp lexer only recognises Vala triple quoted strings when lexer.cpp.triplequoted.strings property is set. Bug #3239234.
  • Make file lexer treats a variable with a nested variable like $(f$(qx)b) as one variable. Bug #3298223.
  • Folding bug fixed for JavaScript with nested PHP. Bug #3193530.
  • HTML lexer styles Django's {# #} comments. Bug #3013798.
  • HTML lexer styles JavaScript regular expression correctly for /abc/i.test('abc');. Bug #3209108.
  • Inno Setup Script lexer now works properly when it restarts from middle of [CODE] section. Bug #3283880. Bug #3129044.
  • Lua lexer updated for Lua 5.2 with hexadecimal floating-point numbers and '\*' whitespace escaping in strings. Feature #3243811.
  • Perl folding folds "here doc"s and adds options fold.perl.at.else and fold.perl.comment.explicit. Fold structure for Perl fixed. Feature #3112671. Bug #3265401.
  • Python lexer supports cpdef keyword for Cython. Bug #3279728.
  • SQL folding option lexer.sql.fold.at.else renamed to fold.sql.at.else. Bug #3271474.
  • SQL lexer no longer treats ';' as terminating a comment. Bug #3196071.
  • Text drawing and measurement segmented into smaller runs to avoid platform bugs. Bug #3277449. Bug #3165743.
  • SciTE on Windows adds temp.files.sync.load property to open dropped temporary files synchronously as they may be removed before they can be opened asynchronously. Bug #3072009.
  • Bug fixed with indentation guides ignoring first line in SC_IV_LOOKBOTH mode. Bug #3291317.
  • Bugs fixed in backward regex search. Bug #3292659.
  • Bugs with display of folding structure fixed for wrapped lines and where there is a fold header but no body. Bug #3291579. Bug #3265401.
  • SciTE on Windows cursor changes to an arrow now when over horizontal splitter near top of window. Bug #3286620.
  • Fixed default widget size problem on GTK+. Bug #3267892.
  • Fixed font size when using Cairo on GTK+. Bug #3272662.
  • Fixed primary selection and cursor issues on GTK+ when unrealized then realized. Bug #3256153.
  • Right click now cancels selection on GTK+ like on Windows. Bug #3235190.
  • SciTE on GTK+ implements z-order buffer switching like on Windows. Bug #3228384.
  • Improve selection position after SciTE Insert Abbreviation command when abbreviation expansion includes '|'.

Release 2.25

  • Released 21 March 2011.
  • SparseState class makes it easier to write lexers which have to remember complex state between lines.
  • Visual Studio project (.dsp) files removed. The make files should be used instead as described in the README.
  • Modula 3 lexer added along with SciTE support. Feature #3173374.
  • Asm, Basic, and D lexers add extra folding properties.
  • Raw string literals for C++0x supported in C++ lexer.
  • Triple-quoted strings used in Vala language supported in C++ lexer. Feature #3177601.
  • The errorlist lexer used in SciTE's output pane colours lines that start with '<' as diff deletions. Feature #3172878.
  • The Fortran lexer correctly folds type-bound procedures from Fortran 2003.
  • LPeg lexer support‎ improved in SciTE.
  • SciTE on Windows-64 fixes for menu localisation and Lua scripts. Bug #3204502.
  • SciTE on Windows avoids locking folders when using the open or save dialogs. Bug #1795484.
  • Diff lexer fixes problem where diffs of diffs producing lines that start with "----". Bug #3197952.
  • Bug fixed when searching upwards in Chinese code page 936. Bug #3176271.
  • On Cocoa, translucent drawing performed as on other platforms instead of 2.5 times less translucent.
  • Performance issue and potential bug fixed on GTK+ with caret line for long lines.

Release 2.24

  • Released 3 February 2011.
  • Fixed memory leak in GTK+ Cairo code. Feature #3157655.
  • Insert Abbreviation dialog added to SciTE on GTK+.
  • SCN_UPDATEUI notifications received when window scrolled. An 'updated' bit mask indicates which types of update have occurred from SC_UPDATE_SELECTION, SC_UPDATE_CONTENT, SC_UPDATE_H_SCROLL or SC_UPDATE_V_SCROLL. Feature #3125977.
  • On Windows, to ensure reverse arrow cursor matches platform default, it is now generated by reflecting the platform arrow cursor. Feature #3143968.
  • Can choose mouse cursor used in margins. Feature #3161326.
  • On GTK+, SciTE sets a mime type of text/plain in its .desktop file so that it will appear in the shell context menu. Feature #3137126.
  • Bash folder handles here docs. Feature #3118223.
  • C++ folder adds fold.cpp.syntax.based, fold.cpp.comment.multiline, fold.cpp.explicit.start, fold.cpp.explicit.end, and fold.cpp.explicit.anywhere properties to allow more control over folding and choice of explicit fold markers.
  • C++ lexer fixed to always handle single quote strings continued past a line end. Bug #3150522.
  • Ruby folder handles here docs. Feature #3118224.
  • SQL lexer allows '.' to be part of words. Feature #3103129.
  • SQL folder handles case statements in more situations. Feature #3135027.
  • SQL folder adds fold points inside expressions based on bracket structure. Feature #3165488.
  • SQL folder drops fold.sql.exists property as 'exists' is handled automatically. Bug #3164194.
  • SciTE only forwards properties to lexers when they have been explicitly set so the defaults set by lexers are used rather than 0.
  • Mouse double click word selection chooses the word around the character under the mouse rather than the inter-character position under the mouse. This makes double clicking select what the user is pointing at and avoids selecting adjacent non-word characters. Bug #3111174.
  • Fixed mouse double click to always perform word select, not line select. Bug #3143635.
  • Right click cancels autocompletion. Bug #3144531.
  • Fixed multiPaste to work when additionalSelectionTyping off. Bug #3126221.
  • Fixed virtual space problems when text modified at caret. Bug #3154986.
  • Fixed memory leak in lexer object code. Bug #3133672.
  • Fixed SciTE on GTK+ search failure when using regular expression. Bug #3156217.
  • Avoid unnecessary full window redraw for SCI_GOTOPOS. Feature #3146650.
  • Avoid unnecessary redraw when indicator fill range makes no real change.

Release 2.23

  • Released 7 December 2010.
  • On GTK+ version 2.22 and later, drawing is performed with Cairo rather than GDK. This is in preparation for GTK+ 3.0 which will no longer support GDK drawing. The appearance of some elements will be different with Cairo as it is anti-aliased and uses sub-pixel positioning. Cairo may be turned on for GTK+ versions before 2.22 by defining USE_CAIRO although this has not been extensively tested.
  • New lexer a68k for Motorola 68000 assembler. Feature #3101598.
  • Borland C++ is no longer supported for building Scintilla or SciTE on Windows.
  • Performance improved when creating large rectangular selections.
  • PHP folder recognises #region and #endregion comments. Feature #3101624.
  • SQL lexer has a lexer.sql.numbersign.comment option to turn off use of '#' comments as these are a non-standard feature only available in some implementations. Feature #3098071.
  • SQL folder recognises case statements and understands the fold.at.else property. Bug #3104091. Bug #3107362.
  • SQL folder fixes bugs with end statements when fold.sql.only.begin=1. Bug #3104091.
  • SciTE on Windows bug fixed with multi-line tab bar not adjusting correctly when maximizing and demaximizing. Bug #3097517.
  • Crash fixed on GTK+ when Scintilla widget destroyed while it still has an outstanding style idle pending.
  • Bug fixed where searching backwards in DBCS text (code page 936 or similar) failed to find occurrences at the start of the line. Bug #3103936.
  • SciTE on Windows supports Unicode file names when executing help applications with winhelp and htmlhelp subsystems.

Release 2.22

  • Released 27 October 2010.
  • SciTE includes support for integrating with Scintillua which allows lexers to be implemented in Lua as a Parsing Expression Grammar (PEG).
  • Regular expressions allow use of '?' for non-greedy matches or to match 0 or 1 instances of an item.
  • SCI_CONTRACTEDFOLDNEXT added to allow rapid retrieval of folding state.
  • SCN_HOTSPOTRELEASECLICK notification added which is similar to SCN_HOTSPOTCLICK but occurs when the mouse is released. Feature #3082409.
  • Command added for centring current line in window. Feature #3064696.
  • SciTE performance improved by not examining document for line ends when switching buffers and not storing folds when folding turned off.
  • Bug fixed where scrolling to ensure the caret is visible did not take into account all pixels of the line. Bug #3081721.
  • Bug fixed for autocompletion list overlapping text when WS_EX_CLIENTEDGE used. Bug #3079778.
  • After autocompletion, the caret's X is updated. Bug #3079114.
  • On Windows, default to the system caret blink time. Feature #3079784.
  • PgUp/PgDn fixed to allow virtual space. Bug #3077452.
  • Crash fixed when AddMark and AddMarkSet called with negative argument. Bug #3075074.
  • Dwell notifications fixed so that they do not occur when the mouse is outside Scintilla. Bug #3073481.
  • Bash lexer bug fixed for here docs starting with <<-. Bug #3063822.
  • C++ lexer bug fixed for // comments that are continued onto a second line by a \. Bug #3066031.
  • C++ lexer fixes wrong highlighting for float literals containing +/-. Bug #3058924.
  • JavaScript lexer recognise regexes following return keyword.‎ Bug #3062287.
  • Ruby lexer handles % quoting better and treats range dots as operators in 1..2 and 1...2. Ruby folder handles "if" keyword used as a modifier even when it is separated from the modified statement by an escaped new line. Bug #2093767. Bug #3058496.
  • Bug fixed where upwards search failed with DBCS code pages. Bug #3065912.
  • SciTE has a default Lua startup script name distributed in SciTEGlobal.properties. No error message is displayed if this file does not exist.
  • SciTE on Windows tab control height is calculated better. Bug #2635702.
  • SciTE on Windows uses better themed check buttons in find and replace strips.
  • SciTE on Windows fixes bug with Find strip appearing along with Incremental Find strip.
  • SciTE setting find.close.on.find added to allow preventing the Find dialog from closing.
  • SciTE on Windows attempts to rerun commands that fail by prepending them with "cmd.exe /c". This allows commands built in to the command processor like "dir" to run.

Release 2.21

  • Released 1 September 2010.
  • Asian Double Byte Character Set (DBCS) support improved. Case insensitive search works and other operations are much faster. Bug #2999125, Bug #2774616, Bug #2991942, Bug #3005688.
  • Scintilla on GTK+ uses only non-deprecated APIs (for GTK+ 2.20) except for GdkFont and GdkFont use can be disabled with the preprocessor symbol DISABLE_GDK_FONT.
  • IDocument interface used by lexers adds BufferPointer and GetLineIndentation methods.
  • On Windows, clicking sets focus before processing the click or sending notifications.
  • Bug on OS X (macosx platform) fixed where drag/drop overwrote clipboard. Bug #3039732.
  • GTK+ drawing bug when the view was horizontally scrolled more than 32000 pixels fixed.
  • SciTE bug fixed with invoking Complete Symbol from output pane. Bug #3050957.
  • Bug fixed where it was not possible to disable folding. Bug #3040649.
  • Bug fixed with pressing Enter on a folded fold header line not opening the fold. Bug #3043419.
  • SciTE 'Match case' option in find and replace user interfaces changed to 'Case sensitive' to allow use of 'v' rather than 'c' as the mnemonic.
  • SciTE displays stack trace for Lua when error occurs.. Bug #3051397.
  • SciTE on Windows fixes bug where double clicking on error message left focus in output pane. Bug #1264835.
  • SciTE on Windows uses SetDllDirectory to avoid a security problem.
  • C++ lexer crash fixed with preprocessor expression that looked like division by 0. Bug #3056825.
  • Haskell lexer improved. Feature #3039490.
  • HTML lexing fixed around Django {% %} tags. Bug #3034853.
  • HTML JavaScript lexing fixed when line end escaped. Bug #3038381.
  • HTML lexer stores line state produced by a line on that line rather than on the next line.
  • Markdown lexer fixes infinite loop. Bug #3045386.
  • MySQL folding bugs with END statements fixed. Bug #3031742.
  • PowerShell lexer allows '_' as a word character. Feature #3042228.
  • SciTE on GTK+ abandons processing of subsequent commands if a command.go.needs command fails.
  • When SciTE is closed, all buffers now receive an OnClose call. Bug #3033857.

Release 2.20

  • Released 30 July 2010.
  • Lexers are implemented as objects so that they may retain extra state. The interfaces defined for this are tentative and may change before the next release. Compatibility classes allow current lexers compiled into Scintilla to run with few changes. The interface to external lexers has changed and existing external lexers will need to have changes made and be recompiled. A single lexer object is attached to a document whereas previously lexers were attached to views which could lead to different lexers being used for split views with confusing results.
  • C++ lexer understands the preprocessor enough to grey-out inactive code due to conditional compilation.
  • SciTE can use strips within the main window for find and replace rather than dialogs. On Windows SciTE always uses a strip for incremental search.
  • Lexer added for Txt2Tags language. Feature #3018736.
  • Sticky caret feature enhanced with additional SC_CARETSTICKY_WHITESPACE mode . Feature #3027559.
  • Bash lexer implements basic parsing of compound commands and constructs. Feature #3033135.
  • C++ folder allows disabling explicit fold comments.
  • Perl folder works for array blocks, adjacent package statements, nested PODs, and terminates package folding at __DATA__, ^D and ^Z. Feature #3030887.
  • PowerShell lexer supports multiline <# .. #> comments and adds 2 keyword classes. Feature #3015176.
  • Lexing performed incrementally when needed by wrapping to make user interface more responsive.
  • SciTE setting replaceselection:yes works on GTK+.
  • SciTE Lua scripts calling io.open or io.popen on Windows have arguments treated as UTF-8 and converted to Unicode so that non-ASCII file paths will work. Lua files with non-ASCII paths run. Bug #3016951.
  • Crash fixed when searching for empty string. Bug #3017572.
  • Bugs fixed with folding and lexing when Enter pressed at start of line. Bug #3032652.
  • Bug fixed with line selection mode not affecting selection range. Bug #3021480.
  • Bug fixed where indicator alpha was limited to 100 rather than 255. Bug #3021473.
  • Bug fixed where changing annotation did not cause automatic redraw.
  • Regular expression bug fixed when a character range included non-ASCII characters.
  • Compilation failure with recent compilers fixed on GTK+. Bug #3022027.
  • Bug fixed on Windows with multiple monitors where autocomplete pop up would appear off-screen or straddling monitors. Bug #3017512.
  • SciTE on Windows bug fixed where changing directory to a Unicode path failed. Bug #3011987.
  • SciTE on Windows bug fixed where combo boxes were not allowing Unicode characters. Bug #3012986.
  • SciTE on GTK+ bug fixed when dragging files into SciTE on KDE. Bug #3026555.
  • SciTE bug fixed where closing untitled file could lose data if attempt to name file same as another buffer. Bug #3011680.
  • COBOL number masks now correctly highlighted. Bug #3012164.
  • PHP comments can include <?PHP without triggering state change. Bug #2854183.
  • VHDL lexer styles unclosed string correctly. Bug #3029627.
  • Memory leak fixed in list boxes on GTK+. Bug #3007669.

Release 2.12

  • Released 1 June 2010.
  • Drawing optimizations improve speed and fix some visible flashing when scrolling.
  • Copy Path command added to File menu in SciTE. Feature #2986745.
  • Optional warning displayed by SciTE when saving a file which has been modified by another process. Feature #2975041.
  • Flagship lexer for xBase languages updated to follow the language much more closely. Feature #2992689.
  • HTML lexer highlights Django templates in more regions. Feature #3002874.
  • Dropping files on SciTE on Windows, releases the drag object earlier and opens the files asynchronously, leading to smoother user experience. Feature #2986724.
  • SciTE HTML exports take the Use Monospaced Font setting into account.
  • SciTE window title "[n of m]" localised.
  • When new line inserted at start of line, markers are moved down. Bug #2986727.
  • On Windows, dropped text has its line ends converted, similar to pasting. Bug #3005328.
  • Fixed bug with middle-click paste in block select mode where text was pasted next to selection rather than at cursor. Bug #2984460.
  • Fixed SciTE crash where a style had a size parameter without a value. Bug #3003834.
  • Debug assertions in multiple lexers fixed. Bug #3000566.
  • CSS lexer fixed bug where @font-face displayed incorrectly Bug #2994224.
  • CSS lexer fixed bug where open comment caused highlighting error. Bug #1683672.
  • Shell file lexer fixed highlight glitch with here docs where the first line is a comment. Bug #2830239.
  • Bug fixed in SciTE openpath property that caused Open Selected File to fail to open the selected file.
  • Bug fixed in SciTE FileExt property when file name with no extension evaluated to whole path.
  • Fixed SciTE on Windows printing bug where the $(CurrentTime), $(CurrentPage) variables were not expanded. Bug #2994612.
  • SciTE compiles for 64-bit Windows and runs without crashing. Bug #2986312.
  • Full Screen mode in Windows Vista/7 improved to hide Start button and size borders a little better. Bug #3002813.

Release 2.11

  • Released 9 April 2010.
  • Fixes compatibility of Scintilla.h with the C language.
  • With a rectangular selection SCI_GETSELECTIONSTART and SCI_GETSELECTIONEND return limits of the rectangular selection rather than the limits of the main selection.
  • When SciTE on Windows is minimized to tray, only takes a single click to restore rather than a double click. Feature #981917.

Release 2.10

  • Released 4 April 2010.
  • Version 1.x of GTK+ is no longer supported.
  • SciTE is no longer supported on Windows 95, 98 or ME.
  • Case-insensitive search works for non-ASCII characters in UTF-8 and 8-bit encodings. Non-regex search in DBCS encodings is always case-sensitive.
  • Non-ASCII characters may be changed to upper and lower case.
  • SciTE on Windows can access all files including those with names outside the user's preferred character encoding.
  • SciTE may be extended with lexers written in Lua.
  • When there are multiple selections, the paste command can go either to the main selection or to each selection. This is controlled with SCI_SETMULTIPASTE.
  • More forms of bad UTF-8 are detected including overlong sequences, surrogates, and characters outside the valid range. Bad UTF-8 bytes are now displayed as 2 hex digits preceded by 'x'.
  • SCI_GETTAG retrieves the value of captured expressions within regular expression searches.
  • Django template highlighting added to the HTML lexer. Feature #2974889.
  • Verilog line comments can be folded.
  • SciTE on Windows allows specifying a filter for the Save As dialog. Feature #2943445.
  • Bug fixed when multiple selection disabled where rectangular selections could be expanded into multiple selections. Bug #2948260.
  • Bug fixed when document horizontally scrolled and up/down-arrow did not return to the same column after horizontal scroll occurred. Bug #2950799.
  • Bug fixed to remove hotspot highlight when mouse is moved out of the document. Windows only fix. Bug #2951353.
  • R lexer now performs case-sensitive check for keywords. Bug #2956543.
  • Bug fixed on GTK+ where text disappeared when a wrap occurred. Bug #2958043.
  • Bug fixed where regular expression replace cannot escape the '\' character by using '\\'. Bug #2959876.
  • Bug fixed on GTK+ when virtual space disabled, middle-click could still paste text beyond end of line. Bug #2971618.
  • SciTE crash fixed when double clicking on a malformed error message in the output pane. Bug #2976551.
  • Improved performance on GTK+ when changing parameters associated with scroll bars to the same value. Bug #2964357.
  • Fixed bug with pressing Shift+Tab with a rectangular selection so that it performs an un-indent similar to how Tab performs an indent.

Release 2.03

  • Released 14 February 2010.
  • Added SCI_SETFIRSTVISIBLELINE to match SCI_GETFIRSTVISIBLELINE.
  • Erlang lexer extended set of numeric bases recognised; separate style for module:function_name; detects built-in functions, known module attributes, and known preprocessor instructions; recognises EDoc and EDoc macros; separates types of comments. Bug #2942448.
  • Python lexer extended with lexer.python.strings.over.newline option that allows non-triple-quoted strings to extend past line ends. This allows use of the Ren'Py language. Feature #2945550.
  • Fixed bugs with cursor movement after deleting a rectangular selection. Bug #2942131.
  • Fixed bug where calling SCI_SETSEL when there is a rectangular selection left the additional selections selected. Bug #2947064.
  • Fixed macro recording bug where not all bytes in multi-byte character insertions were reported through SCI_REPLACESEL.
  • Fixed SciTE bug where using Ctrl+Enter followed by Ctrl+Space produced an autocompletion list with only a single line containing all the identifiers.
  • Fixed SciTE on GTK+ bug where running a tool made the user interface completely unresponsive.
  • Fixed SciTE on Windows Copy to RTF bug. Bug #2108574.

Release 2.02

  • Released on 25 January 2010.
  • Markdown lexer added. Feature #2844081.
  • On GTK+, include code that understands the ranges of lead bytes for code pages 932, 936, and 950 so that most Chinese and Japanese text can be used on systems that are not set to the corresponding locale.
  • Allow changing the size of dots in visible whitespace using SCI_SETWHITESPACESIZE. Feature #2839427.
  • Additional carets can be hidden with SCI_SETADDITIONALCARETSVISIBLE.
  • Can choose anti-aliased, non-anti-aliased or lcd-optimized text using SCI_SETFONTQUALITY.
  • Retrieve the current selected text in the autocompletion list with SCI_AUTOCGETCURRENTTEXT.
  • Retrieve the name of the current lexer with SCI_GETLEXERLANGUAGE.
  • Progress 4GL lexer improves handling of comments in preprocessor declaration. Feature #2902206.
  • HTML lexer extended to handle Mako template language.
  • SQL folder extended for SQL Anywhere "EXISTS" and "ENDIF" keywords. Feature #2887524.
  • SciTE adds APIPath and AbbrevPath variables.
  • SciTE on GTK+ uses pipes instead of temporary files for running tools. This should be more secure.
  • Fixed crash when calling SCI_STYLEGETFONT for a style which does not have a font set. Bug #2857425.
  • Fixed crash caused by not having sufficient styles allocated after choosing a lexer. Bug #2881279.
  • Fixed crash in SciTE using autocomplete word when word characters includes space. Bug #2840141.
  • Fixed bug with handling upper-case file extensions SciTE on GTK+.
  • Fixed SciTE loading files from sessions with folded folds where it would not be scrolled to the correct location. Bug #2882775.
  • Fixed SciTE loading files from sessions when file no longer exists. Bug #2883437.
  • Fixed SciTE export to HTML using the wrong background colour.
  • Fixed crash when adding an annotation and then adding a new line after the annotation. Bug #2929708.
  • Fixed crash in SciTE setting a property to nil from Lua.
  • SCI_GETSELTEXT fixed to return correct length. Bug #2929441.
  • Fixed text positioning problems with selection in some circumstances.
  • Fixed text positioning problems with ligatures on GTK+.
  • Fixed problem pasting into rectangular selection with caret at bottom caused text to go from the caret down rather than replacing the selection.
  • Fixed problem replacing in a rectangular selection where only the final line was changed.
  • Fixed inability to select a rectangular area using Alt+Shift+Click at both corners. Bug #2899746.
  • Fixed problem moving to start/end of a rectangular selection with left/right key. Bug #2871358.
  • Fixed problem with Select All when there's a rectangular selection. Bug #2930488.
  • Fixed SCI_LINEDUPLICATE on a rectangular selection to not produce multiple discontinuous selections.
  • Virtual space removed when performing delete word left or delete line left. Virtual space converted to real space for delete word right. Preserve virtual space when pressing Delete key. Bug #2882566.
  • Fixed problem where Shift+Alt+Down did not move through wrapped lines. Bug #2871749.
  • Fixed incorrect background colour when using coloured lines with virtual space. Bug #2914691.
  • Fixed failure to display wrap symbol for SC_WRAPVISUALFLAGLOC_END_BY_TEXT. Bug #2936108.
  • Fixed blank background colour with EOLFilled style on last line. Bug #2890105.
  • Fixed problem in VB lexer with keyword at end of file. Bug #2901239.
  • Fixed SciTE bug where double clicking on a tab closed the file.
  • Fixed SciTE brace matching commands to only work when the caret is next to the brace, not when it is in virtual space. Bug #2885560.
  • Fixed SciTE on Windows Vista to access files in the Program Files directory rather than allow Windows to virtualize access. Bug #2916685.
  • Fixed NSIS folder to handle keywords that start with '!'. Bug #2872157.
  • Changed linkage of Scintilla_LinkLexers to "C" so that it can be used by clients written in C. Bug #2844718.

Release 2.01

  • Released on 19 August 2009.
  • Fix to positioning rectangular paste when viewing line ends.
  • Don't insert new lines and indentation for line ends at end of rectangular paste.
  • When not in additional selection typing mode, cutting a rectangular selection removes all of the selected text.
  • Rectangular selections are copied to the clipboard in document order, not in the order of selection.
  • SCI_SETCURRENTPOS and SCI_SETANCHOR work in rectangular mode.
  • On GTK+, drag and drop to a later position in the document now drops at the position.
  • Fix bug where missing property did not use default value.

Release 2.0

  • Released on 11 August 2009.
  • Multiple pieces of text can be selected simultaneously by holding control while dragging the mouse. Typing, backspace and delete may affect all selections together.
  • Virtual space allows selecting beyond the last character on a line.
  • SciTE on GTK+ path bar is now optional and defaults to off.
  • MagikSF lexer recognises numbers correctly.
  • Folding of Python comments and blank lines improved. Bug #210240.
  • Bug fixed where background colour of last character in document leaked past that character.
  • Crash fixed when adding marker beyond last line in document. Bug #2830307.
  • Resource leak fixed in SciTE for Windows when printing fails. Bug #2816524.
  • Bug fixed on Windows where the system caret was destroyed during destruction when another window was using the system caret. Bug #2830223.
  • Bug fixed where indentation guides were drawn over text when the indentation used a style with a different space width to the default style.
  • SciTE bug fixed where box comment added a bare line feed rather than the chosen line end. Bug #2818104.
  • Reverted fix that led to wrapping whole document when displaying the first line of the document.
  • Export to LaTeX in SciTE fixed to work in more cases and not use as much space. Bug #1286548.
  • Bug fixed where EN_CHANGE notification was sent when performing a paste operation in a read-only document. Bug #2825485.
  • Refactored code so that Scintilla exposes less of its internal implementation and uses the C++ standard library for some basic collections. Projects that linked to Scintilla's SString or PropSet classes should copy this code from a previous version of Scintilla or from SciTE.

Release 1.79

  • Released on 1 July 2009.
  • Memory exhaustion and other exceptions handled by placing an error value into the status property rather than crashing. Scintilla now builds with exception handling enabled and requires exception handling to be enabled.
    This is a major change and application developers should consider how they will deal with Scintilla exhausting memory since Scintilla may not be in a stable state.
  • Deprecated APIs removed. The symbols removed are:
    • SCI_SETCARETPOLICY
    • CARET_CENTER
    • CARET_XEVEN
    • CARET_XJUMPS
    • SC_FOLDFLAG_BOX
    • SC_FOLDLEVELBOXHEADERFLAG
    • SC_FOLDLEVELBOXFOOTERFLAG
    • SC_FOLDLEVELCONTRACTED
    • SC_FOLDLEVELUNINDENT
    • SCN_POSCHANGED
    • SCN_CHECKBRACE
    • SCLEX_ASP
    • SCLEX_PHP
  • Cocoa platform added.
  • Names of struct types in Scintilla.h now start with "Sci_" to avoid possible clashes with platform definitions. Currently, the old names still work but these will be phased out.
  • When lines are wrapped, subsequent lines may be indented to match the indent of the initial line, or one more indentation level. Feature #2796119.
  • APIs added for finding the character at a point rather than an inter-character position. Feature #2646738.
  • A new marker SC_MARK_BACKGROUND_UNDERLINE is drawn in the text area as an underline the full width of the window.
  • Batch file lexer understands variables surrounded by '!'.
  • CAML lexer also supports SML.
  • D lexer handles string and numeric literals more accurately. Feature #2793782.
  • Forth lexer is now case-insensitive and better supports numbers like $hex and %binary. Feature #2804894.
  • Lisp lexer treats '[', ']', '{', and '}' as balanced delimiters which is common usage. Feature #2794989.
    It treats keyword argument names as being equivalent to symbols. Feature #2794901.
  • Pascal lexer bug fixed to prevent hang when 'interface' near beginning of file. Bug #2802863.
  • Perl lexer bug fixed where previous lexical states persisted causing "/" special case styling and subroutine prototype styling to not be correct. Bug #2809168.
  • XML lexer fixes bug where Unicode entities like '&—' were broken into fragments. Bug #2804760.
  • SciTE on GTK+ enables scrolling the tab bar on recent versions of GTK+. Feature #2061821.
  • SciTE on Windows allows tab bar tabs to be reordered by drag and drop.
  • Unit test script for Scintilla on Windows included with source code.
  • User defined menu items are now localised when there is a matching translation.
  • Width of icon column of autocompletion lists on GTK+ made more consistent.
  • Bug with slicing UTF-8 text into character fragments when there is a sequence of 100 or more 3 byte characters. Bug #2780566.
  • Folding bugs introduced in 1.78 fixed. Some of the fix was generic and there was also a specific fix for C++.
  • Bug fixed where a rectangular paste was not padding the line with sufficient spaces to align the pasted text.
  • Bug fixed with showing all text on each line of multi-line annotations when styling the whole annotation using SCI_ANNOTATIONSETSTYLE. Bug #2789430.

Release 1.78

  • Released on 28 April 2009.
  • Annotation lines may be added to each line.
  • A text margin may be defined with different text on each line.
  • Application actions may be added to the undo history.
  • Can query the symbol defined for a marker. An available symbol added for applications to indicate that plugins may allocate a marker.
  • Can increase the amount of font ascent and descent.
  • COBOL lexer added. Feature #2127406.
  • Nimrod lexer added. Feature #2642620.
  • PowerPro lexer added. Feature #2195308.
  • SML lexer added. Feature #2710950.
  • SORCUS Installation file lexer added. Feature #2343375.
  • TACL lexer added. Feature #2127406.
  • TAL lexer added. Feature #2127406.
  • Rewritten Pascal lexer with improved folding and other fixes. Feature #2190650.
  • INDIC_ROUNDBOX translucency level can be modified. Feature #2586290.
  • C++ lexer treats angle brackets in #include directives as quotes when styling.within.preprocessor. Bug #2551033.
  • Inno Setup lexer is sensitive to whether within the [Code] section and handles comments better. Bug #2552973.
  • HTML lexer does not go into script mode when script tag is self-closing.
  • HTML folder fixed where confused by comments when fold.html.preprocessor off. Bug #2532774.
  • Perl lexer fixes problem with string matching caused by line endings. Bug #2648342.
  • Progress lexer fixes problem with "last-event:function" phrase. Bug #2483619.
  • Properties file lexer extended to handle RFC2822 text when lexer.props.allow.initial.spaces on.
  • Python lexer adds options for Python 3 and Cython.
  • Shell lexer fixes heredoc problem caused by line endings. Bug #2635257.
  • TeX lexer handles comment at end of line correctly. Bug #2698766.
  • SciTE retains selection range when performing a replace selection command. Feature #2339160.
  • SciTE definition of word characters fixed to match documentation. Bug #2464531.
  • SciTE on GTK+ performing Search or Replace when dialog already shown now brings dialog to foreground. Bug #2634224.
  • Fixed encoding bug with calltips on GTK+.
  • Block caret drawn in correct place on wrapped lines. Bug #2126144.
  • Compilation for 64 bit Windows works using MinGW. Bug #2515578.
  • Incorrect memory freeing fixed on OS X. Bug #2354098, Bug #2671749.
  • SciTE on GTK+ crash fixed on startup when child process exits before initialisation complete. Bug #2716987.
  • Crash fixed when AutoCompleteGetCurrent called with no active autocompletion.
  • Flickering diminished when pressing Tab. Bug #2723006.
  • Namespace compilation issues with GTK+ on OS X fixed.
  • Increased maximum length of SciTE's Language menu on GTK+ to 100 items. Bug #2528241.
  • Fixed incorrect Python lexing for multi-line continued strings. Bug #2450963.

Release 1.77

  • Released on 18 October 2008.
  • Direct temporary access to Scintilla's text buffer to allow simple efficient interfacing to libraries like regular expression libraries.
  • Scintilla on Windows can interpret keys as Unicode even when a narrow character window with SCI_SETKEYSUNICODE.
  • Notification sent when autocompletion cancelled.
  • MySQL lexer added.
  • Lexer for gettext .po files added.
  • Abaqus lexer handles program structure more correctly.
  • Assembler lexer works with non-ASCII text.
  • C++ lexer allows mixed case doc comment tags.
  • CSS lexer updated and works with non-ASCII.
  • Diff lexer adds style for changed lines, handles subversion diffs better and fixes styling and folding for lines containing chunk dividers ("---").
  • FORTRAN lexer accepts more styles of compiler directive.
  • Haskell lexer allows hexadecimal literals.
  • HTML lexer improves PHP and JavaScript folding. PHP heredocs, nowdocs, strings and comments processed more accurately. Internet Explorer's non-standard >comment< tag supported. Script recognition in XML can be controlled with lexer.xml.allow.scripts property.
  • Lua lexer styles last character correctly.
  • Perl lexer update.
  • Comment folding implemented for Ruby.
  • Better TeX folding.
  • Verilog lexer updated.
  • Windows Batch file lexer handles %~ and %*.
  • YAML lexer allows non-ASCII text.
  • SciTE on GTK+ implements "Replace in Buffers" in advanced mode.
  • The extender OnBeforeSave method can override the default file saving behaviour by retuning true.
  • Window position and recent files list may be saved into the session file.
  • Right button press outside the selection moves the caret.
  • SciTE load.on.activate works when closing a document reveals a changed document.
  • SciTE bug fixed where eol.mode not used for initial buffer.
  • SciTE bug fixed where a file could be saved as the same name as another buffer leading to confusing behaviour.
  • Fixed display bug for long lines in same style on Windows.
  • Fixed SciTE crash when finding matching preprocessor command used on some files.
  • Drawing performance improved for files with many blank lines.
  • Folding bugs fixed where changing program text produced a decrease in fold level on a fold header line.
  • Clearing document style now clears all indicators.
  • SciTE's embedded Lua updated to 5.1.4.
  • SciTE will compile with versions of GTK+ before 2.8 again.
  • SciTE on GTK+ bug fixed where multiple files not opened.
  • Bug fixed with SCI_VCHOMEWRAP and SCI_VCHOMEWRAPEXTEND on white last line.
  • Regular expression bug fixed where "^[^(]+$" matched empty lines.

Release 1.76

  • Released on 16 March 2008.
  • Support for PowerShell.
  • Lexer added for Magik.
  • Director extension working on GTK+.
  • Director extension may set focus to SciTE through "focus:" message on GTK+.
  • C++ folder handles final line better in some cases.
  • SCI_COPYALLOWLINE added which is similar to SCI_COPY except that if the selection is empty then the line holding the caret is copied. On Windows an extra clipboard format allows pasting this as a whole line before the current selection. This behaviour is compatible with Visual Studio.
  • On Windows, the horizontal scroll bar can handle wider files.
  • On Windows, a system palette leak was fixed. Should not affect many as palette mode is rarely used.
  • Install command on GTK+ no longer tries to set explicit owner.
  • Perl lexer handles defined-or operator "//".
  • Octave lexer fixes "!=" operator.
  • Optimized selection change drawing to not redraw as much when not needed.
  • SciTE on GTK+ no longer echoes Lua commands so is same as on Windows.
  • Automatic vertical scrolling limited to one line at a time so is not too fast.
  • Crash fixed when line states set beyond end of line states. This occurred when lexers did not set a line state for each line.
  • Crash in SciTE on Windows fixed when search for 513 character string fails.
  • SciTE disables translucent features on Windows 9x due to crashes reported when using translucency.
  • Bug fixed where whitespace background was not seen on wrapped lines.

Release 1.75

  • Released on 22 November 2007.
  • Some WordList and PropSet functionality moved from Scintilla to SciTE. Projects that link to Scintilla's code for these classes may need to copy code from SciTE.
  • Borland C++ can no longer build Scintilla.
  • Invalid bytes in UTF-8 mode are displayed as hex blobs. This also prevents crashes due to passing invalid UTF-8 to platform calls.
  • Indentation guides enhanced to be visible on completely empty lines when possible.
  • The horizontal scroll bar may grow to match the widest line displayed.
  • Allow autocomplete pop ups to appear outside client rectangle in some cases.
  • When line state changed, SC_MOD_CHANGELINESTATE modification notification sent and margin redrawn.
  • SciTE scripts can access the menu command values IDM_*.
  • SciTE's statement.end property has been implemented again.
  • SciTE shows paths and matches in different styles for Find In Files.
  • Incremental search in SciTE for Windows is modeless to make it easier to exit.
  • Folding performance improved.
  • SciTE for GTK+ now includes a Browse button in the Find In Files dialog.
  • On Windows versions that support Unicode well, Scintilla is a wide character window which allows input for some less common languages like Armenian, Devanagari, Tamil, and Georgian. To fully benefit, applications should use wide character calls.
  • Lua function names are exported from SciTE to allow some extension libraries to work.
  • Lexers added for Abaqus, Ansys APDL, Asymptote, and R.
  • SCI_DELWORDRIGHTEND added for closer compatibility with GTK+ entry widget.
  • The styling buffer may now use all 8 bits in each byte for lexical states with 0 bits for indicators.
  • Multiple characters may be set for SciTE's calltip.<lexer>.parameters.start property.
  • Bash lexer handles octal literals.
  • C++/JavaScript lexer recognises regex literals in more situations.
  • Haskell lexer fixed for quoted strings.
  • HTML/XML lexer does not notice XML indicator if there is non-whitespace between the "<?" and "XML". ASP problem fixed where </ is used inside a comment.
  • Error messages from Lua 5.1 are recognised.
  • Folding implemented for Metapost.
  • Perl lexer enhanced for handling minus-prefixed barewords, underscores in numeric literals and vector/version strings, ^D and ^Z similar to __END__, subroutine prototypes as a new lexical class, formats and format blocks as new lexical classes, and '/' suffixed keywords and barewords.
  • Python lexer styles all of a decorator in the decorator style rather than just the name.
  • YAML lexer styles colons as operators.
  • Fixed SciTE bug where undo would group together multiple separate modifications.
  • Bug fixed where setting background colour of calltip failed.
  • SciTE allows wildcard suffixes for file pattern based properties.
  • SciTE on GTK+ bug fixed where user not prompted to save untitled buffer.
  • SciTE bug fixed where property values from one file were not seen by lower priority files.
  • Bug fixed when showing selection with a foreground colour change which highlighted an incorrect range in some positions.
  • Cut now invokes SCN_MODIFYATTEMPTRO notification.
  • Bug fixed where caret not shown at beginning of wrapped lines. Caret made visible in some cases after wrapping and scroll bar updated after wrapping.
  • Modern indicators now work on wrapped lines.
  • Some crashes fixed for 64-bit GTK+.
  • On GTK+ clipboard features improved for VMWare tools copy and paste. SciTE exports the clipboard more consistently on shut down.

Release 1.74

  • Released on 18 June 2007.
  • OS X support.
  • Indicators changed to be a separate data structure allowing more indicators. Storing indicators in high bits of styling bytes is deprecated and will be removed in the next version.
  • Unicode support extended to all Unicode characters not just the Basic Multilingual Plane.
  • Performance improved on wide lines by breaking long runs in a single style into shorter segments.
  • Performance improved by caching layout of short text segments.
  • SciTE includes Lua 5.1.
  • Caret may be displayed as a block.
  • Lexer added for GAP.
  • Lexer added for PL/M.
  • Lexer added for Progress.
  • SciTE session files have changed format to be like other SciTE .properties files and now use the extension .session. Bookmarks and folds may optionally be saved in session files. Session files created with previous versions of SciTE will not load into this version.
  • SciTE's extension and scripting interfaces add OnKey, OnDwellStart, and OnClose methods.
  • On GTK+, copying to the clipboard does not include the text/urilist type since this caused problems when pasting into Open Office.
  • On GTK+, Scintilla defaults caret blink rate to platform preference.
  • Dragging does not start until the mouse has been dragged a certain amount. This stops spurious drags when just clicking inside the selection.
  • Bug fixed where brace highlight not shown when caret line background set.
  • Bug fixed in Ruby lexer where out of bounds access could occur.
  • Bug fixed in XML folding where tags were not being folded because they are singletons in HTML.
  • Bug fixed when many font names used.
  • Layout bug fixed on GTK+ where fonts have ligatures available.
  • Bug fixed with SCI_LINETRANSPOSE on a blank line.
  • SciTE hang fixed when using UNC path with directory properties feature.
  • Bug on Windows fixed by examining dropped text for Unicode even in non-Unicode mode so it can work when source only provides Unicode or when using an encoding different from the system default.
  • SciTE bug on GTK+ fixed where Stop Executing did not work when more than a single process started.
  • SciTE bug on GTK+ fixed where mouse wheel was not switching between buffers.
  • Minor line end fix to PostScript lexer.

Release 1.73

  • Released on 31 March 2007.
  • SciTE adds a Directory properties file to configure behaviour for files in a directory and its subdirectories.
  • Style changes may be made during text modification events.
  • Regular expressions recognise \d, \D, \s, \S, \w, \W, and \xHH.
  • Support for cmake language added.
  • More Scintilla properties can be queried.
  • Edge line drawn under text.
  • A savesession command added to SciTE director interface.
  • SciTE File | Encoding menu item names changed to be less confusing.
  • SciTE on GTK+ dialog buttons reordered to follow guidelines.
  • SciTE on GTK+ removed GTK+ 1.x compatible file dialog code.
  • SciTE on GTK+ recognises key names KeypadMultiply and KeypadDivide.
  • Background colour of line wrapping visual flag changed to STYLE_DEFAULT.
  • Makefile lexing enhanced for ':=' operator and when lines start with tab.
  • TADS3 lexer and folder improved.
  • SCN_DOUBLECLICK notification may set SCI_SHIFT, SCI_CTRL, and SCI_ALT flags on modifiers field.
  • Slow folding of large constructs in Python fixed.
  • MSSQL folding fixed to be case-insensitive and fold at more keywords.
  • SciTE's brace matching works better for HTML.
  • Determining API list items checks for specified parameters start character before default '('.
  • Hang fixed in HTML lexer.
  • Bug fixed in with LineTranspose command where markers could move to different line.
  • Memory released when buffer completely emptied.
  • If translucency not available on Windows, draw rectangular outline instead.
  • Bash lexer handles "-x" in "--x-includes..." better.
  • AutoIt3 lexer fixes string followed by '+'.
  • LinesJoin fixed where it stopped early due to not adjusting for inserted spaces..
  • StutteredPageDown fixed when lines wrapped.
  • FormatRange fixed to not double count line number width which could lead to a large space.
  • SciTE Export As PDF and Latex commands fixed to format floating point numbers with '.' even in locales that use ','.
  • SciTE bug fixed where File | New could produce buffer with contents of previous file when using read-only mode.
  • SciTE retains current scroll position when switching buffers and fold.on.open set.
  • SciTE crash fixed where '*' used to invoke parameters dialog.
  • SciTE bugs when writing large UCS-2 files fixed.
  • Bug fixed when scrolling inside a SCN_PAINTED event by invalidating window rather than trying to perform synchronous painting.
  • SciTE for GTK+ View | Full Screen works on recent versions of GTK+.
  • SciTE for Windows enables and disables toolbar commands correctly.

Release 1.72

  • Released on 15 January 2007.
  • Performance of per-line data improved.
  • SC_STARTACTION flag set on the first modification notification in an undo transaction to help synchronize the container's undo stack with Scintilla's.
  • On GTK+ drag and drop defaults to move rather than copy.
  • Scintilla supports extending appearance of selection to right hand margin.
  • Incremental search available on GTK+.
  • SciTE Indentation Settings dialog available on GTK+ and adds a "Convert" button.
  • Find in Files can optionally ignore binary files or directories that start with ".".
  • Lexer added for "D" language.
  • Export as HTML shows folding with underline lines and +/- symbols.
  • Ruby lexer interprets interpolated strings as expressions.
  • Lua lexer fixes some cases of numeric literals.
  • C++ folder fixes bug with "@" in doc comments.
  • NSIS folder handles !if and related commands.
  • Inno setup lexer adds styling for single and double quoted strings.
  • Matlab lexer handles backslashes in string literals correctly.
  • HTML lexer fixed to allow "?>" in comments in Basic script.
  • Added key codes for Windows key and Menu key.
  • Lua script method scite.MenuCommand(x) performs a menu command.
  • SciTE bug fixed with box comment command near start of file setting selection to end of file.
  • SciTE on GTK+, fixed loop that occurred with automatic loading for an unreadable file.
  • SciTE asks whether to save files when Windows shuts down.
  • Save Session on Windows now defaults the extension to "ses".
  • Bug fixed with single character keywords.
  • Fixed infinite loop for SCI_GETCOLUMN for position beyond end of document.
  • Fixed failure to accept typing on Solaris/GTK+ when using default ISO-8859-1 encoding.
  • Fixed warning from Lua in SciTE when creating a new buffer when already have maximum number of buffers open.
  • Crash fixed with "%%" at end of batch file.

Release 1.71

  • Released on 21 August 2006.
  • Double click notification includes line and position.
  • VB lexer bugs fixed for preprocessor directive below a comment or some other states and to use string not closed style back to the starting quote when there are internal doubled quotes.
  • C++ lexer allows identifiers to contain '$' and non-ASCII characters such as UTF-8. The '$' character can be disallowed with lexer.cpp.allow.dollars=0.
  • Perl lexer allows UTF-8 identifiers and has some other small improvements.
  • SciTE's $(CurrentWord) uses word.characters.<filepattern> to define the word rather than a hardcoded list of word characters.
  • SciTE Export as HTML adds encoding information for UTF-8 file and fixes DOCTYPE.
  • SciTE session and .recent files default to the user properties directory rather than global properties directory.
  • Left and right scroll events handled correctly on GTK+ and horizontal scroll bar has more sensible distances for page and arrow clicks.
  • SciTE on GTK+ tab bar fixed to work on recent versions of GTK+.
  • On GTK+, if the approximate character set conversion is unavailable, a second attempt is made without approximations. This may allow keyboard input and paste to work on older systems.
  • SciTE on GTK+ can redefine the Insert key.
  • SciTE scripting interface bug fixed where some string properties could not be changed.

Release 1.70

  • Released on 20 June 2006.
  • On GTK+, character set conversion is performed using an option that allows approximate conversions rather than failures when a character can not be converted. This may lead to similar characters being inserted or when no similar character is available a '?' may be inserted.
  • On GTK+, the internationalised IM (Input Method) feature is used for all typed input for all character sets.
  • Scintilla has new margin types SC_MARGIN_BACK and SC_MARGIN_FORE that use the default style's background and foreground colours (normally white and black) as the background to the margin.
  • Scintilla/GTK+ allows file drops on Windows when drop is of type DROPFILES_DND as well as text/uri-list.
  • Code page can only be set to one of the listed valid values.
  • Text wrapping fixed for cases where insertion was not wide enough to trigger wrapping before being styled but was after styling.
  • SciTE find marks are removed before printing or exporting to avoid producing incorrect styles.

Release 1.69

  • Released on 29 May 2006.
  • SciTE supports z-order based buffer switching on Ctrl+Tab.
  • Translucent support for selection and whole line markers.
  • SciTE may have per-language abbreviations files.
  • Support for Spice language.
  • On GTK+ autocompletion lists are optimised and use correct selection colours.
  • On GTK+ the URI data type is preferred in drag and drop so that applications will see files dragged from the shell rather than dragging the text of the file name into the document.
  • Increased number of margins to 5.
  • Basic lexer allows include directive $include: "file name".
  • SQL lexer no longer bases folding on indentation.
  • Line ends are transformed when copied to clipboard on Windows/GTK+2 as well as Windows/GTK+ 1.
  • Lexing code masks off the indicator bits on the start style before calling the lexer to avoid confusing the lexer when an application has used an indicator.
  • SciTE savebefore:yes only saves the file when it has been changed.
  • SciTE adds output.initial.hide setting to allow setting the size of the output pane without it showing initially.
  • SciTE on Windows Go To dialog allows line number with more digits.
  • Bug in HTML lexer fixed where a segment of PHP could switch scripting language based on earlier text on that line.
  • Memory bug fixed when freeing regions on GTK+. Other minor bugs fixed on GTK+.
  • Deprecated GTK+ calls in Scintilla replaced with current calls.
  • Fixed a SciTE bug where closing the final buffer, if read-only, left the text present in an untitled buffer.
  • Bug fixed in bash lexer that prevented folding.
  • Crash fixed in bash lexer when backslash at end of file.
  • Crash on recent releases of GTK+ 2.x avoided by changing default font from X core font to Pango font "!Sans".
  • Fix for SciTE properties files where multiline properties continued over completely blank lines.
  • Bug fixed in SciTE/GTK+ director interface where more data available than buffer size.
  • Minor visual fixes to SciTE splitter on GTK+.

Release 1.68

  • Released on 9 March 2006.
  • Translucent drawing implemented for caret line and box indicators.
  • Lexer specifically for TCL is much more accurate than reusing C++ lexer.
  • Support for Inno Setup scripts.
  • Support for Opal language.
  • Calltips may use a new style, STYLE_CALLTIP which allows choosing a different font for calltips.
  • Python lexer styles comments on decorators.
  • HTML lexer refined handling of "?>" and "%>" within server side scripts.
  • Batch file lexer improved.
  • Eiffel lexer doesn't treat '.' as a name character.
  • Lua lexer handles length operator, #, and hex literals.
  • Properties file lexer has separate style for keys.
  • PL/SQL folding improved.
  • SciTE Replace dialog always searches in forwards direction.
  • SciTE can detect language of file from initial #! line.
  • SciTE on GTK+ supports output.scroll=2 setting.
  • SciTE can perform an import a properties file from the command line.
  • Set of word characters used for regular expression \< and \>.
  • Bug fixed with SCI_COPYTEXT stopping too early.
  • Bug fixed with splitting lines so that all lines are split.
  • SciTE calls OnSwitchFile when closing one buffer causes a switch to another.
  • SciTE bug fixed where properties were being reevaluated without good reason after running a macro.
  • Crash fixed when clearing document with some lines contracted in word wrap mode.
  • Palette expands as more entries are needed.
  • SCI_POSITIONFROMPOINT returns more reasonable value when close to last text on a line.
  • On Windows, long pieces of text may be drawn in segments if they fail to draw as a whole.
  • Bug fixed with bad drawing when some visual changes made inside SCN_UPDATEUI notification.
  • SciTE bug fixed with groupundo setting.

Release 1.67

  • Released on 17 December 2005.
  • Scintilla checks the paint region more accurately when seeing if an area is being repainted. Platform layer implementations may need to change for this to take effect. This fixes some drawing and styling bugs. Also optimized some parts of marker code to only redraw the line of the marker rather than whole of the margin.
  • Quoted identifier style for SQL. SQL folding performed more simply.
  • Ruby lexer improved to better handle here documents and non-ASCII characters.
  • Lua lexer supports long string and block comment syntax from Lua 5.1.
  • Bash lexer handles here documents better.
  • JavaScript lexing recognises regular expressions more accurately and includes flag characters in the regular expression style. This is both in JavaScript files and when JavaScript is embedded in HTML.
  • Scintilla API provided to reveal how many style bits are needed for the current lexer.
  • Selection duplicate added.
  • Scintilla API for adding a set of markers to a line.
  • DBCS encodings work on Windows 9x.
  • Convention defined for property names to be used by lexers and folders so they can be automatically discovered and forwarded from containers.
  • Default bookmark in SciTE changed to a blue sphere image.
  • SciTE stores the time of last asking for a save separately for each buffer which fixes bugs with automatic reloading.
  • On Windows, pasted text has line ends converted to current preference. GTK+ already did this.
  • Kid template language better handled by HTML lexer by finishing ASP Python mode when a ?> is found.
  • SciTE counts number of characters in a rectangular selection correctly.
  • 64-bit compatibility improved. One change that may affect user code is that the notification message header changed to include a pointer-sized id field to match the current Windows definition.
  • Empty ranges can no longer be dragged.
  • Crash fixed when calls made that use layout inside the painted notification.
  • Bug fixed where Scintilla created pixmap buffers that were too large leading to failures when many instances used.
  • SciTE sets the directory of a new file to the directory of the currently active file.
  • SciTE allows choosing a code page for the output pane.
  • SciTE HTML exporter no longer honours monospaced font setting.
  • Line layout cache in page mode caches the line of the caret. An assertion is now used to ensure that the layout reentrancy problem that caused this is easier to find.
  • Speed optimized for long lines and lines containing many control characters.
  • Bug fixed in brace matching in DBCS files where byte inside character is same as brace.
  • Indent command does not indent empty lines.
  • SciTE bug fixed for commands that operate on files with empty extensions.
  • SciTE bug fixed where monospaced option was copied for subsequently opened files.
  • SciTE on Windows bug fixed in the display of a non-ASCII search string which can not be found.
  • Bugs fixed with nested calls displaying a new calltip while one is already displayed.
  • Bug fixed when styling PHP strings.
  • Bug fixed when styling C++ continued preprocessor lines.
  • SciTE bug fixed where opening file from recently used list reset choice of language.
  • SciTE bug fixed when compiled with NO_EXTENSIONS and closing one file closes the application.
  • SciTE crash fixed for error messages that look like Lua messages but aren't in the same order.
  • Remaining fold box support deprecated. The symbols SC_FOLDLEVELBOXHEADERFLAG, SC_FOLDLEVELBOXFOOTERFLAG, SC_FOLDLEVELCONTRACTED, SC_FOLDLEVELUNINDENT, and SC_FOLDFLAG_BOX are deprecated.

Release 1.66

  • Released on 26 August 2005.
  • New, more ambitious Ruby lexer.
  • SciTE Find in Files dialog has options for matching case and whole words which are enabled when the internal find command is used.
  • SciTE output pane can display automatic completion after "$(" typed. An initial ">" on a line is ignored when Enter pressed.
  • C++ lexer recognises keywords within line doc comments. It continues styles over line end characters more consistently so that eolfilled style can be used for preprocessor lines and line comments.
  • VB lexer improves handling of file numbers and date literals.
  • Lua folder handles repeat until, nested comments and nested strings.
  • POV lexer improves handling of comment lines.
  • AU3 lexer and folder updated. COMOBJ style added.
  • Bug fixed with text display on GTK+ with Pango 1.8.
  • Caret painting avoided when not focused.
  • SciTE on GTK+ handles file names used to reference properties as case-sensitive.
  • SciTE on GTK+ Save As and Export commands set the file name field. On GTK+ the Export commands modify the file name in the same way as on Windows.
  • Fixed SciTE problem where confirmation was not displaying when closing a file where all contents had been deleted.
  • Middle click on SciTE tab now closes correct buffer on Windows when tool bar is visible.
  • SciTE bugs fixed where files contained in directory that includes '.' character.
  • SciTE bug fixed where import in user options was reading file from directory of global options.
  • SciTE calltip bug fixed where single line calltips had arrow displayed incorrectly.
  • SciTE folding bug fixed where empty lines were shown for no reason.
  • Bug fixed where 2 byte per pixel XPM images caused crash although they are still not displayed.
  • Autocompletion list size tweaked.

Release 1.65

  • Released on 1 August 2005.
  • FreeBasic support.
  • SciTE on Windows handles command line arguments "-" (read standard input into buffer), "--" (read standard input into output pane) and "-@" (read file names from standard input and open each).
  • SciTE includes a simple implementation of Find in Files which is used if no find.command is set.
  • SciTE can close tabs with a mouse middle click.
  • SciTE includes a save.all.for.build setting.
  • Folder for MSSQL.
  • Batch file lexer understands more of the syntax and the behaviour of built in commands.
  • Perl lexer handles here docs better; disambiguates barewords, quote-like delimiters, and repetition operators; handles Pods after __END__; recognises numbers better; and handles some typeglob special variables.
  • Lisp adds more lexical states.
  • PHP allows spaces after <<<.
  • TADS3 has a simpler set of states and recognises identifiers.
  • Avenue elseif folds better.
  • Errorlist lexer treats lines starting with '+++' and '---' as separate styles from '+' and '-' as they indicate file names in diffs.
  • SciTE error recogniser handles file paths in extra explanatory lines from MSVC and in '+++' and '---' lines from diff.
  • Bugs fixed in SciTE and Scintilla folding behaviour when text pasted before folded text caused unnecessary unfolding and cutting text could lead to text being irretrievably hidden.
  • SciTE on Windows uses correct font for dialogs and better font for tab bar allowing better localisation
  • When Windows is used with a secondary monitor before the primary monitor, autocompletion lists are not forced onto the primary monitor.
  • Scintilla calltip bug fixed where down arrow setting wrong value in notification if not in first line. SciTE bug fixed where second arrow only shown on multiple line calltip and was therefore misinterpreting the notification value.
  • Lexers will no longer be re-entered recursively during, for example, fold level setting.
  • Undo of typing in overwrite mode undoes one character at a time rather than requiring a removal and addition step for each character.
  • EM_EXSETSEL(0,-1) fixed.
  • Bug fixed where part of a rectangular selection was not shown as selected.
  • Autocomplete window size fixed.

Release 1.64

  • Released on 6 June 2005.
  • TADS3 support
  • Smalltalk support.
  • Rebol support.
  • Flagship (Clipper / XBase) support.
  • CSound support.
  • SQL enhanced to support SQL*Plus.
  • SC_MARK_FULLRECT margin marker fills the whole marker margin for marked lines with a colour.
  • Performance improved for some large undo and redo operations and modification flags added in notifications.
  • SciTE adds command equivalents for fold margin mouse actions.
  • SciTE adds OnUpdateUI to set of events that can be handled by a Lua script.
  • Properties set in Scintilla can be read.
  • GTK+ SciTE exit confirmation adds Cancel button.
  • More accurate lexing of numbers in PHP and Caml.
  • Perl can fold POD and package sections. POD verbatim section style. Globbing syntax recognised better.
  • Context menu moved slightly on GTK+ so that it will be under the mouse and will stay open if just clicked rather than held.
  • Rectangular selection paste works the same whichever direction the selection was dragged in.
  • EncodedFromUTF8 handles -1 length argument as documented.
  • Undo and redo can cause SCN_MODIFYATTEMPTRO notifications.
  • Indicators display correctly when they start at the second character on a line.
  • SciTE Export As HTML uses standards compliant CSS.
  • SciTE automatic indentation handles keywords for indentation better.
  • SciTE fold.comment.python property removed as does not work.
  • Fixed problem with character set conversion when pasting on GTK+.
  • SciTE default character set changed from ANSI_CHARSET to DEFAULT_CHARSET.
  • Fixed crash when creating empty autocompletion list.
  • Autocomplete window size made larger under some conditions to make truncation less common.
  • Bug fixed where changing case of a selection did not affect initial character of lines in multi-byte encodings.
  • Bug fixed where rectangular selection not displayed after Alt+Shift+Click.

Release 1.63

  • Released on 4 April 2005.
  • Autocompletion on Windows changed to use pop up window, be faster, allow choice of maximum width and height, and to highlight only the text of the selected item rather than both the text and icon if any.
  • Extra items can be added to the context menu in SciTE.
  • Character wrap mode in Scintilla helps East Asian languages.
  • Lexer added for Haskell.
  • Objective Caml support.
  • BlitzBasic and PureBasic support.
  • CSS support updated to handle CSS2.
  • C++ lexer is more selective about document comment keywords.
  • AutoIt 3 lexer improved.
  • Lua lexer styles end of line characters on comment and preprocessor lines so that the eolfilled style can be applied to them.
  • NSIS support updated for line continuations, box comments, SectionGroup and PageEx, and with more up-to-date properties.
  • Clarion lexer updated to perform folding and have more styles.
  • SQL lexer gains second set of keywords.
  • Errorlist lexer recognises Borland Delphi error messages.
  • Method added for determining number of visual lines occupied by a document line due to wrapping.
  • Sticky caret mode does not modify the preferred caret x position when typing and may be useful for typing columns of text.
  • Dwell end notification sent when scroll occurs.
  • On GTK+, Scintilla requisition height is screen height rather than large fixed value.
  • Case insensitive autocompletion prefers exact case match.
  • SCI_PARADOWN and SCI_PARAUP treat lines containing only white space as empty and handle text hidden by folding.
  • Scintilla on Windows supports WM_PRINTCLIENT although there are some limitations.
  • SCN_AUTOCSELECTION notification sent when user selects from autoselection list.
  • SciTE's standard properties file sets buffers to 10, uses Pango fonts on GTK+ and has dropped several languages to make the menu fit on screen.
  • SciTE's encoding cookie detection loosened so that common XML files will load in UTF-8 if that is their declared encoding.
  • SciTE on GTK+ changes menus and toolbars to not be detachable unless turned on with a property. Menus no longer tear off. The toolbar may be set to use the default theme icons rather than SciTE's set. Changed key for View | End of Line because of a conflict. Language menu can contain more items.
  • SciTE on GTK+ 2.x allows the height and width of the file open file chooser to be set, for the show hidden files check box to be set from an option and for it to be opened in the directory of the current file explicitly. Enter key works in save chooser.
  • Scintilla lexers should no longer see bits in style bytes that are outside the set they modify so should be able to correctly lex documents where the container has used indicators.
  • SciTE no longer asks to save before performing a revert.
  • SciTE director interface adds a reloadproperties command to reload properties from files.
  • Allow build on CYGWIN platform.
  • Allow use from LccWin compiler.
  • SCI_COLOURISE for SCLEX_CONTAINER causes a SCN_STYLENEEDED notification.
  • Bugs fixed in lexing of HTML/ASP/JScript.
  • Fix for folding becoming confused.
  • On Windows, fixes for Japanese Input Method Editor and for 8 bit Katakana characters.
  • Fixed buffer size bug avoided when typing long words by making buffer bigger.
  • Undo after automatic indentation more sensible.
  • SciTE menus on GTK+ uses Shift and Ctrl rather than old style abbreviations.
  • SciTE full screen mode on Windows calculates size more correctly.
  • SciTE on Windows menus work better with skinning applications.
  • Searching bugs fixed.
  • Colours reallocated when changing image using SCI_REGISTERIMAGE.
  • Caret stays visible when Enter held down.
  • Undo of automatic indentation more reasonable.
  • High processor usage fixed in background wrapping under some circumstances.
  • Crashing bug fixed on AMD64.
  • SciTE crashing bug fixed when position.height or position.width not set.
  • Crashing bug on GTK+ fixed when setting cursor and window is NULL.
  • Crashing bug on GTK+ preedit window fixed.
  • SciTE crashing bug fixed in incremental search on Windows ME.
  • SciTE on Windows has a optional find and replace dialogs that can search through all buffers and search within a particular style number.

Release 1.62

  • Released on 31 October 2004.
  • Lexer added for ASN.1.
  • Lexer added for VHDL.
  • On Windows, an invisible system caret is used to allow screen readers to determine where the caret is. The visible caret is still drawn by the painting code.
  • On GTK+, Scintilla has methods to read the target as UTF-8 and to convert a string from UTF-8 to the document encoding. This eases integration with containers that use the UTF-8 encoding which is the API encoding for GTK+ 2.
  • SciTE on GTK+2 and Windows NT/2000/XP allows search and replace of Unicode text.
  • SciTE calltips allow setting the characters used to start and end parameter lists and to separate parameters.
  • FindColumn method converts a line and column into a position, taking into account tabs and multi-byte characters.
  • On Windows, when Scintilla copies text to the clipboard as Unicode, it avoids adding an ANSI copy as the system will automatically convert as required in a context-sensitive manner.
  • SciTE indent.auto setting automatically determines indent.size and use.tabs from document contents.
  • SciTE defines a CurrentMessage property that holds the most recently selected output pane message.
  • SciTE Lua scripting enhanced with
    • A Lua table called 'buffer' is associated with each buffer and can be used to maintain buffer-specific state.
    • A 'scite' object allows interaction with the application such as opening files from script.
    • Dynamic properties can be reset by assigning nil to a given key in the props table.
    • An 'OnClear' event fires whenever properties and extension scripts are about to be reloaded.
    • On Windows, loadlib is enabled and can be used to access Lua binary modules / DLLs.
  • SciTE Find in Files on Windows can be used in a modeless way and gains a '..' button to move up to the parent directory. It is also wider so that longer paths can be seen.
  • Close buttons added to dialogs in SciTE on Windows.
  • SciTE on GTK+ 2 has a "hidden files" check box in file open dialog.
  • SciTE use.monospaced setting removed. More information in the FAQ.
  • APDL lexer updated with more lexical classes
  • AutoIt3 lexer updated.
  • Ada lexer fixed to support non-ASCII text.
  • Cpp lexer now only matches exactly three slashes as starting a doc-comment so that lines of slashes are seen as a normal comment. Line ending characters are appear in default style on preprocessor and single line comment lines.
  • CSS lexer updated to support CSS2 including second set of keywords.
  • Errorlist lexer now understands Java stack trace lines.
  • SciTE's handling of HTML Tidy messages jumps to column as well as line indicated.
  • Lisp lexer allows multiline strings.
  • Lua lexer treats .. as an operator when between identifiers.
  • PHP lexer handles 'e' in numerical literals.
  • PowerBasic lexer updated for macros and optimised.
  • Properties file folder changed to leave lines before a header at the base level and thus avoid a vertical line when using connected folding symbols.
  • GTK+ on Windows version uses Alt for rectangular selection to be compatible with platform convention.
  • SciTE abbreviations file moved from system directory to user directory so each user can have separate abbreviations.
  • SciTE on GTK+ has improved .desktop file and make install support that may lead to better integration with system shell.
  • Disabling of themed background drawing on GTK+ extended to all cases.
  • SciTE date formatting on Windows performed with the user setting rather than the system setting.
  • GTK+ 2 redraw while scrolling fixed.
  • Recursive property definitions are safer, avoiding expansion when detected.
  • SciTE thread synchronization for scripts no longer uses HWND_MESSAGE so is compatible with older versions of Windows. Other Lua scripting bugs fixed.
  • SciTE on Windows localisation of menu accelerators changed to be compatible with alternative UI themes.
  • SciTE on Windows full screen mode now fits better when menu different height to title bar height.
  • SC_MARK_EMPTY marker is now invisible and does not change the background colour.
  • Bug fixed in HTML lexer to allow use of <?xml in strings in scripts without triggering xml mode.
  • Bug fixed in SciTE abbreviation expansion that could break indentation or crash.
  • Bug fixed when searching for a whole word string that ends one character before end of document.
  • Drawing bug fixed when indicators drawn on wrapped lines.
  • Bug fixed when double clicking a hotspot.
  • Bug fixed where autocompletion would remove typed text if no match found.
  • Bug fixed where display does not scroll when inserting in long wrapped line.
  • Bug fixed where SCI_MARKERDELETEALL would only remove one of the markers on a line that contained multiple markers with the same number.
  • Bug fixed where markers would move when converting line endings.
  • Bug fixed where SCI_LINEENDWRAP would move too far when line ends are visible.
  • Bugs fixed where calltips with unicode or other non-ASCII text would display incorrectly.
  • Bug fixed in determining if at save point after undoing from save point and then performing changes.
  • Bug fixed on GTK+ using unsupported code pages where extraneous text could be drawn.
  • Bug fixed in drag and drop code on Windows where dragging from SciTE to Firefox could hang both applications.
  • Crashing bug fixed on GTK+ when no font allocation succeeds.
  • Crashing bug fixed when autocompleting word longer than 1000 characters.
  • SciTE crashing bug fixed when both Find and Replace dialogs shown by disallowing this situation.

Release 1.61

  • Released on 29 May 2004.
  • Improvements to selection handling on GTK+.
  • SciTE on GTK+ 2.4 uses the improved file chooser which allows file extension filters, multiple selection, and remembers favourite directories.
  • SciTE Load Session and Save Session commands available on GTK+.
  • SciTE lists Lua Startup Script in Options menu when loaded.
  • In SciTE, OnUserListSelection can be implemented in Lua.
  • SciTE on Windows has a context menu on the file tabs.
  • SQL lexer allows '#' comments and optionally '\' quoting inside strings.
  • Mssql lexer improved.
  • AutoIt3 lexer updated.
  • Perl lexer recognises regular expression use better.
  • Errorlist lexer understands Lua tracebacks and copes with findstr output for file names that end with digits.
  • Drawing of lines on GTK+ improved and made more like Windows without final point.
  • SciTE on GTK+ uses a high resolution window icon.
  • SciTE can be set to warn before loading files larger than a particular size.
  • SciTE Lua scripting bugs fixed included a crashing bug when using an undefined function name that would go before first actual name.
  • SciTE bug fixed where a modified buffer was not saved if it was the last buffer and was not current when the New command used.
  • SciTE monofont mode no longer affects line numbers.
  • Crashing bug in SciTE avoided by not allowing both the Find and Replace dialogs to be visible at one time.
  • Crashing bug in SciTE fixed when Lua scripts were being run concurrently.
  • Bug fixed that caused incorrect line number width in SciTE.
  • PHP folding bug fixed.
  • Regression fixed when setting word characters to not include some of the standard word characters.

Release 1.60

  • Released on 1 May 2004.
  • SciTE can be scripted using the Lua programming language.
  • command.mode is a better way to specify tool command options in SciTE.
  • Continuation markers can be displayed so that you can see which lines are wrapped.
  • Lexer for Gui4Cli language.
  • Lexer for Kix language.
  • Lexer for Specman E language.
  • Lexer for AutoIt3 language.
  • Lexer for APDL language.
  • Lexer for Bash language. Also reasonable for other Unix shells.
  • SciTE can load lexers implemented in external shared libraries.
  • Perl treats "." not as part of an identifier and interprets '/' and '->' correctly in more circumstances.
  • PHP recognises variables within strings.
  • NSIS has properties "nsis.uservars" and "nsis.ignorecase".
  • MSSQL lexer adds keyword list for operators and stored procedures, defines '(', ')', and ',' as operators and changes some other details.
  • Input method preedit window on GTK+ 2 may support some Asian languages.
  • Platform interface adds an extra platform-specific flag to Font::Create. Used on wxWidgets to choose antialiased text display but may be used for any task that a platform needs.
  • OnBeforeSave method added to Extension interface.
  • Scintilla methods that return strings can be called with a NULL pointer to find out how long the string should be.
  • Visual Studio .NET project file now in VS .NET 2003 format so can not be used directly in VS .NET 2002.
  • Scintilla can be built with GTK+ 2 on Windows.
  • Updated RPM spec for SciTE on GTK+.
  • GTK+ makefile for SciTE allows selection of destination directory, creates destination directories and sets file modes and owners better.
  • Tab indents now go to next tab multiple rather than add tab size.
  • SciTE abbreviations now use the longest possible match rather than the shortest.
  • Autocompletion does not remove prefix when actioned with no choice selected.
  • Autocompletion cancels when moving beyond the start position, not at the start position.
  • SciTE now shows only calltips for functions that match exactly, not those that match as a prefix.
  • SciTE can repair box comment sections where some lines were added without the box comment middle line prefix.
  • Alt+ works in user.shortcuts on Windows.
  • SciTE on GTK+ enables replace in selection for rectangular selections.
  • Key bindings for command.shortcut implemented in a way that doesn't break when the menus are localised.
  • Drawing of background on GTK+ faster as theme drawing disabled.
  • On GTK+, calltips are moved back onto the screen if they extend beyond the screen bounds.
  • On Windows, the Scintilla object is destroyed on WM_NCDESTROY rather than WM_DESTROY which arrives earlier. This fixes some problems when Scintilla was subclassed.
  • The zorder switching feature removed due to number of crashing bugs.
  • Code for XPM images made more robust.
  • Bug fixed with primary selection on GTK+.
  • On GTK+ 2, copied or cut text can still be pasted after the Scintilla widget is destroyed.
  • Styling change not visible problem fixed when line was cached.
  • Bug in SciTE on Windows fixed where clipboard commands stopped working.
  • Crashing bugs in display fixed in line layout cache.
  • Crashing bug may be fixed on AMD64 processor on GTK+.
  • Rare hanging crash fixed in Python lexer.
  • Display bugs fixed with DBCS characters on GTK+.
  • Autocompletion lists on GTK+ 2 are not sorted by the ListModel as the contents are sorted correctly by Scintilla.
  • SciTE fixed to not open extra untitled buffers with check.if.already.open.
  • Sizing bug fixed on GTK+ when window resized while unmapped.
  • Text drawing crashing bug fixed on GTK+ with non-Pango fonts and long strings.
  • Fixed some issues if characters are unsigned.
  • Fixes in NSIS support.

Release 1.59

  • Released on 19 February 2004.
  • SciTE Options and Language menus reduced in length by commenting out some languages. Languages can be enabled by editing the global properties file.
  • Verilog language supported.
  • Lexer for Microsoft dialect of SQL. SciTE properties file available from extras page.
  • Perl lexer disambiguates '/' better.
  • NSIS lexer improved with a lexical class for numbers, option for ignoring case of keywords, and folds only occurring when folding keyword first on line.
  • PowerBasic lexer improved with styles for constants and assembler and folding improvements.
  • On GTK+, input method support only invoked for Asian languages and not European languages as the old European keyboard code works better.
  • Scintilla can be requested to allocate a certain amount and so avoid repeated reallocations and memory inefficiencies. SciTE uses this and so should require less memory.
  • SciTE's "toggle current fold" works when invoked on child line as well as fold header.
  • SciTE output pane scrolling can be set to not scroll back to start after completion of command.
  • SciTE has a $(SessionPath) property.
  • SciTE on Windows can use VK_* codes for keys in user.shortcuts.
  • Stack overwrite bug fixed in SciTE's command to move to the end of a preprocessor conditional.
  • Bug fixed where vertical selection appeared to select a different set of characters then would be used by, for example, a copy.
  • SciTE memory leak fixed in fold state remembering.
  • Bug fixed where changing the style of some text outside the standard StyleNeeded notification would not be visible.
  • On GTK+ 2 g_iconv is used in preference to iconv, as it is provided by GTK+ so should avoid problems finding the iconv library.
  • On GTK+ fixed a style reference count bug.
  • Memory corruption bug fixed with GetSelText.
  • On Windows Scintilla deletes memory on WM_NCDESTROY rather than the earlier WM_DESTROY to avoid problems when the window is subclassed.

Release 1.58

  • Released on 11 January 2004.
  • Method to discover the currently highlighted element in an autocompletion list.
  • On GTK+, the lexers are now included in the scintilla.a library file. This will require changes to the make files of dependent projects.
  • Octave support added alongside related Matlab language and Matlab support improved.
  • VB lexer gains an unterminated string state and 4 sets of keywords.
  • Ruby lexer handles $' correctly.
  • Error line handling improved for FORTRAN compilers from Absoft and Intel.
  • International input enabled on GTK+ 2 although there is no way to choose an input method.
  • MultiplexExtension in SciTE allows multiple extensions to be used at once.
  • Regular expression replace interprets backslash expressions \a, \b, \f, \n, \r, \t, and \v in the replacement value.
  • SciTE Replace dialog displays number of replacements made when Replace All or Replace in Selection performed.
  • Localisation files may contain a translation.encoding setting which is used on GTK+ 2 to automatically reencode the translation to UTF-8 so it will be the localised text will be displayed correctly.
  • SciTE on GTK+ implements check.if.already.open.
  • Make files for Mac OS X made more robust.
  • Performance improved in SciTE when switching buffers when there is a rectangular selection.
  • Fixed failure to display some text when wrapped.
  • SciTE crashes from Ctrl+Tab buffer cycling fixed. May still be some rare bugs here.
  • Crash fixed when decoding an error message that appears similar to a Borland error message.
  • Fix to auto-scrolling allows containers to implement enhanced double click selection.
  • Hang fixed in idle word wrap.
  • Crash fixed in hotspot display code..
  • SciTE on Windows Incremental Search no longer moves caret back.
  • SciTE hang fixed when performing a replace with a find string that matched zero length strings such as ".*".
  • SciTE no longer styles the whole file when saving buffer fold state as that was slow.

Release 1.57

  • Released on 27 November 2003.
  • SciTE remembers folding of each buffer.
  • Lexer for Erlang language.
  • Scintilla allows setting the set of white space characters.
  • Scintilla has 'stuttered' page movement commands to first move to top or bottom within current visible lines before scrolling.
  • Scintilla commands for moving to end of words.
  • Incremental line wrap enabled on Windows.
  • SciTE PDF exporter produces output that is more compliant with reader applications, is smaller and allows more configuration. HTML exporter optimizes size of output files.
  • SciTE defines properties PLAT_WINNT and PLAT_WIN95 on the corresponding platforms.
  • SciTE can adjust the line margin width to fit the largest line number. The line.numbers property is split between line.margin.visible and line.margin.width.
  • SciTE on GTK+ allows user defined menu accelerators. Alt can be included in user.shortcuts.
  • SciTE Language menu can have items commented out.
  • SciTE on Windows Go to dialog allows choosing a column number as well as a line number.
  • SciTE on GTK+ make file uses prefix setting more consistently.
  • Bug fixed that caused word wrapping to fail to display all text.
  • Crashing bug fixed in GTK+ version of Scintilla when using GDK fonts and opening autocompletion.
  • Bug fixed in Scintilla SCI_GETSELTEXT where an extra NUL was included at end of returned string
  • Crashing bug fixed in SciTE z-order switching implementation.
  • Hanging bug fixed in Perl lexer.
  • SciTE crashing bug fixed for using 'case' without argument in style definition.

Release 1.56

  • Released on 25 October 2003.
  • Rectangular selection can be performed using the keyboard. Greater programmatic control over rectangular selection. This has caused several changes to key bindings.
  • SciTE Replace In Selection works on rectangular selections.
  • Improved lexer for TeX, new lexer for Metapost and other support for these languages.
  • Lexer for PowerBasic.
  • Lexer for Forth.
  • YAML lexer improved to include error styling.
  • Perl lexer improved to correctly handle more cases.
  • Assembler lexer updated to support single-quote strings and fix some problems.
  • SciTE on Windows can switch between buffers in order of use (z-order) rather than static order.
  • SciTE supports adding an extension for "Open Selected Filename". The openpath setting works on GTK+.
  • SciTE can Export as XML.
  • SciTE $(SelHeight) variable gives a more natural result for empty and whole line selections.
  • Fixes to wrapping problems, such as only first display line being visible in some cases.
  • Fixes to hotspot to only highlight when over the hotspot, only use background colour when set and option to limit hotspots to a single line.
  • Small fixes to FORTRAN lexing and folding.
  • SQL lexer treats single quote strings as a separate class to double quote strings..
  • Scintilla made compatible with expectations of container widget in GTK+ 2.3.
  • Fix to strip out pixmap ID when automatically choosing from an autocompletion list with only one element.
  • SciTE bug fixed where UTF-8 files longer than 128K were gaining more than one BOM.
  • Crashing bug fixed in SciTE on GTK+ where using "Stop Executing" twice leads to all applications exiting.
  • Bug fixed in autocompletion scrolling on GTK+ 2 with a case sensitive list. The ListBox::Sort method is no longer needed or available so platform maintainers should remove it.
  • SciTE check.if.already.open setting removed from GTK+ version as unmaintained.

Release 1.55

  • Released on 25 September 2003.
  • Fix a crashing bug in indicator display in Scintilla.
  • GTK+ version now defaults to building for GTK+ 2 rather than 1.
  • Mingw make file detects compiler version and avoids options that are cause problems for some versions.
  • Large performance improvement on GTK+ 2 for long lines.
  • Incremental line wrap on GTK+.
  • International text entry works much better on GTK+ with particular improvements for Baltic languages and languages that use 'dead' accents. NUL key events such as those generated by some function keys, ignored.
  • Unicode clipboard support on GTK+.
  • Indicator type INDIC_BOX draws a rectangle around the text.
  • Clarion language support.
  • YAML language support.
  • MPT LOG language support.
  • On Windows, SciTE can switch buffers based on activation order rather than buffer number.
  • SciTE save.on.deactivate saves all buffers rather than just the current buffer.
  • Lua lexer handles non-ASCII characters correctly.
  • Error lexer understands Borland errors with pathnames that contain space.
  • On GTK+ 2, autocompletion uses TreeView rather than deprecated CList.
  • SciTE autocompletion removed when expand abbreviation command used.
  • SciTE calltips support overloaded functions.
  • When Save fails in SciTE, choice offered to Save As.
  • SciTE message boxes on Windows may be moved to front when needed.
  • Indicators drawn correctly on wrapped lines.
  • Regular expression search no longer matches characters with high bit set to characters without high bit set.
  • Hang fixed in backwards search in multi byte character documents.
  • Hang fixed in SciTE Mark All command when wrap around turned off.
  • SciTE Incremental Search no longer uses hot keys on Windows.
  • Calltips draw non-ASCII characters correctly rather than as arrows.
  • SciTE crash fixed when going to an error message with empty file name.
  • Bugs fixed in XPM image handling code.

Release 1.54

  • Released on 12 August 2003.
  • SciTE on GTK+ 2.x can display a tab bar.
  • SciTE on Windows provides incremental search.
  • Lexer for PostScript.
  • Lexer for the NSIS scripting language.
  • New lexer for POV-Ray Scene Description Language replaces previous implementation.
  • Lexer for the MMIX Assembler language.
  • Lexer for the Scriptol language.
  • Incompatibility: SQL keywords are specified in lower case rather than upper case. SQL lexer allows double quoted strings.
  • Pascal lexer: character constants that start with '#' understood, '@' only allowed within assembler blocks, '$' can be the start of a number, initial '.' in 0..constant not treated as part of a number, and assembler blocks made more distinctive.
  • Lua lexer allows '.' in keywords. Multi-line strings and comments can be folded.
  • CSS lexer handles multiple psuedoclasses.
  • Properties file folder works for INI file format.
  • Hidden indicator style allows the container to mark text within Scintilla without there being any visual effect.
  • SciTE does not prompt to save changes when the buffer is empty and untitled.
  • Modification notifications caused by SCI_INSERTSTYLEDSTRING now include the contents of the insertion.
  • SCI_MARKERDELETEALL deletes all the markers on a line rather than just the first match.
  • Better handling of 'dead' accents on GTK+ 2 for languages that use accented characters.
  • SciTE now uses value of output.vertical.size property.
  • Crash fixed in SciTE autocompletion on long lines.
  • Crash fixed in SciTE comment command on long lines.
  • Bug fixed with backwards regular expression search skipping every second match.
  • Hang fixed with regular expression replace where both target and replacement were empty.

Release 1.53

  • Released on 16 May 2003.
  • On GTK+ 2, encodings other than ASCII, Latin1, and Unicode are supported for both display and input using iconv.
  • External lexers supported on GTK+/Linux. External lexers must now be explicitly loaded with SCI_LOADLEXERLIBRARY rather than relying upon a naming convention and automatic loading.
  • Support of Lout typesetting language.
  • Support of E-Scripts language used in the POL Ultima Online Emulator.
  • Scrolling and drawing performance on GTK+ enhanced, particularly for GTK+ 2.x with an extra window for the text area avoiding conflicts with the scroll bars.
  • CopyText and CopyRange methods in Scintilla allow container to easily copy to the system clipboard.
  • Line Copy command implemented and bound to Ctrl+Shift+T.
  • Scintilla APIs PositionBefore and PositionAfter can be used to iterate through a document taking into account the encoding and multi-byte characters.
  • C++ folder can fold on the "} else {" line of an if statement by setting fold.at.else property to 1.
  • C++ lexer allows an extra set of keywords.
  • Property names and thus abbreviations may be non-ASCII.
  • Removed attempt to load a file when setting properties that was part of an old scripting experiment.
  • SciTE no longer warns about a file not existing when opening properties files from the Options menu as there is a good chance the user wants to create one.
  • Bug fixed with brace recognition in multi-byte encoded files where a partial character matched a brace byte.
  • More protection against infinite loops or recursion with recursive property definitions.
  • On Windows, cursor will no longer disappear over margins in custom builds when cursor resource not present. The Windows default cursor is displayed instead.
  • load.on.activate fixed in SciTE as was broken in 1.52.

Release 1.52

  • Released on 17 April 2003.
  • Pango font support on GTK+ 2. Unicode input improved on GTK+ 2.
  • Hotspot style implemented in Scintilla.
  • Small up and down arrows can be displayed in calltips and the container is notified when the mouse is clicked on a calltip. Normal and selected calltip text colours can be set.
  • POSIX compatibility flag in Scintilla regular expression search interprets bare ( and ) as tagged sections.
  • Error message lexer tightened to yield fewer false matches. Recognition of Lahey and Intel FORTRAN error formats.
  • Scintilla keyboard commands for moving to start and end of screen lines rather than document lines, unless already there where these keys move to the start or end of the document line.
  • Line joining command.
  • Lexer for POV-Ray.
  • Calltips on Windows are no longer clipped by the parent window.
  • Autocompletion lists are cancelled when focus leaves their parent window.
  • Move to next/previous empty line delimited paragraph key commands.
  • SciTE hang fixed with recursive property definitions by placing limit on number of substitutions performed.
  • SciTE Export as PDF reenabled and works.
  • Added loadsession: command line command to SciTE.
  • SciTE option to quit application when last document closed.
  • SciTE option to ask user if it is OK to reload a file that has been modified outside SciTE.
  • SciTE option to automatically save before running particular command tools or to ask user or to not save.
  • SciTE on Windows 9x will write a Ctrl+Z to the process input pipe before closing the pipe when running tool commands that take input.
  • Added a manifest resource to SciTE on Windows to enable Windows XP themed UI.
  • SciTE calltips handle nested calls and other situations better.
  • CSS lexer improved.
  • Interface to platform layer changed - Surface initialisation now requires a WindowID parameter.
  • Bug fixed with drawing or measuring long pieces of text on Windows 9x by truncating the pieces.
  • Bug fixed with SciTE on GTK+ where a user shortcut for a visible character inserted the character as well as executing the command.
  • Bug fixed where primary selection on GTK+ was reset by Scintilla during creation.
  • Bug fixed where SciTE would close immediately on startup when using save.session.
  • Crash fixed when entering '\' in LaTeX file.
  • Hang fixed when '#' last character in VB file.
  • Crash fixed in error message lexer.
  • Crash fixed when searching for long regular expressions.
  • Pressing return when nothing selected in user list sends notification with empty text rather than random text.
  • Mouse debouncing disabled on Windows as it interfered with some mouse utilities.
  • Bug fixed where overstrike mode inserted before rather than replaced last character in document.
  • Bug fixed with syntax highlighting of Japanese text.
  • Bug fixed in split lines function.
  • Cosmetic fix to SciTE tab bar on Windows when window resized. Focus sticks to either pane more consistently.

Release 1.51

  • Released on 16 February 2003.
  • Two phase drawing avoids cutting off text that overlaps runs by drawing all the backgrounds of a line then drawing all the text transparently. Single phase drawing is an option.
  • Scintilla method to split lines at a particular width by adding new line characters.
  • The character used in autocompletion lists to separate the text from the image number can be changed.
  • The scrollbar range will automatically expand when the caret is moved beyond the current range. The scroll bar is updated when SCI_SETXOFFSET is called.
  • Mouse cursors on GTK+ improved to be consistent with other applications and the Windows version.
  • Horizontal scrollbar on GTK+ now disappears in wrapped mode.
  • Scintilla on GTK+ 2: mouse wheel scrolling, cursor over scrollbars, focus, and syntax highlighting now work. gtk_selection_notify avoided for compatibility with GTK+ 2.2.
  • Fold margin colours can now be set.
  • SciTE can be built for GTK+ 2.
  • SciTE can optionally preserve the undo history over an automatic file reload.
  • Tags can optionally be case insensitive in XML and HTML.
  • SciTE on Windows handles input to tool commands in a way that should avoid deadlock. Output from tools can be used to replace the selection.
  • SciTE on GTK+ automatically substitutes '|' for '/' in menu items as '/' is used to define the menu hierarchy.
  • Optional buffer number in SciTE title bar.
  • Crash fixed in SciTE brace matching.
  • Bug fixed where automatic scrolling past end of document flipped back to the beginning.
  • Bug fixed where wrapping caused text to disappear.
  • Bug fixed on Windows where images in autocompletion lists were shown on the wrong item.
  • Crash fixed due to memory bug in autocompletion lists on Windows.
  • Crash fixed when double clicking some error messages.
  • Bug fixed in word part movement where sometimes no movement would occur.
  • Bug fixed on Windows NT where long text runs were truncated by treating NT differently to 9x where there is a limitation.
  • Text in not-changeable style works better but there remain some cases where it is still possible to delete text protected this way.

Release 1.50

  • Released on 24 January 2003.
  • Autocompletion lists may have a per-item pixmap.
  • Autocompletion lists allow Unicode text on Windows.
  • Scintilla documentation rewritten.
  • Additional DBCS encoding support in Scintilla on GTK+ primarily aimed at Japanese EUC encoding.
  • CSS (Cascading Style Sheets) lexer added.
  • diff lexer understands some more formats.
  • Fold box feature is an alternative way to show the structure of code.
  • Avenue lexer supports multiple keyword lists.
  • The caret may now be made invisible by setting the caret width to 0.
  • Python folder attaches comments before blocks to the next block rather than the previous block.
  • SciTE openpath property on Windows searches a path for files that are the subject of the Open Selected Filename command.
  • The localisation file name can be changed with the locale.properties property.
  • On Windows, SciTE can pipe the result of a string expression into a command line tool.
  • On Windows, SciTE's Find dialog has a Mark All button.
  • On Windows, there is an Insert Abbreviation command that allows a choice from the defined abbreviations and inserts the selection into the abbreviation at the position of a '|'.
  • Minor fixes to Fortran lexer.
  • fold.html.preprocessor decides whether to fold <? and ?>. Minor improvements to PHP folding.
  • Maximum number of keyword lists allowed increased from 6 to 9.
  • Duplicate line command added with default assignment to Ctrl+D.
  • SciTE sets $(Replacements) to the number of replacements made by the Replace All command. $(CurrentWord) is set to the word before the caret if the caret is at the end of a word.
  • Opening a SciTE session now loads files in remembered order, sets the current file as remembered, and moves the caret to the remembered line.
  • Bugs fixed with printing on Windows where line wrapping was causing some text to not print.
  • Bug fixed with Korean Input Method Editor on Windows.
  • Bugs fixed with line wrap which would sometimes choose different break positions after switching focus away and back.
  • Bug fixed where wheel scrolling had no effect on GTK+ after opening a fold.
  • Bug fixed with file paths containing non-ASCII characters on Windows.
  • Crash fixed with printing on Windows after defining pixmap marker.
  • Crash fixed in makefile lexer when first character on line was '='.
  • Bug fixed where local properties were not always being applied.
  • Ctrl+Keypad* fold command works on GTK+.
  • Hangs fixed in SciTE's Replace All command when replacing regular expressions '^' or '$'.
  • SciTE monospace setting behaves more sensibly.

Release 1.49

  • Released on 1 November 2002.
  • Unicode supported on GTK+. To perform well, this added a font cache to GTK+ and to make that safe, a mutex is used. The mutex requires the application to link in the threading library by evaluating `glib-config --libs gthread`. A Unicode locale should also be set up by a call like setlocale(LC_CTYPE, "en_US.UTF-8"). scintilla_release_resources function added to release mutex.
  • FORTRAN and assembler lexers added along with other support for these languages in SciTE.
  • Ada lexer improved handling of based numbers, identifier validity and attributes distinguished from character literals.
  • Lua lexer handles block comments and a deep level of nesting for literal strings and block comments.
  • Errorlist lexer recognises PHP error messages.
  • Variant of the C++ lexer with case insensitive keywords called cppnocase. Whitespace in preprocessor text handled more correctly.
  • Folder added for Perl.
  • Compilation with GCC 3.2 supported.
  • Markers can be pixmaps.
  • Lines are wrapped when printing. Bug fixed which printed line numbers in different styles.
  • Text can be appended to end with AppendText method.
  • ChooseCaretX method added.
  • Vertical scroll bar can be turned off with SetVScrollBar method.
  • SciTE Save All command saves all buffers.
  • SciTE localisation compares keys case insensitively to make translations more flexible.
  • SciTE detects a utf-8 coding cookie "coding: utf-8" in first two lines and goes into Unicode mode.
  • SciTE key bindings are definable.
  • SciTE Find in Files dialog can display directory browser to choose directory to search.
  • SciTE enabling of undo and redo toolbar buttons improved.
  • SciTE on Windows file type filters in open dialog sorted.
  • Fixed crashing bug when using automatic tag closing in XML or HTML.
  • Fixed bug on Windows causing very long (>64K) lines to not display.
  • Fixed bug in backwards regular expression searching.
  • Fixed bug in calltips where wrong argument was highlighted.
  • Fixed bug in tab timmy feature when file has line feed line endings.
  • Fixed bug in compiling without INCLUDE_DEPRECATED_FEATURES defined.

Release 1.48

  • Released on 9 September 2002.
  • Improved Pascal lexer with context sensitive keywords and separate folder which handles //{ and //} folding comments and {$region} and {$end} folding directives. The "case" statement now folds correctly.
  • C++ lexer correctly handles comments on preprocessor lines.
  • New commands for moving to beginning and end of display lines when in line wrap mode. Key bindings added for these commands.
  • New marker symbols that look like ">>>" and "..." which can be used for interactive shell prompts for Python.
  • The foreground and background colours of visible whitespace can be chosen independent of the colours chosen for the lexical class of that whitespace.
  • Per line data optimised by using an exponential allocation scheme.
  • SciTE API file loading optimised.
  • SciTE for GTK+ subsystem 2 documented. The exit status of commands is decoded into more understandable fields.
  • SciTE find dialog remembers previous find string when there is no selection. Find in Selection button disabled when selection is rectangular as command did not work.
  • Shift+Enter made equivalent to Enter to avoid users having to let go of the shift key when typing. Avoids the possibility of entering single carriage returns in a file that contains CR+LF line ends.
  • Autocompletion does not immediately disappear when the length parameter to SCI_AUTOCSHOW is 0.
  • SciTE focuses on the editor pane when File | New executed and when the output pane is closed with F8. Double clicking on a non-highlighted output pane line selects the word under the cursor rather than seeking the next highlighted line.
  • SciTE director interface implements an "askproperty" command.
  • SciTE's Export as LaTeX output improved.
  • Better choice of autocompletion displaying above the caret rather then below when that is more sensible.
  • Bug fixed where context menu would not be completely visible if invoked when cursor near bottom or left of screen.
  • Crashing bug fixed when displaying long strings on GTK+ caused failure of X server by displaying long text in segments.
  • Crashing bug fixed on GTK+ when a Scintilla window was removed from its parent but was still the selection owner.
  • Bug fixed on Windows in Unicode mode where not all characters on a line were displayed when that line contained some characters not in ASCII.
  • Crashing bug fixed in SciTE on Windows with clearing output while running command.
  • Bug fixed in SciTE for GTK+ with command completion not detected when no output was produced by the command.
  • Bug fixed in SciTE for Windows where menus were not shown translated.
  • Bug fixed where words failed to display in line wrapping mode with visible line ends.
  • Bug fixed in SciTE where files opened from a session file were not closed.
  • Cosmetic flicker fixed when using Ctrl+Up and Ctrl+Down with some caret policies.

Release 1.47

  • Released on 1 August 2002.
  • Support for GTK+ 2 in Scintilla. International input methods not supported on GTK+2.
  • Line wrapping performance improved greatly.
  • New caret policy implementation that treats horizontal and vertical positioning equivalently and independently. Old caret policy methods deprecated and not all options work correctly with old methods.
  • Extra fold points for C, C++, Java, ... for fold comments //{ .. //} and #if / #ifdef .. #endif and the #region .. #endregion feature of C#.
  • Scintilla method to find the height in pixels of a line. Currently returns the same result for every line as all lines are same height.
  • Separate make file, scintilla_vc6.mak, for Scintilla to use Visual C++ version 6 since main makefile now assumes VS .NET. VS .NET project files available for combined Scintilla and SciTE in scite/boundscheck.
  • SciTE automatically recognises Unicode files based on their Byte Order Marks and switches to Unicode mode. On Windows, where SciTE supports Unicode display, this allows display of non European characters. The file is saved back into the same character encoding unless the user decides to switch using the File | Encoding menu.
  • Handling of character input changed so that a fillup character, typically '(' displays a calltip when an autocompletion list was being displayed.
  • Multiline strings lexed better for C++ and Lua.
  • Regular expressions in JavaScript within hypertext files are lexed better.
  • On Windows, Scintilla exports a function called Scintilla_DirectFunction that can be used the same as the function returned by GetDirectFunction.
  • Scintilla converts line endings of text obtained from the clipboard to the current default line endings.
  • New SciTE property ensure.final.line.end can ensure that saved files always end with a new line as this is required by some tools. The ensure.consistent.line.ends property ensures all line ends are the current default when saving files. The strip.trailing.spaces property now works on the buffer so the buffer in memory and the file on disk are the same after a save is performed.
  • The SciTE expand abbreviation command again allows '|' characters in expansions to be quoted by using '||'.
  • SciTE on Windows can send data to the find tool through standard input rather than using a command line argument to avoid problems with quoting command line arguments.
  • The Stop Executing command in SciTE on Windows improved to send a Ctrl+Z character to the tool. Better messages when stopping a tool.
  • Autocompletion can automatically "fill up" when one of a set of characters is type with the autocomplete.<lexer>.fillups property.
  • New predefined properties in SciTE, SelectionStartColumn, SelectionStartLine, SelectionEndColumn, SelectionEndLine can be used to integrate with other applications.
  • Environment variables are available as properties in SciTE.
  • SciTE on Windows keeps status line more current.
  • Abbreviations work in SciTE on Linux when first opened.
  • File saving fixed in SciTE to ensure files are not closed when they can not be saved because of file permissions. Also fixed a problem with buffers that caused files to not be saved.
  • SciTE bug fixed where monospace mode not remembered when saving files. Some searching options now remembered when switching files.
  • SciTE on Linux now waits on child termination when it shuts a child down to avoid zombies.
  • SciTE on Linux has a Print menu command that defaults to invoking a2ps.
  • Fixed incorrect highlighting of indentation guides in SciTE for Python.
  • Crash fixed in Scintilla when calling GetText for 0 characters.
  • Exporting as LaTeX improved when processing backslashes and tabs and setting up font.
  • Crash fixed in SciTE when exporting or copying as RTF.
  • SciTE session loading fixed to handle more than 10 files in session.

Release 1.46

  • Released on 10 May 2002.
  • Set of lexers compiled into Scintilla can now be changed by adding and removing lexer source files from scintilla/src and running LexGen.py.
  • SCN_ZOOM notification provided by Scintilla when user changes zoom level. Method to determine width of strings in pixels so that elements can be sized relative to text size. SciTE changed to keep line number column displaying a given number of characters.
  • The logical width of the document used to determine scroll bar range can be set.
  • Setting to allow vertical scrolling to display last line at top rather than bottom of window.
  • Read-only mode improved to avoid changing the selection in most cases when a modification is attempted. Drag and drop cursors display correctly for read-only in some cases.
  • Visual C++ options in make files changed to suit Visual Studio .NET.
  • Scintilla.iface includes feature types for enumerations and lexers.
  • Lua lexer improves handling of literal strings and copes with nested literal strings.
  • Diff lexer changed to treat lines starting with "***" similarly to "---". Symbolic names defined for lexical classes.
  • nncrontab lexer improved.
  • Turkish fonts (iso8859-9) supported on GTK+.
  • Automatic close tag feature for XML and HTML in SciTE.
  • Automatic indentation in SciTE improved.
  • Maximum number of buffers available in SciTE increased. May be up to 100 although other restrictions on menu length limit the real maximum.
  • Save a Copy command added to SciTE.
  • Export as TeX command added to SciTE.
  • Export as HTML command in SciTE respects Use Monospaced Font and background colour settings.
  • Compilation problem on Solaris fixed.
  • Order of files displayed for SciTE's previous and next menu and key commands are now consistent.
  • Saving of MRU in recent file changed so files open when SciTE quit are remembered.
  • More variants of ctags tags handled by Open Selected Filename in SciTE.
  • JavaScript embedded in XML highlighted again.
  • SciTE status bar updated after changing parameters in case they are being displayed in status bar.
  • Crash fixed when handling some multi-byte languages.
  • Crash fixed when replacing end of line characters.
  • Bug in SciTE fixed in multiple buffer mode where automatic loading turned on could lead to losing file contents.
  • Bug in SciTE on GTK+ fixed where dismissing dialogs with close box led to those dialogs never being shown again.
  • Bug in SciTE on Windows fixed where position.tile with default positions led to SciTE being positioned off-screen.
  • Bug fixed in read-only mode, clearing all deletes contraction state data leading to it not being synchronized with text.
  • Crash fixed in SciTE on Windows when tab bar displayed.

Release 1.45

  • Released on 15 March 2002.
  • Line layout cache implemented to improve performance by maintaining the positioning of characters on lines. Can be set to cache nothing, the line with the caret, the visible page or the whole document.
  • Support, including a new lexer, added for Matlab programs.
  • Lua folder supports folding {} ranges and compact mode. Lua lexer styles floating point numbers in number style instead of setting the '.' in operator style. Up to 6 sets of keywords. Better support for [[ although only works well when all on one line.
  • Python lexer improved to handle floating point numbers that contain negative exponents and that start with '.'.
  • When performing a rectangular paste, the caret now remains at the insertion point.
  • On Windows with a wheel mouse, page-at-a-time mode is recognised.
  • Read-only mode added to SciTE with a property to initialise it and another property, $(ReadOnly) available to show this mode in the status bar.
  • SciTE status bar can show the number of lines in the selection with the $(SelHeight) property.
  • SciTE's "Export as HTML" command uses the current character set to produce correct output for non-Western-European character sets, such as Russian.
  • SciTE's "Export as RTF" fixed to produce correct output when file contains '\'.
  • SciTE goto command accepts a column as well as a line. If given a column, it selects the word at that column.
  • SciTE's Build, Compile and Go commands are now disabled if no action has been assigned to them.
  • The Refresh button in the status bar has been removed from SciTE on Windows.
  • Bug fixed in line wrap mode where cursor up or down command did not work.
  • Some styling bugs fixed that were due to a compilation problem with gcc and inline functions with same name but different code.
  • The way that lexers loop over text was changed to avoid accessing beyond the end or setting beyond the end. May fix some bugs and make the code safer but may also cause new bugs.
  • Bug fixed in HTML lexer's handling of SGML.
  • Bug fixed on GTK+/X where lines wider than 32767 pixels did not display.
  • SciTE bug fixed with file name generation for standard property files.
  • SciTE bug fixed with Open Selected Filename command when used with file name and line number combination.
  • In SciTE, indentation and tab settings stored with buffers so maintained correctly as buffers selected. The properties used to initialise these settings can now be set separately for different file patterns.
  • Thread safety improved on Windows with a critical section protecting the font cache and initialisation of globals performed within Scintilla_RegisterClasses. New Scintilla_ReleaseResources call provided to allow explicit freeing of resources when statically bound into another application. Resources automatically freed in DLL version. The window classes are now unregistered as part of resource freeing which fixes bugs that occurred in some containers such as Internet Explorer.
  • 'make install' fixed on Solaris.
  • Bug fixed that could lead to a file being opened twice in SciTE.

Release 1.44

  • Released on 4 February 2002.
  • Crashing bug fixed in Editor::Paint.
  • Lua lexer no longer treats '.' as a word character and handles 6 keyword sets.
  • WordStartPosition and WordEndPosition take an onlyWordCharacters argument.
  • SciTE option for simplified automatic indentation which repeats the indentation of the previous line.
  • Compilation fix on Alpha because of 64 bit.
  • Compilation fix for static linking.
  • Limited maximum line length handled to 8000 characters as previous value of 16000 was causing stack exhaustion crashes for some.
  • When whole document line selected, only the last display line gets the extra selected rectangle at the right hand side rather than every display line.
  • Caret disappearing bug fixed for the case that the caret was not on the first display line of a document line.
  • SciTE bug fixed where untitled buffer containing text was sometimes deleted without chance to save.
  • SciTE bug fixed where use.monospaced not working with multiple buffers.

Release 1.43

  • Released on 19 January 2002.
  • Line wrapping robustness and performance improved in Scintilla.
  • Line wrapping option added to SciTE for both edit and output panes.
  • Static linking on Windows handles cursor resource better. Documentation of static linking improved.
  • Autocompletion has an option to delete any word characters after the caret upon selecting an item.
  • FOX version identified by PLAT_FOX in Platform.h.
  • Calltips in SciTE use the calltip.<lexer>.word.characters setting to correctly find calltips for functions that include characters like '$' which is not normally considered a word character.
  • SciTE has a command to show help on itself which gets hooked up to displaying SciTEDoc.html.
  • SciTE option calltip.<lexer>.end.definition to display help text on a second line of calltip.
  • Fixed the handling of the Buffers menu on GTK+ to ensure current buffer indicated and no warnings occur. Changed some menu items on GTK+ version to be same as Windows version.
  • use.monospaced property for SciTE determines initial state of Use Monospaced Font setting.
  • The SciTE Complete Symbol command now works when there are no word characters before the caret, even though it is slow to display the whole set of symbols.
  • Function names removed from SciTE's list of PHP keywords. The full list of predefined functions is available from another web site mentioned on the Extras page.
  • Crashing bug at startup on GTK+ for some configurations fixed.
  • Crashing bug on GTK+ on 64 bit platforms fixed.
  • Compilation problem with some compilers fixed in GTK+.
  • Japanese text entry improved on Windows 9x.
  • SciTE recent files directory problem on Windows when HOME and SciTE_HOME environment variables not set is now the directory of the executable.
  • Session files no longer include untitled buffers.

Release 1.42

  • Released on 24 December 2001.
  • Better localisation support including context menus and most messages. Translations of the SciTE user interface available for Bulgarian, French, German, Italian, Russian, and Turkish.
  • Can specify a character to use to indicate control characters rather than having them displayed as mnemonics.
  • Scintilla key command for backspace that will not delete line end characters.
  • Scintilla method to find start and end of words.
  • SciTE on GTK+ now supports the load.on.activate and save.on.deactivate properties in an equivalent way to the Windows version.
  • The output pane of SciTE on Windows is now interactive so command line utilities that prompt for input or confirmation can be used.
  • SciTE on Windows can choose directory for a "Find in Files" command like the GTK+ version could.
  • SciTE can now load a set of API files rather than just one file.
  • ElapsedTime class added to Platform for accurate measurement of durations. Used for debugging and for showing the user how long commands take in SciTE.
  • Baan lexer added.
  • In C++ lexer, document comment keywords no longer have to be at the start of the line.
  • PHP lexer changed to match keywords case insensitively.
  • More shell keywords added.
  • SciTE support for VoiceXML added to xml.properties.
  • In SciTE the selection is not copied to the find field of the Search and Replace dialogs if it contains end of line characters.
  • SciTE on Windows has a menu item to decide whether to respond to other instances which are performing their check.if.already.open check.
  • SciTE accelerator key for Box Comment command changed to avoid problems in non-English locales.
  • SciTE context menu includes Close command for the editor pane and Hide command for the output pane.
  • output: command added to SciTE director interface to add text to the output pane. The director interface can execute commands (such as tool commands with subsystem set to 3) by sending a macro:run message.
  • SciTE on GTK+ will defer to the Window Manager for position if position.left or position.top not set and for size if position.width or position.height not set.
  • SciTE on Windows has a position.tile property to place a second instance to the right of the first.
  • Scintilla on Windows again supports EM_GETSEL and EM_SETSEL.
  • Problem fixed in Scintilla on Windows where control ID is no longer cached as it could be changed by external code.
  • Problems fixed in SciTE on Windows when finding any other open instances at start up when check.if.already.open is true.
  • Bugs fixed in SciTE where command strings were not always having variables evaluated.
  • Bugs fixed with displaying partial double-byte and Unicode characters in rectangular selections and at the edge when edge mode is EDGE_BACKGROUND. Column numbers reported by GetColumn treat multiple byte characters as one column rather than counting bytes.
  • Bug fixed with caret movement over folded lines.
  • Another bug fixed with tracking selection in secondary views when performing modifications.
  • Horizontal scrolling and display of long lines optimised.
  • Cursor setting in Scintilla on GTK+ optimised.
  • Experimental changeable style attribute. Set to false to make text read-only. Currently only stops caret from being within not-changeable text and does not yet stop deleting a range that contains not-changeable text. Can be used from SciTE by adding notchangeable to style entries.
  • Experimental line wrapping. Currently has performance and appearance problems.

Release 1.41

  • Released on 6 November 2001.
  • Changed Platform.h to not include platform headers. This lessens likelihood and impact of name clashes from system headers and also speeds up compilation. Renamed DrawText to DrawTextNoClip to avoid name clash.
  • Changed way word functions work to treat a sequence of punctuation as a word. This is more sensible and also more compatible with other editors.
  • Cursor changes over the margins and selection on GTK+ platform.
  • SC_MARK_BACKGROUND is a marker that only changes the line's background colour.
  • Enhanced Visual Basic lexer handles character date and octal literals, and bracketed keywords for VB.NET. There are two VB lexers, vb and vbscript with type indication characters like ! and $ allowed at the end of identifiers in vb but not vbscript. Lexer states now separate from those used for C++ and names start with SCE_B.
  • Lexer added for Bullant language.
  • The horizontal scroll position, xOffset, is now exposed through the API.
  • The SCN_POSCHANGED notification is deprecated as it was causing confusion. Use SCN_UPDATEUI instead.
  • Compilation problems fixed for some versions of gcc.
  • Support for WM_GETTEXT restored on Windows.
  • Double clicking on an autocompletion list entry works on GTK+.
  • Bug fixed with case insensitive sorts for autocompletion lists.
  • Bug fixed with tracking selection in secondary views when performing modifications.
  • SciTE's abbreviation expansion feature will now indent expansions to the current indentation level if indent.automatic is on.
  • SciTE allows setting up of parameters to commands from a dialog and can also show this dialog automatically to prompt for arguments when running a command.
  • SciTE's Language menu (formerly Options | Use Lexer) is now defined by the menu.language property rather than being hardcoded.
  • The user interface of SciTE can be localised to a particular language by editing a locale.properties file.
  • On Windows, SciTE will try to move to the front when opening a new file from the shell and using check.if.already.open.
  • SciTE can display the file name and directory in the title bar in the form "file @ directory" when title.full.path=2.
  • The SciTE time.commands property reports the time taken by a command as well as its status when completed.
  • The SciTE find.files property is now a list separated by '|' characters and this list is added into the Files pull down of the Find in Files dialog.

Release 1.40

  • Released on 23 September 2001.
  • Removal of emulation of Win32 RichEdit control in core of Scintilla. This change may be incompatible with existing client code. Some emulation still done in Windows platform layer.
  • SGML support in the HTML/XML lexer.
  • SciTE's "Stop Executing" command will terminate GUI programs on Windows NT and Windows 2000.
  • StyleContext class helps construct lexers that are simple and accurate. Used in the C++, Eiffel, and Python lexers.
  • Clipboard operations in GTK+ version convert between platform '\n' line endings and currently chosen line endings.
  • Any character in range 0..255 can be used as a marker. This can be used to support numbered bookmarks, for example.
  • The default scripting language for ASP can be set.
  • New lexer and other support for crontab files used with the nncron scheduler.
  • Folding of Python improved.
  • The ` character is treated as a Python operator.
  • Line continuations ("\" at end of line) handled inside Python strings.
  • More consistent handling of line continuation ('\' at end of line) in C++ lexer. This fixes macro definitions that span more than one line.
  • C++ lexer can understand Doxygen keywords in doc comments.
  • SciTE on Windows allows choosing to open the "open" dialog on the directory of the current file rather than in the default directory.
  • SciTE on Windows handles command line arguments in "check.if.already.open" correctly when the current directory of the new instance is different to the already open instance of SciTE.
  • "cwd" command (change working directory) defined for SciTE director interface.
  • SciTE "Export As HTML" produces better, more compliant, and shorter files.
  • SciTE on Windows allows several options for determining default file name for exported files.
  • Automatic indentation of Python in SciTE fixed.
  • Exported HTML can support folding.
  • Bug fixed in SCI_GETTEXT macro command of director interface.
  • Cursor leak fixed on GTK+.
  • During SciTE shutdown, "identity" messages are no longer sent over the director interface.

Release 1.39

  • Released on 22 August 2001.
  • Windows version requires msvcrt.dll to be available so will not work on original Windows 95 version 1. The msvcrt.dll file is installed by almost everything including Internet Explorer so should be available.
  • Flattened tree control style folding margin. The SciTE fold.plus option is now fold.symbols and has more values for the new styles.
  • Mouse dwell events are generated when the user holds the mouse steady over Scintilla.
  • PositionFromPointClose is like PositionFromPoint but returns INVALID_POSITION when point outside window or after end of line.
  • Input of Hungarian and Russian characters in GTK+ version works by truncating input to 8 bits if in the range of normal characters.
  • Better choices for font descriptors on GTK+ for most character sets.
  • GTK+ Scintilla is destroyed upon receiving destroy signal rather than destroy_event signal.
  • Style setting that force upper or lower case text.
  • Case-insensitive autocompletion lists work correctly.
  • Keywords can be prefix based so ^GTK_ will treat all words that start with GTK_ as keywords.
  • Horizontal scrolling can be jumpy rather than gradual.
  • GetSelText places a '\0' in the buffer if the selection is empty..
  • EnsureVisible split into two methods EnsureVisible which will not scroll to show the line and EnsureVisibleEnforcePolicy which may scroll.
  • Python folder has options to fold multi-line comments and triple quoted strings.
  • C++ lexer handles keywords before '.' like "this.x" in Java as keywords. Compact folding mode option chooses whether blank lines after a structure are folded with that structure. Second set of keywords with separate style supported.
  • Ruby lexer handles multi-line comments.
  • VB has folder.
  • PHP lexer has an operator style, handles "<?" and "?>" inside strings and some comments.
  • TCL lexer which is just an alias for the C++ lexer so does not really understand TCL syntax.
  • Error lines lexer has styles for Lua error messages and .NET stack traces.
  • Makefile lexer has a target style.
  • Lua lexer handles some [[]] string literals.
  • HTML and XML lexer have a SCE_H_SGML state for tags that start with "<!".
  • Fixed Scintilla bugs with folding. When modifications were performed near folded regions sometimes no unfolding occurred when it should have. Deleting a fold causing character sometimes failed to update fold information correctly.
  • Better support for Scintilla on GTK+ for Win32 including separate PLAT_GTK_WIN32 definition and correct handling of rectangular selection with clipboard operations.
  • SciTE has a Tools | Switch Pane (Ctrl+F6) command to switch focus between edit and output panes.
  • SciTE option output.scroll allows automatic scrolling of output pane to be turned off.
  • Commands can be typed into the SciTE output pane similar to a shell window.
  • SciTE properties magnification and output magnification set initial zoom levels.
  • Option for SciTE comment block command to place comments at start of line.
  • SciTE for Win32 has an option to minimize to the tray rather than the task bar.
  • Close button on SciTE tool bar for Win32.
  • SciTE compiles with GCC 3.0.
  • SciTE's automatic indentation of C++ handles braces without preceding keyword correctly.
  • Bug fixed with GetLine method writing past the end of where it should.
  • Bug fixed with mouse drag automatic scrolling when some lines were folded.
  • Bug fixed because caret XEven setting was inverted.
  • Bug fixed where caret was initially visible even though window was not focussed.
  • Bug fixed where some file names could end with "\\" which caused slow downs on Windows 9x.
  • On Win32, SciTE Replace dialog starts with focus on replacement text.
  • SciTE Go to dialog displays correct current line.
  • Fixed bug with SciTE opening multiple files at once.
  • Fixed bug with Unicode key values reported to container truncated.
  • Fixed bug with unnecessary save point notifications.
  • Fixed bugs with indenting and unindenting at start of line.
  • Monospace Font setting behaves more consistently.

Release 1.38

  • Released on 23 May 2001.
  • Loadable lexer plugins on Windows.
  • Ruby lexer and support.
  • Lisp lexer and support.
  • Eiffel lexer and support.
  • Modes for better handling of Tab and BackSpace keys within indentation. Mode to avoid autocompletion list cancelling when there are no viable matches.
  • ReplaceTarget replaced with two calls ReplaceTarget (which is incompatible with previous ReplaceTarget) and ReplaceTargetRE. Both of these calls have a count first parameter which allows using strings containing nulls. SearchInTarget and SetSearchFlags functions allow specifying a search in several simple steps which helps some clients which can not create structs or pointers easily.
  • Asian language input through an Input Method Editor works on Windows 2000.
  • On Windows, control characters can be entered through use of the numeric keypad in conjunction with the Alt key.
  • Document memory allocation changed to grow exponentially which reduced time to load a 30 Megabyte file from 1000 seconds to 25. Change means more memory may be used.
  • Word part movement keys now handled in Scintilla rather than SciTE.
  • Regular expression '^' and '$' work more often allowing insertion of text at start or end of line with a replace command. Backslash quoted control characters \a, \b, \f, \t, and \v recognised within sets.
  • Session files for SciTE.
  • Export as PDF command hidden in SciTE as it often failed. Code still present so can be turned on by those willing to cope.
  • Bug fixed in HTML lexer handling % before > as end ASP even when no start ASP encountered. Bug fixed when scripts ended with a quoted string and end tag was not seen.
  • Bug fixed on Windows where context menu key caused menu to appear in corner of screen rather than within window.
  • Bug fixed in SciTE's Replace All command not processing whole file when replace string longer than search string.
  • Bug fixed in SciTE's MRU list repeating entries if Ctrl+Tab used when all entries filled.
  • ConvertEOLs call documentation fixed.

Release 1.37

  • Released on 17 April 2001.
  • Bug fixed with scroll bars being invisible on GTK+ 1.2.9.
  • Scintilla and SciTE support find and replace using simple regular expressions with tagged expressions. SciTE supports C '\' escapes in the Find and Replace dialogs. Replace in Selection available in SciTE.
  • Scintilla has a 'target' feature for replacing code rapidly without causing display updates.
  • Scintilla and SciTE on GTK+ support file dropping from file managers such as Nautilus and gmc. Files or other URIs dropped on Scintilla result in a URIDropped notification.
  • Lexers may have separate Lex and Fold functions.
  • Lexer infrastructure improved to allow for plug in lexers and for referring to lexers by name rather than by ID.
  • Ada lexer and support added.
  • Option in both Scintilla and SciTE to treat both left and right margin as equally important when repositioning visible area in response to caret movement. Default is to prefer visible area positioning which minimises the horizontal scroll position thus favouring the left margin.
  • Caret line highlighting.
  • Commands to delete from the caret to the end of line and from the caret to the beginning of line.
  • SciTE has commands for inserting and removing block comments and for inserting stream comments.
  • SciTE Director interface uses C++ '\' escapes to send control characters.
  • SciTE Director interface adds more commands including support for macros.
  • SciTE has menu options for recording and playing macros which are visible when used with a companion program that supports these features.
  • SciTE has an Expand Abbreviation command. Abbreviations are stored in a global abbrev.properties file.
  • SciTE has a Full Screen command to switch between a normal window size and using the full screen. On Windows, the menu bar can be turned off when in full screen mode.
  • SciTE has a Use monospaced font command to switch between the normal set of fonts and one size of a particular fixed width font.
  • SciTE's use of tabs can be controlled for particular file names as well as globally.
  • The contents of SciTE's status bar can be defined by a property and include variables. On Windows, several status bar definitions can be active with a click on the status bar cycling through them.
  • Copy as RTF command in SciTE on Windows to allow pasting styled text into word processors.
  • SciTE can allow the use of non-alphabetic characters in Complete Symbol lists and can automatically display this autocompletion list when a trigger character such as '.' is typed. Complete word can be set to pop up when the user is typing a word and there is only one matching word in the document.
  • SciTE lists the imported properties files on a menu to allow rapid access to them.
  • SciTE on GTK+ improvements to handling accelerator keys and focus in dialogs. Message boxes respond to key presses without the Alt key as they have no text entries to accept normal keystrokes.
  • SciTE on GTK+ sets the application icon.
  • SciTE allows setting the colours used to indicate the current error line.
  • Variables within PHP strings have own style. Keyword list updated.
  • Keyword list for Lua updated for Lua 4.0.
  • Bug fixed in rectangular selection where rectangle still appeared selected after using cursor keys to move caret.
  • Bug fixed in C++ lexer when deleting a '{' controlling a folded range led to that range becoming permanently invisible.
  • Bug fixed in Batch lexer where comments were not recognised.
  • Bug fixed with undo actions coalescing into steps incorrectly.
  • Bug fixed with Scintilla on GTK+ positioning scroll bars 1 pixel over the Scintilla window leading to their sides being chopped off.
  • Bugs fixed in SciTE when doing some actions led to the start or end of the file being displayed rather than the current location.
  • Appearance of calltips fixed to look like document text including any zoom factor. Positioned to be outside current line even when multiple fonts and sizes used.
  • Bug fixed in Scintilla macro support where typing Enter caused both a newline command and newline character insertion to be recorded.
  • Bug fixed in SciTE on GTK+ where focus was moving between widgets incorrectly.
  • Bug fixed with fold symbols sometimes not updating when the text changed.
  • Bugs fixed in SciTE's handling of folding commands.
  • Deprecated undo collection enumeration removed from API.

Release 1.36

  • Released on 1 March 2001.
  • Scintilla supports GTK+ on Win32.
  • Some untested work on making Scintilla and SciTE 64 bit compatible. For users on GTK+ this requires including Scintilla.h before ScintillaWidget.h.
  • HTML lexer allows folding HTML.
  • New lexer for Avenue files which are used in the ESRI ArcView GIS.
  • DOS Batch file lexer has states for '@', external commands, variables and operators.
  • C++ lexer can fold comments of /* .. */ form.
  • Better disabling of pop up menu items in Scintilla when in read-only mode.
  • Starting to move to Doxygen compatible commenting.
  • Director interface on Windows enables another application to control SciTE.
  • Opening SciTE on Windows 9x sped up greatly for some cases.
  • The command.build.directory property allows SciTE to run the build command in a different directory to the source files.
  • SciTE on Windows allows setting foreground and background colours for printed headers and footers.
  • Bug fixed in finding calltips in SciTE which led to no calltips for some identifiers.
  • Documentation added for lexers and for the extension and director interfaces.
  • SciTE menus rearranged with new View menu taking over some of the items that were under the Options menu. Clear All Bookmarks command added.
  • Clear Output command in SciTE.
  • SciTE on Windows gains an Always On Top command.
  • Bug fixed in SciTE with attempts to define properties recursively.
  • Bug fixed in SciTE properties where only one level of substitution was done.
  • Bug fixed in SciTE properties where extensions were not being matched in a case insensitive manner.
  • Bug fixed in SciTE on Windows where the Go to dialog displays the correct line number.
  • In SciTE, if fold.on.open set then switching buffers also performs fold.
  • Bug fixed in Scintilla where ensuring a line was visible in the presence of folding operated on the document line instead of the visible line.
  • SciTE command line processing modified to operate on arguments in order and in two phases. First any arguments before the first file name are processed, then the UI is opened, then the remaining arguments are processed. Actions defined for the Director interface (currently only "open") may also be used on the command line. For example, "SciTE -open:x.txt" will start SciTE and open x.txt.
  • Numbered menu items SciTE's Buffers menu and the Most Recently Used portion of the File menu go from 1..0 rather than 0..9.
  • The tab bar in SciTE for Windows has numbers. The tab.hide.one option hides the tab bar until there is more than one buffer open.

Release 1.35

  • Released on 29 January 2001.
  • Rewritten and simplified widget code for the GTK+ version to enhance solidity and make more fully compliant with platform norms. This includes more normal handling of keystrokes so they are forwarded to containers correctly.
  • User defined lists can be shown.
  • Many fixes to the Perl lexer.
  • Pascal lexer handles comments more correctly.
  • C/C++/Java/JavaScipt lexer has a state for line doc comments.
  • Error output lexer understands Sun CC messages.
  • Make file lexer has variable, preprocessor, and operator states.
  • Wider area given to an italics character that is at the end of a line to prevent it being cut off.
  • Call to move the caret inside the currently visible area.
  • Paste Rectangular will space fill on the left hand side of the pasted text as needed to ensure it is kept rectangular.
  • Cut and Paste Rectangular does nothing in read-only mode.
  • Undo batching changed so that a paste followed by typing creates two undo actions..
  • A "visibility policy" setting for Scintilla determines which range of lines are displayed when a particular line is moved to. Also exposed as a property in SciTE.
  • SciTE command line allows property settings.
  • SciTE has a View Output command to hide or show the output pane.
  • SciTE's Edit menu has been split in two with searching commands moved to a new Search menu. Find Previous and Previous Bookmark are in the Search menu.
  • SciTE on Windows has options for setting print margins, headers and footers.
  • SciTE on Windows has tooltips for toolbar.
  • SciTE on GTK+ has properties for setting size of file selector.
  • Visual and audio cues in SciTE on Windows enhanced.
  • Fixed performance problem in SciTE for GTK+ by dropping the extra 3D effect on the content windows.
  • Fixed problem in SciTE where choosing a specific lexer then meant that no lexer was chosen when files opened.
  • Default selection colour changed to be visible on low colour displays.
  • Fixed problems with automatically reloading changed documents in SciTE on Windows.
  • Fixed problem with uppercase file extensions in SciTE.
  • Fixed some problems when using characters >= 128, some of which were being incorrectly treated as spaces.
  • Fixed handling multiple line tags, non-inline scripts, and XML end tags /> in HTML/XML lexer.
  • Bookmarks in SciTE no longer disappear when switching between buffers.

Release 1.34

  • Released on 28 November 2000.
  • Pascal lexer.
  • Export as PDF in SciTE.
  • Support for the OpenVMS operating system in SciTE.
  • SciTE for GTK+ can check for another instance of SciTE editing a file and switch to it rather than open a second instance on one file.
  • Fixes to quoting and here documents in the Perl lexer.
  • SciTE on Windows can give extra visual and audio cues when a warning is shown or find restarts from beginning of file.
  • Open Selected Filename command in SciTE. Also understands some warning message formats.
  • Wider area for line numbers when printing.
  • Better scrolling performance on GTK+.
  • Fixed problem where rectangles with negative coordinates were invalidated leading to trouble with platforms that use unsigned coordinates.
  • GTK+ Scintilla uses more compliant signalling code so that keyboard events should propagate to containers.
  • Bug fixed with opening full or partial paths.
  • Improved handling of paths in error messages in SciTE.
  • Better handling of F6 in SciTE.

Release 1.33

  • Released on 6 November 2000.
  • XIM support for the GTK+ version of Scintilla ensures that more non-English characters can be typed.
  • Caret may be 1, 2, or 3 pixels wide.
  • Cursor may be switched to wait image during lengthy processing.
  • Scintilla's internal focus flag is exposed for clients where focus is handled in complex ways.
  • Error status defined for Scintilla to hold indication that an operation failed and the reason for that failure. No detection yet implemented but clients may start using the interface so as to be ready for when it does.
  • Context sensitive help in SciTE.
  • CurrentWord property available in SciTE holding the value of the word the caret is within or near.
  • Apache CONF file lexer.
  • Changes to Python lexer to allow 'as' as a context sensitive keyword and the string forms starting with u, r, and ur to be recognised.
  • SCN_POSCHANGED notification now working and SCN_PAINTED notification added.
  • Word part movement commands for cursoring between the parts of reallyLongCamelIdentifiers and other_ways_of_making_words.
  • When text on only one line is selected, Shift+Tab moves to the previous tab stop.
  • Tab control available for Windows version of SciTE listing all the buffers and making it easy to switch between them.
  • SciTE can be set to automatically determine the line ending type from the contents of a file when it is opened.
  • Dialogs in GTK+ version of SciTE made more modal and have accelerator keys.
  • Find in Files command in GTK+ version of SciTE allows choice of directory.
  • On Windows, multiple files can be opened at once.
  • SciTE source broken up into more files.
  • Scintilla headers made safe for C language, not just C++.
  • New printing modes - force background to white and force default background to white.
  • Automatic unfolding not occurring when Enter pressed at end of line bug fixed.
  • Bugs fixed in line selection.
  • Bug fixed with escapes in PHP strings in the HTML lexer.
  • Bug fixed in SciTE for GTK+ opening files when given full paths.
  • Bug fixed in autocompletion where user backspaces into existing text.
  • Bugs fixed in opening files and ensuring they are saved before running. A case bug also fixed here.

Release 1.32

  • Released on 8 September 2000.
  • Fixes bugs in complete word and related code. Protection against a bug when receiving a bad argument.

Release 1.31

  • Released on 6 September 2000.
  • Scintilla is available as a COM control from the scintillactrl module in CVS.
  • Style setting to underline text. Exposed in SciTE as "underlined".
  • Style setting to make text invisible.
  • SciTE has an extensibility interface that can be used to implement features such as a scripting language or remote control. An example use of this is the extlua module available from CVS which allows SciTE to be scripted in Lua.
  • Many minor fixes to all of the lexers.
  • New lexer for diff and patch files.
  • Error message lexer understands Perl error messages.
  • C/C++/Java lexer now supports C#, specifically verbatim strings and @ quoting of identifiers that are the same as keywords. SciTE has a set of keywords for C# and a build command set up for C#.
  • Scintilla property to see whether in overtype or insert state.
  • PosChanged notification fired when caret moved.
  • Comboboxes in dialogs in SciTE on Windows can be horizontally scrolled.
  • Autocompletion and calltips can treat the document as case sensitive or case insensitive.
  • Autocompletion can be set to automatically choose the only element in a single element list.
  • Set of characters that automatically complete an autocompletion list can be set.
  • SciTE command to display calltip - useful when dropped because of editing.
  • SciTE has a Revert command to go back to the last saved version.
  • SciTE has an Export as RTF command. Save as HTML is renamed to Export as HTML and is located on the Export sub menu.
  • SciTE command "Complete Word" searches document for any words starting with characters before caret.
  • SciTE options for changing aspects of the formatting of files exported as HTML or RTF.
  • SciTE "character.set" option for choosing the character set for all fonts.
  • SciTE has a "Toggle all folds" command.
  • The makefiles have changed. The makefile_vc and makefile_bor files in scintilla/win32 and scite/win32 have been merged into scintilla/win32/scintilla.mak and scite/win32/scite.mak. DEBUG may be defined for all make files and this will turn on assertions and for some make files will choose other debugging options.
  • To make debugging easier and allow good use of BoundsChecker there is a Visual C++ project file in scite/boundscheck that builds all of Scintilla and SciTE into one executable.
  • The size of the SciTE output window can be set with the output.horizontal.size and output.vertical.size settings.
  • SciTE status bar indicator for insert or overwrite mode.
  • Performance improvements to autocompletion and calltips.
  • A caret redraw problem when undoing is fixed.
  • Crash with long lines fixed.
  • Bug fixed with merging markers when lines merged.

Release 1.30

  • Released on 26 July 2000.
  • Much better support for PHP which is now an integral part of the HTML support.
  • Start replacement of Windows-specific APIs with cross platform APIs. In 1.30, the new APIs are introduced but the old APIs are still available. For the GTK+ version, may have to include "WinDefs.h" explicitly to use the old APIs.
  • "if" and "import" statements in SciTE properties files allows modularisation into language-specific properties files and choices based upon platform. This means that SciTE is delivered with 9 language-specific properties files as well as the standard SciTEGlobal.properties file.
  • Much lower resource usage on Windows 9x.
  • "/p" option in SciTE on Windows for printing a file and then exiting.
  • Options for printing with inverted brightness (when the screen is set to use a dark background) and to force black on white printing.
  • Option for printing magnified or miniaturised from screen settings.
  • In SciTE, Ctrl+F3 and Ctrl+Shift+F3 find the selection in the forwards and backwards directions respectively.
  • Auto-completion lists may be set to cancel when the cursor goes before its start position or before the start of string being completed.
  • Auto-completion lists automatically size more sensibly.
  • SCI_CLEARDOCUMENTSTYLE zeroes all style bytes, ensures all lines are shown and deletes all folding information.
  • On Windows, auto-completion lists are visually outdented rather than indented.
  • Close all command in SciTE.
  • On Windows multiple files can be dragged into SciTE.
  • When saving a file, the SciTE option save.deletes.first deletes it before doing the save. This allows saving with a different capitalisation on Windows.
  • When use tabs option is off pressing the tab key inserts spaces.
  • Bug in indicators leading to extra line drawn fixed.

Release 1.28

  • Released on 27 June 2000.
  • Fixes crash in indentation guides when indent size set to 0.
  • Fixes to installation on GTK+/Linux. User properties file on GTK+ has a dot at front of name: .SciTEUser.properties. Global properties file location configurable at compile time defaulting to $prefix/share/scite. $prefix determined from Gnome if present else its /usr/local and can be overridden by installer. Gnome menu integration performed in make install if Gnome present.

Release 1.27

  • Released on 23 June 2000.
  • Indentation guides. View whitespace mode may be set to not display whitespace in indentation.
  • Set methods have corresponding gets for UndoCollection, BufferedDraw, CodePage, UsePalette, ReadOnly, CaretFore, and ModEventMask.
  • Caret is continuously on rather than blinking while typing or holding down delete or backspace. And is now always shown if non blinking when focused on GTK+.
  • Bug fixed in SciTE with file extension comparison now done in case insensitive way.
  • Bugs fixed in SciTE's file path handling on Windows.
  • Bug fixed with preprocessor '#' last visible character causing hang.

Release 1.26

  • Released on 13 June 2000.
  • Support for the Lua language in both Scintilla and SciTE.
  • Multiple buffers may be open in SciTE.
  • Each style may have a character set configured. This may determine the characters that are displayed by the style.
  • In the C++ lexer, lexing of preprocessor source may either treat it all as being in the preprocessor class or only the initial # and preprocessor command word as being in the preprocessor class.
  • Scintilla provides SCI_CREATEDOCUMENT, SCI_ADDREFDOCUMENT, and SCI_RELEASEDOCUMENT to make it easier for a container to deal with multiple documents.
  • GTK+ specific definitions in Scintilla.h were removed to ScintillaWidget.h. All GTK+ clients will need to #include "ScintillaWidget.h".
  • For GTK+, tools can be executed in the background by setting subsystem to 2.
  • Keys in the properties files are now case sensitive. This leads to a performance increase.
  • Menu to choose which lexer to use on a file.
  • Tab size dialog on Windows.
  • File dialogs enlarged on GTK+.
  • Match Brace command bound to Ctrl+E on both platforms with Ctrl+] a synonym on Windows. Ctrl+Shift+E is select to matching brace. Brace matching tries to match to either the inside or the outside, depending on whether the cursor is inside or outside the braces initially. View End of Line bound to Ctrl+Shift+O.
  • The Home key may be bound to move the caret to either the start of the line or the start of the text on the line.
  • Visual C++ project file for SciTE.
  • Bug fixed with current x location after Tab key.
  • Bug fixed with hiding fold margin by setting fold.margin.width to 0.
  • Bugs fixed with file name confusion on Windows when long and short names used, or different capitalisations, or relative paths.

Release 1.25

  • Released on 9 May 2000.
  • Some Unicode support on Windows. Treats buffer and API as UTF-8 and displays through UCS-2 of Windows.
  • Automatic indentation. Indentation size can be different to tab size.
  • Tool bar.
  • Status bar now on Windows as well as GTK+.
  • Input fields in Find and Replace dialogs now have history on both Windows and GTK+.
  • Auto completion list items may be separated by a chosen character to allow spaces in items. The selected item may be changed through the API.
  • Horizontal scrollbar can be turned off.
  • Property to remove trailing spaces when saving file.
  • On Windows, changed font size calculation to be more compatible with other applications.
  • On GTK+, SciTE's global properties files are looked for in the directory specified in the SCITE_HOME environment variable if it is set. This allows hiding in a dot directory.
  • Keyword lists in SciTE updated for JavaScript to include those destined to be used in the future. IDL includes XPIDL keywords as well as MSIDL keywords.
  • Zoom level can be set and queried through API.
  • New notification sent before insertions and deletions.
  • LaTeX lexer.
  • Fixes to folding including when deletions and additions are performed.
  • Fix for crash with very long lines.
  • Fix to affect all of rectangular selections with deletion and case changing.
  • Removed non-working messages that had been included only for Richedit compatibility.

Release 1.24

  • Released on 29 March 2000.
  • Added lexing of IDL based on C++ lexer with extra UUID lexical class.
  • Functions and associated keys for Line Delete, Line Cut, Line Transpose, Selection Lower Case and Selection Upper Case.
  • Property setting for SciTE, eol.mode, chooses initial state of line end characters.
  • Fixed bugs in undo history with small almost-contiguous changes being incorrectly coalesced.
  • Fixed bugs with incorrect expansion of ContractionState data structures causing crash.
  • Fixed bugs relating to null fonts.
  • Fixed bugs where recolourisation was not done sometimes when required.
  • Fixed compilation problems with SVector.h.
  • Fixed bad setting of fold points in Python.

Release 1.23

  • Released on 21 March 2000.
  • Directory structure to separate on basis of product (Scintilla, SciTE, DMApp) and environment (Cross-platform, Win32, GTK+).
  • Download packaging to allow download of the source or platform dependent executables.
  • Source code now available from CVS at SourceForge.
  • Very simple Windows-only demonstration application DMApp is available from cvs as dmapp.
  • Lexing functionality may optionally be included in Scintilla rather than be provided by the container.
  • Set of lexers included is determined at link time by defining which of the Lex* object files are linked in.
  • On Windows, the SciLexer.DLL extends Scintilla.DLL with the standard lexers.
  • Enhanced HTML lexer styles embedded VBScript and Python. ASP segments are styled and ASP scripts in JavaScript, VBScript and Python are styled.
  • PLSQL and PHP supported.
  • Maximum number of lexical states extended to 128.
  • Lexers may store per line parse state for multiple line features such as ASP script language choice.
  • Lexing API simplified.
  • Project file for Visual C++.
  • Can now cycle through all recent files with Ctrl+Tab in SciTE.
  • Bookmarks in SciTE.
  • Drag and drop copy works when dragging to the edge of the selection.
  • Fixed bug with value sizes in properties file.
  • Fixed bug with last line in properties file not being used.
  • Bug with multiple views of one document fixed.
  • Keypad now works on GTK+.

Release 1.22

  • Released on 27 February 2000.
  • wxWindows platform defined. Implementation for wxWindows will be available separately from main Scintilla distribution.
  • Line folding in Scintilla.
  • SciTE performs syntax directed folding for C/C++/Java/JavaScript and for Python.
  • Optional macro recording support.
  • User properties file (SciTEUser.properties) allows for customisation by the user that is not overwritten with each installation of SciTE.
  • Python lexer detects and highlights inconsistent indentation.
  • Margin API made more orthogonal. SCI_SETMARGINWIDTH and SCI_SETLINENUMBERWIDTH are deprecated in favour of this new API.
  • Margins may be made sensitive to forward mouse click events to container.
  • SQL lexer and styles included.
  • Perl lexer handles regular expressions better.
  • Caret policy determines how closely caret is tracked by visible area.
  • New marker shapes: arrow pointing down, plus and minus.
  • Optionally display full path in title rather than just file name.
  • Container is notified when Scintilla gains or loses focus.
  • SciTE handles focus in a more standard way and applies the main edit commands to the focused pane.
  • Container is notified when Scintilla determines that a line needs to be made visible.
  • Document watchers receive notification when document about to be deleted.
  • Document interface allows access to list of watchers.
  • Line end determined correctly for lines ending with only a '\n'.
  • Search variant that searches form current selection and sets selection.
  • SciTE understands format of diagnostic messages from WScript.
  • SciTE remembers top line of window for each file in MRU list so switching to a recent file is more likely to show the same text as when the file was previously visible.
  • Document reference count now initialised correctly.
  • Setting a null document pointer creates an empty document.
  • WM_GETTEXT can no longer overrun buffer.
  • Polygon drawing bug fixed on GTK+.
  • Java and JavaScript lexers merged into C++ lexer.
  • C++ lexer indicates unterminated strings by colouring the end of the line rather than changing the rest of the file to string style. This is less obtrusive and helps the folding.

Release 1.21

  • Released on 2 February 2000.
  • Blank margins on left and right side of text.
  • SCN_CHECKBRACE renamed SCN_UPDATEUI and made more efficient.
  • SciTE source code refactored into platform independent and platform specific classes.
  • XML and Perl subset lexers in SciTE.
  • Large improvement to lexing speed.
  • A new subsystem, 2, allows use of ShellExec on Windows.
  • Borland compatible makefile.
  • Status bar showing caret position in GTK+ version of SciTE.
  • Bug fixes to selection drawing when part of selection outside window, mouse release over scroll bars, and scroll positioning after deletion.

Release 1.2

  • Released on 21 January 2000.
  • Multiple views of one document.
  • Rectangular selection, cut, copy, paste, drag and drop.
  • Long line indication.
  • Reverse searching
  • Line end conversion.
  • Generic autocompletion and calltips in SciTE.
  • Call tip background colour can be set.
  • SCI_MARKERPREV for moving to a previous marker.
  • Caret kept more within window where possible.

Release 1.15

  • Released on 15 December 1999.
  • Brace highlighting and badlighting (for mismatched braces).
  • Visible line ends.
  • Multiple line call tips.
  • Printing now works from SciTE on Windows.
  • SciTE has a global "*" lexer style that is used as the basis for all the lexers' styles.
  • Fixes some warnings on GTK+ 1.2.6.
  • Better handling of modal dialogs on GTK+.
  • Resize handle drawn on pane splitter in SciTE on GTK+ so it looks more like a regular GTK+ *paned widget.
  • SciTE does not place window origin offscreen if no properties file found on GTK+.
  • File open filter remembered in SciTE on Windows.
  • New mechanism using style numbers 32 to 36 standardises the setting of styles for brace highlighting, brace badlighting, line numbers, control characters and the default style.
  • Old messages SCI_SETFORE .. SCI_SETFONT have been replaced by the default style 32. The old messages are deprecated and will disappear in a future version.

Release 1.14

  • Released on 20 November 1999.
  • Fixes a scrolling bug reported on GTK+.

Release 1.13

  • Released on 18 November 1999.
  • Fixes compilation problems with the mingw32 GCC 2.95.2 on Windows.
  • Control characters are now visible.
  • Performance has improved, particularly for scrolling.
  • Windows RichEdit emulation is more accurate. This may break client code that uses these messages: EM_GETLINE, EM_GETLINECOUNT, EM_EXGETSEL, EM_EXSETSEL, EM_EXLINEFROMCHAR, EM_LINELENGTH, EM_LINEINDEX, EM_CHARFROMPOS, EM_POSFROMCHAR, and EM_GETTEXTRANGE.
  • Menus rearranged and accelerator keys set for all static items.
  • Placement of space indicators in view whitespace mode is more accurate with some fonts.

Release 1.12

  • Released on 9 November 1999.
  • Packaging error in 1.11 meant that the compilation error was not fixed in that release. Linux/GTK+ should compile with GCC 2.95 this time.

Release 1.11

  • Released on 7 November 1999.
  • Fixed a compilation bug in ScintillaGTK.cxx.
  • Added a README file to explain how to build.
  • GTK+/Linux downloads now include documentation.
  • Binary only Sc1.EXE one file download for Windows.

Release 1.1

  • Released on 6 November 1999.
  • Major restructuring for better modularity and platform independence.
  • Inter-application drag and drop.
  • Printing support in Scintilla on Windows.
  • Styles can select colouring to end of line. This can be used when a file contains more than one language to differentiate between the areas in each language. An example is the HTML + JavaScript styling in SciTE.
  • Actions can be grouped in the undo stack, so they will be undone together. This grouping is hierarchical so higher level actions such as replace all can be undone in one go. Call to discover whether there are any actions to redo.
  • The set of characters that define words can be changed.
  • Markers now have identifiers and can be found and deleted by their identifier. The empty marker type can be used to make a marker that is invisible and which is only used to trace where a particular line moves to.
  • Double click notification.
  • HTML styling in SciTE also styles embedded JavaScript.
  • Additional tool commands can be added to SciTE.
  • SciTE option to allow reloading if changed upon application activation and saving on application deactivation. Not yet working on GTK+ version.
  • Entry fields in search dialogs remember last 10 user entries. Not working in all cases in Windows version.
  • SciTE can save a styled copy of the current file in HTML format. As SciTE does not yet support printing, this can be used to print a file by then using a browser to print the HTML file.

Release 1.02

  • Released on 1 October 1999.
  • GTK+ version compiles with GCC 2.95.
  • Properly deleting objects when window destroyed under GTK+.
  • If the selection is not empty backspace deletes the selection.
  • Some X style middle mouse button handling for copying the primary selection to and from Scintilla. Does not work in all cases.
  • HTML styling in SciTE.
  • Stopped dirty flag being set in SciTE when results pane modified.

Release 1.01

  • Released on 28 September 1999.
  • Better DBCS support on Windows including IME.
  • Wheel mouse support for scrolling and zooming on Windows. Zooming with Ctrl+KeypadPlus and Ctrl+KeypadMinus.
  • Performance improvements especially on GTK+.
  • Caret blinking and settable colour on both GTK+ and Windows.
  • Drag and drop within a Scintilla window. On Windows, files can be dragged into SciTE.

Release 1.0

  • Released on 17 May 1999.
  • Changed name of "Tide" to "SciTE" to avoid clash with a TCL based IDE. "SciTE" is a SCIntilla based Text Editor and is Latin meaning something like "understanding in a neat way" and is also an Old English version of the word "shit".
  • There is a SCI_AUTOCSTOPS message for defining a string of characters that will stop autocompletion mode. Autocompletion mode is cancelled when any cursor movement occurs apart from backspace.
  • GTK+ version now splits horizontally as well as vertically and all dialogs cancel when the escape key is pressed.

Beta release 0.93

  • Released on 12 May 1999.
  • A bit more robust than 0.92 and supports SCI_MARKERNEXT message.

Beta release 0.92

  • Released on 11 May 1999.
  • GTK+ version now contains all features of Windows version with some very small differences. Executing programs works much better now.
  • New palette code to allow more colours to be displayed in 256 colour screen modes. A line number column can be displayed to the left of the selection margin.
  • The code that maps from line numbers to text positions and back has been completely rewritten to be faster, and to allow markers to move with the text.

Beta release 0.91

  • Released on 30 April 1999, containing fixes to text measuring to make Scintilla work better with bitmap fonts. Also some small fixes to make compiling work with Visual C++.

Beta release 0.90

  • Released on 29 April 1999, containing working GTK+/Linux version.
  • The Java, C++ and Python lexers recognise operators as distinct from default allowing them to be highlighted.

Beta release 0.82

  • Released on 1 April 1999, to fix a problem with handling the Enter key in PythonWin. Also fixes some problems with cmd key mapping.

Beta release 0.81

  • Released on 30th March 1999, containing bug fixes and a few more features.
  • Static linking supported and Tidy.EXE, a statically linked version of Tide.EXE. Changes to compiler flags in the makefiles to optimise for size.
  • Scintilla supports a 'savepoint' in the undo stack which can be set by the container when the document is saved. Notifications are sent to the container when the savepoint is entered or left, allowing the container to to display a dirty indicator and change its menus.
  • When Scintilla is set to read-only mode, a notification is sent to the container should the user try to edit the document. This can be used to check the document out of a version control system.
  • There is an API for setting the appearance of indicators.
  • The keyboard mapping can be redefined or removed so it can be implemented completely by the container. All of the keyboard commands are now commands which can be sent by the container.
  • A home command like Visual C++ with one hit going to the start of the text on the line and the next going to the left margin is available. I do not personally like this but my fingers have become trained to it by much repetition.
  • SCI_MARKERDELETEALL has an argument in wParam which is the number of the type marker to delete with -1 performing the old action of removing all marker types.
  • Tide now understands both the file name and line numbers in error messages in most cases.
  • Tide remembers the current lines of files in the recently used list.
  • Tide has a Find in Files command.

Beta release 0.80

  • This was the first public release on 14th March 1999, containing a mostly working Win32 Scintilla DLL and Tide EXE.

Beta releases of SciTE were called Tide

codequery-0.21.0/scintilla/doc/ScintillaRelated.html000066400000000000000000000500151310136352400224310ustar00rootroot00000000000000 Scintilla and SciTE Related Sites
Scintilla icon Scintilla and SciTE

Related Sites

Ports and Bindings of Scintilla

Scinterm is an implementation of Scintilla for the ncurses platform.

Scintilla.mcc is a port to MorphOS.

Wx::Scintilla is a Perl Binding for Scintilla on wxWidgets.

GtkScintilla is a GTK+ widget which enables easily adding a powerful source code editor to your applications. Harnessing the abilities of the Scintilla editing component, GtkScintilla adds a familiar GTK+/GObject API, making the widget comfortable to use in these programs, using all the typical GObject conventions.

Editawy is an ActiveX Control wrapper that support all Scintilla functions and additional high level functions.

Jintilla is a JNI wrapper that allows Scintilla to be used in Java with both SWT and AWT.

Delphi Scintilla Interface Components is a FREE collection of components that makes it easy to use the Scintilla source code editing control from within Delphi and C++ Builder.

wxStEdit is a library and sample program that provides extra features over wxStyledTextControl.

CScintillaCtrl, CScintillaView & CScintillaDoc are freeware MFC classes to encapsulate Scintilla.

ScintillaNet is an encapsulation of Scintilla for use within the .NET framework.

QScintilla is a port of Scintilla to the Qt platform. It has a similar license to Qt: GPL for use in free software and commercial for use in close-source applications.

GWindows is a Win32 RAD GUI Framework for Ada 95 that includes a binding of Scintilla.

ScintillaVB is an ActiveX control written in VB that encapsulates Scintilla.

FXScintilla is a port of Scintilla to the FOX platform. FXRuby includes Ruby bindings for FXScintilla.

Delphi wrapper for Scintilla which is also usable from Borland C++ Builder.

The wxStyledTextCtrl editor component in the wxWidgets cross platform toolkit is based on Scintilla.
A Python binding for wxStyledTextCtrl is part of wxPython.

gtkscintilla is an alternative GTK class implementation for scintilla. This implementation acts more like a Gtk+ object, with many methods rather than just scintilla_send_message() and is available as a shared library. This implementation works with GTK 1.x.

gtkscintilla2 is an alternative GTK class implementation for scintilla similar to the above, but for GTK 2.x.

pygtkscintilla is a Python binding for gtk1.x scintilla that uses gtkscintilla instead of the default GTK class.

ScintillaCtrl is an unmaintained ActiveX control wrapper for Scintilla.

Projects using Scintilla

ZeroBrane Studio Lua IDE is a lightweight Lua IDE with code completion, syntax highlighting, live coding, remote debugger, and code analyzer (Windows, OSX, and Linux).

XML Validator Buddy is an XML/JSON editor and XML validator for Windows.

SciTECO is an advanced TECO dialect and interactive screen editor based on Scintilla.

Quantum GIS is a user friendly Open Source Geographic Information System (GIS).

QGrinUI searches for a regex within all relevant files in a directory and shows matches using SciTE through the director interface.

Textadept is a ridiculously extensible cross-platform text editor for programmers written (mostly) in Lua using LPeg to handle the lexers.

Scribble is a text editor included in MorphOS.

MySQL Workbench is a cross-platform, visual database design, sql coding and administration tool.

LIVEditor is for web front end coders editing html/css/js code.

Padre is a wxWidgets-based Perl IDE.

CoderStudio is an IDE for Assembly programming similar to Visual Studio 6.0.

Enterprise Architect is a UML 2.1 analysis and design tool.

The CodeAssistor Editor is a small and simple source code editor for MacOSX, Windows, and GTK/Linux.

PBEditor is a text editor for PowerBuilder.

CrypTool is an application for applying and analyzing cryptographic algorithms.

FXiTe is an advanced cross-platform text editor built with the Fox GUI toolkit and the FXScintilla text widget.

Jabaco is a simple programming language with a Visual Basic like syntax.

LispIDE is a basic Lisp editor for Windows 2000, XP and Vista.

File Workbench: a file manager / text editor environment with Squirrel scripting.

Kephra is a free, easy and comfortable cross-platform editor written in Perl.

UniversalIndentGUI is a cross platform GUI for several code formatters, beautifiers and indenters like GreatCode, AStyle (Artistic Styler), GNU Indent, BCPP and so on.

Elementary Reports is designed to reduce the time to compose detailed and professional primary school reports.

Visual Classworks Visual class modeling and coding in C++ via 'live' UML style class diagrams.

Javelin Visual Class modeling and coding in Java via 'live' UML style class diagrams.

The ExtendScript Toolkit is a development and debugging tool for JavaScript scripts included with Adobe CS3 Suites.

TortoiseSVN is a Windows GUI client for the Subversion source control software.

Geany is a small and fast GTK2 based IDE, which has only a few dependencies from other packages.

ECMerge is a commercial graphical and batch diff / merge tool for Windows, Linux and Solaris (aiming to target all major platforms).

PyPE is an editor written in Python with the wxPython GUI toolkit.

Sciboo is an editor based on ScintillaNET.

The Scite Config Tool is a graphical user interface for changing SciTE properties files.

Scintilla Lister is a plugin for Total Commander allowing viewing all documents with syntax highlighting inside Total Commander.

ChSciTE is a free IDE for C/C++ interpreter Ch. It runs cross platform. Ch is for cross-platform scripting, shell programming, 2D/3D plotting, numerical computing, and embedded scripting.

Code::Blocks is an open source, cross platform free C++ IDE.

Notepad++ is a free source code editor under Windows.

Gubed is a cross platform program to debug PHP scripts.

LSW DotNet-Lab is a development environment for the .NET platform.

GLIntercept is an OpenGL function call interceptor that uses SciTE as a run-time shader editor.

wyoEditor is "A nice editor with a well designed and consistent look and feel".

Notepad2 is "Yet another Notepad replacement".

PyCrash Viewer can examine crash dumps of Python programs.

MPT series Wire Analyzers use Scintilla and SciTE.

MyGeneration is a .NET based code generator.

CSSED is a tiny GTK2 CSS editor.

IdePS is a free Integrated Development Environment for PostScript

CUTE is a user-friendly source code editor easily extended using Python.

Venis IX, the Visual Environment for NSIS (Nullsoft Scriptable Install System).

Eric3 is a Python IDE written using PyQt and QScintilla.

CPPIDE is part of some commercial high-school oriented programming course software.

Instant Source is a commercial tool for looking at the HTML on web sites.

RAD.On++ is a free C++ Rapid Application Developer for Win32.

wxBasic is an open source Basic interpreter that uses the wxWidgets toolkit. A small IDE is under construction.

Visual MinGW is an IDE for the MinGW compiler system.This runs on Windows with gcc.

The Wing IDE is a complete integrated development environment for the Python programming language. Available on Intel based Linux and Windows and on MacOS X through XDarwin.

Sphere is 2D RPG engine with a development environment.

Practical Ruby is an IDE for Ruby on Windows.

GNUe is a suite of tools and applications for solving the needs of the enterprise.

SilverCity is a lexing package that can provide lexical analysis for over 20 programming and markup languages.

HAP Python Remote Debugger is a Python debugger that can run on one Windows machine debugging a Python program running on either the same or another machine.

PyCrust is an interactive Python shell based on wxPython.

Komodo is a cross-platform multi-language development environment built as an application of Mozilla.

Filerx is a project manager for SciTE on Windows. Open source and includes an implementation of SciTE's Director interface so will be of interest to others wanting to control SciTE.

Anjuta is an open source C/C++ IDE for Linux/GNOME.

A version of SciTE for Win32 enhanced with a tab control to allow easy movement between buffers. Go to the "Goodies" area on this site.

Suneido is an integrated application platform currently available for Win32 that includes an object-oriented language, client-server database, and user interface and reporting frameworks.

Agast is an authoring system for adventure games which includes a customised version of SciTE.

Boa Constructor is a RAD GUI Building IDE for the wxWidgets cross platform platform. Written using wxPython with the wxStyledTextCtrl used as its editor.

PythonWin, a Win32 IDE for Python, uses Scintilla for both its editing and interactive windows.

Editing Components

CodeMirror is a versatile text editor implemented in JavaScript for the browser.

UniCodeEditor is a Unicode aware syntax editor control for Delphi and C++ Builder.

GtkSourceView is a text widget that extends the standard GTK+ 2.x text widget and improves it by implementing syntax highlighting and other features typical of a source editor.

AEditor is a free source code editing component implemented in Ruby.

SyntaxEditor is a commercial native .Net source code editing component.

jEdit is a good Open Source syntax colouring editor written in and for Java.

GTK+, the GIMP Toolkit, contains a rich text editing widget.
Gedit is an editor for GTK+/GNOME.

CodeGuru has source code for several Win32 MFC based editors.

SynEdit is a Win32 edit control written in Delphi.

SourceView is a commercial editing component for Win32.

Documents

The Craft of Text Editing describes how EMACS works, Craig A. Finseth

Data Structures in a Bit-Mapped Text Editor, Wilfred J. Hanson, Byte January 1987

Text Editors: Algorithms and Architectures, Ray Valdés, Dr. Dobbs Journal April 1993

Macintosh User Interface Guidelines and TextEdit chapters of Inside Macintosh

Development Tools

Scintilla and SciTE were developed using the Mingw version of GCC.

AStyle is a source code formatter for C++ and Java code. SciTE has an Indent command defined for .cxx files that uses AStyle.

WinMerge is an interactive diff / merge for Windows. I prefer code submissions in the form of source files rather than diffs and then run WinMerge over the files to work out how to merge.

Python is my favourite programming language. Scintilla was started after I tried to improve the editor built into PythonWin, but was frustrated by the limitations of the Windows Richedit control which PythonWin used.

regex is a public domain implementation of regular expression pattern matching used in Scintilla.

Inspirational coding soundscapes by David Bridie.

codequery-0.21.0/scintilla/doc/ScintillaToDo.html000066400000000000000000000075311310136352400217230ustar00rootroot00000000000000 Scintilla and SciTE To Do
Scintilla icon Scintilla and SciTE

Bugs and To Do List

Feedback

Issues can be reported on the Bug Tracker and features requested on the Feature Request Tracker.

Scintilla Bugs

Automatic scrolling when text dragged near edge of window.

Scintilla To Do

Folding for languages that don't have it yet and good folding for languages that inherited poor folding from another languages folding code.

Simple pattern based styling.

Different height lines based upon tallest text on the line rather than on the tallest style possible.

Composition of lexing for mixed languages (such as ASP+ over COBOL) by combining lexers.

Stream folding which could be used to fold up the contents of HTML elements.

Printing of highlight lines and folding margin.

Flow diagrams inside editor similar to GRASP.

More lexers for other languages.

SciTE To Do

Good regular expression support through a plugin.

Allow file name based selection on all properties rather than just a chosen few.

Opening from and saving to FTP servers.

Setting to fold away comments upon opening.

User defined fold ranges.

Silent mode that does not display any message boxes.

Features I am unlikely to do

These are features I don't like or don't think are important enough to work on. Implementations are welcome from others though.

Mouse wheel panning (press the mouse wheel and then move the mouse) on Windows.

Adding options to the save dialog to save in a particular encoding or with a chosen line ending.

Directions

The main point of this development is Scintilla, and this is where most effort will go. SciTE will get new features, but only when they make my life easier - I am not intending to make it grow up to be a huge full-function IDE like Visual Cafe. The lines I've currently decided not to step over in SciTE are any sort of project facility and any configuration dialogs. SciTE for Windows now has a Director interface for communicating with a separate project manager application.

If you are interested in contributing code, do not feel any need to make it cross platform. Just code it for your platform and I'll either reimplement for the other platform or ensure that there is no effect on the other platform.

codequery-0.21.0/scintilla/doc/ScintillaUsage.html000066400000000000000000000556341310136352400221310ustar00rootroot00000000000000 Scintilla Usage Notes
Scintilla icon Scintilla Usage Notes

Implementing Auto-Indent

The key idea is to use the SCN_CHARADDED notification to add indentation after a newline.

The lParam on the notification is a pointer to a SCNotification structure whose ch member specifies the character added. If a newline was added, the previous line can be retrieved and the same indentation can be added to the new line.

Here is the relevant portion of code from SciTE: (SciTE.cxx SciTEWindow::CharAdded)

if  (ch  ==  '\r'  ||  ch  ==  '\n')  {
    
char  linebuf[1000];
    
int  curLine  =  GetCurrentLineNumber();
    
int  lineLength  =  SendEditor(SCI_LINELENGTH,  curLine);
    
//Platform::DebugPrintf("[CR] %d len = %d\n", curLine, lineLength);
    
if  (curLine  >  0  &&  lineLength  <=  2)  {
    
int  prevLineLength  =  SendEditor(SCI_LINELENGTH,  curLine  -  1);
    
if  (prevLineLength  <  sizeof(linebuf))  {
        
WORD  buflen  =  sizeof(linebuf);
        
memcpy(linebuf,  &buflen,  sizeof(buflen));
        
SendEditor(EM_GETLINE,  curLine  -  1,
                   
reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
        
linebuf[prevLineLength]  =  '\0';
        
for  (int  pos  =  0;  linebuf[pos];  pos++)  {
            
if  (linebuf[pos]  !=  ' '  &&  linebuf[pos]  !=  '\t')
                
linebuf[pos]  =  '\0';
        
}
        
SendEditor(EM_REPLACESEL,  0,  reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
    
}
}

Of course, fancier handling could be implemented. For example, if the previous line was the start of a control construct, the next line could be automatically indented one tab further. (Assuming that is your indenting style.)

Implementing Syntax Styling

Syntax styling is handled by the SCN_STYLENEEDED notification. Scintilla keeps track of the end of the styled text - this is retrieved with SCI_GETENDSTYLED. In response to the SCN_STYLENEEDED notification, you should apply styles to the text from ENDSTYLED to the position specified by the notification.

Here is the relevant portion of code from SciTE: (SciTE.cxx)

void  SciTEWindow::Notify(SCNotification  *notification)  {
    
switch  (notification->nmhdr.code)  {
    
case  SCN_STYLENEEDED:  {
            
if  (notification->nmhdr.idFrom  ==  IDM_SRCWIN)  {
                
int  endStyled  =  SendEditor(SCI_GETENDSTYLED);
                
int  lineEndStyled  =  SendEditor(EM_LINEFROMCHAR,  endStyled);
                
endStyled  =  SendEditor(EM_LINEINDEX,  lineEndStyled);
                
Colourise(endStyled,  notification->position);

Colourize(start, end) retrieves the specified range of text and then calls ColourizeDoc in keywords.cxx. It starts the process by calling:

    SendMessage(hwnd,  SCI_STARTSTYLING,  startPos,  31);

and then for each token of the text, calling:

    SendMessage(hwnd,  SCI_SETSTYLING,  length,  style);

where style is a number from 0 to 31 whose appearance has been defined using the SCI_STYLESET... messages.

Implementing Calltips

Again, the SCN_CHARADDED notification is used to catch when an opening parenthesis is added. The preceding word can then be retrieved from the current line:

    char  linebuf[1000];
    int  current  =  SendEditor(SCI_GETCURLINE,  sizeof(linebuf),
        
reinterpret_cast<LPARAM>(static_cast<char  *>(linebuf)));
    int  pos  =  SendEditor(SCI_GETCURRENTPOS);

    int  startword  =  current  -  1;
    while  (startword  >  0  &&  isalpha(linebuf[startword  -  1]))
        
startword--;
    linebuf[current  -  1]  =  '\0';
    char*  word  =  linebuf  +  startword;

Then if a calltip is available it can be displayed. The calltip appears immediately below the position specified. The calltip can be multiple lines separated by newlines (\n).

    pos  =  SendMessage(hwnd,  SCI_GETCURRENTPOS,  0,  0);
    SendMessageText(hwnd,  SCI_CALLTIPSHOW,  pos  -  wordLen  -  1,  calltip);

The calltip can be removed when a closing parenthesis is entered:

    if  (SendMessage(hwnd,  SCI_CALLTIPACTIVE,  0,  0))
        
SendMessage(hwnd,  SCI_CALLTIPCANCEL,  0,  0);

Obviously, it is up the application to look after supplying the appropriate calltip text.

SciTE goes one step further, counting the commas between arguments and highlighting the corresponding part of the calltip. This code is in ContinueCallTip.

Page contributed by Andrew McKinlay.

codequery-0.21.0/scintilla/doc/Steps.html000066400000000000000000000111341310136352400203030ustar00rootroot00000000000000 How to use the Scintilla Edit Control in windows?

How to use the Scintilla Edit Control in windows?

This should be a little step by step explanation how to use Scintilla in the windows environment.

How to create Scintilla Edit Control?

First of all, load the Scintilla DLL with something like:


	hmod = LoadLibrary("SciLexer.DLL");
		if (hmod==NULL)
		{
			MessageBox(hwndParent,
			"The Scintilla DLL could not be loaded.",
			"Error loading Scintilla",
			MB_OK | MB_ICONERROR);
		}
		

If the DLL was loaded successfully, then the DLL has registered (yes, by itself) a new window class. The new class called "Scintilla" is the new scintilla edit control.

Now you can use this new control just like any other windows control.


	hwndScintilla = CreateWindowEx(0,
		"Scintilla","", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPCHILDREN,
		10,10,500,400,hwndParent,(HMENU)GuiID, hInstance,NULL);
		

Note the new window class name: "Scintilla". By reaching this point you actually included a Scintilla Edit Control to your windows program.

How to control the Scintilla Edit Control?

You can control Scintilla by sending commands to the Edit Control. There a 2 ways of doing this. A simple and fast way.

The simple way to control Scintilla

The simple way is just like with any other windows control. You can send messages to the Scintilla Edit Control and receive notifications from the control. (Note that the notifications are sent to the parent window of the Scintilla Edit Control.)

The Scintilla Edit Control knows a special message for each command. To send commands to the Scintilla Edit Control you can use the SendMessage function.


	SendMessage(hwndScintilla,sci_command,wparam,lparam);
			

like:


	SendMessage(hwndScintilla,SCI_CREATEDOCUMENT, 0, 0);
			

Some of the commands will return a value and unused parameters should be set to NULL.

The fast way to control Scintilla

The fast way of controlling the Scintilla Edit Control is to call message handling function by yourself. You can retrieve a pointer to the message handling function of the Scintilla Edit Control and call it directly to execute a command. This way is much more faster than the SendMessage() way.

1st you have to use the SCI_GETDIRECTFUNCTION and SCI_GETDIRECTPOINTER commands to retrieve the pointer to the function and a pointer which must be the first parameter when calling the retrieved function pointer. You have to do this with the SendMessage way :)

The whole thing has to look like this:


	int (*fn)(void*,int,int,int);
	void * ptr;
	int canundo;

	fn = (int (__cdecl *)(void *,int,int,int))SendMessage(
		hwndScintilla,SCI_GETDIRECTFUNCTION,0,0);
	ptr = (void *)SendMessage(hwndScintilla,SCI_GETDIRECTPOINTER,0,0);

	canundo = fn(ptr,SCI_CANUNDO,0,0);
			

with "fn" as the function pointer to the message handling function of the Scintilla Control and "ptr" as the pointer that must be used as 1st parameter. The next parameters are the Scintilla Command with its two (optional) parameters.

How will I receive notifications?

Whenever an event occurs where Scintilla wants to inform you about something, the Scintilla Edit Control will send notification to the parent window. This is done by a WM_NOTITY message. When receiving that message, you have to look in the xxx struct for the actual message.

So in Scintillas parent window message handling function you have to include some code like this:

	NMHDR *lpnmhdr;

	[...]

	case WM_NOTIFY:
		lpnmhdr = (LPNMHDR) lParam;

		if(lpnmhdr->hwndFrom==hwndScintilla)
		{
			switch(lpnmhdr->code)
			{
				case SCN_CHARADDED:
					/* Hey, Scintilla just told me that a new */
					/* character was added to the Edit Control.*/
					/* Now i do something cool with that char. */
				break;
			}
		}
	break;
			

Page contributed by Holger Schmidt.

codequery-0.21.0/scintilla/doc/annotations.png000066400000000000000000000612331310136352400213670ustar00rootroot00000000000000‰PNG  IHDRGŽÓ ïgAMA± üa IDATxœí½}´U÷Ûk=³Ö]w˜?îRÇ ã€Ž „ ò Gð‚€H40@Bo‚&NDÑQƒG½çŽO¼ŽŠŠ^'-YŽ3ÎAçàãQÁŒÎÑåL$‚È$Bd!꺻Þ÷{UuWwW×ù|Öw%Ý»wí½kWuïïùí]U@å¹/8!„B5_š‹ëh~îƒüB!„j¾4o×É,Ýyë®ϼí]W¾åV„B!Ôd Ï&œ›ðo™±ëÈ–ný›oA!„B“"ÙØ…®N¼¹æÆÍ—^sB!„š, '¼\èêž}Ào¹å_5ãÒõ§þźu릦¦ÎŠ/.¿üòîkN÷l‚B!„F&áå„£Ë\Ý ¦V®\¹fÍš—¾ô¥\pÁyç[º—¿üå/{ÙËN8ꨣ¬"„Bµ@\²áìµ—ŸãÂ/¾û#ÌnzôŽ·ýòƒ·>¶õ–}[ozâý7>ùþý¾ëŸzßÌ—·|ðeg­ÆNn§äên}çÙë®’µråJaéV¯^}ÑE¿ùÍo¹ôÒK/»ì² /¼ðꫯžšš:ÿüó_ñŠWœtÒI/~ñ‹O8á„Ã?\Û!„B¨:yê‚«ÞtóU×½õ²«¯—õ†îÙ !‘Ad™ÙêÄÓÎï½ëÿüî»oøÆ-WýóM똹äÇo¾èßÞôš¿ö5»¯yõ/6œûØUg?yåËuó%ÿŽ÷‹Ìr;…—Ë]ÝYk¯”õÚ×¾öœsÎyÉK^róÍ7¿ýí›Î=÷Üw¾ó±±[¿~½puÓÓÓ§žzêqÇwì±Ç ó§m~ÖÚ¿ù¶|S¼G¾z­œž¿õë¶Þ#Jækwü"øîßd>ø]QÖ÷?(½(QæhuóWÎ{¡T ž<¼ã¶ñ·!„Bk¯–ëŠknzÝU3…ÙDæA¶Fí¡­·þjýB{®8ó»o¾ø_®yÍ6^øoÝ ¼ê¼Ÿ_y¶HŒ?ýÕ{®™åvæ®næm·»æüLû_}Ó¥—^zÚi§½á oxûÛß~Ë-·¼ùÍo¾æškÞùÎw]vÙë…·†Oø¼—¾ô¥Gu”0v'Ÿ|ò ^}†\±k>òMac¾þÅ?ü“-û-ûâ=¡§Ù¹%KðÞ3Ÿwõ‘Jþ\·ý¿Aððÿ¸4z}é„­Ûû± âÌ×VX¤Ýß8óÐ7äU,|q¿eoy‡Ø$øÑ ËÞr¨£Ìñèªÿñ³ øÙçoÖ²¨Ä^û[åì¾ó£ÏZyÑøÛB-yÅþì¢Ë¯-TìÏÌ­Ö­„QûÅ_ݰﲩ_]zjœíGo<ïÁ+ÎùÙú³â·û.;M|$2ì»ýÍ"³ÜNáåòXݱkÎËtÑEuÖY«W¯¾í¶ÛÞñ‰O|B8¼[oÝtûíï}Õ«^uÞyç]pÁkÖ¬9æ˜câyXñB.áØ5Ž]Ý~‡¾>|û¾ûÅ»{Þ*<͇%WwÞ±Ev§®º{wüôã~þIéG‰ÉeÞ'Þ|ã­[â*=T8'Q¾µÌ1)já=oÝò¬•뢔×?ǹ×ážþ,=Ò?ýøGÓMB!4N Ëuy÷Æ×®S¬uë¯Í^kÙ"¦oeuuÖ­BWwûu]²úÉ‹OÎr>pÕyÙëݯ?C|$2<ö®7E®.og«»áíï:fõ¹G¯~e¬SN9eÕªUëׯ~nÓ¦M7Ýt“ø·×ëMOO ?777wÙe—xâIñõ°ÇD¬X±"Û<Ò‡î]Ý!—…oß{_lVö?&J®îÀ ‡¯>ç¶oeíüùg®<çèÕ×}æ!i¿õ¡$åë_|ÖŠ×Æ…Då|èy'ÄÛþà†e[nùfœ|ßm«Ï‰ë½÷[÷©Å¾Ò&©®‡¾xIÒ˜4T×Ï>5ÑQ ¡+¿µÝrÌ9þª“Ìÿë“Ï:÷ÞŸÆ®NìoÉZB!44 ËuÙ†™ó/ÙàÖÕñ ‘Md6·£½¶I”bÙJµ½¹ñ—÷ÔùG?òš“4#ø¯—œ.ÅG"Ãc[ÂExY#…‹^Nvu¯\yòÙ±;ì°—½ìeþð‡/ºè¢÷¼ç=wÞyç«_ýê‹/¾ø{ßûžø÷ä“O¾å–·ßxãÍkÖ¬9è ƒV¯^½víÚ?þã?Î64›¸ºå—†oß›F­VÌ¥®îªÃ¢œË—oùÃ?ÙrÃ×Eêßv¼H™û§8ò0]l~Éç gWÃ?ûÁ=Æ&ïæÐ…Ó¯×-?ùºOí¢Xñz6.ÿ¼å×í·ì£{0+ölKóÚqÁqí{?öª°=›Ķ_¿àøèÓo~F|ô¬k­‰Fv½óeuÖ_uøÑñW=kí—Å®<ºº²U „BhˆzñKÏ¿äª5g_²æœ‰lGp†¹•öµœrмՑÇOí¹âÌÇ–ÿ·§—w:ì{àˆgæ»#ž)$ÅG"ÃcWL‹*²F §¸º£O9ûˆÎŒ%\ÝÙgŸý’—¼ä½ï}ïµ×^{ã7Þ}÷Ý"夓Nº÷Þ{?ñ‰OŸsÎ+O<ñÄ×½îu×\sÍé§Ÿ¾ÿþû W—m.´â„;bWwÐ%ÉëÝÿ(ŒÚ²•ÑëÐÕ½ñP‘ívùšŠ½;÷Í d‹zCowèßÿ©‡‚Ýw~èÌOüGhà.üŸ"ñoÛ•ÿ¦O?»ºtsQo´ùÅŸûyZì™Jó¢z¿þÖ-û¥µtÐ[<6lö?%ùÞ[—……Çûb&–×A†á·xó-îªvö§ÿè3» R-!„†–yòù¿ñE§W(‘í•§˜[‰q_Ë)§È[|ĉû.ù¯—w~}hgÏ þ@‹ÕýàðÿC$ŠD†'.©¨"k¤pqŠ«;võ+<áÌXÂÕyä‘kÖ¬¹è¢‹ÞñŽwWwùå—ò“Ÿ¼îºë^þò—_yå?ò‘ˆ×ÂÏwÜqGqÄA$\]¶y¤;î•òÐÿÙ¸g¬ûÒî`Ï=_Þîû7-Û²ÿÊ(ƒäêîMݤØö/>÷p쉊•Û§ÿÇÇÎ7Wuû÷â°â~aiÞÄä£Ì˜~{Ë Fi±Ž}ãMa0Rص÷_è©ZHruö¢B!4B=÷°ã_ýº«^´æ\!Ífʼn™.|ݑٺ•–SN‘·:ðÐã~}ÕYÁ‘õß²Z~ò¢?Î^?qÔÿ~tä<½á ‘9kä±Z¬îE§ž»âøéXÂÕ ¯¶jÕª“N:éÌ3Ï<÷ÜsÏ:ë¬uëÖÝ|óÍW\qÅgœ‘]+\Ý _øÂ8V—mik3Ž-Ö~^yh–š¶+_›ú›göª-áL¥°_7xLžáд´(äÎ¥ ·ìÈî§ãË þéóû-»ö 0Cœ"\x»5þE´áÃi±ÓJóÞýÏ‘K3Òß°}w8üø_xeym²I{lŠ íÚ;¾c¯ZËvØ«ìå „Bh„ú³C^ôº7^{ÊË^-¤¹º81“È&2n¥m+oõœåÇ>}ó%ÁÙç>?ÎöèyÇÄŠßþþìåáGgô»[.™³F '¹ºMïzÑêW¾ðEgÄ:ñà =ôÐ+V¬\¹òÄO\½zõÉ'Ÿ<555==?4ì„N8þøãŧ|ðøÌg>óù'Ÿ“m.tØq©»zþÅ–taÚ¸bí]Çþ怣»wFF-eX~\ºÕ»B–¶ìÚçwƺ»~žD΢Â;.ÞuÓkž¾á‚ÿºáÜ –øèúWýöC7‹ÌY#…‹^Nru§÷‚£OËôgög‡rÈá‡~ÜqÇMEzè¡ñ­éâ…tÂÒ ç'þ}îsŸ»lÙ2yÛX‡½îÙ˶ì÷¼uæG>/œ¯|öak9úìçLÑ>{ùúg,ÛòŒåg‡ÛvM2§yÀúç½&+Ml’¾Bd¾æÀ£Ó·Q9ûE)Z½Ï_~³ðRÏY±F®Wna\‘¨7-$É·a¿®y¶%1iU¡¢v¦sÐi!fÕæ&Z"B!„Æ"a¹.^õu7½ýÒ+Þä‘0g"›È<ÈV¨ýÕ_~ô©÷Í<õîî¯oï>uû5¿~ϛċ§ß½áwï~cðî+‚Û/n¿ò鿺vëæŠÌY#…‹Ë]ÝÍï¸ýäÓ/xÁÊÓd ¯vðÁ c·bÅ á䄟[¹r¥ðvGydüB8¿g>ó™ôG¤mˆB!Ô-?ò%‡¿è%—^qÍMoßâ‘È ²‰Ìƒluðá«_xìê÷Ü~罿‘õÔ?ö›íÿýéíÿýwÛ?*þD6‘9k¤pqÂË%®î–¿|Ï)§_pð«5=ûÙÏ–Ãr2ûï¿ÿ3žñ aéÌ­B!„Ú¡åG¼ä ÃOùÓƒWjzÎò£´”ƒ8å•kÙJ5¡ý:R“Ȧ¥ˆl f.Nx¹ÜÕ­~Ù«zá)V{b8åúl•ô"W~„B!4"­8åÔé sWwó;n_sæÚñ7 !„BU”pqù ¬x5õŠuût¼xB!„&EzÐ*áâtWwè1S{ý%B!„š ÿ†«C!„šxáêB!„Ú \B!„P4°«»ïŽ5kîøî07¼’'½1ìÑÒQoc'âêžúzô-á„A¡Æ«´«¿é™½øW~ßz½Ì5[ïS?•˯Z‘Tøš­÷ÚSýí¦²Õý[׬ÙÚ«}hÅv4Jíï`ƒôw¥Z}Õõ}øFptÆ(õÌw»´»¯Î¿òëaöž«3'®“Bh驊««ý·Þ¿mÉÁÆ.u8Üp÷ =ÕçnFNî¾;j- =¡¥Ë·]í6v£±g8ä{š¿=óõP{W‡B«\K³†Ü<²Žr#/?H• ¼ «a F ¥€S”ÕµuC‰L I£)[³ªM}7´uQƒ{îîRÒãÚÅ.WÅͱ9‹ªZSÒüy'”³ Q~&l¼zÜEÒQÛ°ÑØñ¼ZÇVn’q"¹¬tøìgšR ^޹Õàg~ocGüÕa©=?ý:kÖèMuŸ·ƒöžÿµe„BMQ]3°’‹*ÿ7½Vf:’åƒî3°½xÏ£tÞf#k>P…Ž$´äDæò-‰KŽÚnîì®$E ÉWoØUt÷ÕýÇÞòn Çø°FJÖ½iKzÊ™Hˈ•Úšp˜âe§¢7CëØzšä>²ÉásŸiž3Äܪ†3_µõ–NÓ 7j”÷®¿Þë¨X÷+¯Ë8Ê!„š¡šbu¦ç+S½«L³|kæ2Š˜§ãºÞÂÑgÃʶ!ÓÀ›»»zÂÁ2‰Å§qƒ+M»ZóΔ8 4@P0ÛGÝV1H³‡Í†ÕÕ¤Â#[&¥d9žùþÚýM’ÿ¾Ê{~°Þsí—ÙÎá-õC!Ô—êsu}X®¸ºP¦çHË廓ކâê"»ÖK-š»»Â(]/ŽÏE°·±ÚôVŸ®.ë¢òVÀ3[‹««Þ$ó`Y9àêñyZ9þ­ú;XæùYèê<ßšZzϺ_¸:„j¼êZW'ÍL•—}4’½i®®|Bt¹Z(Õ®×ʘí×ÕÅñBcÚÎè®ûî¸zM²ï»[7^½acµñÒ°D%g`¯NÖ)JvÉ~µ„Ü€ÌýdGÍØq¥êU¹In n9²yK ç—ž`æVé.[ ~æóÎy÷ÚÏ:ß™¼§¶ÞsÔb=Ê!„š¡a\-Qe™¶ºœ'„Ò›r%ëë¥zã¥rå®–¸_¹ó†c{/]>o֥寖èÓÕY—^YºKr }Œ—ÎÆû¯–È—äWºÿ‹|gËÅ’ÿNŽš÷j ×Ue›dTí;²ÙëôLËA¶SYkõrl[ |æKfN«Ë•j´Ä8+öžÕ[kqe„BMÏ–@5©ÿ)òq+½¢e[Mº&÷(#„ÐPW×1¼úa”9ì’ØŒï¬Y]ÐßxßÇîgq¸J1§þ¶û!ëã€Ú3ãêB¨Á"V‡B!ÔáêB!„Ú \B!„P„«C!„jƒœ®.€É¡ V7îæŽ±ûk„B¡AäsuÂëüd×CKD·½û}c?!„B}Ë7+¼ÎØÛ72}ö3ŸÇØ!„Bhr…«K„«C!„ÐD W—W‡B¡‰Ö0]ÝD=\W‡B¡‰Vß®îî«5Ç&<\þ Éè™W—}$ç KX³õ¾´|QÈ}!®!„B­~\Ýw·FþÍtuYJocøiW»·´XÁÕ=£´‘W‡B¡‰V¿±:Óu))J¤-q‘ŒBq÷g k¶ÞßÛÄçz6özEJXBü".!úwë†d“Äö)ÕeŸ†¯“B’àŸ™bÙ#\B!„&ZCqu¡³Æêz;î63G–ëþ­DJ2±ÛÛ¹·ÌÕef.Ž* =¢bõÂü{azjàÌC¸:„BM´juuÙ²:mÍœç£øµ°zñ¿¡ñŠí—´2OËì‹&Š£ƒI|Α¢ W‡B¡‰Öf`¥yÒÓz‘D<]ÛÛÇÛ¾»uc8g*g«îêžæáÌU¸:„BM´Fâê´™ÙG³)Ñ$goCxDâüz£7÷[KPãq Æ lr†øW½¢VIÑ…«C!„ÐDk€k`µkÜ>¯—^è°fÃÆ,Oœ»·Üí=šL×*W¸:e†7¾Z"_„—˜9-ŲS¸:„BM´x¶D"\B!„&Z•]]Ç`ìûP‹pu!„šh«K„«C!„ÐD W—W‡B¡‰®.®!„B-\]"\B!„&Z¸ºD±« &acpuŠÄ.#„BM–âà”ÏÕ‰!„B¨ùò¹:ñB!„š9]ÝØ-'B!„*© |®nì–!„Bê'»*vu÷@iDoîyô—%ÿxð±à[?yró‡¿ðé¿{àίÜïѧ¾ü½·}ðs"sf'ä›xàêjK•®î¶¿¾û›?~¢Lf‘MdÆÕ‚€XT!vuåóãêF–*‘¹ºßý¾XA+]Ý]ׯêd¬ºþ.ËÇJª7ÿÖµî’*«€*d®î±_+h£«&míÖüu§£¾3ÚÖµ¾üÙ»ÁÒ@%2W·ûqE­‹–"´ÑÕ)9k’ýíkÏÉÄê  ™«ÛùH.aébɉBAë]]8ªEÛ|®NŽÎ…¦nÕ*ÏTn5°tP‰ÌÕýó¿?+³t±²t¡ Ý®Î>ƒjwuéìlö‰e2v c«€*d®î?|L(3sÚëXA›]]¦³ù°’3°z6KÔ¯X:¨Dæê¾öÀ£™¯ci)A[]ï:¯«“Ì›fãuu±:¨Bæêþáþ_ ¿È$§­tu® ]‚„“ÞÉÛʯ¿K•Ð\_A]]~‡9ýBåÆtù²×ýꤽÃI@¬ª€«k(X:¨®®¡Äê  ¸º†‚¥€JÄ®î;>-ß—Î%‘ W7"buPáêv?ÜzÇ]øäW uËÖÏþë/\Ý(ÀÒ@% zZ;*WW֯ŹÒTW§`æ¬Iņ»Ážô«K^¨o϶é$1Ôô® è£Ò®.+¥«!ª–'¾mzÛž ,ç¤aÛýÑ`®NÏUR”¼¹¥‰GøÌÈ®Bž•°ö†±×ª¡²¸ºø$Qτұ:5rY­7ä l¼ëP\]ŽÝ£Ù-Z:;;œ@Ý=R¬Îc]ôVqx¥?*ëê$‡åš¤“çXý®®¤_tmR~–°p«<ˆ¦ =³0f€Êþ²ôNeýžÖ`­ÉÜPo±=V·}{þg@YW§´ª½!gtⲞÇÑTW—z1›G«:[‹§Scuo]]òvzÛž$$“Þ%?ªpµ„BsL¶Vpuò`žF­†êêÔ¶ÊSÈÓÛæõ…púÕ’7±ÚµWgÛÙì“Ä#ÅÿIó²csuj¼³ÞÐ6ô«¾¯OXÒàêB+0mLÁô®Î¤KÐ}ÚÖµÒ;}Ûšu÷ v ¬„òº:3Ý ³.Ä2K󬫫æê*¬«›ŸQÛjî‚bR9Hioôj¬]Q´³yAògn§hìuẺf`ÍæVë ¹°"ËVÎ\yŸ¹Ô¦)7¦ëdvMÙ@»çÉ`÷¨“ úºVR6¯ ÷XkºtadtµªºKž¬ÓK“fõŠ£S}¹:ý¢Mù XÏÚ5Ýe©Hù|s”š‘±ílV…ërOo”½6μ]=O¤SÈ ¬:=Z¡7Ô½æX€ÚÁÕ56x§$GAÿ÷«ŽÞ(eêJÍÒ€®®¡<vâùc2LËÔ3dï ä‰aUÁÕ5,ݤQþb¡7£NÈ{Øt@+ÁÕ5”€XTW×P°tP \]C ªÄê:K˜qýz4 \]C©« ¶}ûZ‚ÂÕdàêJP1V7öÁÕ¦½N§·£(ÛÎÙ¹Ngs™œª»áV›;S ;‡Óþ~6,¸=;º›û¨nô¶W«k(-‰Õ‰ñxjv¯1,ûÃñ5ö ‰]ë.„#nô©‘ Æéˆ+[1sÛ~]T…ääºòÆk¡ùmäd3§x£îb^ äDÓ½XÔj´û#›µ‘"15I‹]Ùo¹Ëñ6Þ«S¼¬ôZrÞqùÖDWK”*’­¢^’ûÙZ…Ü}>Ý}4ÕCãlª­%¸:;¸º†Ô«ã¢<¦J¦D Òè)š«]sÛJ’âZœÆ³÷æÆÑíê$Ûê5‚ZЦnéý IDATëµÅâø³íUñœ¼ˆ°°œ ·µ!sEJ9ikbáÙ·r¤Õ³JÒ}4+µ_® W×Pê‰ÕÉלJäA;WŠæ6¤1Õܶº«³Ç‡ò1;mö\·;WÕÕ©‘¹!º:K#¥DÝÛ•su¾Æ[›š¼•g9³X w<Ü*wíêq7KÓÏ“þަ»ý¶–àê\àêJPK¬Î>膦šíÐS,w$É'[ᨚ\S,åê¤G«³7RnÔm}Þ ·5Õ«óýZbuž=íãh–i?® \]C©'V§®FZìfk˜´‘ØH1Ò¥Nκ­kѽ«I> ÍÓÕ°®nH®ÎÚHéúYÑ Ëº:[u}­«säÏݶèäôZk¢wÇ]«Ù¬¥©Gߨ¢ÜÑ,Ñ~ÖÕ”W×P‚š®µ\ªiÆ–Ì”}òì­dÂ,9«¸:íj\¹„¼"é²Çn7»8 }’„xÛíMÉSŠûl—‘æ)FžüzXãµÖ`O6K#mWÅ•cm|(iÕõŽÒî›·Ö36ÑËíx¶öqjJ}PDÕ*¬e>wáΖàê,àêJkïW‡P­ÂÕdàêJКgK 4Láê2pu …XBe„«ÈÀÕ5”€XB%„«ÈÀÕ5”ª±:€%Ëx~;š®®¡Ubu¸º†‚¥€JàêJ@¬ª€«k(XºÙµm:Zu5½m׸›2 ¨Ý¾¼ã8B@5pu÷Üuýª|Ýõªëï²|¬¤ºóo]›°vë`­ Ú«›ŸÙÔélêÌ,Ž ®d<¬4¦chÂÌ|‰üRÚÛù™A†ãh뜼œò~«Š3Ó»«Wg)Ø“ÇØU{¶ÍmêlŠ4·P”yqfSšyÓöùâBš–^¢“seãU©K ¹àê„IËXdØÔw6ïfͯ¸?à V¦}–.©«KºBc¦m!å£iÑ0équÑX\¡v£\ec¹-CquFwÕæê2[âì ©îÔÞy;n~û¦ÎöøмÈvÏéf˜^Ø“4da.³,®Bš–µ» wuUº ®NÁâÆ¼Mú0 Ôå:õ]«Ûµ0-\ZgnÛ|ôb:2wm› Ý[¢$@’XºLaæÅ™èõô¶hÜßžç·”œdž™O^D¯ ‹Ç9u˜ÓÆ>õm‹‘"gYF„)/#Ì®µÍ,Á¨2K°l.çÑÂZŽH—=Ù¶#¶î2jöa•QZR°Gáe{aì-ÿ»`q{ _ÌmÛ“ç‰Ìœ#óĤ+]TÆ+˜Ø‹pÖ^CF ®NÁbÆ|®N‰íÉE9ƒ…ê&$V—x/Ù¨íÙ6í0j–X]¡«³XÀ8Cb§í³E6Sçuu^S'›,%£=Vf·Tm)Auoù»xPö¸ gS•(Ÿ‘Óµ#–îÊ>Vã†wDn•Û•ß>s·ga:woÊÛ,7¿ÝŸKÒ]…4-½Zöv׎«˜8pu9êü«œj_m"¢,¸[ë겈Ú.WJ` ßTwuRÉjQš_ÔšUy” ·(é¢ÄHç°M¹;Q‹r— }â,KWýQEyGüËþòfغKr¨îiÙ2;’fô˜e aQÈÎg€¢ùÖ¹9eeX˜ÁXW×4÷Väê :ph®&\]J¦³Å×*ÌÀæÙì± `é›÷JÌ–®IpuÊ„cî¥,³YrN݉Mo›W&,ƒr% Ý8çU~£˜7ÃåêŒ8Mß;ohÝ¿|)ÔïÓîãç· º#Yœ‘Þ†q»ØØ5ͽú*O–XmWÐ"pu!>æ¿ð!›²Õ² |¹DÐ’XBs]gmXù0žº®N]€ç]53ïYI§Wd ˜iWÈz\µ§«Kœ–2ãÜ׎xBMê$Ÿ¶sYÏ´0V7³}{«sú•¦­Ÿó¯«+ŠÕ JQí09àêœAºÝŸm]+½“¶nk"¯±[š±ºt]dÝDÊ\:f›I)µ¹ºêëê݉¹W‰¬ËÌ4¥˜-w ¶µK†yR›oVÔ½ Î× ßº:µ_ªíˆ\˜Óe§FNi‹;°ä¾`3 Å…¯åë^£ÛšÈ²ëv­«ÿ*Ô‚?S†v l©k’ Iàêä›ÌŤ®MY'—[6eƒ%~¿:GdN½Ö²Ì.¿ÐA»*¢&WWýؤݮû¦)K¿ÔÛŸä¹­3ž²²û5ff6FUmŠX pÍÌLk–OÝ{3ü×ÀªwÞ«´#r+ ïÌ‘75O°Oš7W“[¼–N1v|¿º8´ûÕ 7DCW×P&ÀÒ5šê÷«ÞyÍQKw9vdÀµü0¶ŒÏ À$«k(ÁDÄêL™[Ÿ5‚‚%u#¢†î²ïÈć¦2¾tÅ^ Áàê –n`äÛÛ6ÿ}JFÉ€Ýå¹öµá‡ ÉŒ³1u“®®¡Äê  ¸º†‚¥€JàêJ@¬ª€«k(X:¨®®¡Äê  ¸º†RÑÒI÷Ïåª5€% ®N}„„ùè0㉮îüÒ'ƒ>Z¢ÏX÷‚X²àê„Ë,˜úøÖܤiϳæ—Ýßàís]·ñX²àêŒÀœ5ÉöaøJòqá#a²uAëêxÆÀRW§`1c>W'Åä´-½^° ý^*­X¢àêrìó¦v–ÎÎæŸ„¶Îõ®‚®å9MK\]ŠË‡•œ½G½ŒbÕªUƒÍÀökébG‡ŸXràêB|W7øçRëç´Uv}°®ª€«+š,Õ]ÝÖµÒ;û¶O¿ÞÃ5°P\]hÁT”û“H$Á7eÕïÕv·º~cu¸:€% ®®¡ô«ã.ÄK\]C ªÅê¤'†¨X’àêJß·5€¥ ®®¡ܯ– ¸º†‚¥€JàêJ@¬ª€«k(X:¨®®¡Äê  ¸º†‚¥€JàêÔGH˜úr?6z–„ü ©¤AF¬ª«V,sf‘-Sß¹ïøÈöšÓ)çêŒÑ=K«¤(yó_¡ø\V£I’C³¸5¯«ÓŠS°; m ­"Í}Z60ªP\–úóꮫ¸çK›©“·Ÿ‹œùh¿*ÑB_oXœ•RKG>Úʱvºº2¶ÎY²b3aù%ßÁMz 6;U­dõmÝÊÿµu5ÃVWQ¬®ðÛ§£¥sÃzX}´þ@ ñ·:íuïÁme”&g_`ß›žÍÿíc”]TÂÕ¦+JØ:ùúÀÕå¨ó¯rªäÒdß7’XK¬.9ƒõ?I£sA~­žëÚVe]tÎúæ˹º’~ѵI…)?GØ@/!¶8}5¬lýî¬u“âCàøéÈ2¤{,ýoÔ^µ7œ{¤ÖªW]´ûÖëþXKöQ&Dè%¯ø–ç»Y²dG)ÌYîk«7ÃSW)WçýöYJ¹!Ó íb˜¿Õqe_×¹«ÿ³fëã'z”]d?oÇÑÖ?¸¥æ”st!¸º”ЮÙܘêÒ”K+R”͆«3kìD×¢ZcuéAvË¿ŒÎ¯¾U«“°ÿýíÈTìê´Ù¼!¹:ui F¡_Ñ®+°7@­ÂöÕ¬ßÕYë¤Y»ÒåÉ{k¤°jo¸«\K40ja‚ݷ¦hûã)ÙG_fB›'²Yï·¬„MQ¯R_Û@mÆp]zæ©GÚVˆ–ˆ¡þVç=íù"¸~Ì]ŸY\Q¶Á\ÝлHù™kWÄ[ûºGŽõùÀÕ…Ø£tùg—ÖÂX]IWç6isŒMŒÕ9Z^h¹Ê7ÌWÅbu®Càru±Û–_Óù»ùm¶ÉЪ½áߣhiJ\I8ælS/+ñ_ß/,ÙGf"'[–`ùnV4žÅãå¾¶^Èp]%sùoŠBÛÄ0«Óê¼_çpü€èùKdg¬®ª«kWxbuj–€®Î¤K“«êº:ÛOa©_ÉR®NÍùÛ",m+#¯º®®š«ó­«3¬›üuTÛ·+Yäl€Ùz»;Ô« ³­«sFë\®Î}œ?ú†ÿ+n¡£7\‡5¯Uþ̸vØñ;(•o¥ äd÷ì¤ÁžØÙTÿš(ÙÊÚ©Á§Üi‰”b¦02W7?£$ÿ¹±ÄÄ«S¼_„â?ÑÓwEWW8³9^ûŽû(»¨üßÛCë i“˶«0œ«‹î:§z2}¶Õjà¬w6qä¯B0Ük`£wÚ¹ž®2Ög.$ÊÅê2}mÃëToÐÑ<–œQ2˜ytuJëòHy†òi¡­”²G{ª6 LZ?ÿX¤[ùÍœëømÔN=Ü_Úwš½a?¬ÙªÉÓ-_ÖR–>5ð•\øêü.T˜žKòhßÍ>JNZ<§nUX uÊXéâAÇ5°ÞoŸå ”ãÜXâ"ÞoµÒï®/‚'xfýqE˜<Ù쯽Ç}”]T«vWäí(üQÃÕM6ã}\˜±š!¡ÃÃ&žyã~uK²W“ ×·¬ýäÁlÄ LfãGzÜ' ‹J™ºR³´®®±ã|¬9Ñ€«kÞ9¯¥AÙeÇCÅù-k%»²{œÈñ"Ä LfãGzÜ›ßE~’¥ˆ·37®®¡ŒÞÒi7 MV(«àêZA:—9îát\¨k=GJ™oY+QæÏåi(Du&ºñÁHŽûätQý¿Æ¸º†Œ3VçWÐXpu ¥–.ÀÕ4\]C ªÄê:%×H£W×P*ÅêÄõã^pu­W×P‚бºq?þýÙ©N§û%5ñKÝ8B §×Q~Zö€å‡ÅÔм÷´Ù¤;:5ûýq7¥o¢si(«¿oÖk!u€«h=¸º†2y±:çPT“mRËï"[‘Œ‡•/XÚ¢xw¦¦=m0y·w'ØÔE ç`õÿ-2àê _pu %c¬®ŠË)W\CT8¸96ô|Ô¥]Jã]]Ý=3ºÂ몢d #>XU\ÝÐÀÕ´\]Cc¬.ÇÔÅ0\ÝØü“h“»ÞÖ»ºì ®nˆàêZ®®¡µÄê’=b°HWîÈ~-MË“¥”<§´~-u´©YkMZб¢(O³)Tm½–²ygj*_x¤4rÊX å/¿Ø¯*‹ 2‡#^iÖ(Áµ§RC•áZk¡'««s\i¦µÔ<ÞÖB•ZÎÂmE>£´0§kmžµý®n´î€^ÂlWÚ4É—«¹(ËAqµ+;íä³1Úªïoܹÿ PþDJèàêÚ®®¡Ô«“G2}éN:D„od' Ú&ò¤¸:5kòy>(§éRMy–xpÊF1ÅNj¡1j¯½å+…{°"^Z#)¾=µ­“².EGZ\ã*ßò‘xv$}…‘¢mó µÒ¬%+û«;cÏr3K×é= ¼Ïû·ð´±4Aú ”9+ \…¸N€*'R® õàêJP׺:Í‹Iã€6væŸäƒšôÆít¤2µ´ ½ÌY.[qù¥ÈúìK³a°'0g]¦®pO]mIß(ÛSA‰ò];k‚4dVXÈà (y|m‰žS ß­ëŒLr«gås»ètõ5¹ï³qoAQ!¾)WÐzpu ¥®X])S'½W%ÉÓGŶH-dÊ2|Ê“xÒ„Rm®®DùåHz!òq¯9LkO]¶ÙѼ«!¹œ©Rc–-á … Þ€ú\5¼§wÝúŽ/]SxÚXš¤ÅÇŠÏÆš¿%Úì<‘Bpu­W×P‚šbuR´M>’õ‹G¢2TRØ6¬3VgݰʾtgS›2%^Û ðí©m"Ûßm+½‚åû\Õ2xtuöõî´dŠOë/)μð´Ñ¶×þ¸©+VgÝñ¾Ou³7pu­W×PjŠÕi¦ÎõÚçP2}©+-›· úðc[Q¤Ž6É¥õ¹ºâòË"äÝÞµ§¾egZ ¥ëjÍKl]{:Ⱥº¬ž2… Þ€\]Ѻ:[×9‹US O[%J¢+8ëù´Ù{"…àêZ®®¡µÄêló©Æ5¦’AËbÊÐݱ¤9¯¯TÌb” ]¦šW¬ÎIæ×KÚÚØíZ²Eñ­^gùïÁ—zXýµ½“­{êºQk¡µ“Í^5zØQ¾õÀZëuâªÔìI϶–óÀQš»•%®µvµÔchÖníK-YERünvvʱSƒ~ ü=VþDJèàêÚ®®¡LÞ³%šËÃÞI¶HÊ_J® õàêJ0qÏh ±'sÜ–¦dŠ‹ûR½O^)¸:€Öƒ«k(Äêj ž¥(¸&Mt\ÖxÁÕ´\]C ˆÕ@­àêZ®®¡«€zÁÕ´\]C *Æê‚`By„«h=¸º†R5V7ö!ÔpáêZ®®¡«[ìnÞÜ]¬¥¨½³s›;›7wz‹ChgTøPJ’²»º¥ÆîruÎPˆ¿üÂãÕGÛ »4<™‡¹¿c® õàêÊäÅêjtu¡vôpu–»º¥¦îòuN…*{ÂM-ì­T»£üRÇ«âî²K›$\@ëÁÕ5”`âbu5«…cjií\˜«j­†Ñ]Z3ÊUG¹z;ªWW¦|WÏ ²û¸:h¸º†2y±ºšÕÂ1µ´&ÖÕ ÅÕ ]¸:€Öƒ«k(A±º½ Saàdnv¯ePT­t!Q¤hî,I¯Ãœáìj’Ò]ŒÊÉKÎsf¯‰Z•n›äœR~EÝ’•£î—æÀ¬+â¹ÑtCaÂâ–ÄËË”º´fˆlqÖ¾’ ÷Gé|ÓôÖ]“—Ù$ÿ¶Ù¡ÑÖÏÉeúºŽuu0qàêJm±:1ŽæãŸ±²ÕNá˜7·°35Izô:w“±°»%&)™“s¦%;òÈ%GÞ"Ý‹\]4<Ë.*yÚM[âmÃJuŸ!—ì(!®Eòd¹ ,n†µÀ(lòr;•æÉûÊâ3”›åÝÙ¨Lm}›ýÓÅžYµÕ¦¶3·VF¹s,*³k¾¸Z•m}¯“Ι¸õ—%„«h=¸º†Ô´®N±5á@%©‹Ý,t¡„ÍäüZHF.Aö‹ºÃ3ò¨cdlãÌ`n—ûqä·‡JŒî†Ã Ó«6ÃcGl®Hr½®ÎVŽ«»,6(;%fz±‰Ù¹°°£ ®Bw•ü’Ã*ÿ©l">*ŒÕùw­äliñ¶%Îf``ÁÕ5”ºbu‹½4ö´ÊÜ_W¹©ë–Ì@—œ¢—œ¦ÛóµdÛ:ävuUÆlm—ûÝS Ð ŸCJ'‹çzݹª®.«î²2ûltub»w,ˆôØvï]¨Ôf§«Smœ>´Ænõ©gÿ®•^W¸m™³W“®®¡õÄêä)WŇ…EÞËÉ\ùµÅÿÉ9­y”ZªÞ«B›F,’åë¨l‘¡’®Î˜@¬ÜŒ16¹Ì<ÆYc¬ÎÝ·½ÙtÃ)ñÚ ªèêÜùÅÑ/Ñ6buC® õàêJ=±:s¹[¾,Ì2G©.wKã+ÊØ)—¦,“ÆH[_-ÖÙØ²ëêlã´´wîÁSBG±¡aU›áX°%m«¬b,¿®®Dr;ž4^éy\½ÄaW§›ïÚb7oL‘««Ò½e¶Õ²®WÐrpu %¨i]]zÍc4ÜæW†Êv-¿®3[êlÚ"¼@[–£É˜¼‡@gž¼–¹¹)ýªRÝÕe™ÕËlŸFyôü®‹mÝ[™5&/y lQRi›u•&v{i]ÒQëö´ròk<—¤:-ÅnJå8šaVg;߯Ë6ÿ^j×”ó¹`[õLèÍFE÷,Ê«_}ÜáêZ®®¡´÷~ueÕ &a^åè”iOÇ Nçõ£š@‚ª WÐzpu %hÕ³%r'§ÝÓdÒÜÛe\ÂÕ¥ÇW7>áêZ®®¡´,Vç˜8’ÔéÎñÛiöy¨AÊæ W7VáêZ®®¡­ŠÕ!„Æ/\@ëÁÕ5”–ÅêBc® õàêJP5V·oBy„«h=¸º†R9V7î!ÔpáêZ®®¡mˆÕíèu:½EÙvÎÎu:›ËäTµØ ·ÚÜ™ZØ9œö÷Û°aiÄíÙÑÝÜGuÃhd-A†pu­W×PZ«ãñÔì^ùm§#knvgôQ9ÿ'iïìT´íÎ…®TþÀ bw‡”R¹aCÖˆÛÓ_uÃhdÓÄD WÐzpu %hC¬.ÒÎÙ^bÝ’·sitM8³4S8fï\˜’3hokSc\kqu¨áêZ®®¡´$VgJruñP¹¨ª®nXc¼0šj±¸:\]{„«h=¸º†Ô«“æ=Ãq1y+¬Udª:ÝE3%Þ0]#•O•:r†!®©ÙRC‹áꢒ•1;ŽáIK©âºlJ¦wC”¤$‘¶$¥·#ÞVÔ¨¥änR*Gì଺J/n˜‘ÍÒH-1íCKc”rlW÷Wɵg6;.r-ùVšý•ý-±lå-ÍhRšÿhš‡¦TûYW7¸pu­W×Pj‹Õ…>,ûÃñ5ö ‰]ë.„#nô©‘ Æéˆ+[1sÛ~]T…ääºòÆk¡ùmäd3§x£îb^ äDÓ½XÔjÔ¥mb묑"15I‹]Ùo¹Ëñ6Þ«S¼¬ôZrÞqùÖDWK”*’­¢^’ûÙZ…Ü}>Ý}4ÕCãlª­%¨OáêZ®®¡õÄêĸ(©’)Ñ‚4zŠæ*¤A×ܶ’¤øŸ§1Çì½¹qt»:ɶªoÍ2å×k³ ²íUñœ¼ˆ°°œ ·µ!sEJ9ikbáÙ·r¤Õ³JÒ}4+µõ/\@ëÁÕ5”zbuò5§ÒEyÐΕ¢¹ iL5·­&w|(³ÓfÏu»sU]™¢«³4RJÔ½]9Wçk¼µ©É[y–3k€5±pÇír×®w³4ý<éïhºÛok ê[¸:€Öƒ«k(A-±:û N˜j¶CO±Ü‘$Ÿlu„£Ê©ÐÕi1ÅR®N*p4±:{#å6LÙÖç Òx[Sí±:ÿѯ%VçÙÓ>Žf™öãêj® õàêJ=±:u5Òb7[äÄFб.urÖm]‹î]Mòùiž®†uuCruÖFJ×ÏŠfXÖÕÙªëk]#î¶E'§×‚X½;îZÍf-M=úFåŽf‰ö³®®áêZ®®¡5]k¹TÓŒ-™)ûäÙ[É„YrVquÚÕ¸r yEÒeÝnvq@ú$ ñ¶Û›’§÷Ù.#ÍSŒ<ùõ°Æk­Ážl–F.Ú®Š-*ÇÚøPÒþªë¥Ý7o­gl¢%–ÛñlíãÔ”ú ˆªUX;Ê<|îÂ-AýWÐzpu ¥µ÷«CI¸:€Öƒ«k(Akž-j†pu–, > IDAT­W×PˆÕ!„ê® õàêJ@¬!T«pu­W×PˆÕ!„ê® õàêJ@¬!T«pu­W×PˆÕ!„ê® õàêJІX]_Ϩt¿ÙôxÜÆ¬ÎþIïWg¯ºZÒ÷í…=ä–ÅáêZ®®¡´$V'?y̼±}ÓO³›îFO ­4$ü,)ãi¹ÆcIóûô†íä1¸cPý3Œ'tÙÊÈ9‰«sWÐzpu %hC¬.ÒÎÙžü$(ý¹ï¹aÚ;Û5žîPFµøëóæ“§hÄ&/~BÃ\]ø ‡¢}o¶«hy8l5áêZ®®¡´$V§+•³çDÅñ9é­ù(ú2Š«Óž7»Ð€J{m‚pu¸º ÂÕ´\]C jŒÕiSŸÉ[áQâ'ovÍ”xÃì)œ™÷rä ýÙÔl™q%ι7’»;¤ÐWø6{h4T'OííHŸª=Uš$µ=U6ª¥Ó»Qk³ißxï²Æx]]œ9섳r@±°dËsx•DÙÈú÷×Ü/¥ŒGñºú'O·wš­CŒ½Ðšš\­…»Z²¯Êá¶îoÜH-¿\¦§·]™]aíü´µ³Ù“jí'g£L'® õàêJm±:É„cX<&%v­»Í3)Yt*Í/¿V·­âêòöìè¦3iÀ‚ôyõqòY ÷MeV7kåqWz-Ó¤):Xäêâ–Xæ^½%Ëm–öTZM¨ù ×þºöˬòõÑÚ¨À¤IY0L*ÙºYSóO­…»Z¢4µèp[3œ¶µ›jo[>²v…¯óåÌòkó”h‚pu­W×P‚zbubà‘ÇcÉ™i=E>¥Êܶ’Ò¡]ò=á[iQ>Ì[^+–Ë•nw´‹³³ Ýx_v.Ìf.­oWWX²”M2ÐÙ¼³Ûµ”Ù/‡«+Õ?iºauWgÝ‹‚K?uµ¤p—‹3—ÛÖÓÛæGÖ®(ÙùÙ¶Å»<6áêZ®®¡Ô«3®îÔŒˆ3ÅæiâÁÉܶ¢bƒ¸#õ=qðCø¡Ì)Õa¦lù-Ó¦rˆQ|$êÝ™\™›Gm£¯­ÜæÀ]rz¢k{Ó³D½Àr®.ß/·÷²õqmo<§¬í©­C,{a½¾D/Üy¤ w¹.Wçëmã#kW”íüä­½“ûÿ¾Ô)\@ëÁÕ5” –X}À'Lµ‘FO‘ïH¢–cn[Uñ°§,{ššÊ¯“4V'Mx™Ùº³éx<%^[m«½ë|Siî’µø¨v,,ezö׺_ƒÄêü»æ¨=ß‹BìmIá.×èê `ö‘5OÉηÇêš%\@ëÁÕ5”zbuêJ¦Ån¶þIºŒc!]êä¬Ûš Û½Ò†I}¹U™¡ºêººx÷óv7(±zkXä*Y¾=J6ØKWÑŠZÖÕÙö·®uujÄQ|–£Á$Q‹ðé{a«ÚZxåuuõº:OoÛ>²v…¯ó¥ï…5=+¤ô·c˜ÂÕ´\]C jºÖr ¦42Söɳ·šÓrVwubØÓ¯î4¯@•º^g-‰¯=œRŸ1`¹6Û£|¬U_kóÔž»Ûå*Y¾l³Û×/Ú®Šõî»o¿²»7ë‡ÀÙ?R“Ô¹Q)Q«ÝÜ‹n/mŒjvm…;[Råp[ö7kƒo[ë5Èί†³¬¯^“kü‘`?.c® õàêJKïW‡PkÔ¬+!ÊWÐzpu %hͳ%j§puÐ8pu …XB V>'ÛœK\ …«h=¸º†«CÕ*\@ëÁÕ5bu¡z…«h=¸º†«CÕ*\@ëÁÕ5bu¡z…«h=¸º†«žÒÔõ£ý†ºKUƒ÷FzO»J…¤÷®+º›à„ö‰Uƒº¸:€Öƒ«k(ÄꆬÁnK««¿7ª‘½³SÑŧ;¥'¤øǃ?¯Ö>)訪mÆÕ´\]C ˆÕUSx§‰*ƒèäÝl¬íªtDªîbÕìêFÒQ¸:ÐÀÕ5bu…«›tU:"C8|Ñ£Þ¤‡Ã6VÒ¾Wl3® õàêJPc¬NzÎiøëŸ¼ZØ?­²»h¦ÄfOðÌnµêÈ?ÞÞ:üÈË€Ò'o&¹OŸž™Üе7›=0TžSÓ ‰$=—3̬>‘3Ùܺ¡’ÓúV£iúŽxÛlßã͵Oã=J_K;bwæ‰ÕYG«Ó¥>W— ü‹³³ÎgÀ×Ò·¡,k¥j·[çCµl5Çêl™KÕXb©‹µÏËk­g Û¤–=uK WÐzpu ¥žXºg±›­.Ò\‘‘b,¤Kœu[çâw%†GøÒ%_Ê2%³¾4Ê(D­1I´DzŒ K­«s5cW'ͺzm‡T¸7 Z[ßš;¥+]_)¶M\j)åW¹º:׆ÖCY¥Fo¿Y¤-n+>¾E}â.믫Ÿº¥„«h=¸º†Ôt ¬qé¥+Ú—öð@r½^nã,9]®.§¥Kü’k<¥k3ÍëU7ë†F/Ä•˜]@j)S¶€IÊ”íaÖfä×W*Þ(é™2¯Õ’»ÝðõT·§›+õß Ø·æNÙ‹5Ï׿›ÕÅŽŽêÌž‘ª–úÄ{xŽHå,þâtg£¢|Ç·°O´yÕÞ‡ôqêâê W×P–ØýêúŸTjc3j{^B“vj Kü$›TëQ#® õàêJ°´ž-Ñç1îfÄÿó†&“¹SK^ꄸ±hu„ÂÕ´\]CYJ±:×dÙÒkF<ë]âãIÚ)¤M‚)Pàê–¸º†,­XBhèÂÕ´\]CYJ±:„Ð(„«h=¸º†TŽÕ!ä® õàêJõXÝøÇ „P“…«h=¸º†Ô«Û¹0×Ù¼¹³¹·£ÿ!a±–°¹3·°sTãPÔìAÚŒš¢½ÍåÏÀJ™QiáêZ®®¡Ô«Þhjao-ƒnë*ªŒpu­Òb¯ÂѬ”•® õàêJP_¬n±»ynvoÁ/~9»¶wvnswqìƒ*§½ S2F¸º1 WÐzpu ¥¾X‹çL…]+v~s ȯ¦/\ݘ…«h=¸º†Ô«K×'…ŠclrJìöÒ%w¡²p™-hsƒ.³›Zª =D´*ÓÓ×R 0 ø¥…ÇÃvšÒ[Ì^KÛFyÊžåÑÖ–m˜¤ôS{ ¢Ì¥ò·l«Õ%m’7ÆSNÑÞ%…ä»`ÛMm]‡ÀÓB½„2‰dF5WÐzpu ¥¶X4µÖ‰«ˆ^‡Cx:”ænÙ-4Ù&¦« Ò!9Ê“8ìuZ¾ü:ôŽiÙë=mŒOß–(ÜÈ_eÛL¡‰I"—a«â i ù&fJä~d–¼6s*uÉ®47jŽrJìµ7 wÐuœ-4Jpö[’¨¬’¬”Õ#\@ëÁÕ5” ¦uu¡÷²x9][TçÌVbQÏv˜#´ê,cûÒë)U”)°®×©d¯™g0s)ʆò[÷d¢bÂRÏTªœ~÷ιƒŽCPÜ´„ò‰®68†ê® õàêJM±:ie•2d*+®»æÎV⪋rö"Þëöäà_žQ«ƒ«“'ˆ“v†MªîêÔ¨žÝ h›T(§WçØAÇ!°µÐZ‚3ÑöC¥Ì¨.áêZ®®¡õÄêò©UcÈT0Ù@îÎV檋öBžòÓ§tã9JÙCŒ=Vgm‰#EÞµ}åbuÚ&Ê©+V§Èrœ-,2£–DW¬®(3ªI¸:€Öƒ«k(õÄê¬ ×’û ;†OW6c&ÎvA±½Pf]տŔ©áÊÞE[­ÕŸï‘VwÅ;ž^]QàêJ­‡Ó¤ödR—«œZö僮C`m¡³‹|‰ÊR¹J™Q=ÂÕ´\]C êˆÕ©·üJÆÞlre8‚f×Àª×ZêÙ’iSé²ÝÕeæ—ˆ¯å"Çn¯]V¹ÐÍf /S V¸4µ×]ˆ>ª°­$©‘JK2#b¦èlö§cþZ«ËUNÕ½ ó§ñ]´h?ž–NÌN°©9õ'•2£„«h=¸º†RG¬N™ZE-qáêZ®®¡ƒÇêô5j¡%-\@ëÁÕ5”AbuòeÇ> „"\@ëÁÕ5” ¾çÀ"„P€«XàêJÕX@!ãg`TàêJP%V€«k(X:¨®®¡Äê  ¸º†‚¥›š¿kaº³©Ó™›Ì‡¾©zÎ pŽ‹ñÿæpX®îž»®_•¯%^uý]–ÍÔ­kÅk·–,§"Acuó3bøßÔ™YwCDK”%äõü"e¿°ÉÝ̼¥Î&þø%íí¯i¥]]CŽþ¸šQ¶^qšÄ°³”ðT’ήèøiï÷æqÕOÑ å\M·÷Ñ×93Љ6f¼=66ÊÐ4bRkÁÕ 3–9³È˜©ï\-ýPÎí(§/Úg邦Œëú&ÔòƒdüÂÊ¥6øOÚÄâ{hÆÑo®«ËÿÒ(tuª­ÓÿˆÈLY”zZû(;Eó£´·þ³µßsÆþÏ$ öX´ÿ Ø Çuó&÷°¶\‚%0g‹Õ%iávïæð•%˜ˆX]§™^L/슓·Í…X¢íóQb2ªe 3/ÎD¯§·í‰rlÏó[JN2ÏÌ'/¢×öv%cNú+§¾ÕŽm婸s›ù–?­#Ï¯Ž´ÛÌ_^£<¹¸,¯-QýãÜf |5*T8¬j¬ÎyŒlG¿D™æÑŸÙÞÑŽþ 'aj9±-Û³mZ-'kywBª°g¼õ*Ç+?0>W—Gô’?J¶)ïU_8oùÌ(ÜH°žˆê‡r²T‰ò Ó¿mUÆÿ¨M33ÓY#²ž²žÓV_jo¿Iaûµ’ÞÚ¿‰Ê†9µe+ØÇ¢.²ÐQ7O?¬Ú/0Œ\B8©ªù4Ó ‰Lq‚ÛÕYÊ©ÈXº På±*ð,FÍ®(tu gHÆZǨìuuñ}X‘ÏÕÑQûÅš™Ï^f¿\ú/¬1« ŽŠäâÌá$MÔŽƒ~4Â8Þ­Õ«ÍÕY‘qô Ë´ýxó$sTé '¡=³(ÊØPÙÍ´1æA²Ôë°sÒ§NW§X±mîJòWi&Ë æ-\m¶ÅÙ( Èöṷ̈̀`ëäbT¨~*;¾®¯€—¢ö»m“Ñä¬mÎÝÔ²ùöÑO W7šæi‡W7Fpu9öySÍÕÉ~Íáêj˜¸XÝ.WJ¼ ßTwuòj-¥(m¨®ÚnûŸòúOa<^º1 Ó“ß>y“uLuT¤[°CUššÕhd+V{¬.®Äk§Ê–i|Z˜¹ÚIèéUß’A=üïæüvÉ\ÚòKõÌbê+¥Ìs5Ú2=’ÒÿæùœÂÕ]­­Vc¦6Ho•QT™ñ^n’õu™ïKYWWÔ~ÝA:vÁõM,“Íõº ÕfWŒ£yÍ]6¼äÀÕ¥„vÍ6iªº:å’ˆe3W9™K؆½ùíêPg›†¿«SÈ× XÆÑB÷¦-R×òG£éŒ±þÝU‘ú‰ú#­'¥d»àj’µÆr®ÎsXûvueËŒ±»ºðÌô$tã<ǬÃ8›sr¶ÞX]v¤w¥‹B“÷ž¬-(Vg·å ?Ð#ˆú^×âê¬_ ×W LmžöÛ¾mê.™ßD­Þ¢lƒºº±6¯üa…!ƒ« ñE×úó¨æ_á×5&¡Ù£?¬àW×P‚‰ˆÕAóØ%Ýû¤Âíšþ—õp\%TlÆöÀB_猱‘]¬­m–¯Àpê:Ðlã°j3ú0Zpu Ký¡Ì­•ýeM7jî/1±º¦Qõœ±ä—Öƒ£eJuCªkØ4¾Ù®ÃÚÜŸ’ÖóàcÁïÿ¿àùÛÏþýNYw~å~-EHdùqu£ VU.í¶¿¾û›?~¢Lf‘MdÆÕ,T"vuâÅ¿ v?ê'{B}ÿçÿõí]¿º÷G¿šß¹çk<úßÿ‘ W7"buP…2®îžÙ‹«5X:¨„ËÕí|$ÀÕ“€XT؆RÑÒIW}qíÀ’$vußyðé¯ÿà—…ÙZèê”GH˜Ïƒp?1,zšDþÀ‰‚r*ô«ãŽÞKáêÞÜzÇ]øäWýÚú©¿ßô¡ÿ§}w6f,sf‘1Sß¹ê¢õo‰_d’S‚6º:K`ΫKÒÔçÀzÒû VUÈ\Ý?ÿûSÂÀůci)Aë]]8yªù1ÓÕ‰Lq‚æÞ\é}¥€Jd®î?|L(³qÚëXA»]:ÿ*§J®Nö}²{s¥÷K@¬ª¹º¯=ðh¬ÌÌÅÊÒ…‚6»ºÐ–Ù®ŠP]ri…t‰…+½ïæ`é ™«û‡û‘)³tr¢PÐVWgÒåŸ9ì™+&G¬FŽÕÕÅÆNKi­«séÆäê°tP —«³*h£«‹î.g8ÕgU­KîˆÕ@#ÀÕ5,TW×PbuP…ØÕ}çÁ§³{Ôy$²áêF–*!\Ýîǃ[ï¸ëŸüj¡nÙúÙýEп«•UÕ®_"„t->ŠB¨åêÃ5e欒útußúÉ“›?ü…OÿÝw~å~¿>õåï½íƒŸùïýѯ>þ¥oöïw"„„þ¯/,|íGz<@!ÔnõášFêênû뻿ùã'JFEN‘_è7¿Rœ`ò_ñ¥xx_€B¨ÝêÃ5ÚÕUÀbW'^<ñ„P¨ø{1öß„BÃV®i ®îw¿×uÑú·˜‰²«Ûý8B(Tü½xäWB¡vËꚬ–)sMcpuýZQöx2-W×Åoþ‹Æ¥ø{ñè)‡û.IDATB¡vËtM.Ë”¹¦1¸:yˆÊÚç½âMþmoð“=¡Ä‹A²dÕG ¶ÌõÌ'¢ñ­<ôñ÷bï“B¡vËØr§±¹º$ÊZ–¥ÈÂÕÕ.\] /*@!Ôni®ÉoŸÆæêâ;gmrÝòXvu¢¹ßÿù Yý_yÅ…L®Üý>äru·ïc?vƒï~üoü½ûE!„†-Ù5i2MÔØ\Ý7~øX¬¬MYŠ,ÙÕ}{×obÝ÷Óÿ\ÊÊúadr¹ºÑ·dìß„C/^Äß‹'ÿ3@!Ôni®ÉoŸÆæê¾öÀ£™²–ɉ±pu®¡W·¥¹º§žBµ[¦kò§±¹º¸ÿ²²öi鲫»÷G¿Bã’ðpÖÑX„«C¡%"Ó5¹,SæšÆïêâVºÚo2¿sÐ=ÿ²7~1.‰ ¢4`É6~ìíÏJˆ¿¿ùm€B¨ÝrÅÂLËÔ,WçiŸ5üˆÐ’Uü½xúwB¡v«×4®î¿ÿ!!\B-M€«û΃O»ne¢IäŒ]xý•ûB ‰¯Ãìgþqì¿5!„†­>\ÓH]Ýîǃ[ï¸ëŸüjݲõ³ÿú‹àÁÇ‚Ï}í%7A¨õúÂ=‹âK±ø(B¡–«×4:W'r „B¡æËçꘜ®!„BM–,®!„BM¢W‡B!„&W‰«C!„B“®ÿ*CÀ_IEND®B`‚codequery-0.21.0/scintilla/doc/index.html000066400000000000000000000213201310136352400203120ustar00rootroot00000000000000 Scintilla and SciTE
Scintilla A free source code editing component for Win32, GTK+, and OS X Release version 3.7.4
Site last modified March 21 2017
 
 
  • Version 3.7.4 restores performance on GTK+. C++11 now required to build and Windows NT 4 is no longer supported.
  • Version 3.7.3 fixes problems with GTK+ on Wayland.
  • Version 3.7.2 fixes some crashes on GTK+ and Cocoa, commonly at destruction.
  • Version 3.7.1 supports accessibility on GTK+ and Cocoa. The Scintilla namespace is not exposed in Scintilla.h and some deprecated APIs were removed.
  • Version 3.7.0 improves word selection, navigation, and manipulation for UTF-8 documents.

Scintilla is a free source code editing component. It comes with complete source code and a license that permits use in any free project or commercial product.

As well as features found in standard text editing components, Scintilla includes features especially useful when editing and debugging source code. These include support for syntax styling, error indicators, code completion and call tips. The selection margin can contain markers like those used in debuggers to indicate breakpoints and the current line. Styling choices are more open than with many editors, allowing the use of proportional fonts, bold and italics, multiple foreground and background colours and multiple fonts.

SciTE is a SCIntilla based Text Editor. Originally built to demonstrate Scintilla, it has grown to be a generally useful editor with facilities for building and running programs. It is best used for jobs with simple configurations - I use it for building test and demonstration programs as well as SciTE and Scintilla, themselves.

Development of Scintilla started as an effort to improve the text editor in PythonWin. After being frustrated by problems in the Richedit control used by PythonWin, it looked like the best way forward was to write a new edit control. The biggest problem with Richedit and other similar controls is that they treat styling changes as important persistent changes to the document so they are saved into the undo stack and set the document's dirty flag. For source code, styling should not be persisted as it can be mechanically recreated.

Scintilla and SciTE are currently available for Intel Win32, OS X, and Linux compatible operating systems with GTK+. They have been run on Windows XP, Windows 7, OS X 10.7+, and on Ubuntu 14.04 with GTK+ 2.24. Here is a screenshot of SciTE.

You can download Scintilla.

The source code can be downloaded via Mercurial at the Source Forge Scintilla project page.

Related sites.

Bugs and To Do list.

History and contribution credits.

Icons that can be used with Scintilla.

Questions and comments about Scintilla should be directed to the scintilla-interest mailing list, which is for discussion of Scintilla and related projects, their bugs and future features. This is a low traffic list, averaging less than 20 messages per week. To avoid spam, only list members can write to the list. New versions of Scintilla are announced on scintilla-interest and may also be received by SourceForge members by clicking on the Monitor column icon for "scintilla" on the downloads page. Messages sent to my personal email address that could have been sent to the list may receive no response.

There is a Scintilla project page hosted on codequery-0.21.0/scintilla/doc/styledmargin.png000066400000000000000000000333211310136352400215310ustar00rootroot00000000000000‰PNG  IHDR(dÿ1YgAMA± üa IDATxœí ”Źï÷¹ç¬{×9¬¬{V®GnâÕã ¢Tô(:"#Š $ ¢" 0ˆ°å©B‚ FŸAÉxFÃÑ#Œ¬«FtÐ Æ4h±Ö0ôê˯‚O pÃàÍ #K›0ç]4bê¬yÅÚã›+êú ¼üÙ…î¼oÞ®{nþìÞ›>»gnçË>_2KؾÅ3Áö/žyà®Þ•qÁ½]2ØÃ'%7jÂt“566žþùƒlÁÆÌ™32“‘Ehàvš®ŸÝ4mÎ5“nôÛµÍ3Áü)JAÙ+ßÕzûßY8ã¹M¿5nC~̻ӯüã W€}pý÷ÿ<Õ²mS†ƒ}Ô|ÙÇw6 Ú?á;{gyå‹¡,>)¼üM·7ÍoÇÒ†ÛâÔ‰!E[„Œ,Bƒ~ß8eÖUMùb JAÙ+xv,¹iï¸`»/~ç†Ñ§Žúý”ïož2âýÉ—oiöAó°?O¶µiÈö‰—~4aäá™÷Þa•Å'¸yà {ƒj.l·ß~{Ÿ>}Àï ru¾- ?)2²èŒ3sÅø©Åg&ÂJžïœñù5ö^ÝÿókÎßÔ<ü݉Cß¿nÈ– —nmüÞöqßÝ>î’ã/Þ9®a÷µ}vÍÇÎ9àóEVY|RàÙÔõìÙó§?}6æÏŸÏÿåu}l{d5è÷ã›gŽw=·Qã¦*&ƒR<\ +$m%x‹¦uŽé·tݶ±?}ãeȹ¡iˆß öBÈ ù;o¿Þ :‡^5Lä¸O[½z5à÷ðÃC œ7Ø éð¯RpèUO¬Ã'ññªqº÷1Ø~ôüÇRæ_ü„ýî ‘áÁßA]›D!êŒ×æ­úÈ» ¡ŽÎ壔ü‘§É ß_;éÆË¯™R¬A)(«­¤ xÚJžÝ·Oíyö‘g¿Èüû±cérBþÏo eñI¡Å•›n4ªIø4ðxÀ§nûöíÜõyä‘¶`ƒ8-QÙA£³{ýÙúŸ ºt}vµu ¸[¤o]sq÷Hù=»(ÚùÊ4{{Ú/vÁŽGFðÌ·?»N¥ýâÓ¦yM¼ùl—®sî°À{F×9çêLÆæ¾ò!c>wÏQ]í‹g|„v~ëÛZ¾ì¨ºæä?5ýþš‰ù¡c&†¶I|JAYm%ÁÓVð|úÃÉŸ]~ÆÁ¡§îüþ9ï¹Pä‡mn8ò@NÈß¹À*‹O póÀ»dÄa'  fwàè`ƒ³4а ¶!‘oÀ¿¸ì%#~ºÖ¯Ë©S­KŸVÏ™s6O·À»q€”_.¸ÝÍ0û—ÐÿòèÒS¿çî²8´w-ÝÚç,àMœ}*tn¨_[gBfáës|ãœÉvÊÔîÆ³vΔë/.s‹Yýþê¦éCFO,Ö ”ÕV×9  Þ‹+±À›ßÔ9ø”Cƒ¿ýñ°Ó7<L¦lƒAÈ ù;oi„²ø¤<ðò7ßÖ§~¨0À “Ï?ÿµs0n~»­íÏܨM4T賦ç·[µ¿?÷ŒM;™ßúÙƒ×üžPÖù†l¥¬÷Y ÓT?hLý÷dó§È¥Né;P[ \û€J¼½r%½Î°»ñâÎî¸{nGÏÿ¶áäÿÁMñ–"ò@NÈßÙØ€O pó<^Ÿú!¸s®ÄP“<ß{ï= ŽOíÀBâ‘¶pÙ>õ¸àµ>Ú]võœGô~gåìÑc Gg¼nyæ[Δ‡~Å3tµÒ¡øÕÏì´†‘ÖÆGlû»«·rçZ}·Æ™Ó{ÔçŸØÆì¡&l?ÀëÚcz—®ËÙ*ª¢9¼1üXÞú§ ³ŽçíPöáçØ{ß\»Žè=J›è«Po·½%þˆ<Ü´µëœIGŒ| XÝj¶‰Z°O¯:úºº†Å”‚²ÚJàK(ˆ÷âJ¾Ýç¼ÎÆïìíþw‡ºçvžð_7øÏÂu8ò@NÈÿyã…PŸ”çñfÜrûiýŸÚïRn=mñ›uÜï@aÂ6ç Àm» ïøkœíí¯Kß8ÍÞ®Ž™xb¿ïú#¼óé#ƒ§ßOÎUMxv›íÝOì`Ûž¼ÿâÇ>±³;è¯n^`×?íç;8xnqh×.>æénµß“Ïn]ÜVŽ?~α}aãþvç`ÖÏíÊ+¿ÔÖŽi91^ü6÷”uM_ÊOÖ螺EµRÝÖ½WôþÓÏR¬A©ã{Ÿ«­¾…€‚x/®ä¸“Ïþ|üwtÏè‘Û}Â?¼{â?sS<žH‡<òï€8# pÃà]Ú»n7>sâ˜ÁdßNàLòy ÷x¢ m÷­Á²ãÅ!ÐeiêÉÓ-®šzÚ]pÛò»áÿÅ~j2çØ3Q§ªi?·:ã§[mÒŽý‹ml÷ê׿M³-’í .xÝyý^÷«¡ì˜§Á-î¶«ÅÇÆÓ?yd0/.ÛÖsçÜŪ-0ÑÙ%þv¬»µÎW·3›f[.Æwh¬Ñú+cƒ7B_UMZ·“ûZÌÔ)Ö ”ÕVb¡e.ˆ÷âJþ÷‰gí7œØþž¹ÏNø/ïø50ÑÍÅöW{÷ð]rBþãꡬ8#MïÔsÜ÷baÜ›ñ;|ä)Ü ¿‘p¤+\ 줾÷´3gU“[—c®ë!Ò-®®ù”Ó¿ÞsØ‚_3NÈ1}¼ =ÜÚF?Å×äÿ0«ë‚®½¯Òž9±_ýG—®7t³ê¼þI<øè´Û¥Û»à‡nµòá-ZkƒäK¿¶u›ë~”(•ê}ƒsŽöñø3ˆJ`òöõ¼­mZÍÖs˜¶žÚ´íyæð«šN¯Ìé$öb»üª‰PÖT‰¶ˆ/®ä˜ghº„õúvÊßï;å·œþ/â`›N<òž8ÊŠ3Ð$ðúô»´Wß‹…‰KÀ ß<àÈñ]E\ʶ{Ö¸hÒm®FYTð.ÈÉAÛv†ž¢”͉U›Ý³¯´9´üS¹n÷JžÍ6[³H:Œ!½âv:¯gã,~ÿcëë—õ1%†´{Öìh½Ò;…]ÿÇú+óc]Ó®!ðB·Rýö¿Ž?}ä5“ú^0”›<±Û¨k›¡¬©mÿ^\ÉQÝûºa«ûï¬îk‡ê¼5•íõݰ‰t+OÝ× ÿ7\ e=²wzÿÁ'Ù€M8=¾š"PäÜÝ)El[âzž+•]€Õ7Oèqfó®+iêyÞáºöj8iáÛîÙ¬j³I³k»vå6ö‡àýzñ½Í¶ð¦v“Ûu=ÞìcNsÛ#J-{ݽ:ÛžšqÌ1˵æ£Ç.Ç5µÛÂßÙ;6¶o÷'þr¤æ|uf§Ð‡O^9µKWëH|M‹CrŠØà]ª‰Ú0è÷W]7õÜ‹†sÓ‚'öbƒRP6|%Ú q%ÏáÙcØ nlð·¾ÔýÀËÏ@Î]CNó¤Ã^È9!ÿ—s¯€²âŒ4Þ¼ÛOïwé·O¨XOƒ8uþüN©3Fw…yÝ·Fûwû-k`Öõ$È3ô裱h×_ïºàë=†ZeOšê ÞŽnì~†Wq*?2O=ö Ñ–UO;Ei·{ÙÐÝ>Uj!oÚu+q2ócèrôÔ®šDç¨ š}œî`Û­Äß´¿ˆ’XãvÔñ}ÆMÊŸÉÈb JAÙ+ùf÷Ó¾XØÌÆÖ±qg³ñguŽoèllø¼qà¾Æ ÷5^°Bÿƒãë¾×—ÿ7Û΄¼pâ ¯ûÒ² la#[4ž-špøÎ©Kæ/ƒ²âŒ4¼Ù?XTwá°zŸOF–*ëÞë¼O?ïêÆ)³nYÞ ?”‚²Vr܉ý¾Ý§ß‹žØ×úSn{Ÿ{\lïo}ôà³lm9´ò'`‡WþäË•Ëà_È¥ ¬8# psÀ›ûÃ;νpØq'÷##K•u?ù¼n'žûÍãz›ì¨î§€ùÓ;ùÜã{×GX Àön½LÆ‹øÓ¡Ð+Î@Ü<ðú]4¼Û·Ï%##« tnÿ†Ë=ðÀ÷Õ_<"ùÃ"#«vм¡&l øî¨ot;¶ÉÈÈ*dßìöoš ^ÓìÞõY… #ðÈÈâ6Œ,#ðÈȰ²Á[wO}ý=ïTâà*WsÖ†Î(û<øžrX“[ù7WÎ÷§ÖY¿d¼×_lC¨òú%ë˽R¥¦Tjý’úú%­‘ww¨6§(Ôù–Þ;¨Õ æJþúbøvµbÀÓž[™à”Uö×Ðs“<ŒŸ›4ñ¹„¾Z¶ue_¨JaÇcQç•…Kmf/$j <¿GÒ:®b¯vƒ^ýÞßõpî zÃäVcÍ΢?ÛvŠÝÖ’‰¶?w*q4i‰Øel {}߱ȳ¸u²µaº\R:oNÙw á/¦W¿[‰’âæ÷.Bؾ‹ÿ¨)=aò¤z|‰Ð·6q²ïĽÃP.lчäëHæo}}úž&U¨Öã/UZÏn¨‰:zø??JN=躔1ÔlåWÙóuGØ:ÙÊi •Õi<Àð.ÈþHxÍöñXÅ—ËIozÒÄÉvCÏM*݃y—Ñê:ÖøRÄåu¤ub8Î5_„}ðVUnσ³–ñF§é; åÂFsHæoÖùúÌ=- ‡øK•Öó#óx~,K»^þ“/s’`õ€œ¸ôê†ø›g<°°ÇÀ¿×}™/WëD«×Z] öò.j„l:BÞ)Ü«—áZÅ9ªäû<¹ÿ û,ªC*øÍ†I YO =?JðÊ]{¨ xún!¾yVðl¢Z]ŠÌ—Ëòu­ÜËÙ”¶N?  :Âà‰K¾Ó 5#¯øCÒ ³ }³xØ€¢ROp©b,ª9rÁ¥õß—êÌॿ=¡ÿ bwa:BÔºÚ–e¾¡f©àq¯ëŸø.׺{&Õ;Âw–L†gø ƒ¶×†jNræÌh¨éWðˆ*¾µ€¡¦¯+}Hæ¿’šoÖ;œnó—rOÙWª´ž_™Å•bæÄ’›¶O‰ÅtµË§máWÖKË݆iq«;Ûö·¥äç‹+%‚§h.úR‹šFš:Ÿ2øQR¤q]ø ‹ØÇ¿VþD:ßZàâŠn¨YÌ!ùšúfŶÛÓÄW NJ­Z®T)=Ÿž\!‹ÌJŸ $mîX¥\+¼œOåŸs%ê¬tÍ)<Œ˜OÖßœóç>9ðJ8}áÍŠZÈ)­”ßÈã‘‘%`YFà‘‘%`YFà‘‘%`YFà‘‘%`YVðÜgj¬'‰ðvü§—Ýg)ȪÝJŒÇ3ƒ$‡~X„„d##K•ôt@‡Æ1EÅeYÆ­$ðDT¯ù¹ò\}½Aè~ðÿÈB¹¡þšGþQ0˜õ¯ò“dd [iCM9Æq—?Â_NôÇŬC¡øÈ1ê¯>Ÿ« Â÷‡3ŠŸ$ #KÔÊj†O夜ðgßÁì’`Ö´¢ŒNúº“Õ¸•ëû1…‚àiƒh¥&Ê õ×áxdiµRçxÚPù]CMãÏ.ìŽ,ÔßЊö' ÈÈµÒæxˆ7>ÃÂýÚÅO%<^3ÔäsÇСþWP+†Ÿ$ #KÐjàɺ©@–>Kø§J6ÿÁ‡À#KŸÕ€Ç##KŸxdd GF–€xdd ˜zêá—ÏboÕU½}ùZ_8YëMÒßY˜¼»ìðKg±_×ÕˆÁÉÂ)?ñÒú{Ÿ|•,Z{ä¹ß¼ºa (¸%ÞéÓ`Fðþä…/¿b5epÊü$é±5jç^ölû–_½·‡À#ðôàýíoIwÒj\ÕÍ»Œ&¼XÀû eàÀ–-IãTxIwѪUçcN¯|ðÚ¦)PfÞS“ùUÁà‰]8UCÃøõC%ñ¢KàUT^¹àmYÖ`ÁåO¤¬Ê[{ÀÇs«8°aÚ*_m^UˆÀ+<=RŠä¯P-q‡Öñ°ë.ëX5Ýñr«¦çW­ÊC G×Úà5Øÿ><Ý)â)4'öZÛN%Ž õ§Á;ôólKË…nµ>Ôvß{a~ªÈ!rNËËi K_œ-ïKÑÇš8Ââ•À«8xiZžpz›?³MEÇÃÓ!ÅÁ®šn&À¼q_*Œ…±D£•¼(¤»ŒùS àí=Äötí¥|óK|»­9×pßf± lkžÚæñÛæ–´lôokSüÒfe!W1ðÄŸreþ°‹oü_‹ Nš%*™ƒ<­cÜÇ:^΢ï“ÿd:ëXrAÃ’wÅǶ‰¹|«š§M¼£wâ-õ´¼ÍÓß5lkSÜo?àŽø^Hw¤uv¶%S¬¹t«Z[~âîaü__N¯÷£’¿@[pœ}õSòõÚcó¼k^ÅÀÓ¦àÑvM…KWå¹×Ú²,o q¶âÁ³£‚™?EÞÖN¦± -ç hYƒRžâ¿L?¹ÍMé¸c@®ñ]~e4!]©™´²åŸr‚¶F÷#Ê€šÃÅs wl°·_€óÍ?%å„zœí5÷6XïÏ_°-qÀΆ6?>xïð¼ØÁS† ÞØÏÉ Ó¼b³» ޔ̞Wƒo¨é,ØÀ¿ò©”<è[nïTÌê¬9§ûù ÞÖ¦x½9—ÃZšÚ8)õhj³û…€?J=nþà¶ðüǦ<!xh±õx3Š«Üu‘Óó"Oä€y@ºãRim³xÒP–/®xB‡7%ÅÞæ]L¶¶±¹†[×1_:Î|]K]}Ë«"4mkS¤P³ÕƒÕʵõè‹7ÜÚj>µf_þà#ä¦# ¼rÁ«VƒS^¿ã+ÏÞZvvn༷¾’yúu«¼í󖽸ãƒyçå®zú+91pÛ±UW¡&^¼s`j~kÙUw~`§@µ°ò ÊýõXÇ9½EIzz¶¥œ^=¢!5ÿŽbÛÒä—ÞÛEà•^Χĉ¼··ö‹;¤Åÿ¾wüÉÝõ§›½Ö…7¯±×<Ô×MsÇC}Ï{è[Ýt¼-]9»,Ntr¾2FiTɃëtöÞð°Z¿›¢æ”÷*ù ¶µõðÃöP²oã Nºzü¾ƒwÀ+ ¼*68å_ÿé?3l«8³îÖÊå/Ï<ÏÞk?æ÷íxoí¥%gœ½dyåò—ggïå·?$«xž¼gÛ·UÈ<ÏY¥ÿõ!ðˆ=²JÙ]?}I±?ýÆ›k~ì&##‹Ü x<ñÓ4ddd‘›¼å?šŒŒ¬Æ~Ðvß¶ð.22²hmKÇŽÂàí¬aÁÕÙ½ë³ÿ’ª^[;Ù[[öÏà™'_ÞðÄKëìg/þîæ{Ÿ‚Ì¢‡pãLxDÔ‘°¼Û~îÍ?î “²Af¯1òx$$^øü·vqÿ\Ó ¥o*‰ÖGG^êŠ&7­ÿâµá»=ÔUTþè• ê:Úrór¹¥-•,RQu´4ä’8«aK5.À sC˜E§GOI´>:¬M E—´?„ wøÌ‹Èãµåƒy¹üæ0ß®š¹’à80?0¥!d*årT*"º&œê£C^€×y °±òÁãn¬SvnšD ÅsQZÿ(å( ä^d¯,ð*©€šªÚìŸåÈåÛ¢¨ß–oÛÉ®7]Ic€·bÅÚ*JÚD$wSœÆÊbŒÑ¦v¯;°µ½#ñš.tXÑos>gweÇ,Ÿãtna ílwKƒœ˜[Ùæt_fŸûêhY*åñc#q)ßæSê OvW(›ÓáQ2/Õâ¥;0‡ªYLõh…†¯zÃÕ“¿ïRxW!ð6íô ¨ã†7Y}'Î9žŽ1÷³qއëЇgÚ+ªsrŠ|+šú÷ïïl•ÅÝÎ0>ÍÛët÷yþ?±ÁŽÅé î—<ÔT÷¶­ g»@[¾# éñìŽoŸ·”>ˆDäz,$ü™õõáìÆztUi¹3\=‡º†–ÝL½DÞÕc¼ßþù 7A7‘ÆâϦBç s¼µk%×ÇYÏ´W åætþ_ÑÔ´x± ÞZþ_ébˆ+u2b‹ïròÀ·hpÚþ­:ÅéiÁ 9yÓ{<·«´¥Ö㟃æLVN3KJ¢øè«9SS~]º¦]§jé éê9×D¤ã+&]=Þè¼)ÛÜXÌàÙÔ™üŒÞ¡‘$8¢eó^Ù5Âp·‚o•Í]‘¯àÒëßîßQž î.rN£¢/Àã)Ü ñci I­`dÀ{Ežá깃O‘î\1ÛêÁ{uÃ.AlsSRXœà}‡˜<)Íý h Þë$:®ÑJ]ÜĽžµUöÚ +uUSx3>zÑŒpð7¼<ž >÷ør«çûõ{¾oD¯¬P—"—ØË_ãPðVÿþÓhÁ[þ¸…˜6Ñbßhg¯O/EÐ4¯JlD/F/i9¿J›–MàmÚÉ*ÞúEý,O5~Wm(¨áÔ‚Wm°Y¡.!çx_àn€§¤e3F²—­@‹n ®¦%jÐÛ›Rðª/–‘Ç ’ <»Â@éè!yÙÜbˆÜBSAÛ«;M¤¼* „Í uYöxòPÑèÊBf n1Ä_„À é/ 1«°Œ<^ ŠœãéÀ“Óå9žq jŽç›Gêcp ñ‰ëÏxY „Í ui[Õ”îƒ)?ûÇ…?¢Ü ù¼Ñ•i³™šW5]µk0¾!-=2“y¼ }¯*DàŤ¬P—'WªB^Lbäñ +ܳšU!/&e…:ŠNˆG^LbäñHH^LÊ uäñâ“y<R¦îãe96+Ô%êñäÅ•bƒqB>é’Q l½6%Ro'TsÜàq/V7v¬×™%‡"zyA7‰ #h(Ây¼ ¼xÑÅBù±”9vð{ÌubÚÞì:²BnFq~Ao4ª¢:ÕJ89pšØöý]È•äj³B]ŠÞ ¾ñQòFš$fjJ™ ‚yP,¯µ]DYåÓ1Çóãdw÷ÇÜIž”Õéüw‡9ÑQŒÒÜ|î&Jò¶½²v»%;YF/P’.Ú#.˜‚b¥w™+3ñYZP,oW¸ÊÝí,UàÙóáŸíÉ€™}¦Šê*É ´ßàðʃÎRV¨Ki<^±ou-i•¥RA±¾'ªYzÀS{¶~â§f&A¢q¦o¬é¹9\¡äðì2·¢±m)bäñ‚Tx/5FÍ{²J Š•¢iOòuš ¡Á“Ó¼™›4×s>p¶æDªÖ7›CàÙ®¯¦ÖÕáÁ%jÍë$þKF‘Ç T¡@Xß;Xƒ_þZÒ/ò X+³á–Còà)ãÀœÄ–’¢¿Ó®º4WhñÄMÁ·1TàE6kX©~ªà§¬P—ÊUM÷^– ~ùkÀOý™¹Š:(Ör9ɼ'=2“y¼¢@X¯Ê u)}r¥êDàÅ$F¯°(–À‹ZY¡Ž¢â“y<“²By¼xDàÅ$F„”ü}<÷£ïö\uÂf…º$=ž¸Ý–É[ áC ¬][PÑÂ2òx$?›‰ü7(*™ÎS*7FÍR lAE›êóxÅ<Í\L èE 1ƒ5K°èC%ay¼ ᇺ¬¾«sµeÒ¡*\ÎÌÜ÷x1 ¼€PZë47UdSŸÑV‡Å~ðž¨NÉÏSÕÂf…ºD=žÞá—™žxÆãTÿ[ƒ ïÒ5ß-dã…¶Ûòƒ4”"ðª;–‘Ç VÀ Ðôf^õÂu‘©ÒA±ÄÈR ìÃÓ+‹eÂãÕv¬ó´™›Á}à2:%x½fa3@‹ô}C`;Úòò߆|[ÉÍhšaé°Hµ‹sú¢˜¥§KÅïTX*æxµ›êX”žY õ´qŒEq-Šmi¼šü³šµË2ãñt]¯6B`ct3xFŶ(25Èû3ž–¦,Âf€:e g†C`ýŠm1D=)¯6aYf<…À–Ý¢8¼¼0š2ðj"6Ô±Z5ªè’Æw*À«…@X–içîSÇSÕö²jQú+%ƒÎ/£GÆbS¨#Å(/&±LxžûQwÏν—­@X¢.-Òü¸swÝ)6&±Lx¼€‡˜ƒWuÏZ†x§G@ºÿa1åm²ú£á¥ƒ7ƒg>.Q lLÊuÌ žò2×àî;‚0¨Á}¿•6 ¨ÀqròïPV߬’Ì w „)–eØãi^ôcz¢2Dm…*ôü›éÅC ¬ä@?Ö¡}~Í-â†a$JñOǘûÙ8ÇKm l¨cÃt‰F§!Þ³e¨ÐË<kyæw‰xrZU²ìz<}/vSFk¾9ž6¸@W¡ŒOHðBŽ!ÍàÅ©TƒWM° Ž•íñ”s•çñ,q<tQá0çO¬²@X–]Wì¯ð(4ÌÕ壦fͪ¾q¯¦a3@‹hU3Ìô¯Ðª¦ï>[!ðücË0þVƒ›‹çþBJÁ«¾@X–§Hz³©Ñ•ÈÑ齃ýIÐ}<©”ïΆ<>^ôsÉB‹+ñx@zd,&e€ºZW¬q´^Lb™ðxµ¬xãù¼˜DÔ¥\1ÇÑx1‰‘Ç#!x1‰¨#amídomÙ?ÿgž|yÃ/­°Ÿ½ø»›ï} 2x¥ˆ‘Ç#!x·=üÜ›Ü&3dƒÌ^)"êHX¼ðù#¯öaY&<^To„ä‰ä+‰A¼/¿*l,"ðj16Ô±"À+îÝ %LM€×y °±òÁ«Ù@X– Z^™àmÛSØXàÕj l6¨‹ö°-š·¶jŸ-ã•ªÉæJ2ôJ“x›vZvŸé|CNa±ÎñtŒ¹Ÿs¼Ô²Lx¼(ß«€øòW5"A$ê+©&ð~ûçƒÀ7Øæ¦¤°øÁ«š@Ø PÇŠx[PïÇc(¤ L`u<xoü¡L¦lsc1ƒWM°,³/jð´?H&¥êƒª¼W7ìâ&xã&ÒÁXœàUY l¨c1€gxù«¶lm€·jýÇÂu8ŒÅ^ÕÂ2òxÚÀS»úoŠÅãŒX­´àqö””XÁ«¾@Ø PÇŠ¯Àaœ•þ寺¼š+ÉЛ_M2§5xµ'– — eéͯ&x1‰¨‹L1GÎUF^Lbäñ"RUpç€÷öÖÃâÞ]€A6¯Du$,oÛvÓ=ÿ~÷ã¿,hs—,ïã2a¡±b­ã³Rló.2²ø¬„Ž-ø)ÊJ/dÈ-Žº]óþÞG_X»ü•M!í¡gÚ_ݰkÇFF›•бc/|È-s£nÁ}Q„‡ÌP„ÿ”Ye[v[Z°´Õÿ/ßË3@‘O÷32²ØL;.3õíÄÀÃ1¶Ü”Ø[u[x{22²ØLéØÁ=<1ð´1¶~ÃàÁánüèo`&ðxqVácÈÈÊ7ܱó÷óÄÀqµþH[l¼µ‡¸™Àã{×ý导Ôþ¿22²ØLéØÁ=<1ðph­6ÞGÝ–ÿéy2²xÌß±úvbàù#ÿ¢ny‘5ïï˜iÿåFà‘ÅoácÉq¨AÂàGÝò"m›vƒ­þý§â_ÅD"/uè FF›…%OxǧuâÆK‰—‘‘Å`%tìl€÷ÚÆOBG¿e¼‘"ø ¶_Z·#¤Aæû~þZâßYMY ;VðÂGþ‰à¿­ì©Wß Yì™Õ›¡HâZd5e%tìøÀƒddd‘[xŒD"ULFðÈÈÈ*jðÈÈÈb0 <22²ØÌŒŒ,fûÿ¹.χþaéIEND®B`‚codequery-0.21.0/scintilla/gtk/000077500000000000000000000000001310136352400163375ustar00rootroot00000000000000codequery-0.21.0/scintilla/gtk/Converter.h000066400000000000000000000034061310136352400204620ustar00rootroot00000000000000// Scintilla source code edit control // Converter.h - Encapsulation of iconv // Copyright 2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef CONVERTER_H #define CONVERTER_H #ifdef SCI_NAMESPACE namespace Scintilla { #endif const GIConv iconvhBad = (GIConv)(-1); const gsize sizeFailure = static_cast(-1); /** * Encapsulate g_iconv safely. */ class Converter { GIConv iconvh; void OpenHandle(const char *fullDestination, const char *charSetSource) { iconvh = g_iconv_open(fullDestination, charSetSource); } bool Succeeded() const { return iconvh != iconvhBad; } public: Converter() { iconvh = iconvhBad; } Converter(const char *charSetDestination, const char *charSetSource, bool transliterations) { iconvh = iconvhBad; Open(charSetDestination, charSetSource, transliterations); } ~Converter() { Close(); } operator bool() const { return Succeeded(); } void Open(const char *charSetDestination, const char *charSetSource, bool transliterations) { Close(); if (*charSetSource) { // Try allowing approximate transliterations if (transliterations) { std::string fullDest(charSetDestination); fullDest.append("//TRANSLIT"); OpenHandle(fullDest.c_str(), charSetSource); } if (!Succeeded()) { // Transliterations failed so try basic name OpenHandle(charSetDestination, charSetSource); } } } void Close() { if (Succeeded()) { g_iconv_close(iconvh); iconvh = iconvhBad; } } gsize Convert(char** src, gsize *srcleft, char **dst, gsize *dstleft) const { if (!Succeeded()) { return sizeFailure; } else { return g_iconv(iconvh, src, srcleft, dst, dstleft); } } }; #ifdef SCI_NAMESPACE } #endif #endif codequery-0.21.0/scintilla/gtk/PlatGTK.cxx000066400000000000000000002012021310136352400203260ustar00rootroot00000000000000// Scintilla source code edit control // PlatGTK.cxx - implementation of platform facilities on GTK+/Linux // Copyright 1998-2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "Platform.h" #include "Scintilla.h" #include "ScintillaWidget.h" #include "StringCopy.h" #include "XPM.h" #include "UniConversion.h" #include "Converter.h" static const double kPi = 3.14159265358979323846; // The Pango version guard for pango_units_from_double and pango_units_to_double // is more complex than simply implementing these here. static int pangoUnitsFromDouble(double d) { return static_cast(d * PANGO_SCALE + 0.5); } static double doubleFromPangoUnits(int pu) { return static_cast(pu) / PANGO_SCALE; } static cairo_surface_t *CreateSimilarSurface(GdkWindow *window, cairo_content_t content, int width, int height) { #if GTK_CHECK_VERSION(2,22,0) return gdk_window_create_similar_surface(window, content, width, height); #else cairo_surface_t *window_surface, *surface; g_return_val_if_fail(GDK_IS_WINDOW(window), NULL); window_surface = GDK_DRAWABLE_GET_CLASS(window)->ref_cairo_surface(window); surface = cairo_surface_create_similar(window_surface, content, width, height); cairo_surface_destroy(window_surface); return surface; #endif } static GdkWindow *WindowFromWidget(GtkWidget *w) { return gtk_widget_get_window(w); } #ifdef _MSC_VER // Ignore unreferenced local functions in GTK+ headers #pragma warning(disable: 4505) #endif #ifdef SCI_NAMESPACE using namespace Scintilla; #endif enum encodingType { singleByte, UTF8, dbcs}; // Holds a PangoFontDescription*. class FontHandle { public: PangoFontDescription *pfd; int characterSet; FontHandle() : pfd(0), characterSet(-1) { } FontHandle(PangoFontDescription *pfd_, int characterSet_) { pfd = pfd_; characterSet = characterSet_; } ~FontHandle() { if (pfd) pango_font_description_free(pfd); pfd = 0; } static FontHandle *CreateNewFont(const FontParameters &fp); }; FontHandle *FontHandle::CreateNewFont(const FontParameters &fp) { PangoFontDescription *pfd = pango_font_description_new(); if (pfd) { pango_font_description_set_family(pfd, (fp.faceName[0] == '!') ? fp.faceName+1 : fp.faceName); pango_font_description_set_size(pfd, pangoUnitsFromDouble(fp.size)); pango_font_description_set_weight(pfd, static_cast(fp.weight)); pango_font_description_set_style(pfd, fp.italic ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL); return new FontHandle(pfd,fp.characterSet); } return NULL; } // X has a 16 bit coordinate space, so stop drawing here to avoid wrapping static const int maxCoordinate = 32000; static FontHandle *PFont(Font &f) { return static_cast(f.GetID()); } static GtkWidget *PWidget(WindowID wid) { return static_cast(wid); } Point Point::FromLong(long lpoint) { return Point( Platform::LowShortFromLong(lpoint), Platform::HighShortFromLong(lpoint)); } Font::Font() : fid(0) {} Font::~Font() {} void Font::Create(const FontParameters &fp) { Release(); fid = FontHandle::CreateNewFont(fp); } void Font::Release() { if (fid) delete static_cast(fid); fid = 0; } // Required on OS X #ifdef SCI_NAMESPACE namespace Scintilla { #endif // SurfaceID is a cairo_t* class SurfaceImpl : public Surface { encodingType et; cairo_t *context; cairo_surface_t *psurf; int x; int y; bool inited; bool createdGC; PangoContext *pcontext; PangoLayout *layout; Converter conv; int characterSet; void SetConverter(int characterSet_); public: SurfaceImpl(); ~SurfaceImpl() override; void Init(WindowID wid) override; void Init(SurfaceID sid, WindowID wid) override; void InitPixMap(int width, int height, Surface *surface_, WindowID wid) override; void Release() override; bool Initialised() override; void PenColour(ColourDesired fore) override; int LogPixelsY() override; int DeviceHeightFont(int points) override; void MoveTo(int x_, int y_) override; void LineTo(int x_, int y_) override; void Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back) override; void RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) override; void FillRectangle(PRectangle rc, ColourDesired back) override; void FillRectangle(PRectangle rc, Surface &surfacePattern) override; void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) override; void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int flags) override; void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) override; void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) override; void Copy(PRectangle rc, Point from, Surface &surfaceSource) override; void DrawTextBase(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore); void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) override; void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) override; void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore) override; void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions) override; XYPOSITION WidthText(Font &font_, const char *s, int len) override; XYPOSITION WidthChar(Font &font_, char ch) override; XYPOSITION Ascent(Font &font_) override; XYPOSITION Descent(Font &font_) override; XYPOSITION InternalLeading(Font &font_) override; XYPOSITION ExternalLeading(Font &font_) override; XYPOSITION Height(Font &font_) override; XYPOSITION AverageCharWidth(Font &font_) override; void SetClip(PRectangle rc) override; void FlushCachedState() override; void SetUnicodeMode(bool unicodeMode_) override; void SetDBCSMode(int codePage) override; }; #ifdef SCI_NAMESPACE } #endif const char *CharacterSetID(int characterSet) { switch (characterSet) { case SC_CHARSET_ANSI: return ""; case SC_CHARSET_DEFAULT: return "ISO-8859-1"; case SC_CHARSET_BALTIC: return "ISO-8859-13"; case SC_CHARSET_CHINESEBIG5: return "BIG-5"; case SC_CHARSET_EASTEUROPE: return "ISO-8859-2"; case SC_CHARSET_GB2312: return "CP936"; case SC_CHARSET_GREEK: return "ISO-8859-7"; case SC_CHARSET_HANGUL: return "CP949"; case SC_CHARSET_MAC: return "MACINTOSH"; case SC_CHARSET_OEM: return "ASCII"; case SC_CHARSET_RUSSIAN: return "KOI8-R"; case SC_CHARSET_OEM866: return "CP866"; case SC_CHARSET_CYRILLIC: return "CP1251"; case SC_CHARSET_SHIFTJIS: return "SHIFT-JIS"; case SC_CHARSET_SYMBOL: return ""; case SC_CHARSET_TURKISH: return "ISO-8859-9"; case SC_CHARSET_JOHAB: return "CP1361"; case SC_CHARSET_HEBREW: return "ISO-8859-8"; case SC_CHARSET_ARABIC: return "ISO-8859-6"; case SC_CHARSET_VIETNAMESE: return ""; case SC_CHARSET_THAI: return "ISO-8859-11"; case SC_CHARSET_8859_15: return "ISO-8859-15"; default: return ""; } } void SurfaceImpl::SetConverter(int characterSet_) { if (characterSet != characterSet_) { characterSet = characterSet_; conv.Open("UTF-8", CharacterSetID(characterSet), false); } } SurfaceImpl::SurfaceImpl() : et(singleByte), context(0), psurf(0), x(0), y(0), inited(false), createdGC(false) , pcontext(0), layout(0), characterSet(-1) { } SurfaceImpl::~SurfaceImpl() { Release(); } void SurfaceImpl::Release() { et = singleByte; if (createdGC) { createdGC = false; cairo_destroy(context); } context = 0; if (psurf) cairo_surface_destroy(psurf); psurf = 0; if (layout) g_object_unref(layout); layout = 0; if (pcontext) g_object_unref(pcontext); pcontext = 0; conv.Close(); characterSet = -1; x = 0; y = 0; inited = false; createdGC = false; } bool SurfaceImpl::Initialised() { #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 8, 0) if (inited && context) { if (cairo_status(context) == CAIRO_STATUS_SUCCESS) { // Even when status is success, the target surface may have been // finished whch may cause an assertion to fail crashing the application. // The cairo_surface_has_show_text_glyphs call checks the finished flag // and when set, sets the status to CAIRO_STATUS_SURFACE_FINISHED // which leads to warning messages instead of crashes. // Performing the check in this method as it is called rarely and has no // other side effects. cairo_surface_t *psurfContext = cairo_get_target(context); if (psurfContext) { cairo_surface_has_show_text_glyphs(psurfContext); } } return cairo_status(context) == CAIRO_STATUS_SUCCESS; } #endif return inited; } void SurfaceImpl::Init(WindowID wid) { Release(); PLATFORM_ASSERT(wid); // if we are only created from a window ID, we can't perform drawing psurf = 0; context = 0; createdGC = false; pcontext = gtk_widget_create_pango_context(PWidget(wid)); PLATFORM_ASSERT(pcontext); layout = pango_layout_new(pcontext); PLATFORM_ASSERT(layout); inited = true; } void SurfaceImpl::Init(SurfaceID sid, WindowID wid) { PLATFORM_ASSERT(sid); Release(); PLATFORM_ASSERT(wid); context = cairo_reference(static_cast(sid)); pcontext = gtk_widget_create_pango_context(PWidget(wid)); // update the Pango context in case sid isn't the widget's surface pango_cairo_update_context(context, pcontext); layout = pango_layout_new(pcontext); cairo_set_line_width(context, 1); createdGC = true; inited = true; } void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID wid) { PLATFORM_ASSERT(surface_); Release(); SurfaceImpl *surfImpl = static_cast(surface_); PLATFORM_ASSERT(wid); context = cairo_reference(surfImpl->context); pcontext = gtk_widget_create_pango_context(PWidget(wid)); // update the Pango context in case surface_ isn't the widget's surface pango_cairo_update_context(context, pcontext); PLATFORM_ASSERT(pcontext); layout = pango_layout_new(pcontext); PLATFORM_ASSERT(layout); if (height > 0 && width > 0) psurf = CreateSimilarSurface( WindowFromWidget(PWidget(wid)), CAIRO_CONTENT_COLOR_ALPHA, width, height); cairo_destroy(context); context = cairo_create(psurf); cairo_rectangle(context, 0, 0, width, height); cairo_set_source_rgb(context, 1.0, 0, 0); cairo_fill(context); // This produces sharp drawing more similar to GDK: //cairo_set_antialias(context, CAIRO_ANTIALIAS_NONE); cairo_set_line_width(context, 1); createdGC = true; inited = true; et = surfImpl->et; } void SurfaceImpl::PenColour(ColourDesired fore) { if (context) { ColourDesired cdFore(fore.AsLong()); cairo_set_source_rgb(context, cdFore.GetRed() / 255.0, cdFore.GetGreen() / 255.0, cdFore.GetBlue() / 255.0); } } int SurfaceImpl::LogPixelsY() { return 72; } int SurfaceImpl::DeviceHeightFont(int points) { int logPix = LogPixelsY(); return (points * logPix + logPix / 2) / 72; } void SurfaceImpl::MoveTo(int x_, int y_) { x = x_; y = y_; } static int Delta(int difference) { if (difference < 0) return -1; else if (difference > 0) return 1; else return 0; } void SurfaceImpl::LineTo(int x_, int y_) { // cairo_line_to draws the end position, unlike Win32 or GDK with GDK_CAP_NOT_LAST. // For simple cases, move back one pixel from end. if (context) { int xDiff = x_ - x; int xDelta = Delta(xDiff); int yDiff = y_ - y; int yDelta = Delta(yDiff); if ((xDiff == 0) || (yDiff == 0)) { // Horizontal or vertical lines can be more precisely drawn as a filled rectangle int xEnd = x_ - xDelta; int left = Platform::Minimum(x, xEnd); int width = abs(x - xEnd) + 1; int yEnd = y_ - yDelta; int top = Platform::Minimum(y, yEnd); int height = abs(y - yEnd) + 1; cairo_rectangle(context, left, top, width, height); cairo_fill(context); } else if ((abs(xDiff) == abs(yDiff))) { // 45 degree slope cairo_move_to(context, x + 0.5, y + 0.5); cairo_line_to(context, x_ + 0.5 - xDelta, y_ + 0.5 - yDelta); } else { // Line has a different slope so difficult to avoid last pixel cairo_move_to(context, x + 0.5, y + 0.5); cairo_line_to(context, x_ + 0.5, y_ + 0.5); } cairo_stroke(context); } x = x_; y = y_; } void SurfaceImpl::Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back) { PLATFORM_ASSERT(context); PenColour(back); cairo_move_to(context, pts[0].x + 0.5, pts[0].y + 0.5); for (int i = 1; i < npts; i++) { cairo_line_to(context, pts[i].x + 0.5, pts[i].y + 0.5); } cairo_close_path(context); cairo_fill_preserve(context); PenColour(fore); cairo_stroke(context); } void SurfaceImpl::RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back) { if (context) { cairo_rectangle(context, rc.left + 0.5, rc.top + 0.5, rc.right - rc.left - 1, rc.bottom - rc.top - 1); PenColour(back); cairo_fill_preserve(context); PenColour(fore); cairo_stroke(context); } } void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) { PenColour(back); if (context && (rc.left < maxCoordinate)) { // Protect against out of range rc.left = lround(rc.left); rc.right = lround(rc.right); cairo_rectangle(context, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); cairo_fill(context); } } void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) { SurfaceImpl &surfi = static_cast(surfacePattern); bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); // Tile pattern over rectangle // Currently assumes 8x8 pattern int widthPat = 8; int heightPat = 8; for (int xTile = rc.left; xTile < rc.right; xTile += widthPat) { int widthx = (xTile + widthPat > rc.right) ? rc.right - xTile : widthPat; for (int yTile = rc.top; yTile < rc.bottom; yTile += heightPat) { int heighty = (yTile + heightPat > rc.bottom) ? rc.bottom - yTile : heightPat; cairo_set_source_surface(context, surfi.psurf, xTile, yTile); cairo_rectangle(context, xTile, yTile, widthx, heighty); cairo_fill(context); } } } else { // Something is wrong so try to show anyway // Shows up black because colour not allocated FillRectangle(rc, ColourDesired(0)); } } void SurfaceImpl::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back) { if (((rc.right - rc.left) > 4) && ((rc.bottom - rc.top) > 4)) { // Approximate a round rect with some cut off corners Point pts[] = { Point(rc.left + 2, rc.top), Point(rc.right - 2, rc.top), Point(rc.right, rc.top + 2), Point(rc.right, rc.bottom - 2), Point(rc.right - 2, rc.bottom), Point(rc.left + 2, rc.bottom), Point(rc.left, rc.bottom - 2), Point(rc.left, rc.top + 2), }; Polygon(pts, ELEMENTS(pts), fore, back); } else { RectangleDraw(rc, fore, back); } } static void PathRoundRectangle(cairo_t *context, double left, double top, double width, double height, int radius) { double degrees = kPi / 180.0; #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 2, 0) cairo_new_sub_path(context); #else // First arc is in the top-right corner and starts from a point on the top line cairo_move_to(context, left + width - radius, top); #endif cairo_arc(context, left + width - radius, top + radius, radius, -90 * degrees, 0 * degrees); cairo_arc(context, left + width - radius, top + height - radius, radius, 0 * degrees, 90 * degrees); cairo_arc(context, left + radius, top + height - radius, radius, 90 * degrees, 180 * degrees); cairo_arc(context, left + radius, top + radius, radius, 180 * degrees, 270 * degrees); cairo_close_path(context); } void SurfaceImpl::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int /*flags*/) { if (context && rc.Width() > 0) { ColourDesired cdFill(fill.AsLong()); cairo_set_source_rgba(context, cdFill.GetRed() / 255.0, cdFill.GetGreen() / 255.0, cdFill.GetBlue() / 255.0, alphaFill / 255.0); if (cornerSize > 0) PathRoundRectangle(context, rc.left + 1.0, rc.top + 1.0, rc.right - rc.left - 2.0, rc.bottom - rc.top - 2.0, cornerSize); else cairo_rectangle(context, rc.left + 1.0, rc.top + 1.0, rc.right - rc.left - 2.0, rc.bottom - rc.top - 2.0); cairo_fill(context); ColourDesired cdOutline(outline.AsLong()); cairo_set_source_rgba(context, cdOutline.GetRed() / 255.0, cdOutline.GetGreen() / 255.0, cdOutline.GetBlue() / 255.0, alphaOutline / 255.0); if (cornerSize > 0) PathRoundRectangle(context, rc.left + 0.5, rc.top + 0.5, rc.right - rc.left - 1, rc.bottom - rc.top - 1, cornerSize); else cairo_rectangle(context, rc.left + 0.5, rc.top + 0.5, rc.right - rc.left - 1, rc.bottom - rc.top - 1); cairo_stroke(context); } } void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) { PLATFORM_ASSERT(context); if (rc.Width() > width) rc.left += (rc.Width() - width) / 2; rc.right = rc.left + width; if (rc.Height() > height) rc.top += (rc.Height() - height) / 2; rc.bottom = rc.top + height; #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,6,0) int stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width); #else int stride = width * 4; #endif int ucs = stride * height; std::vector image(ucs); for (int iy=0; iy(surfaceSource); bool canDraw = surfi.psurf != NULL; if (canDraw) { PLATFORM_ASSERT(context); cairo_set_source_surface(context, surfi.psurf, rc.left - from.x, rc.top - from.y); cairo_rectangle(context, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top); cairo_fill(context); } } std::string UTF8FromLatin1(const char *s, int len) { std::string utfForm(len*2 + 1, '\0'); size_t lenU = 0; for (int i=0; i(s[i]); if (uch < 0x80) { utfForm[lenU++] = uch; } else { utfForm[lenU++] = static_cast(0xC0 | (uch >> 6)); utfForm[lenU++] = static_cast(0x80 | (uch & 0x3f)); } } utfForm.resize(lenU); return utfForm; } static std::string UTF8FromIconv(const Converter &conv, const char *s, int len) { if (conv) { std::string utfForm(len*3+1, '\0'); char *pin = const_cast(s); gsize inLeft = len; char *putf = &utfForm[0]; char *pout = putf; gsize outLeft = len*3+1; gsize conversions = conv.Convert(&pin, &inLeft, &pout, &outLeft); if (conversions != sizeFailure) { *pout = '\0'; utfForm.resize(pout - putf); return utfForm; } } return std::string(); } // Work out how many bytes are in a character by trying to convert using iconv, // returning the first length that succeeds. static size_t MultiByteLenFromIconv(const Converter &conv, const char *s, size_t len) { for (size_t lenMB=1; (lenMB<4) && (lenMB <= len); lenMB++) { char wcForm[2]; char *pin = const_cast(s); gsize inLeft = lenMB; char *pout = wcForm; gsize outLeft = 2; gsize conversions = conv.Convert(&pin, &inLeft, &pout, &outLeft); if (conversions != sizeFailure) { return lenMB; } } return 1; } void SurfaceImpl::DrawTextBase(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore) { PenColour(fore); if (context) { XYPOSITION xText = rc.left; if (PFont(font_)->pfd) { std::string utfForm; if (et == UTF8) { pango_layout_set_text(layout, s, len); } else { SetConverter(PFont(font_)->characterSet); utfForm = UTF8FromIconv(conv, s, len); if (utfForm.empty()) { // iconv failed so treat as Latin1 utfForm = UTF8FromLatin1(s, len); } pango_layout_set_text(layout, utfForm.c_str(), utfForm.length()); } pango_layout_set_font_description(layout, PFont(font_)->pfd); pango_cairo_update_layout(context, layout); #ifdef PANGO_VERSION PangoLayoutLine *pll = pango_layout_get_line_readonly(layout,0); #else PangoLayoutLine *pll = pango_layout_get_line(layout,0); #endif cairo_move_to(context, xText, ybase); pango_cairo_show_layout_line(context, pll); } } } void SurfaceImpl::DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) { FillRectangle(rc, back); DrawTextBase(rc, font_, ybase, s, len, fore); } // On GTK+, exactly same as DrawTextNoClip void SurfaceImpl::DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back) { FillRectangle(rc, back); DrawTextBase(rc, font_, ybase, s, len, fore); } void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore) { // Avoid drawing spaces in transparent mode for (int i=0; ipfd) { pango_layout_set_font_description(layout, PFont(font_)->pfd); if (et == UTF8) { // Simple and direct as UTF-8 is native Pango encoding int i = 0; pango_layout_set_text(layout, s, len); ClusterIterator iti(layout, lenPositions); while (!iti.finished) { iti.Next(); int places = iti.curIndex - i; while (i < iti.curIndex) { // Evenly distribute space among bytes of this cluster. // Would be better to find number of characters and then // divide evenly between characters with each byte of a character // being at the same position. positions[i] = iti.position - (iti.curIndex - 1 - i) * iti.distance / places; i++; } } PLATFORM_ASSERT(i == lenPositions); } else { int positionsCalculated = 0; if (et == dbcs) { SetConverter(PFont(font_)->characterSet); std::string utfForm = UTF8FromIconv(conv, s, len); if (!utfForm.empty()) { // Convert to UTF-8 so can ask Pango for widths, then // Loop through UTF-8 and DBCS forms, taking account of different // character byte lengths. Converter convMeasure("UCS-2", CharacterSetID(characterSet), false); pango_layout_set_text(layout, utfForm.c_str(), strlen(utfForm.c_str())); int i = 0; int clusterStart = 0; ClusterIterator iti(layout, strlen(utfForm.c_str())); while (!iti.finished) { iti.Next(); int clusterEnd = iti.curIndex; int places = g_utf8_strlen(utfForm.c_str() + clusterStart, clusterEnd - clusterStart); int place = 1; while (clusterStart < clusterEnd) { size_t lenChar = MultiByteLenFromIconv(convMeasure, s+i, len-i); while (lenChar--) { positions[i++] = iti.position - (places - place) * iti.distance / places; positionsCalculated++; } clusterStart += UTF8CharLength(static_cast(utfForm.c_str()[clusterStart])); place++; } } PLATFORM_ASSERT(i == lenPositions); } } if (positionsCalculated < 1 ) { // Either 8-bit or DBCS conversion failed so treat as 8-bit. SetConverter(PFont(font_)->characterSet); const bool rtlCheck = PFont(font_)->characterSet == SC_CHARSET_HEBREW || PFont(font_)->characterSet == SC_CHARSET_ARABIC; std::string utfForm = UTF8FromIconv(conv, s, len); if (utfForm.empty()) { utfForm = UTF8FromLatin1(s, len); } pango_layout_set_text(layout, utfForm.c_str(), utfForm.length()); int i = 0; int clusterStart = 0; // Each 8-bit input character may take 1 or 2 bytes in UTF-8 // and groups of up to 3 may be represented as ligatures. ClusterIterator iti(layout, utfForm.length()); while (!iti.finished) { iti.Next(); int clusterEnd = iti.curIndex; int ligatureLength = g_utf8_strlen(utfForm.c_str() + clusterStart, clusterEnd - clusterStart); if (rtlCheck && ((clusterEnd <= clusterStart) || (ligatureLength == 0) || (ligatureLength > 3))) { // Something has gone wrong: exit quickly but pretend all the characters are equally spaced: int widthLayout = 0; pango_layout_get_size(layout, &widthLayout, NULL); XYPOSITION widthTotal = doubleFromPangoUnits(widthLayout); for (int bytePos=0; bytePos 0 && ligatureLength <= 3); for (int charInLig=0; charInLigpfd) { std::string utfForm; pango_layout_set_font_description(layout, PFont(font_)->pfd); PangoRectangle pos; if (et == UTF8) { pango_layout_set_text(layout, s, len); } else { SetConverter(PFont(font_)->characterSet); utfForm = UTF8FromIconv(conv, s, len); if (utfForm.empty()) { // iconv failed so treat as Latin1 utfForm = UTF8FromLatin1(s, len); } pango_layout_set_text(layout, utfForm.c_str(), utfForm.length()); } #ifdef PANGO_VERSION PangoLayoutLine *pangoLine = pango_layout_get_line_readonly(layout,0); #else PangoLayoutLine *pangoLine = pango_layout_get_line(layout,0); #endif pango_layout_line_get_extents(pangoLine, NULL, &pos); return doubleFromPangoUnits(pos.width); } return 1; } else { return 1; } } XYPOSITION SurfaceImpl::WidthChar(Font &font_, char ch) { if (font_.GetID()) { if (PFont(font_)->pfd) { return WidthText(font_, &ch, 1); } return 1; } else { return 1; } } // Ascent and descent determined by Pango font metrics. XYPOSITION SurfaceImpl::Ascent(Font &font_) { if (!(font_.GetID())) return 1; int ascent = 0; if (PFont(font_)->pfd) { PangoFontMetrics *metrics = pango_context_get_metrics(pcontext, PFont(font_)->pfd, pango_context_get_language(pcontext)); ascent = doubleFromPangoUnits(pango_font_metrics_get_ascent(metrics)); pango_font_metrics_unref(metrics); } if (ascent == 0) { ascent = 1; } return ascent; } XYPOSITION SurfaceImpl::Descent(Font &font_) { if (!(font_.GetID())) return 1; if (PFont(font_)->pfd) { PangoFontMetrics *metrics = pango_context_get_metrics(pcontext, PFont(font_)->pfd, pango_context_get_language(pcontext)); int descent = doubleFromPangoUnits(pango_font_metrics_get_descent(metrics)); pango_font_metrics_unref(metrics); return descent; } return 0; } XYPOSITION SurfaceImpl::InternalLeading(Font &) { return 0; } XYPOSITION SurfaceImpl::ExternalLeading(Font &) { return 0; } XYPOSITION SurfaceImpl::Height(Font &font_) { return Ascent(font_) + Descent(font_); } XYPOSITION SurfaceImpl::AverageCharWidth(Font &font_) { return WidthChar(font_, 'n'); } void SurfaceImpl::SetClip(PRectangle rc) { PLATFORM_ASSERT(context); cairo_rectangle(context, rc.left, rc.top, rc.right, rc.bottom); cairo_clip(context); } void SurfaceImpl::FlushCachedState() {} void SurfaceImpl::SetUnicodeMode(bool unicodeMode_) { if (unicodeMode_) et = UTF8; } void SurfaceImpl::SetDBCSMode(int codePage) { if (codePage && (codePage != SC_CP_UTF8)) et = dbcs; } Surface *Surface::Allocate(int) { return new SurfaceImpl(); } Window::~Window() {} void Window::Destroy() { if (wid) { ListBox *listbox = dynamic_cast(this); if (listbox) { gtk_widget_hide(GTK_WIDGET(wid)); // clear up window content listbox->Clear(); // resize the window to the smallest possible size for it to adapt // to future content gtk_window_resize(GTK_WINDOW(wid), 1, 1); } else { gtk_widget_destroy(GTK_WIDGET(wid)); } wid = 0; } } bool Window::HasFocus() { return gtk_widget_has_focus(GTK_WIDGET(wid)); } PRectangle Window::GetPosition() { // Before any size allocated pretend its 1000 wide so not scrolled PRectangle rc(0, 0, 1000, 1000); if (wid) { GtkAllocation allocation; gtk_widget_get_allocation(PWidget(wid), &allocation); rc.left = allocation.x; rc.top = allocation.y; if (allocation.width > 20) { rc.right = rc.left + allocation.width; rc.bottom = rc.top + allocation.height; } } return rc; } void Window::SetPosition(PRectangle rc) { GtkAllocation alloc; alloc.x = rc.left; alloc.y = rc.top; alloc.width = rc.Width(); alloc.height = rc.Height(); gtk_widget_size_allocate(PWidget(wid), &alloc); } namespace { GdkRectangle MonitorRectangleForWidget(GtkWidget *wid) { GdkWindow *wnd = WindowFromWidget(wid); GdkRectangle rcScreen = GdkRectangle(); #if GTK_CHECK_VERSION(3,22,0) GdkDisplay *pdisplay = gtk_widget_get_display(wid); GdkMonitor *monitor = gdk_display_get_monitor_at_window(pdisplay, wnd); gdk_monitor_get_geometry(monitor, &rcScreen); #else GdkScreen* screen = gtk_widget_get_screen(wid); gint monitor_num = gdk_screen_get_monitor_at_window(screen, wnd); gdk_screen_get_monitor_geometry(screen, monitor_num, &rcScreen); #endif return rcScreen; } } void Window::SetPositionRelative(PRectangle rc, Window relativeTo) { int ox = 0; int oy = 0; GdkWindow *wndRelativeTo = WindowFromWidget(PWidget(relativeTo.wid)); gdk_window_get_origin(wndRelativeTo, &ox, &oy); ox += rc.left; oy += rc.top; GdkRectangle rcMonitor = MonitorRectangleForWidget(PWidget(relativeTo.wid)); /* do some corrections to fit into screen */ int sizex = rc.right - rc.left; int sizey = rc.bottom - rc.top; if (sizex > rcMonitor.width || ox < rcMonitor.x) ox = rcMonitor.x; /* the best we can do */ else if (ox + sizex > rcMonitor.x + rcMonitor.width) ox = rcMonitor.x + rcMonitor.width - sizex; if (sizey > rcMonitor.height || oy < rcMonitor.y) oy = rcMonitor.y; else if (oy + sizey > rcMonitor.y + rcMonitor.height) oy = rcMonitor.y + rcMonitor.height - sizey; gtk_window_move(GTK_WINDOW(PWidget(wid)), ox, oy); gtk_window_resize(GTK_WINDOW(wid), sizex, sizey); } PRectangle Window::GetClientPosition() { // On GTK+, the client position is the window position return GetPosition(); } void Window::Show(bool show) { if (show) gtk_widget_show(PWidget(wid)); } void Window::InvalidateAll() { if (wid) { gtk_widget_queue_draw(PWidget(wid)); } } void Window::InvalidateRectangle(PRectangle rc) { if (wid) { gtk_widget_queue_draw_area(PWidget(wid), rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); } } void Window::SetFont(Font &) { // Can not be done generically but only needed for ListBox } void Window::SetCursor(Cursor curs) { // We don't set the cursor to same value numerous times under gtk because // it stores the cursor in the window once it's set if (curs == cursorLast) return; cursorLast = curs; GdkDisplay *pdisplay = gtk_widget_get_display(PWidget(wid)); GdkCursor *gdkCurs; switch (curs) { case cursorText: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_XTERM); break; case cursorArrow: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); break; case cursorUp: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_CENTER_PTR); break; case cursorWait: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_WATCH); break; case cursorHand: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_HAND2); break; case cursorReverseArrow: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_RIGHT_PTR); break; default: gdkCurs = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); cursorLast = cursorArrow; break; } if (WindowFromWidget(PWidget(wid))) gdk_window_set_cursor(WindowFromWidget(PWidget(wid)), gdkCurs); #if GTK_CHECK_VERSION(3,0,0) g_object_unref(gdkCurs); #else gdk_cursor_unref(gdkCurs); #endif } void Window::SetTitle(const char *s) { gtk_window_set_title(GTK_WINDOW(wid), s); } /* Returns rectangle of monitor pt is on, both rect and pt are in Window's gdk window coordinates */ PRectangle Window::GetMonitorRect(Point pt) { gint x_offset, y_offset; gdk_window_get_origin(WindowFromWidget(PWidget(wid)), &x_offset, &y_offset); GdkRectangle rect; #if GTK_CHECK_VERSION(3,22,0) GdkDisplay *pdisplay = gtk_widget_get_display(PWidget(wid)); GdkMonitor *monitor = gdk_display_get_monitor_at_point(pdisplay, pt.x + x_offset, pt.y + y_offset); gdk_monitor_get_geometry(monitor, &rect); #else GdkScreen* screen = gtk_widget_get_screen(PWidget(wid)); gint monitor_num = gdk_screen_get_monitor_at_point(screen, pt.x + x_offset, pt.y + y_offset); gdk_screen_get_monitor_geometry(screen, monitor_num, &rect); #endif rect.x -= x_offset; rect.y -= y_offset; return PRectangle(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height); } typedef std::map ImageMap; struct ListImage { const RGBAImage *rgba_data; GdkPixbuf *pixbuf; }; static void list_image_free(gpointer, gpointer value, gpointer) { ListImage *list_image = static_cast(value); if (list_image->pixbuf) g_object_unref(list_image->pixbuf); g_free(list_image); } ListBox::ListBox() { } ListBox::~ListBox() { } enum { PIXBUF_COLUMN, TEXT_COLUMN, N_COLUMNS }; class ListBoxX : public ListBox { WindowID widCached; WindowID frame; WindowID list; WindowID scroller; void *pixhash; GtkCellRenderer* pixbuf_renderer; GtkCellRenderer* renderer; RGBAImageSet images; int desiredVisibleRows; unsigned int maxItemCharacters; unsigned int aveCharWidth; #if GTK_CHECK_VERSION(3,0,0) GtkCssProvider *cssProvider; #endif public: CallBackAction doubleClickAction; void *doubleClickActionData; ListBoxX() : widCached(0), frame(0), list(0), scroller(0), pixhash(NULL), pixbuf_renderer(0), renderer(0), desiredVisibleRows(5), maxItemCharacters(0), aveCharWidth(1), #if GTK_CHECK_VERSION(3,0,0) cssProvider(NULL), #endif doubleClickAction(NULL), doubleClickActionData(NULL) { } ~ListBoxX() override { if (pixhash) { g_hash_table_foreach((GHashTable *) pixhash, list_image_free, NULL); g_hash_table_destroy((GHashTable *) pixhash); } if (widCached) { gtk_widget_destroy(GTK_WIDGET(widCached)); wid = widCached = 0; } #if GTK_CHECK_VERSION(3,0,0) if (cssProvider) { g_object_unref(cssProvider); cssProvider = NULL; } #endif } void SetFont(Font &font) override; void Create(Window &parent, int ctrlID, Point location_, int lineHeight_, bool unicodeMode_, int technology_) override; void SetAverageCharWidth(int width) override; void SetVisibleRows(int rows) override; int GetVisibleRows() const override; int GetRowHeight(); PRectangle GetDesiredRect() override; int CaretFromEdge() override; void Clear() override; void Append(char *s, int type = -1) override; int Length() override; void Select(int n) override; int GetSelection() override; int Find(const char *prefix) override; void GetValue(int n, char *value, int len) override; void RegisterRGBA(int type, RGBAImage *image); void RegisterImage(int type, const char *xpm_data) override; void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) override; void ClearRegisteredImages() override; void SetDoubleClickAction(CallBackAction action, void *data) override { doubleClickAction = action; doubleClickActionData = data; } void SetList(const char *listText, char separator, char typesep) override; }; ListBox *ListBox::Allocate() { ListBoxX *lb = new ListBoxX(); return lb; } static int treeViewGetRowHeight(GtkTreeView *view) { #if GTK_CHECK_VERSION(3,0,0) // This version sometimes reports erroneous results on GTK2, but the GTK2 // version is inaccurate for GTK 3.14. GdkRectangle rect; GtkTreePath *path = gtk_tree_path_new_first(); gtk_tree_view_get_background_area(view, path, NULL, &rect); gtk_tree_path_free(path); return rect.height; #else int row_height=0; int vertical_separator=0; int expander_size=0; GtkTreeViewColumn *column = gtk_tree_view_get_column(view, 0); gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &row_height); gtk_widget_style_get(GTK_WIDGET(view), "vertical-separator", &vertical_separator, "expander-size", &expander_size, NULL); row_height += vertical_separator; row_height = Platform::Maximum(row_height, expander_size); return row_height; #endif } // SmallScroller, a GtkScrolledWindow that can shrink very small, as // gtk_widget_set_size_request() cannot shrink widgets on GTK3 typedef struct { GtkScrolledWindow parent; /* Workaround ABI issue with Windows GTK2 bundle and GCC > 3. See http://lists.geany.org/pipermail/devel/2015-April/thread.html#9379 GtkScrolledWindow contains a bitfield, and GCC 3.4 and 4.8 don't agree on the size of the structure (regardless of -mms-bitfields): - GCC 3.4 has sizeof(GtkScrolledWindow)=88 - GCC 4.8 has sizeof(GtkScrolledWindow)=84 As Windows GTK2 bundle is built with GCC 3, it requires types derived from GtkScrolledWindow to be at least 88 bytes, which means we need to add some fake padding to fill in the extra 4 bytes. There is however no other issue with the layout difference as we never access any GtkScrolledWindow fields ourselves. */ int padding; } SmallScroller; typedef GtkScrolledWindowClass SmallScrollerClass; G_DEFINE_TYPE(SmallScroller, small_scroller, GTK_TYPE_SCROLLED_WINDOW) #if GTK_CHECK_VERSION(3,0,0) static void small_scroller_get_preferred_height(GtkWidget *widget, gint *min, gint *nat) { GtkWidget *child = gtk_bin_get_child(GTK_BIN(widget)); if (GTK_IS_TREE_VIEW(child)) { GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(child)); int n_rows = gtk_tree_model_iter_n_children(model, NULL); int row_height = treeViewGetRowHeight(GTK_TREE_VIEW(child)); *min = MAX(1, row_height); *nat = MAX(*min, n_rows * row_height); } else { GTK_WIDGET_CLASS(small_scroller_parent_class)->get_preferred_height(widget, min, nat); if (*min > 1) *min = 1; } } #else static void small_scroller_size_request(GtkWidget *widget, GtkRequisition *req) { GTK_WIDGET_CLASS(small_scroller_parent_class)->size_request(widget, req); req->height = 1; } #endif static void small_scroller_class_init(SmallScrollerClass *klass) { #if GTK_CHECK_VERSION(3,0,0) GTK_WIDGET_CLASS(klass)->get_preferred_height = small_scroller_get_preferred_height; #else GTK_WIDGET_CLASS(klass)->size_request = small_scroller_size_request; #endif } static void small_scroller_init(SmallScroller *){} static gboolean ButtonPress(GtkWidget *, GdkEventButton* ev, gpointer p) { try { ListBoxX* lb = static_cast(p); if (ev->type == GDK_2BUTTON_PRESS && lb->doubleClickAction != NULL) { lb->doubleClickAction(lb->doubleClickActionData); return TRUE; } } catch (...) { // No pointer back to Scintilla to save status } return FALSE; } /* Change the active color to the selected color so the listbox uses the color scheme that it would use if it had the focus. */ static void StyleSet(GtkWidget *w, GtkStyle*, void*) { g_return_if_fail(w != NULL); /* Copy the selected color to active. Note that the modify calls will cause recursive calls to this function after the value is updated and w->style to be set to a new object */ #if GTK_CHECK_VERSION(3,16,0) // On recent releases of GTK+, it does not appear necessary to set the list box colours. // This may be because of common themes and may be needed with other themes. // The *override* calls are deprecated now, so only call them for older versions of GTK+. #elif GTK_CHECK_VERSION(3,0,0) GtkStyleContext *styleContext = gtk_widget_get_style_context(w); if (styleContext == NULL) return; GdkRGBA colourForeSelected; gtk_style_context_get_color(styleContext, GTK_STATE_FLAG_SELECTED, &colourForeSelected); GdkRGBA colourForeActive; gtk_style_context_get_color(styleContext, GTK_STATE_FLAG_ACTIVE, &colourForeActive); if (!gdk_rgba_equal(&colourForeSelected, &colourForeActive)) gtk_widget_override_color(w, GTK_STATE_FLAG_ACTIVE, &colourForeSelected); styleContext = gtk_widget_get_style_context(w); if (styleContext == NULL) return; GdkRGBA colourBaseSelected; gtk_style_context_get_background_color(styleContext, GTK_STATE_FLAG_SELECTED, &colourBaseSelected); GdkRGBA colourBaseActive; gtk_style_context_get_background_color(styleContext, GTK_STATE_FLAG_ACTIVE, &colourBaseActive); if (!gdk_rgba_equal(&colourBaseSelected, &colourBaseActive)) gtk_widget_override_background_color(w, GTK_STATE_FLAG_ACTIVE, &colourBaseSelected); #else GtkStyle *style = gtk_widget_get_style(w); if (style == NULL) return; if (!gdk_color_equal(&style->base[GTK_STATE_SELECTED], &style->base[GTK_STATE_ACTIVE])) gtk_widget_modify_base(w, GTK_STATE_ACTIVE, &style->base[GTK_STATE_SELECTED]); style = gtk_widget_get_style(w); if (style == NULL) return; if (!gdk_color_equal(&style->text[GTK_STATE_SELECTED], &style->text[GTK_STATE_ACTIVE])) gtk_widget_modify_text(w, GTK_STATE_ACTIVE, &style->text[GTK_STATE_SELECTED]); #endif } void ListBoxX::Create(Window &parent, int, Point, int, bool, int) { if (widCached != 0) { wid = widCached; return; } #if GTK_CHECK_VERSION(3,0,0) if (!cssProvider) { cssProvider = gtk_css_provider_new(); } #endif wid = widCached = gtk_window_new(GTK_WINDOW_POPUP); frame = gtk_frame_new(NULL); gtk_widget_show(PWidget(frame)); gtk_container_add(GTK_CONTAINER(GetID()), PWidget(frame)); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_OUT); gtk_container_set_border_width(GTK_CONTAINER(frame), 0); scroller = g_object_new(small_scroller_get_type(), NULL); gtk_container_set_border_width(GTK_CONTAINER(scroller), 0); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroller), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(frame), PWidget(scroller)); gtk_widget_show(PWidget(scroller)); /* Tree and its model */ GtkListStore *store = gtk_list_store_new(N_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING); list = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); g_signal_connect(G_OBJECT(list), "style-set", G_CALLBACK(StyleSet), NULL); #if GTK_CHECK_VERSION(3,0,0) GtkStyleContext *styleContext = gtk_widget_get_style_context(GTK_WIDGET(list)); if (styleContext) { gtk_style_context_add_provider(styleContext, GTK_STYLE_PROVIDER(cssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); } #endif GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(list)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(list), FALSE); gtk_tree_view_set_reorderable(GTK_TREE_VIEW(list), FALSE); /* Columns */ GtkTreeViewColumn *column = gtk_tree_view_column_new(); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_FIXED); gtk_tree_view_column_set_title(column, "Autocomplete"); pixbuf_renderer = gtk_cell_renderer_pixbuf_new(); gtk_cell_renderer_set_fixed_size(pixbuf_renderer, 0, -1); gtk_tree_view_column_pack_start(column, pixbuf_renderer, FALSE); gtk_tree_view_column_add_attribute(column, pixbuf_renderer, "pixbuf", PIXBUF_COLUMN); renderer = gtk_cell_renderer_text_new(); gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), 1); gtk_tree_view_column_pack_start(column, renderer, TRUE); gtk_tree_view_column_add_attribute(column, renderer, "text", TEXT_COLUMN); gtk_tree_view_append_column(GTK_TREE_VIEW(list), column); if (g_object_class_find_property(G_OBJECT_GET_CLASS(list), "fixed-height-mode")) g_object_set(G_OBJECT(list), "fixed-height-mode", TRUE, NULL); GtkWidget *widget = PWidget(list); // No code inside the G_OBJECT macro gtk_container_add(GTK_CONTAINER(PWidget(scroller)), widget); gtk_widget_show(widget); g_signal_connect(G_OBJECT(widget), "button_press_event", G_CALLBACK(ButtonPress), this); GtkWidget *top = gtk_widget_get_toplevel(static_cast(parent.GetID())); gtk_window_set_transient_for(GTK_WINDOW(static_cast(wid)), GTK_WINDOW(top)); } void ListBoxX::SetFont(Font &scint_font) { // Only do for Pango font as there have been crashes for GDK fonts if (Created() && PFont(scint_font)->pfd) { // Current font is Pango font #if GTK_CHECK_VERSION(3,0,0) if (cssProvider) { PangoFontDescription *pfd = PFont(scint_font)->pfd; std::ostringstream ssFontSetting; ssFontSetting << "GtkTreeView, treeview { "; ssFontSetting << "font-family: " << pango_font_description_get_family(pfd) << "; "; ssFontSetting << "font-size:"; ssFontSetting << static_cast(pango_font_description_get_size(pfd)) / PANGO_SCALE; // On GTK < 3.21.0 the units are incorrectly parsed, so a font size in points // need to use the "px" unit. Normally we only get fonts in points here, so // don't bother to handle the case the font is actually in pixels on < 3.21.0. if (gtk_check_version(3, 21, 0) != NULL || // on < 3.21.0 pango_font_description_get_size_is_absolute(pfd)) { ssFontSetting << "px; "; } else { ssFontSetting << "pt; "; } ssFontSetting << "font-weight:"<< pango_font_description_get_weight(pfd) << "; "; ssFontSetting << "}"; gtk_css_provider_load_from_data(GTK_CSS_PROVIDER(cssProvider), ssFontSetting.str().c_str(), -1, NULL); } #else gtk_widget_modify_font(PWidget(list), PFont(scint_font)->pfd); #endif gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), -1); gtk_cell_renderer_text_set_fixed_height_from_font(GTK_CELL_RENDERER_TEXT(renderer), 1); } } void ListBoxX::SetAverageCharWidth(int width) { aveCharWidth = width; } void ListBoxX::SetVisibleRows(int rows) { desiredVisibleRows = rows; } int ListBoxX::GetVisibleRows() const { return desiredVisibleRows; } int ListBoxX::GetRowHeight() { return treeViewGetRowHeight(GTK_TREE_VIEW(list)); } PRectangle ListBoxX::GetDesiredRect() { // Before any size allocated pretend its 100 wide so not scrolled PRectangle rc(0, 0, 100, 100); if (wid) { int rows = Length(); if ((rows == 0) || (rows > desiredVisibleRows)) rows = desiredVisibleRows; GtkRequisition req; // This, apparently unnecessary call, ensures gtk_tree_view_column_cell_get_size // returns reasonable values. #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size(GTK_WIDGET(frame), NULL, &req); #else gtk_widget_size_request(GTK_WIDGET(frame), &req); #endif int height; // First calculate height of the clist for our desired visible // row count otherwise it tries to expand to the total # of rows // Get cell height int row_height = GetRowHeight(); #if GTK_CHECK_VERSION(3,0,0) GtkStyleContext *styleContextFrame = gtk_widget_get_style_context(PWidget(frame)); GtkStateFlags stateFlagsFrame = gtk_style_context_get_state(styleContextFrame); GtkBorder padding, border, border_border = { 0, 0, 0, 0 }; gtk_style_context_get_padding(styleContextFrame, stateFlagsFrame, &padding); gtk_style_context_get_border(styleContextFrame, stateFlagsFrame, &border); # if GTK_CHECK_VERSION(3,20,0) // on GTK 3.20 the frame border is in a sub-node "border". // Unfortunately we need to be built against 3.20 to be able to support this, as it requires // new API. GtkStyleContext *styleContextFrameBorder = gtk_style_context_new(); GtkWidgetPath *widget_path = gtk_widget_path_copy(gtk_style_context_get_path(styleContextFrame)); gtk_widget_path_append_type(widget_path, GTK_TYPE_BORDER); // dummy type gtk_widget_path_iter_set_object_name(widget_path, -1, "border"); gtk_style_context_set_path(styleContextFrameBorder, widget_path); gtk_widget_path_free(widget_path); gtk_style_context_get_border(styleContextFrameBorder, stateFlagsFrame, &border_border); g_object_unref(styleContextFrameBorder); # else // < 3.20 if (gtk_check_version(3, 20, 0) == NULL) { // default to 1px all around as it's likely what it is, and so we don't miss 2px height // on GTK 3.20 when built against an earlier version. border_border.top = border_border.bottom = border_border.left = border_border.right = 1; } # endif height = (rows * row_height + padding.top + padding.bottom + border.top + border.bottom + border_border.top + border_border.bottom + 2 * gtk_container_get_border_width(GTK_CONTAINER(PWidget(list)))); #else height = (rows * row_height + 2 * (PWidget(frame)->style->ythickness + GTK_CONTAINER(PWidget(list))->border_width)); #endif rc.bottom = height; int width = maxItemCharacters; if (width < 12) width = 12; rc.right = width * (aveCharWidth + aveCharWidth / 3); // Add horizontal padding and borders int horizontal_separator=0; gtk_widget_style_get(PWidget(list), "horizontal-separator", &horizontal_separator, NULL); rc.right += horizontal_separator; #if GTK_CHECK_VERSION(3,0,0) rc.right += (padding.left + padding.right + border.left + border.right + border_border.left + border_border.right + 2 * gtk_container_get_border_width(GTK_CONTAINER(PWidget(list)))); #else rc.right += 2 * (PWidget(frame)->style->xthickness + GTK_CONTAINER(PWidget(list))->border_width); #endif if (Length() > rows) { // Add the width of the scrollbar GtkWidget *vscrollbar = gtk_scrolled_window_get_vscrollbar(GTK_SCROLLED_WINDOW(scroller)); #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size(vscrollbar, NULL, &req); #else gtk_widget_size_request(vscrollbar, &req); #endif rc.right += req.width; } } return rc; } int ListBoxX::CaretFromEdge() { gint renderer_width, renderer_height; gtk_cell_renderer_get_fixed_size(pixbuf_renderer, &renderer_width, &renderer_height); return 4 + renderer_width; } void ListBoxX::Clear() { GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); gtk_list_store_clear(GTK_LIST_STORE(model)); maxItemCharacters = 0; } static void init_pixmap(ListImage *list_image) { if (list_image->rgba_data) { // Drop any existing pixmap/bitmap as data may have changed if (list_image->pixbuf) g_object_unref(list_image->pixbuf); list_image->pixbuf = gdk_pixbuf_new_from_data(list_image->rgba_data->Pixels(), GDK_COLORSPACE_RGB, TRUE, 8, list_image->rgba_data->GetWidth(), list_image->rgba_data->GetHeight(), list_image->rgba_data->GetWidth() * 4, NULL, NULL); } } #define SPACING 5 void ListBoxX::Append(char *s, int type) { ListImage *list_image = NULL; if ((type >= 0) && pixhash) { list_image = static_cast(g_hash_table_lookup((GHashTable *) pixhash , (gconstpointer) GINT_TO_POINTER(type))); } GtkTreeIter iter; GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(list))); gtk_list_store_append(GTK_LIST_STORE(store), &iter); if (list_image) { if (NULL == list_image->pixbuf) init_pixmap(list_image); if (list_image->pixbuf) { gtk_list_store_set(GTK_LIST_STORE(store), &iter, PIXBUF_COLUMN, list_image->pixbuf, TEXT_COLUMN, s, -1); gint pixbuf_width = gdk_pixbuf_get_width(list_image->pixbuf); gint renderer_height, renderer_width; gtk_cell_renderer_get_fixed_size(pixbuf_renderer, &renderer_width, &renderer_height); if (pixbuf_width > renderer_width) gtk_cell_renderer_set_fixed_size(pixbuf_renderer, pixbuf_width, -1); } else { gtk_list_store_set(GTK_LIST_STORE(store), &iter, TEXT_COLUMN, s, -1); } } else { gtk_list_store_set(GTK_LIST_STORE(store), &iter, TEXT_COLUMN, s, -1); } size_t len = strlen(s); if (maxItemCharacters < len) maxItemCharacters = len; } int ListBoxX::Length() { if (wid) return gtk_tree_model_iter_n_children(gtk_tree_view_get_model (GTK_TREE_VIEW(list)), NULL); return 0; } void ListBoxX::Select(int n) { GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(list)); if (n < 0) { gtk_tree_selection_unselect_all(selection); return; } bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n) != FALSE; if (valid) { gtk_tree_selection_select_iter(selection, &iter); // Move the scrollbar to show the selection. int total = Length(); #if GTK_CHECK_VERSION(3,0,0) GtkAdjustment *adj = gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(list)); #else GtkAdjustment *adj = gtk_tree_view_get_vadjustment(GTK_TREE_VIEW(list)); #endif gfloat value = ((gfloat)n / total) * (gtk_adjustment_get_upper(adj) - gtk_adjustment_get_lower(adj)) + gtk_adjustment_get_lower(adj) - gtk_adjustment_get_page_size(adj) / 2; // Get cell height int row_height = GetRowHeight(); int rows = Length(); if ((rows == 0) || (rows > desiredVisibleRows)) rows = desiredVisibleRows; if (rows & 0x1) { // Odd rows to display -- We are now in the middle. // Align it so that we don't chop off rows. value += (gfloat)row_height / 2.0; } // Clamp it. value = (value < 0)? 0 : value; value = (value > (gtk_adjustment_get_upper(adj) - gtk_adjustment_get_page_size(adj)))? (gtk_adjustment_get_upper(adj) - gtk_adjustment_get_page_size(adj)) : value; // Set it. gtk_adjustment_set_value(adj, value); } else { gtk_tree_selection_unselect_all(selection); } } int ListBoxX::GetSelection() { int index = -1; GtkTreeIter iter; GtkTreeModel *model; GtkTreeSelection *selection; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(list)); if (gtk_tree_selection_get_selected(selection, &model, &iter)) { GtkTreePath *path = gtk_tree_model_get_path(model, &iter); int *indices = gtk_tree_path_get_indices(path); // Don't free indices. if (indices) index = indices[0]; gtk_tree_path_free(path); } return index; } int ListBoxX::Find(const char *prefix) { GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); bool valid = gtk_tree_model_get_iter_first(model, &iter) != FALSE; int i = 0; while(valid) { gchar *s; gtk_tree_model_get(model, &iter, TEXT_COLUMN, &s, -1); if (s && (0 == strncmp(prefix, s, strlen(prefix)))) { g_free(s); return i; } g_free(s); valid = gtk_tree_model_iter_next(model, &iter) != FALSE; i++; } return -1; } void ListBoxX::GetValue(int n, char *value, int len) { char *text = NULL; GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n) != FALSE; if (valid) { gtk_tree_model_get(model, &iter, TEXT_COLUMN, &text, -1); } if (text && len > 0) { g_strlcpy(value, text, len); } else { value[0] = '\0'; } g_free(text); } // g_return_if_fail causes unnecessary compiler warning in release compile. #ifdef _MSC_VER #pragma warning(disable: 4127) #endif void ListBoxX::RegisterRGBA(int type, RGBAImage *image) { images.Add(type, image); if (!pixhash) { pixhash = g_hash_table_new(g_direct_hash, g_direct_equal); } ListImage *list_image = static_cast(g_hash_table_lookup((GHashTable *) pixhash, (gconstpointer) GINT_TO_POINTER(type))); if (list_image) { // Drop icon already registered if (list_image->pixbuf) g_object_unref(list_image->pixbuf); list_image->pixbuf = NULL; list_image->rgba_data = image; } else { list_image = g_new0(ListImage, 1); list_image->rgba_data = image; g_hash_table_insert((GHashTable *) pixhash, GINT_TO_POINTER(type), (gpointer) list_image); } } void ListBoxX::RegisterImage(int type, const char *xpm_data) { g_return_if_fail(xpm_data); XPM xpmImage(xpm_data); RegisterRGBA(type, new RGBAImage(xpmImage)); } void ListBoxX::RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) { RegisterRGBA(type, new RGBAImage(width, height, 1.0, pixelsImage)); } void ListBoxX::ClearRegisteredImages() { images.Clear(); } void ListBoxX::SetList(const char *listText, char separator, char typesep) { Clear(); int count = strlen(listText) + 1; std::vector words(listText, listText+count); char *startword = &words[0]; char *numword = NULL; int i = 0; for (; words[i]; i++) { if (words[i] == separator) { words[i] = '\0'; if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); startword = &words[0] + i + 1; numword = NULL; } else if (words[i] == typesep) { numword = &words[0] + i; } } if (startword) { if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); } } Menu::Menu() : mid(0) {} void Menu::CreatePopUp() { Destroy(); mid = gtk_menu_new(); g_object_ref_sink(G_OBJECT(mid)); } void Menu::Destroy() { if (mid) g_object_unref(G_OBJECT(mid)); mid = 0; } #if !GTK_CHECK_VERSION(3,22,0) static void MenuPositionFunc(GtkMenu *, gint *x, gint *y, gboolean *, gpointer userData) { sptr_t intFromPointer = GPOINTER_TO_INT(userData); *x = intFromPointer & 0xffff; *y = intFromPointer >> 16; } #endif void Menu::Show(Point pt, Window &wnd) { GtkMenu *widget = static_cast(mid); gtk_widget_show_all(GTK_WIDGET(widget)); #if GTK_CHECK_VERSION(3,22,0) // Rely on GTK+ to do the right thing with positioning gtk_menu_popup_at_pointer(widget, NULL); #else GdkRectangle rcMonitor = MonitorRectangleForWidget(PWidget(wnd.GetID())); GtkRequisition requisition; #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size(GTK_WIDGET(widget), NULL, &requisition); #else gtk_widget_size_request(GTK_WIDGET(widget), &requisition); #endif if ((pt.x + requisition.width) > rcMonitor.x + rcMonitor.width) { pt.x = rcMonitor.x + rcMonitor.width - requisition.width; } if ((pt.y + requisition.height) > rcMonitor.y + rcMonitor.height) { pt.y = rcMonitor.y + rcMonitor.height - requisition.height; } gtk_menu_popup(widget, NULL, NULL, MenuPositionFunc, GINT_TO_POINTER((static_cast(pt.y) << 16) | static_cast(pt.x)), 0, gtk_get_current_event_time()); #endif } ElapsedTime::ElapsedTime() { GTimeVal curTime; g_get_current_time(&curTime); bigBit = curTime.tv_sec; littleBit = curTime.tv_usec; } class DynamicLibraryImpl : public DynamicLibrary { protected: GModule* m; public: explicit DynamicLibraryImpl(const char *modulePath) { m = g_module_open(modulePath, G_MODULE_BIND_LAZY); } ~DynamicLibraryImpl() override { if (m != NULL) g_module_close(m); } // Use g_module_symbol to get a pointer to the relevant function. Function FindFunction(const char *name) override { if (m != NULL) { gpointer fn_address = NULL; gboolean status = g_module_symbol(m, name, &fn_address); if (status) return static_cast(fn_address); else return NULL; } else { return NULL; } } bool IsValid() override { return m != NULL; } }; DynamicLibrary *DynamicLibrary::Load(const char *modulePath) { return static_cast( new DynamicLibraryImpl(modulePath) ); } double ElapsedTime::Duration(bool reset) { GTimeVal curTime; g_get_current_time(&curTime); long endBigBit = curTime.tv_sec; long endLittleBit = curTime.tv_usec; double result = 1000000.0 * (endBigBit - bigBit); result += endLittleBit - littleBit; result /= 1000000.0; if (reset) { bigBit = endBigBit; littleBit = endLittleBit; } return result; } ColourDesired Platform::Chrome() { return ColourDesired(0xe0, 0xe0, 0xe0); } ColourDesired Platform::ChromeHighlight() { return ColourDesired(0xff, 0xff, 0xff); } const char *Platform::DefaultFont() { #ifdef G_OS_WIN32 return "Lucida Console"; #else return "!Sans"; #endif } int Platform::DefaultFontSize() { #ifdef G_OS_WIN32 return 10; #else return 12; #endif } unsigned int Platform::DoubleClickTime() { return 500; // Half a second } bool Platform::MouseButtonBounce() { return true; } void Platform::DebugDisplay(const char *s) { fprintf(stderr, "%s", s); } bool Platform::IsKeyDown(int) { // TODO: discover state of keys in GTK+/X return false; } long Platform::SendScintilla( WindowID w, unsigned int msg, unsigned long wParam, long lParam) { return scintilla_send_message(SCINTILLA(w), msg, wParam, lParam); } long Platform::SendScintillaPointer( WindowID w, unsigned int msg, unsigned long wParam, void *lParam) { return scintilla_send_message(SCINTILLA(w), msg, wParam, reinterpret_cast(lParam)); } bool Platform::IsDBCSLeadByte(int codePage, char ch) { // Byte ranges found in Wikipedia articles with relevant search strings in each case unsigned char uch = static_cast(ch); switch (codePage) { case 932: // Shift_jis return ((uch >= 0x81) && (uch <= 0x9F)) || ((uch >= 0xE0) && (uch <= 0xFC)); // Lead bytes F0 to FC may be a Microsoft addition. case 936: // GBK return (uch >= 0x81) && (uch <= 0xFE); case 950: // Big5 return (uch >= 0x81) && (uch <= 0xFE); // Korean EUC-KR may be code page 949. } return false; } int Platform::DBCSCharLength(int codePage, const char *s) { if (codePage == 932 || codePage == 936 || codePage == 950) { return IsDBCSLeadByte(codePage, s[0]) ? 2 : 1; } else { int bytes = mblen(s, MB_CUR_MAX); if (bytes >= 1) return bytes; else return 1; } } int Platform::DBCSCharMaxLength() { return MB_CUR_MAX; //return 2; } // These are utility functions not really tied to a platform int Platform::Minimum(int a, int b) { if (a < b) return a; else return b; } int Platform::Maximum(int a, int b) { if (a > b) return a; else return b; } //#define TRACE #ifdef TRACE void Platform::DebugPrintf(const char *format, ...) { char buffer[2000]; va_list pArguments; va_start(pArguments, format); vsprintf(buffer, format, pArguments); va_end(pArguments); Platform::DebugDisplay(buffer); } #else void Platform::DebugPrintf(const char *, ...) {} #endif // Not supported for GTK+ static bool assertionPopUps = true; bool Platform::ShowAssertionPopUps(bool assertionPopUps_) { bool ret = assertionPopUps; assertionPopUps = assertionPopUps_; return ret; } void Platform::Assert(const char *c, const char *file, int line) { char buffer[2000]; g_snprintf(buffer, sizeof(buffer), "Assertion [%s] failed at %s %d\r\n", c, file, line); Platform::DebugDisplay(buffer); abort(); } int Platform::Clamp(int val, int minVal, int maxVal) { if (val > maxVal) val = maxVal; if (val < minVal) val = minVal; return val; } void Platform_Initialise() { } void Platform_Finalise() { } codequery-0.21.0/scintilla/gtk/ScintillaGTK.cxx000066400000000000000000002771771310136352400214000ustar00rootroot00000000000000// Scintilla source code edit control // ScintillaGTK.cxx - GTK+ specific subclass of ScintillaBase // Copyright 1998-2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(GDK_WINDOWING_WAYLAND) #include #endif #if defined(__WIN32__) || defined(_MSC_VER) #include #endif #include "Platform.h" #include "ILexer.h" #include "Scintilla.h" #include "ScintillaWidget.h" #ifdef SCI_LEXER #include "SciLexer.h" #endif #include "StringCopy.h" #ifdef SCI_LEXER #include "LexerModule.h" #endif #include "Position.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" #include "ContractionState.h" #include "CellBuffer.h" #include "CallTip.h" #include "KeyMap.h" #include "Indicator.h" #include "XPM.h" #include "LineMarker.h" #include "Style.h" #include "ViewStyle.h" #include "CharClassify.h" #include "Decoration.h" #include "CaseFolder.h" #include "Document.h" #include "CaseConvert.h" #include "UniConversion.h" #include "UnicodeFromUTF8.h" #include "Selection.h" #include "PositionCache.h" #include "EditModel.h" #include "MarginView.h" #include "EditView.h" #include "Editor.h" #include "AutoComplete.h" #include "ScintillaBase.h" #ifdef SCI_LEXER #include "ExternalLexer.h" #endif #include "ScintillaGTK.h" #include "scintilla-marshal.h" #include "ScintillaGTKAccessible.h" #include "Converter.h" #if GTK_CHECK_VERSION(2,20,0) #define IS_WIDGET_REALIZED(w) (gtk_widget_get_realized(GTK_WIDGET(w))) #define IS_WIDGET_MAPPED(w) (gtk_widget_get_mapped(GTK_WIDGET(w))) #else #define IS_WIDGET_REALIZED(w) (GTK_WIDGET_REALIZED(w)) #define IS_WIDGET_MAPPED(w) (GTK_WIDGET_MAPPED(w)) #endif #define SC_INDICATOR_INPUT INDIC_IME #define SC_INDICATOR_TARGET INDIC_IME+1 #define SC_INDICATOR_CONVERTED INDIC_IME+2 #define SC_INDICATOR_UNKNOWN INDIC_IME_MAX static GdkWindow *WindowFromWidget(GtkWidget *w) { return gtk_widget_get_window(w); } #ifdef _MSC_VER // Constant conditional expressions are because of GTK+ headers #pragma warning(disable: 4127) // Ignore unreferenced local functions in GTK+ headers #pragma warning(disable: 4505) #endif #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static GdkWindow *PWindow(const Window &w) { GtkWidget *widget = static_cast(w.GetID()); return gtk_widget_get_window(widget); } extern std::string UTF8FromLatin1(const char *s, int len); enum { COMMAND_SIGNAL, NOTIFY_SIGNAL, LAST_SIGNAL }; static gint scintilla_signals[LAST_SIGNAL] = { 0 }; enum { TARGET_STRING, TARGET_TEXT, TARGET_COMPOUND_TEXT, TARGET_UTF8_STRING, TARGET_URI }; GdkAtom ScintillaGTK::atomClipboard = 0; GdkAtom ScintillaGTK::atomUTF8 = 0; GdkAtom ScintillaGTK::atomString = 0; GdkAtom ScintillaGTK::atomUriList = 0; GdkAtom ScintillaGTK::atomDROPFILES_DND = 0; static const GtkTargetEntry clipboardCopyTargets[] = { { (gchar *) "UTF8_STRING", 0, TARGET_UTF8_STRING }, { (gchar *) "STRING", 0, TARGET_STRING }, }; static const gint nClipboardCopyTargets = ELEMENTS(clipboardCopyTargets); static const GtkTargetEntry clipboardPasteTargets[] = { { (gchar *) "text/uri-list", 0, TARGET_URI }, { (gchar *) "UTF8_STRING", 0, TARGET_UTF8_STRING }, { (gchar *) "STRING", 0, TARGET_STRING }, }; static const gint nClipboardPasteTargets = ELEMENTS(clipboardPasteTargets); static GtkWidget *PWidget(Window &w) { return static_cast(w.GetID()); } ScintillaGTK *ScintillaGTK::FromWidget(GtkWidget *widget) { ScintillaObject *scio = SCINTILLA(widget); return static_cast(scio->pscin); } ScintillaGTK::ScintillaGTK(_ScintillaObject *sci_) : adjustmentv(0), adjustmenth(0), verticalScrollBarWidth(30), horizontalScrollBarHeight(30), evbtn(0), capturedMouse(false), dragWasDropped(false), lastKey(0), rectangularSelectionModifier(SCMOD_CTRL), parentClass(0), im_context(NULL), lastNonCommonScript(PANGO_SCRIPT_INVALID_CODE), lastWheelMouseDirection(0), wheelMouseIntensity(0), smoothScrollY(0), smoothScrollX(0), rgnUpdate(0), repaintFullWindow(false), styleIdleID(0), accessibilityEnabled(SC_ACCESSIBILITY_ENABLED), accessible(0) { sci = sci_; wMain = GTK_WIDGET(sci); #if PLAT_GTK_WIN32 rectangularSelectionModifier = SCMOD_ALT; #else rectangularSelectionModifier = SCMOD_CTRL; #endif #if PLAT_GTK_WIN32 // There does not seem to be a real standard for indicating that the clipboard // contains a rectangular selection, so copy Developer Studio. cfColumnSelect = static_cast( ::RegisterClipboardFormat("MSDEVColumnSelect")); // Get intellimouse parameters when running on win32; otherwise use // reasonable default #ifndef SPI_GETWHEELSCROLLLINES #define SPI_GETWHEELSCROLLLINES 104 #endif ::SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &linesPerScroll, 0); #else linesPerScroll = 4; #endif lastWheelMouseTime.tv_sec = 0; lastWheelMouseTime.tv_usec = 0; Initialise(); } ScintillaGTK::~ScintillaGTK() { if (styleIdleID) { g_source_remove(styleIdleID); styleIdleID = 0; } if (evbtn) { gdk_event_free(reinterpret_cast(evbtn)); evbtn = 0; } wPreedit.Destroy(); } static void UnRefCursor(GdkCursor *cursor) { #if GTK_CHECK_VERSION(3,0,0) g_object_unref(cursor); #else gdk_cursor_unref(cursor); #endif } void ScintillaGTK::RealizeThis(GtkWidget *widget) { //Platform::DebugPrintf("ScintillaGTK::realize this\n"); #if GTK_CHECK_VERSION(2,20,0) gtk_widget_set_realized(widget, TRUE); #else GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); #endif GdkWindowAttr attrs; attrs.window_type = GDK_WINDOW_CHILD; GtkAllocation allocation; gtk_widget_get_allocation(widget, &allocation); attrs.x = allocation.x; attrs.y = allocation.y; attrs.width = allocation.width; attrs.height = allocation.height; attrs.wclass = GDK_INPUT_OUTPUT; attrs.visual = gtk_widget_get_visual(widget); #if !GTK_CHECK_VERSION(3,0,0) attrs.colormap = gtk_widget_get_colormap(widget); #endif attrs.event_mask = gtk_widget_get_events(widget) | GDK_EXPOSURE_MASK; GdkDisplay *pdisplay = gtk_widget_get_display(widget); GdkCursor *cursor = gdk_cursor_new_for_display(pdisplay, GDK_XTERM); attrs.cursor = cursor; #if GTK_CHECK_VERSION(3,0,0) gtk_widget_set_window(widget, gdk_window_new(gtk_widget_get_parent_window(widget), &attrs, GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_CURSOR)); #if GTK_CHECK_VERSION(3,8,0) gtk_widget_register_window(widget, gtk_widget_get_window(widget)); #else gdk_window_set_user_data(gtk_widget_get_window(widget), widget); #endif #if !GTK_CHECK_VERSION(3,18,0) gtk_style_context_set_background(gtk_widget_get_style_context(widget), gtk_widget_get_window(widget)); #endif gdk_window_show(gtk_widget_get_window(widget)); UnRefCursor(cursor); #else widget->window = gdk_window_new(gtk_widget_get_parent_window(widget), &attrs, GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP | GDK_WA_CURSOR); gdk_window_set_user_data(widget->window, widget); widget->style = gtk_style_attach(widget->style, widget->window); gdk_window_set_background(widget->window, &widget->style->bg[GTK_STATE_NORMAL]); gdk_window_show(widget->window); UnRefCursor(cursor); #endif gtk_widget_realize(PWidget(wPreedit)); gtk_widget_realize(PWidget(wPreeditDraw)); im_context = gtk_im_multicontext_new(); g_signal_connect(G_OBJECT(im_context), "commit", G_CALLBACK(Commit), this); g_signal_connect(G_OBJECT(im_context), "preedit_changed", G_CALLBACK(PreeditChanged), this); gtk_im_context_set_client_window(im_context, WindowFromWidget(widget)); GtkWidget *widtxt = PWidget(wText); // // No code inside the G_OBJECT macro g_signal_connect_after(G_OBJECT(widtxt), "style_set", G_CALLBACK(ScintillaGTK::StyleSetText), NULL); g_signal_connect_after(G_OBJECT(widtxt), "realize", G_CALLBACK(ScintillaGTK::RealizeText), NULL); gtk_widget_realize(widtxt); gtk_widget_realize(PWidget(scrollbarv)); gtk_widget_realize(PWidget(scrollbarh)); cursor = gdk_cursor_new_for_display(pdisplay, GDK_XTERM); gdk_window_set_cursor(PWindow(wText), cursor); UnRefCursor(cursor); cursor = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); gdk_window_set_cursor(PWindow(scrollbarv), cursor); UnRefCursor(cursor); cursor = gdk_cursor_new_for_display(pdisplay, GDK_LEFT_PTR); gdk_window_set_cursor(PWindow(scrollbarh), cursor); UnRefCursor(cursor); gtk_selection_add_targets(widget, GDK_SELECTION_PRIMARY, clipboardCopyTargets, nClipboardCopyTargets); } void ScintillaGTK::Realize(GtkWidget *widget) { ScintillaGTK *sciThis = FromWidget(widget); sciThis->RealizeThis(widget); } void ScintillaGTK::UnRealizeThis(GtkWidget *widget) { try { gtk_selection_clear_targets(widget, GDK_SELECTION_PRIMARY); if (IS_WIDGET_MAPPED(widget)) { gtk_widget_unmap(widget); } #if GTK_CHECK_VERSION(2,20,0) gtk_widget_set_realized(widget, FALSE); #else GTK_WIDGET_UNSET_FLAGS(widget, GTK_REALIZED); #endif gtk_widget_unrealize(PWidget(wText)); if (PWidget(scrollbarv)) gtk_widget_unrealize(PWidget(scrollbarv)); if (PWidget(scrollbarh)) gtk_widget_unrealize(PWidget(scrollbarh)); gtk_widget_unrealize(PWidget(wPreedit)); gtk_widget_unrealize(PWidget(wPreeditDraw)); g_object_unref(im_context); im_context = NULL; if (GTK_WIDGET_CLASS(parentClass)->unrealize) GTK_WIDGET_CLASS(parentClass)->unrealize(widget); Finalise(); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::UnRealize(GtkWidget *widget) { ScintillaGTK *sciThis = FromWidget(widget); sciThis->UnRealizeThis(widget); } static void MapWidget(GtkWidget *widget) { if (widget && gtk_widget_get_visible(GTK_WIDGET(widget)) && !IS_WIDGET_MAPPED(widget)) { gtk_widget_map(widget); } } void ScintillaGTK::MapThis() { try { //Platform::DebugPrintf("ScintillaGTK::map this\n"); #if GTK_CHECK_VERSION(2,20,0) gtk_widget_set_mapped(PWidget(wMain), TRUE); #else GTK_WIDGET_SET_FLAGS(PWidget(wMain), GTK_MAPPED); #endif MapWidget(PWidget(wText)); MapWidget(PWidget(scrollbarh)); MapWidget(PWidget(scrollbarv)); wMain.SetCursor(Window::cursorArrow); scrollbarv.SetCursor(Window::cursorArrow); scrollbarh.SetCursor(Window::cursorArrow); ChangeSize(); gdk_window_show(PWindow(wMain)); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::Map(GtkWidget *widget) { ScintillaGTK *sciThis = FromWidget(widget); sciThis->MapThis(); } void ScintillaGTK::UnMapThis() { try { //Platform::DebugPrintf("ScintillaGTK::unmap this\n"); #if GTK_CHECK_VERSION(2,20,0) gtk_widget_set_mapped(PWidget(wMain), FALSE); #else GTK_WIDGET_UNSET_FLAGS(PWidget(wMain), GTK_MAPPED); #endif DropGraphics(false); gdk_window_hide(PWindow(wMain)); gtk_widget_unmap(PWidget(wText)); if (PWidget(scrollbarh)) gtk_widget_unmap(PWidget(scrollbarh)); if (PWidget(scrollbarv)) gtk_widget_unmap(PWidget(scrollbarv)); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::UnMap(GtkWidget *widget) { ScintillaGTK *sciThis = FromWidget(widget); sciThis->UnMapThis(); } void ScintillaGTK::ForAll(GtkCallback callback, gpointer callback_data) { try { (*callback) (PWidget(wText), callback_data); if (PWidget(scrollbarv)) (*callback) (PWidget(scrollbarv), callback_data); if (PWidget(scrollbarh)) (*callback) (PWidget(scrollbarh), callback_data); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::MainForAll(GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data) { ScintillaGTK *sciThis = FromWidget((GtkWidget *)container); if (callback != NULL && include_internals) { sciThis->ForAll(callback, callback_data); } } namespace { class PreEditString { public: gchar *str; gint cursor_pos; PangoAttrList *attrs; gboolean validUTF8; glong uniStrLen; gunichar *uniStr; PangoScript pscript; explicit PreEditString(GtkIMContext *im_context) { gtk_im_context_get_preedit_string(im_context, &str, &attrs, &cursor_pos); validUTF8 = g_utf8_validate(str, strlen(str), NULL); uniStr = g_utf8_to_ucs4_fast(str, strlen(str), &uniStrLen); pscript = pango_script_for_unichar(uniStr[0]); } ~PreEditString() { g_free(str); g_free(uniStr); pango_attr_list_unref(attrs); } }; } gint ScintillaGTK::FocusInThis(GtkWidget *) { try { SetFocusState(true); if (im_context != NULL) { PreEditString pes(im_context); if (PWidget(wPreedit) != NULL) { if (strlen(pes.str) > 0) { gtk_widget_show(PWidget(wPreedit)); } else { gtk_widget_hide(PWidget(wPreedit)); } } gtk_im_context_focus_in(im_context); } } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gint ScintillaGTK::FocusIn(GtkWidget *widget, GdkEventFocus * /*event*/) { ScintillaGTK *sciThis = FromWidget(widget); return sciThis->FocusInThis(widget); } gint ScintillaGTK::FocusOutThis(GtkWidget *) { try { SetFocusState(false); if (PWidget(wPreedit) != NULL) gtk_widget_hide(PWidget(wPreedit)); if (im_context != NULL) gtk_im_context_focus_out(im_context); } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gint ScintillaGTK::FocusOut(GtkWidget *widget, GdkEventFocus * /*event*/) { ScintillaGTK *sciThis = FromWidget(widget); return sciThis->FocusOutThis(widget); } void ScintillaGTK::SizeRequest(GtkWidget *widget, GtkRequisition *requisition) { ScintillaGTK *sciThis = FromWidget(widget); requisition->width = 1; requisition->height = 1; GtkRequisition child_requisition; #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size(PWidget(sciThis->scrollbarh), NULL, &child_requisition); gtk_widget_get_preferred_size(PWidget(sciThis->scrollbarv), NULL, &child_requisition); #else gtk_widget_size_request(PWidget(sciThis->scrollbarh), &child_requisition); gtk_widget_size_request(PWidget(sciThis->scrollbarv), &child_requisition); #endif } #if GTK_CHECK_VERSION(3,0,0) void ScintillaGTK::GetPreferredWidth(GtkWidget *widget, gint *minimalWidth, gint *naturalWidth) { GtkRequisition requisition; SizeRequest(widget, &requisition); *minimalWidth = *naturalWidth = requisition.width; } void ScintillaGTK::GetPreferredHeight(GtkWidget *widget, gint *minimalHeight, gint *naturalHeight) { GtkRequisition requisition; SizeRequest(widget, &requisition); *minimalHeight = *naturalHeight = requisition.height; } #endif void ScintillaGTK::SizeAllocate(GtkWidget *widget, GtkAllocation *allocation) { ScintillaGTK *sciThis = FromWidget(widget); try { gtk_widget_set_allocation(widget, allocation); if (IS_WIDGET_REALIZED(widget)) gdk_window_move_resize(WindowFromWidget(widget), allocation->x, allocation->y, allocation->width, allocation->height); sciThis->Resize(allocation->width, allocation->height); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::Initialise() { //Platform::DebugPrintf("ScintillaGTK::Initialise\n"); parentClass = reinterpret_cast( g_type_class_ref(gtk_container_get_type())); gint maskSmooth = 0; #if defined(GDK_WINDOWING_WAYLAND) GdkDisplay *pdisplay = gdk_display_get_default(); if (GDK_IS_WAYLAND_DISPLAY(pdisplay)) { // On Wayland, touch pads only produce smooth scroll events maskSmooth = GDK_SMOOTH_SCROLL_MASK; } #endif gtk_widget_set_can_focus(PWidget(wMain), TRUE); gtk_widget_set_sensitive(PWidget(wMain), TRUE); gtk_widget_set_events(PWidget(wMain), GDK_EXPOSURE_MASK | GDK_SCROLL_MASK | maskSmooth | GDK_STRUCTURE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_FOCUS_CHANGE_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK); wText = gtk_drawing_area_new(); gtk_widget_set_parent(PWidget(wText), PWidget(wMain)); GtkWidget *widtxt = PWidget(wText); // No code inside the G_OBJECT macro gtk_widget_show(widtxt); #if GTK_CHECK_VERSION(3,0,0) g_signal_connect(G_OBJECT(widtxt), "draw", G_CALLBACK(ScintillaGTK::DrawText), this); #else g_signal_connect(G_OBJECT(widtxt), "expose_event", G_CALLBACK(ScintillaGTK::ExposeText), this); #endif #if GTK_CHECK_VERSION(3,0,0) // we need a runtime check because we don't want double buffering when // running on >= 3.9.2 if (gtk_check_version(3,9,2) != NULL /* on < 3.9.2 */) #endif { #if !GTK_CHECK_VERSION(3,14,0) // Avoid background drawing flash/missing redraws gtk_widget_set_double_buffered(widtxt, FALSE); #endif } gtk_widget_set_events(widtxt, GDK_EXPOSURE_MASK); gtk_widget_set_size_request(widtxt, 100, 100); adjustmentv = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 201.0, 1.0, 20.0, 20.0)); #if GTK_CHECK_VERSION(3,0,0) scrollbarv = gtk_scrollbar_new(GTK_ORIENTATION_VERTICAL, GTK_ADJUSTMENT(adjustmentv)); #else scrollbarv = gtk_vscrollbar_new(GTK_ADJUSTMENT(adjustmentv)); #endif gtk_widget_set_can_focus(PWidget(scrollbarv), FALSE); g_signal_connect(G_OBJECT(adjustmentv), "value_changed", G_CALLBACK(ScrollSignal), this); gtk_widget_set_parent(PWidget(scrollbarv), PWidget(wMain)); gtk_widget_show(PWidget(scrollbarv)); adjustmenth = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 101.0, 1.0, 20.0, 20.0)); #if GTK_CHECK_VERSION(3,0,0) scrollbarh = gtk_scrollbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_ADJUSTMENT(adjustmenth)); #else scrollbarh = gtk_hscrollbar_new(GTK_ADJUSTMENT(adjustmenth)); #endif gtk_widget_set_can_focus(PWidget(scrollbarh), FALSE); g_signal_connect(G_OBJECT(adjustmenth), "value_changed", G_CALLBACK(ScrollHSignal), this); gtk_widget_set_parent(PWidget(scrollbarh), PWidget(wMain)); gtk_widget_show(PWidget(scrollbarh)); gtk_widget_grab_focus(PWidget(wMain)); gtk_drag_dest_set(GTK_WIDGET(PWidget(wMain)), GTK_DEST_DEFAULT_ALL, clipboardPasteTargets, nClipboardPasteTargets, static_cast(GDK_ACTION_COPY | GDK_ACTION_MOVE)); /* create pre-edit window */ wPreedit = gtk_window_new(GTK_WINDOW_POPUP); wPreeditDraw = gtk_drawing_area_new(); GtkWidget *predrw = PWidget(wPreeditDraw); // No code inside the G_OBJECT macro #if GTK_CHECK_VERSION(3,0,0) g_signal_connect(G_OBJECT(predrw), "draw", G_CALLBACK(DrawPreedit), this); #else g_signal_connect(G_OBJECT(predrw), "expose_event", G_CALLBACK(ExposePreedit), this); #endif gtk_container_add(GTK_CONTAINER(PWidget(wPreedit)), predrw); gtk_widget_show(predrw); // Set caret period based on GTK settings gboolean blinkOn = false; if (g_object_class_find_property(G_OBJECT_GET_CLASS( G_OBJECT(gtk_settings_get_default())), "gtk-cursor-blink")) { g_object_get(G_OBJECT( gtk_settings_get_default()), "gtk-cursor-blink", &blinkOn, NULL); } if (blinkOn && g_object_class_find_property(G_OBJECT_GET_CLASS( G_OBJECT(gtk_settings_get_default())), "gtk-cursor-blink-time")) { gint value; g_object_get(G_OBJECT( gtk_settings_get_default()), "gtk-cursor-blink-time", &value, NULL); caret.period = gint(value / 1.75); } else { caret.period = 0; } for (TickReason tr = tickCaret; tr <= tickDwell; tr = static_cast(tr + 1)) { timers[tr].reason = tr; timers[tr].scintilla = this; } vs.indicators[SC_INDICATOR_UNKNOWN] = Indicator(INDIC_HIDDEN, ColourDesired(0, 0, 0xff)); vs.indicators[SC_INDICATOR_INPUT] = Indicator(INDIC_DOTS, ColourDesired(0, 0, 0xff)); vs.indicators[SC_INDICATOR_CONVERTED] = Indicator(INDIC_COMPOSITIONTHICK, ColourDesired(0, 0, 0xff)); vs.indicators[SC_INDICATOR_TARGET] = Indicator(INDIC_STRAIGHTBOX, ColourDesired(0, 0, 0xff)); } void ScintillaGTK::Finalise() { for (TickReason tr = tickCaret; tr <= tickDwell; tr = static_cast(tr + 1)) { FineTickerCancel(tr); } if (accessible) { gtk_accessible_set_widget(GTK_ACCESSIBLE(accessible), NULL); g_object_unref(accessible); accessible = 0; } ScintillaBase::Finalise(); } bool ScintillaGTK::AbandonPaint() { if ((paintState == painting) && !paintingAllText) { repaintFullWindow = true; } return false; } void ScintillaGTK::DisplayCursor(Window::Cursor c) { if (cursorMode == SC_CURSORNORMAL) wText.SetCursor(c); else wText.SetCursor(static_cast(cursorMode)); } bool ScintillaGTK::DragThreshold(Point ptStart, Point ptNow) { return gtk_drag_check_threshold(GTK_WIDGET(PWidget(wMain)), ptStart.x, ptStart.y, ptNow.x, ptNow.y); } void ScintillaGTK::StartDrag() { PLATFORM_ASSERT(evbtn != 0); dragWasDropped = false; inDragDrop = ddDragging; GtkTargetList *tl = gtk_target_list_new(clipboardCopyTargets, nClipboardCopyTargets); #if GTK_CHECK_VERSION(3,10,0) gtk_drag_begin_with_coordinates(GTK_WIDGET(PWidget(wMain)), tl, static_cast(GDK_ACTION_COPY | GDK_ACTION_MOVE), evbtn->button, reinterpret_cast(evbtn), -1, -1); #else gtk_drag_begin(GTK_WIDGET(PWidget(wMain)), tl, static_cast(GDK_ACTION_COPY | GDK_ACTION_MOVE), evbtn->button, reinterpret_cast(evbtn)); #endif } #ifdef SCI_NAMESPACE namespace Scintilla { #endif std::string ConvertText(const char *s, size_t len, const char *charSetDest, const char *charSetSource, bool transliterations, bool silent) { // s is not const because of different versions of iconv disagreeing about const std::string destForm; Converter conv(charSetDest, charSetSource, transliterations); if (conv) { gsize outLeft = len*3+1; destForm = std::string(outLeft, '\0'); // g_iconv does not actually write to its input argument so safe to cast away const char *pin = const_cast(s); gsize inLeft = len; char *putf = &destForm[0]; char *pout = putf; gsize conversions = conv.Convert(&pin, &inLeft, &pout, &outLeft); if (conversions == sizeFailure) { if (!silent) { if (len == 1) fprintf(stderr, "iconv %s->%s failed for %0x '%s'\n", charSetSource, charSetDest, (unsigned char)(*s), s); else fprintf(stderr, "iconv %s->%s failed for %s\n", charSetSource, charSetDest, s); } destForm = std::string(); } else { destForm.resize(pout - putf); } } else { fprintf(stderr, "Can not iconv %s %s\n", charSetDest, charSetSource); } return destForm; } #ifdef SCI_NAMESPACE } #endif // Returns the target converted to UTF8. // Return the length in bytes. int ScintillaGTK::TargetAsUTF8(char *text) { int targetLength = targetEnd - targetStart; if (IsUnicodeMode()) { if (text) { pdoc->GetCharRange(text, targetStart, targetLength); } } else { // Need to convert const char *charSetBuffer = CharacterSetID(); if (*charSetBuffer) { std::string s = RangeText(targetStart, targetEnd); std::string tmputf = ConvertText(&s[0], targetLength, "UTF-8", charSetBuffer, false); if (text) { memcpy(text, tmputf.c_str(), tmputf.length()); } return tmputf.length(); } else { if (text) { pdoc->GetCharRange(text, targetStart, targetLength); } } } return targetLength; } // Translates a nul terminated UTF8 string into the document encoding. // Return the length of the result in bytes. int ScintillaGTK::EncodedFromUTF8(char *utf8, char *encoded) const { int inputLength = (lengthForEncode >= 0) ? lengthForEncode : strlen(utf8); if (IsUnicodeMode()) { if (encoded) { memcpy(encoded, utf8, inputLength); } return inputLength; } else { // Need to convert const char *charSetBuffer = CharacterSetID(); if (*charSetBuffer) { std::string tmpEncoded = ConvertText(utf8, inputLength, charSetBuffer, "UTF-8", true); if (encoded) { memcpy(encoded, tmpEncoded.c_str(), tmpEncoded.length()); } return tmpEncoded.length(); } else { if (encoded) { memcpy(encoded, utf8, inputLength); } return inputLength; } } // Fail return 0; } bool ScintillaGTK::ValidCodePage(int codePage) const { return codePage == 0 || codePage == SC_CP_UTF8 || codePage == 932 || codePage == 936 || codePage == 949 || codePage == 950 || codePage == 1361; } sptr_t ScintillaGTK::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { try { switch (iMessage) { case SCI_GRABFOCUS: gtk_widget_grab_focus(PWidget(wMain)); break; case SCI_GETDIRECTFUNCTION: return reinterpret_cast(DirectFunction); case SCI_GETDIRECTPOINTER: return reinterpret_cast(this); #ifdef SCI_LEXER case SCI_LOADLEXERLIBRARY: LexerManager::GetInstance()->Load(reinterpret_cast(lParam)); break; #endif case SCI_TARGETASUTF8: return TargetAsUTF8(reinterpret_cast(lParam)); case SCI_ENCODEDFROMUTF8: return EncodedFromUTF8(reinterpret_cast(wParam), reinterpret_cast(lParam)); case SCI_SETRECTANGULARSELECTIONMODIFIER: rectangularSelectionModifier = wParam; break; case SCI_GETRECTANGULARSELECTIONMODIFIER: return rectangularSelectionModifier; case SCI_SETREADONLY: { sptr_t ret = ScintillaBase::WndProc(iMessage, wParam, lParam); if (accessible) { ScintillaGTKAccessible *sciAccessible = ScintillaGTKAccessible::FromAccessible(accessible); if (sciAccessible) { sciAccessible->NotifyReadOnly(); } } return ret; } case SCI_GETACCESSIBILITY: return accessibilityEnabled; case SCI_SETACCESSIBILITY: accessibilityEnabled = wParam; if (accessible) { ScintillaGTKAccessible *sciAccessible = ScintillaGTKAccessible::FromAccessible(accessible); if (sciAccessible) { sciAccessible->SetAccessibility(); } } break; default: return ScintillaBase::WndProc(iMessage, wParam, lParam); } } catch (std::bad_alloc&) { errorStatus = SC_STATUS_BADALLOC; } catch (...) { errorStatus = SC_STATUS_FAILURE; } return 0l; } sptr_t ScintillaGTK::DefWndProc(unsigned int, uptr_t, sptr_t) { return 0; } /** * Report that this Editor subclass has a working implementation of FineTickerStart. */ bool ScintillaGTK::FineTickerAvailable() { return true; } bool ScintillaGTK::FineTickerRunning(TickReason reason) { return timers[reason].timer != 0; } void ScintillaGTK::FineTickerStart(TickReason reason, int millis, int /* tolerance */) { FineTickerCancel(reason); timers[reason].timer = gdk_threads_add_timeout(millis, TimeOut, &timers[reason]); } void ScintillaGTK::FineTickerCancel(TickReason reason) { if (timers[reason].timer) { g_source_remove(timers[reason].timer); timers[reason].timer = 0; } } bool ScintillaGTK::SetIdle(bool on) { if (on) { // Start idler, if it's not running. if (!idler.state) { idler.state = true; idler.idlerID = reinterpret_cast( gdk_threads_add_idle_full(G_PRIORITY_DEFAULT_IDLE, IdleCallback, this, NULL)); } } else { // Stop idler, if it's running if (idler.state) { idler.state = false; g_source_remove(GPOINTER_TO_UINT(idler.idlerID)); } } return true; } void ScintillaGTK::SetMouseCapture(bool on) { if (mouseDownCaptures) { if (on) { gtk_grab_add(GTK_WIDGET(PWidget(wMain))); } else { gtk_grab_remove(GTK_WIDGET(PWidget(wMain))); } } capturedMouse = on; } bool ScintillaGTK::HaveMouseCapture() { return capturedMouse; } #if GTK_CHECK_VERSION(3,0,0) // Is crcTest completely in crcContainer? static bool CRectContains(const cairo_rectangle_t &crcContainer, const cairo_rectangle_t &crcTest) { return (crcTest.x >= crcContainer.x) && ((crcTest.x + crcTest.width) <= (crcContainer.x + crcContainer.width)) && (crcTest.y >= crcContainer.y) && ((crcTest.y + crcTest.height) <= (crcContainer.y + crcContainer.height)); } // Is crcTest completely in crcListContainer? // May incorrectly return false if complex shape static bool CRectListContains(const cairo_rectangle_list_t *crcListContainer, const cairo_rectangle_t &crcTest) { for (int r=0; rnum_rectangles; r++) { if (CRectContains(crcListContainer->rectangles[r], crcTest)) return true; } return false; } #endif bool ScintillaGTK::PaintContains(PRectangle rc) { // This allows optimization when a rectangle is completely in the update region. // It is OK to return false when too difficult to determine as that just performs extra drawing bool contains = true; if (paintState == painting) { if (!rcPaint.Contains(rc)) { contains = false; } else if (rgnUpdate) { #if GTK_CHECK_VERSION(3,0,0) cairo_rectangle_t grc = {rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top}; contains = CRectListContains(rgnUpdate, grc); #else GdkRectangle grc = {static_cast(rc.left), static_cast(rc.top), static_cast(rc.right - rc.left), static_cast(rc.bottom - rc.top)}; if (gdk_region_rect_in(rgnUpdate, &grc) != GDK_OVERLAP_RECTANGLE_IN) { contains = false; } #endif } } return contains; } // Redraw all of text area. This paint will not be abandoned. void ScintillaGTK::FullPaint() { wText.InvalidateAll(); } PRectangle ScintillaGTK::GetClientRectangle() const { Window win = wMain; PRectangle rc = win.GetClientPosition(); if (verticalScrollBarVisible) rc.right -= verticalScrollBarWidth; if (horizontalScrollBarVisible && !Wrapping()) rc.bottom -= horizontalScrollBarHeight; // Move to origin rc.right -= rc.left; rc.bottom -= rc.top; if (rc.bottom < 0) rc.bottom = 0; if (rc.right < 0) rc.right = 0; rc.left = 0; rc.top = 0; return rc; } void ScintillaGTK::ScrollText(int linesToMove) { int diff = vs.lineHeight * -linesToMove; //Platform::DebugPrintf("ScintillaGTK::ScrollText %d %d %0d,%0d %0d,%0d\n", linesToMove, diff, // rc.left, rc.top, rc.right, rc.bottom); GtkWidget *wi = PWidget(wText); NotifyUpdateUI(); if (IS_WIDGET_REALIZED(wi)) { gdk_window_scroll(WindowFromWidget(wi), 0, -diff); gdk_window_process_updates(WindowFromWidget(wi), FALSE); } } void ScintillaGTK::SetVerticalScrollPos() { DwellEnd(true); gtk_adjustment_set_value(GTK_ADJUSTMENT(adjustmentv), topLine); } void ScintillaGTK::SetHorizontalScrollPos() { DwellEnd(true); gtk_adjustment_set_value(GTK_ADJUSTMENT(adjustmenth), xOffset); } bool ScintillaGTK::ModifyScrollBars(int nMax, int nPage) { bool modified = false; int pageScroll = LinesToScroll(); if (gtk_adjustment_get_upper(adjustmentv) != (nMax + 1) || gtk_adjustment_get_page_size(adjustmentv) != nPage || gtk_adjustment_get_page_increment(adjustmentv) != pageScroll) { gtk_adjustment_set_upper(adjustmentv, nMax + 1); gtk_adjustment_set_page_size(adjustmentv, nPage); gtk_adjustment_set_page_increment(adjustmentv, pageScroll); #if !GTK_CHECK_VERSION(3,18,0) gtk_adjustment_changed(GTK_ADJUSTMENT(adjustmentv)); #endif modified = true; } PRectangle rcText = GetTextRectangle(); int horizEndPreferred = scrollWidth; if (horizEndPreferred < 0) horizEndPreferred = 0; unsigned int pageWidth = rcText.Width(); unsigned int pageIncrement = pageWidth / 3; unsigned int charWidth = vs.styles[STYLE_DEFAULT].aveCharWidth; if (gtk_adjustment_get_upper(adjustmenth) != horizEndPreferred || gtk_adjustment_get_page_size(adjustmenth) != pageWidth || gtk_adjustment_get_page_increment(adjustmenth) != pageIncrement || gtk_adjustment_get_step_increment(adjustmenth) != charWidth) { gtk_adjustment_set_upper(adjustmenth, horizEndPreferred); gtk_adjustment_set_page_size(adjustmenth, pageWidth); gtk_adjustment_set_page_increment(adjustmenth, pageIncrement); gtk_adjustment_set_step_increment(adjustmenth, charWidth); #if !GTK_CHECK_VERSION(3,18,0) gtk_adjustment_changed(GTK_ADJUSTMENT(adjustmenth)); #endif modified = true; } if (modified && (paintState == painting)) { repaintFullWindow = true; } return modified; } void ScintillaGTK::ReconfigureScrollBars() { PRectangle rc = wMain.GetClientPosition(); Resize(rc.Width(), rc.Height()); } void ScintillaGTK::NotifyChange() { g_signal_emit(G_OBJECT(sci), scintilla_signals[COMMAND_SIGNAL], 0, Platform::LongFromTwoShorts(GetCtrlID(), SCEN_CHANGE), PWidget(wMain)); } void ScintillaGTK::NotifyFocus(bool focus) { g_signal_emit(G_OBJECT(sci), scintilla_signals[COMMAND_SIGNAL], 0, Platform::LongFromTwoShorts (GetCtrlID(), focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS), PWidget(wMain)); Editor::NotifyFocus(focus); } void ScintillaGTK::NotifyParent(SCNotification scn) { scn.nmhdr.hwndFrom = PWidget(wMain); scn.nmhdr.idFrom = GetCtrlID(); g_signal_emit(G_OBJECT(sci), scintilla_signals[NOTIFY_SIGNAL], 0, GetCtrlID(), &scn); } void ScintillaGTK::NotifyKey(int key, int modifiers) { SCNotification scn = {}; scn.nmhdr.code = SCN_KEY; scn.ch = key; scn.modifiers = modifiers; NotifyParent(scn); } void ScintillaGTK::NotifyURIDropped(const char *list) { SCNotification scn = {}; scn.nmhdr.code = SCN_URIDROPPED; scn.text = list; NotifyParent(scn); } const char *CharacterSetID(int characterSet); const char *ScintillaGTK::CharacterSetID() const { return ::CharacterSetID(vs.styles[STYLE_DEFAULT].characterSet); } class CaseFolderDBCS : public CaseFolderTable { const char *charSet; public: explicit CaseFolderDBCS(const char *charSet_) : charSet(charSet_) { StandardASCII(); } size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) override { if ((lenMixed == 1) && (sizeFolded > 0)) { folded[0] = mapping[static_cast(mixed[0])]; return 1; } else if (*charSet) { std::string sUTF8 = ConvertText(mixed, lenMixed, "UTF-8", charSet, false); if (!sUTF8.empty()) { gchar *mapped = g_utf8_casefold(sUTF8.c_str(), sUTF8.length()); size_t lenMapped = strlen(mapped); if (lenMapped < sizeFolded) { memcpy(folded, mapped, lenMapped); } else { folded[0] = '\0'; lenMapped = 1; } g_free(mapped); return lenMapped; } } // Something failed so return a single NUL byte folded[0] = '\0'; return 1; } }; CaseFolder *ScintillaGTK::CaseFolderForEncoding() { if (pdoc->dbcsCodePage == SC_CP_UTF8) { return new CaseFolderUnicode(); } else { const char *charSetBuffer = CharacterSetID(); if (charSetBuffer) { if (pdoc->dbcsCodePage == 0) { CaseFolderTable *pcf = new CaseFolderTable(); pcf->StandardASCII(); // Only for single byte encodings for (int i=0x80; i<0x100; i++) { char sCharacter[2] = "A"; sCharacter[0] = i; // Silent as some bytes have no assigned character std::string sUTF8 = ConvertText(sCharacter, 1, "UTF-8", charSetBuffer, false, true); if (!sUTF8.empty()) { gchar *mapped = g_utf8_casefold(sUTF8.c_str(), sUTF8.length()); if (mapped) { std::string mappedBack = ConvertText(mapped, strlen(mapped), charSetBuffer, "UTF-8", false, true); if ((mappedBack.length() == 1) && (mappedBack[0] != sCharacter[0])) { pcf->SetTranslation(sCharacter[0], mappedBack[0]); } g_free(mapped); } } } return pcf; } else { return new CaseFolderDBCS(charSetBuffer); } } return 0; } } namespace { struct CaseMapper { gchar *mapped; // Must be freed with g_free CaseMapper(const std::string &sUTF8, bool toUpperCase) { if (toUpperCase) { mapped = g_utf8_strup(sUTF8.c_str(), sUTF8.length()); } else { mapped = g_utf8_strdown(sUTF8.c_str(), sUTF8.length()); } } ~CaseMapper() { g_free(mapped); } }; } std::string ScintillaGTK::CaseMapString(const std::string &s, int caseMapping) { if ((s.size() == 0) || (caseMapping == cmSame)) return s; if (IsUnicodeMode()) { std::string retMapped(s.length() * maxExpansionCaseConversion, 0); size_t lenMapped = CaseConvertString(&retMapped[0], retMapped.length(), s.c_str(), s.length(), (caseMapping == cmUpper) ? CaseConversionUpper : CaseConversionLower); retMapped.resize(lenMapped); return retMapped; } const char *charSetBuffer = CharacterSetID(); if (!*charSetBuffer) { CaseMapper mapper(s, caseMapping == cmUpper); return std::string(mapper.mapped, strlen(mapper.mapped)); } else { // Change text to UTF-8 std::string sUTF8 = ConvertText(s.c_str(), s.length(), "UTF-8", charSetBuffer, false); CaseMapper mapper(sUTF8, caseMapping == cmUpper); return ConvertText(mapper.mapped, strlen(mapper.mapped), charSetBuffer, "UTF-8", false); } } int ScintillaGTK::KeyDefault(int key, int modifiers) { // Pass up to container in case it is an accelerator NotifyKey(key, modifiers); return 0; } void ScintillaGTK::CopyToClipboard(const SelectionText &selectedText) { SelectionText *clipText = new SelectionText(); clipText->Copy(selectedText); StoreOnClipboard(clipText); } void ScintillaGTK::Copy() { if (!sel.Empty()) { SelectionText *clipText = new SelectionText(); CopySelectionRange(clipText); StoreOnClipboard(clipText); #if PLAT_GTK_WIN32 if (sel.IsRectangular()) { ::OpenClipboard(NULL); ::SetClipboardData(cfColumnSelect, 0); ::CloseClipboard(); } #endif } } void ScintillaGTK::Paste() { atomSought = atomUTF8; GtkClipboard *clipBoard = gtk_widget_get_clipboard(GTK_WIDGET(PWidget(wMain)), atomClipboard); if (clipBoard == NULL) return; // helper class for the asynchronous paste not to risk calling in a destroyed ScintillaGTK class Helper : GObjectWatcher { ScintillaGTK *sci; void Destroyed() override { sci = 0; } public: Helper(ScintillaGTK *sci_) : GObjectWatcher(G_OBJECT(PWidget(sci_->wMain))), sci(sci_) { } static void ClipboardReceived(GtkClipboard *, GtkSelectionData *selection_data, gpointer data) { Helper *self = static_cast(data); if (self->sci != 0) { self->sci->ReceivedSelection(selection_data); } delete self; } }; gtk_clipboard_request_contents(clipBoard, atomSought, Helper::ClipboardReceived, new Helper(this)); } void ScintillaGTK::CreateCallTipWindow(PRectangle rc) { if (!ct.wCallTip.Created()) { ct.wCallTip = gtk_window_new(GTK_WINDOW_POPUP); ct.wDraw = gtk_drawing_area_new(); GtkWidget *widcdrw = PWidget(ct.wDraw); // // No code inside the G_OBJECT macro gtk_container_add(GTK_CONTAINER(PWidget(ct.wCallTip)), widcdrw); #if GTK_CHECK_VERSION(3,0,0) g_signal_connect(G_OBJECT(widcdrw), "draw", G_CALLBACK(ScintillaGTK::DrawCT), &ct); #else g_signal_connect(G_OBJECT(widcdrw), "expose_event", G_CALLBACK(ScintillaGTK::ExposeCT), &ct); #endif g_signal_connect(G_OBJECT(widcdrw), "button_press_event", G_CALLBACK(ScintillaGTK::PressCT), static_cast(this)); gtk_widget_set_events(widcdrw, GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK); GtkWidget *top = gtk_widget_get_toplevel(static_cast(wMain.GetID())); gtk_window_set_transient_for(GTK_WINDOW(static_cast(PWidget(ct.wCallTip))), GTK_WINDOW(top)); } gtk_widget_set_size_request(PWidget(ct.wDraw), rc.Width(), rc.Height()); ct.wDraw.Show(); if (PWindow(ct.wCallTip)) { gdk_window_resize(PWindow(ct.wCallTip), rc.Width(), rc.Height()); } } void ScintillaGTK::AddToPopUp(const char *label, int cmd, bool enabled) { GtkWidget *menuItem; if (label[0]) menuItem = gtk_menu_item_new_with_label(label); else menuItem = gtk_separator_menu_item_new(); gtk_menu_shell_append(GTK_MENU_SHELL(popup.GetID()), menuItem); g_object_set_data(G_OBJECT(menuItem), "CmdNum", GINT_TO_POINTER(cmd)); g_signal_connect(G_OBJECT(menuItem),"activate", G_CALLBACK(PopUpCB), this); if (cmd) { if (menuItem) gtk_widget_set_sensitive(menuItem, enabled); } } bool ScintillaGTK::OwnPrimarySelection() { return ((gdk_selection_owner_get(GDK_SELECTION_PRIMARY) == PWindow(wMain)) && (PWindow(wMain) != NULL)); } void ScintillaGTK::ClaimSelection() { // X Windows has a 'primary selection' as well as the clipboard. // Whenever the user selects some text, we become the primary selection if (!sel.Empty() && IS_WIDGET_REALIZED(GTK_WIDGET(PWidget(wMain)))) { primarySelection = true; gtk_selection_owner_set(GTK_WIDGET(PWidget(wMain)), GDK_SELECTION_PRIMARY, GDK_CURRENT_TIME); primary.Clear(); } else if (OwnPrimarySelection()) { primarySelection = true; if (primary.Empty()) gtk_selection_owner_set(NULL, GDK_SELECTION_PRIMARY, GDK_CURRENT_TIME); } else { primarySelection = false; primary.Clear(); } } static const guchar *DataOfGSD(GtkSelectionData *sd) { return gtk_selection_data_get_data(sd); } static gint LengthOfGSD(GtkSelectionData *sd) { return gtk_selection_data_get_length(sd); } static GdkAtom TypeOfGSD(GtkSelectionData *sd) { return gtk_selection_data_get_data_type(sd); } static GdkAtom SelectionOfGSD(GtkSelectionData *sd) { return gtk_selection_data_get_selection(sd); } // Detect rectangular text, convert line ends to current mode, convert from or to UTF-8 void ScintillaGTK::GetGtkSelectionText(GtkSelectionData *selectionData, SelectionText &selText) { const char *data = reinterpret_cast(DataOfGSD(selectionData)); int len = LengthOfGSD(selectionData); GdkAtom selectionTypeData = TypeOfGSD(selectionData); // Return empty string if selection is not a string if ((selectionTypeData != GDK_TARGET_STRING) && (selectionTypeData != atomUTF8)) { selText.Clear(); return; } // Check for "\n\0" ending to string indicating that selection is rectangular bool isRectangular; #if PLAT_GTK_WIN32 isRectangular = ::IsClipboardFormatAvailable(cfColumnSelect) != 0; #else isRectangular = ((len > 2) && (data[len - 1] == 0 && data[len - 2] == '\n')); if (isRectangular) len--; // Forget the extra '\0' #endif #if PLAT_GTK_WIN32 // Win32 includes an ending '\0' byte in 'len' for clipboard text from // external applications; ignore it. if ((len > 0) && (data[len - 1] == '\0')) len--; #endif std::string dest(data, len); if (selectionTypeData == GDK_TARGET_STRING) { if (IsUnicodeMode()) { // Unknown encoding so assume in Latin1 dest = UTF8FromLatin1(dest.c_str(), dest.length()); selText.Copy(dest, SC_CP_UTF8, 0, isRectangular, false); } else { // Assume buffer is in same encoding as selection selText.Copy(dest, pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, isRectangular, false); } } else { // UTF-8 const char *charSetBuffer = CharacterSetID(); if (!IsUnicodeMode() && *charSetBuffer) { // Convert to locale dest = ConvertText(dest.c_str(), dest.length(), charSetBuffer, "UTF-8", true); selText.Copy(dest, pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, isRectangular, false); } else { selText.Copy(dest, SC_CP_UTF8, 0, isRectangular, false); } } } void ScintillaGTK::ReceivedSelection(GtkSelectionData *selection_data) { try { if ((SelectionOfGSD(selection_data) == atomClipboard) || (SelectionOfGSD(selection_data) == GDK_SELECTION_PRIMARY)) { if ((atomSought == atomUTF8) && (LengthOfGSD(selection_data) <= 0)) { atomSought = atomString; gtk_selection_convert(GTK_WIDGET(PWidget(wMain)), SelectionOfGSD(selection_data), atomSought, GDK_CURRENT_TIME); } else if ((LengthOfGSD(selection_data) > 0) && ((TypeOfGSD(selection_data) == GDK_TARGET_STRING) || (TypeOfGSD(selection_data) == atomUTF8))) { SelectionText selText; GetGtkSelectionText(selection_data, selText); UndoGroup ug(pdoc); if (SelectionOfGSD(selection_data) != GDK_SELECTION_PRIMARY) { ClearSelection(multiPasteMode == SC_MULTIPASTE_EACH); } InsertPasteShape(selText.Data(), selText.Length(), selText.rectangular ? pasteRectangular : pasteStream); EnsureCaretVisible(); } } // else fprintf(stderr, "Target non string %d %d\n", (int)(selection_data->type), // (int)(atomUTF8)); Redraw(); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::ReceivedDrop(GtkSelectionData *selection_data) { dragWasDropped = true; if (TypeOfGSD(selection_data) == atomUriList || TypeOfGSD(selection_data) == atomDROPFILES_DND) { const char *data = reinterpret_cast(DataOfGSD(selection_data)); std::vector drop(data, data + LengthOfGSD(selection_data)); drop.push_back('\0'); NotifyURIDropped(&drop[0]); } else if ((TypeOfGSD(selection_data) == GDK_TARGET_STRING) || (TypeOfGSD(selection_data) == atomUTF8)) { if (LengthOfGSD(selection_data) > 0) { SelectionText selText; GetGtkSelectionText(selection_data, selText); DropAt(posDrop, selText.Data(), selText.Length(), false, selText.rectangular); } } else if (LengthOfGSD(selection_data) > 0) { //~ fprintf(stderr, "ReceivedDrop other %p\n", static_cast(selection_data->type)); } Redraw(); } void ScintillaGTK::GetSelection(GtkSelectionData *selection_data, guint info, SelectionText *text) { #if PLAT_GTK_WIN32 // GDK on Win32 expands any \n into \r\n, so make a copy of // the clip text now with newlines converted to \n. Use { } to hide symbols // from code below SelectionText *newline_normalized = NULL; { std::string tmpstr = Document::TransformLineEnds(text->Data(), text->Length(), SC_EOL_LF); newline_normalized = new SelectionText(); newline_normalized->Copy(tmpstr, SC_CP_UTF8, 0, text->rectangular, false); text = newline_normalized; } #endif // Convert text to utf8 if it isn't already SelectionText *converted = 0; if ((text->codePage != SC_CP_UTF8) && (info == TARGET_UTF8_STRING)) { const char *charSet = ::CharacterSetID(text->characterSet); if (*charSet) { std::string tmputf = ConvertText(text->Data(), text->Length(), "UTF-8", charSet, false); converted = new SelectionText(); converted->Copy(tmputf, SC_CP_UTF8, 0, text->rectangular, false); text = converted; } } // Here is a somewhat evil kludge. // As I can not work out how to store data on the clipboard in multiple formats // and need some way to mark the clipping as being stream or rectangular, // the terminating \0 is included in the length for rectangular clippings. // All other tested aplications behave benignly by ignoring the \0. // The #if is here because on Windows cfColumnSelect clip entry is used // instead as standard indicator of rectangularness (so no need to kludge) const char *textData = text->Data(); int len = text->Length(); #if PLAT_GTK_WIN32 == 0 if (text->rectangular) len++; #endif if (info == TARGET_UTF8_STRING) { gtk_selection_data_set_text(selection_data, textData, len); } else { gtk_selection_data_set(selection_data, static_cast(GDK_SELECTION_TYPE_STRING), 8, reinterpret_cast(textData), len); } delete converted; #if PLAT_GTK_WIN32 delete newline_normalized; #endif } void ScintillaGTK::StoreOnClipboard(SelectionText *clipText) { GtkClipboard *clipBoard = gtk_widget_get_clipboard(GTK_WIDGET(PWidget(wMain)), atomClipboard); if (clipBoard == NULL) // Occurs if widget isn't in a toplevel return; if (gtk_clipboard_set_with_data(clipBoard, clipboardCopyTargets, nClipboardCopyTargets, ClipboardGetSelection, ClipboardClearSelection, clipText)) { gtk_clipboard_set_can_store(clipBoard, clipboardCopyTargets, nClipboardCopyTargets); } } void ScintillaGTK::ClipboardGetSelection(GtkClipboard *, GtkSelectionData *selection_data, guint info, void *data) { GetSelection(selection_data, info, static_cast(data)); } void ScintillaGTK::ClipboardClearSelection(GtkClipboard *, void *data) { SelectionText *obj = static_cast(data); delete obj; } void ScintillaGTK::UnclaimSelection(GdkEventSelection *selection_event) { try { //Platform::DebugPrintf("UnclaimSelection\n"); if (selection_event->selection == GDK_SELECTION_PRIMARY) { //Platform::DebugPrintf("UnclaimPrimarySelection\n"); if (!OwnPrimarySelection()) { primary.Clear(); primarySelection = false; FullPaint(); } } } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::Resize(int width, int height) { //Platform::DebugPrintf("Resize %d %d\n", width, height); //printf("Resize %d %d\n", width, height); // GTK+ 3 warns when we allocate smaller than the minimum allocation, // so we use these variables to store the minimum scrollbar lengths. int minVScrollBarHeight, minHScrollBarWidth; // Not always needed, but some themes can have different sizes of scrollbars #if GTK_CHECK_VERSION(3,0,0) GtkRequisition minimum, requisition; gtk_widget_get_preferred_size(PWidget(scrollbarv), &minimum, &requisition); minVScrollBarHeight = minimum.height; verticalScrollBarWidth = requisition.width; gtk_widget_get_preferred_size(PWidget(scrollbarh), &minimum, &requisition); minHScrollBarWidth = minimum.width; horizontalScrollBarHeight = requisition.height; #else minVScrollBarHeight = minHScrollBarWidth = 1; verticalScrollBarWidth = GTK_WIDGET(PWidget(scrollbarv))->requisition.width; horizontalScrollBarHeight = GTK_WIDGET(PWidget(scrollbarh))->requisition.height; #endif // These allocations should never produce negative sizes as they would wrap around to huge // unsigned numbers inside GTK+ causing warnings. bool showSBHorizontal = horizontalScrollBarVisible && !Wrapping(); GtkAllocation alloc; if (showSBHorizontal) { gtk_widget_show(GTK_WIDGET(PWidget(scrollbarh))); alloc.x = 0; alloc.y = height - horizontalScrollBarHeight; alloc.width = Platform::Maximum(minHScrollBarWidth, width - verticalScrollBarWidth); alloc.height = horizontalScrollBarHeight; gtk_widget_size_allocate(GTK_WIDGET(PWidget(scrollbarh)), &alloc); } else { gtk_widget_hide(GTK_WIDGET(PWidget(scrollbarh))); horizontalScrollBarHeight = 0; // in case horizontalScrollBarVisible is true. } if (verticalScrollBarVisible) { gtk_widget_show(GTK_WIDGET(PWidget(scrollbarv))); alloc.x = width - verticalScrollBarWidth; alloc.y = 0; alloc.width = verticalScrollBarWidth; alloc.height = Platform::Maximum(minVScrollBarHeight, height - horizontalScrollBarHeight); gtk_widget_size_allocate(GTK_WIDGET(PWidget(scrollbarv)), &alloc); } else { gtk_widget_hide(GTK_WIDGET(PWidget(scrollbarv))); verticalScrollBarWidth = 0; } if (IS_WIDGET_MAPPED(PWidget(wMain))) { ChangeSize(); } alloc.x = 0; alloc.y = 0; alloc.width = 1; alloc.height = 1; #if GTK_CHECK_VERSION(3, 0, 0) // please GTK 3.20 and ask wText what size it wants, although we know it doesn't really need // anything special as it's ours. gtk_widget_get_preferred_size(PWidget(wText), &requisition, NULL); alloc.width = requisition.width; alloc.height = requisition.height; #endif alloc.width = Platform::Maximum(alloc.width, width - verticalScrollBarWidth); alloc.height = Platform::Maximum(alloc.height, height - horizontalScrollBarHeight); gtk_widget_size_allocate(GTK_WIDGET(PWidget(wText)), &alloc); } static void SetAdjustmentValue(GtkAdjustment *object, int value) { GtkAdjustment *adjustment = GTK_ADJUSTMENT(object); int maxValue = static_cast( gtk_adjustment_get_upper(adjustment) - gtk_adjustment_get_page_size(adjustment)); if (value > maxValue) value = maxValue; if (value < 0) value = 0; gtk_adjustment_set_value(adjustment, value); } static int modifierTranslated(int sciModifier) { switch (sciModifier) { case SCMOD_SHIFT: return GDK_SHIFT_MASK; case SCMOD_CTRL: return GDK_CONTROL_MASK; case SCMOD_ALT: return GDK_MOD1_MASK; case SCMOD_SUPER: return GDK_MOD4_MASK; default: return 0; } } gint ScintillaGTK::PressThis(GdkEventButton *event) { try { //Platform::DebugPrintf("Press %x time=%d state = %x button = %x\n",this,event->time, event->state, event->button); // Do not use GTK+ double click events as Scintilla has its own double click detection if (event->type != GDK_BUTTON_PRESS) return FALSE; if (evbtn) { gdk_event_free(reinterpret_cast(evbtn)); evbtn = 0; } evbtn = reinterpret_cast(gdk_event_copy(reinterpret_cast(event))); Point pt; pt.x = int(event->x); pt.y = int(event->y); PRectangle rcClient = GetClientRectangle(); //Platform::DebugPrintf("Press %0d,%0d in %0d,%0d %0d,%0d\n", // pt.x, pt.y, rcClient.left, rcClient.top, rcClient.right, rcClient.bottom); if ((pt.x > rcClient.right) || (pt.y > rcClient.bottom)) { Platform::DebugPrintf("Bad location\n"); return FALSE; } bool shift = (event->state & GDK_SHIFT_MASK) != 0; bool ctrl = (event->state & GDK_CONTROL_MASK) != 0; // On X, instead of sending literal modifiers use the user specified // modifier, defaulting to control instead of alt. // This is because most X window managers grab alt + click for moving bool alt = (event->state & modifierTranslated(rectangularSelectionModifier)) != 0; gtk_widget_grab_focus(PWidget(wMain)); if (event->button == 1) { #if PLAT_GTK_MACOSX bool meta = ctrl; // GDK reports the Command modifer key as GDK_MOD2_MASK for button events, // not GDK_META_MASK like in key events. ctrl = (event->state & GDK_MOD2_MASK) != 0; #else bool meta = false; #endif ButtonDownWithModifiers(pt, event->time, ModifierFlags(shift, ctrl, alt, meta)); } else if (event->button == 2) { // Grab the primary selection if it exists SelectionPosition pos = SPositionFromLocation(pt, false, false, UserVirtualSpace()); if (OwnPrimarySelection() && primary.Empty()) CopySelectionRange(&primary); sel.Clear(); SetSelection(pos, pos); atomSought = atomUTF8; gtk_selection_convert(GTK_WIDGET(PWidget(wMain)), GDK_SELECTION_PRIMARY, atomSought, event->time); } else if (event->button == 3) { if (!PointInSelection(pt)) SetEmptySelection(PositionFromLocation(pt)); if (ShouldDisplayPopup(pt)) { // PopUp menu // Convert to screen int ox = 0; int oy = 0; gdk_window_get_origin(PWindow(wMain), &ox, &oy); ContextMenu(Point(pt.x + ox, pt.y + oy)); } else { #if PLAT_GTK_MACOSX bool meta = ctrl; // GDK reports the Command modifer key as GDK_MOD2_MASK for button events, // not GDK_META_MASK like in key events. ctrl = (event->state & GDK_MOD2_MASK) != 0; #else bool meta = false; #endif RightButtonDownWithModifiers(pt, event->time, ModifierFlags(shift, ctrl, alt, meta)); return FALSE; } } else if (event->button == 4) { // Wheel scrolling up (only GTK 1.x does it this way) if (ctrl) SetAdjustmentValue(adjustmenth, xOffset - 6); else SetAdjustmentValue(adjustmentv, topLine - 3); } else if (event->button == 5) { // Wheel scrolling down (only GTK 1.x does it this way) if (ctrl) SetAdjustmentValue(adjustmenth, xOffset + 6); else SetAdjustmentValue(adjustmentv, topLine + 3); } } catch (...) { errorStatus = SC_STATUS_FAILURE; } return TRUE; } gint ScintillaGTK::Press(GtkWidget *widget, GdkEventButton *event) { if (event->window != WindowFromWidget(widget)) return FALSE; ScintillaGTK *sciThis = FromWidget(widget); return sciThis->PressThis(event); } gint ScintillaGTK::MouseRelease(GtkWidget *widget, GdkEventButton *event) { ScintillaGTK *sciThis = FromWidget(widget); try { //Platform::DebugPrintf("Release %x %d %d\n",sciThis,event->time,event->state); if (!sciThis->HaveMouseCapture()) return FALSE; if (event->button == 1) { Point pt; pt.x = int(event->x); pt.y = int(event->y); //Platform::DebugPrintf("Up %x %x %d %d %d\n", // sciThis,event->window,event->time, pt.x, pt.y); if (event->window != PWindow(sciThis->wMain)) // If mouse released on scroll bar then the position is relative to the // scrollbar, not the drawing window so just repeat the most recent point. pt = sciThis->ptMouseLast; sciThis->ButtonUp(pt, event->time, (event->state & GDK_CONTROL_MASK) != 0); } } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } return FALSE; } // win32gtk and GTK >= 2 use SCROLL_* events instead of passing the // button4/5/6/7 events to the GTK app gint ScintillaGTK::ScrollEvent(GtkWidget *widget, GdkEventScroll *event) { ScintillaGTK *sciThis = FromWidget(widget); try { if (widget == NULL || event == NULL) return FALSE; #if defined(GDK_WINDOWING_WAYLAND) if (event->direction == GDK_SCROLL_SMOOTH && GDK_IS_WAYLAND_WINDOW(event->window)) { const int smoothScrollFactor = 4; sciThis->smoothScrollY += event->delta_y * smoothScrollFactor; sciThis->smoothScrollX += event->delta_x * smoothScrollFactor;; if (ABS(sciThis->smoothScrollY) >= 1.0) { const int scrollLines = trunc(sciThis->smoothScrollY); sciThis->ScrollTo(sciThis->topLine + scrollLines); sciThis->smoothScrollY -= scrollLines; } if (ABS(sciThis->smoothScrollX) >= 1.0) { const int scrollPixels = trunc(sciThis->smoothScrollX); sciThis->HorizontalScrollTo(sciThis->xOffset + scrollPixels); sciThis->smoothScrollX -= scrollPixels; } return TRUE; } #endif // Compute amount and direction to scroll (even tho on win32 there is // intensity of scrolling info in the native message, gtk doesn't // support this so we simulate similarly adaptive scrolling) // Note that this is disabled on OS X (Darwin) with the X11 backend // where the X11 server already has an adaptive scrolling algorithm // that fights with this one int cLineScroll; #if defined(__APPLE__) && !defined(GDK_WINDOWING_QUARTZ) cLineScroll = sciThis->linesPerScroll; if (cLineScroll == 0) cLineScroll = 4; sciThis->wheelMouseIntensity = cLineScroll; #else int timeDelta = 1000000; GTimeVal curTime; g_get_current_time(&curTime); if (curTime.tv_sec == sciThis->lastWheelMouseTime.tv_sec) timeDelta = curTime.tv_usec - sciThis->lastWheelMouseTime.tv_usec; else if (curTime.tv_sec == sciThis->lastWheelMouseTime.tv_sec + 1) timeDelta = 1000000 + (curTime.tv_usec - sciThis->lastWheelMouseTime.tv_usec); if ((event->direction == sciThis->lastWheelMouseDirection) && (timeDelta < 250000)) { if (sciThis->wheelMouseIntensity < 12) sciThis->wheelMouseIntensity++; cLineScroll = sciThis->wheelMouseIntensity; } else { cLineScroll = sciThis->linesPerScroll; if (cLineScroll == 0) cLineScroll = 4; sciThis->wheelMouseIntensity = cLineScroll; } #endif if (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_LEFT) { cLineScroll *= -1; } g_get_current_time(&sciThis->lastWheelMouseTime); sciThis->lastWheelMouseDirection = event->direction; // Note: Unpatched versions of win32gtk don't set the 'state' value so // only regular scrolling is supported there. Also, unpatched win32gtk // issues spurious button 2 mouse events during wheeling, which can cause // problems (a patch for both was submitted by archaeopteryx.com on 13Jun2001) // Data zoom not supported if (event->state & GDK_SHIFT_MASK) { return FALSE; } #if GTK_CHECK_VERSION(3,4,0) // Smooth scrolling not supported if (event->direction == GDK_SCROLL_SMOOTH) { return FALSE; } #endif // Horizontal scrolling if (event->direction == GDK_SCROLL_LEFT || event->direction == GDK_SCROLL_RIGHT) { sciThis->HorizontalScrollTo(sciThis->xOffset + cLineScroll); // Text font size zoom } else if (event->state & GDK_CONTROL_MASK) { if (cLineScroll < 0) { sciThis->KeyCommand(SCI_ZOOMIN); } else { sciThis->KeyCommand(SCI_ZOOMOUT); } // Regular scrolling } else { sciThis->ScrollTo(sciThis->topLine + cLineScroll); } return TRUE; } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } return FALSE; } gint ScintillaGTK::Motion(GtkWidget *widget, GdkEventMotion *event) { ScintillaGTK *sciThis = FromWidget(widget); try { //Platform::DebugPrintf("Motion %x %d\n",sciThis,event->time); if (event->window != WindowFromWidget(widget)) return FALSE; int x = 0; int y = 0; GdkModifierType state; if (event->is_hint) { #if GTK_CHECK_VERSION(3,0,0) gdk_window_get_device_position(event->window, event->device, &x, &y, &state); #else gdk_window_get_pointer(event->window, &x, &y, &state); #endif } else { x = static_cast(event->x); y = static_cast(event->y); state = static_cast(event->state); } //Platform::DebugPrintf("Move %x %x %d %c %d %d\n", // sciThis,event->window,event->time,event->is_hint? 'h' :'.', x, y); Point pt(x, y); int modifiers = ((event->state & GDK_SHIFT_MASK) != 0 ? SCI_SHIFT : 0) | ((event->state & GDK_CONTROL_MASK) != 0 ? SCI_CTRL : 0) | ((event->state & modifierTranslated(sciThis->rectangularSelectionModifier)) != 0 ? SCI_ALT : 0); sciThis->ButtonMoveWithModifiers(pt, modifiers); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } return FALSE; } // Map the keypad keys to their equivalent functions static int KeyTranslate(int keyIn) { switch (keyIn) { #if GTK_CHECK_VERSION(3,0,0) case GDK_KEY_ISO_Left_Tab: return SCK_TAB; case GDK_KEY_KP_Down: return SCK_DOWN; case GDK_KEY_KP_Up: return SCK_UP; case GDK_KEY_KP_Left: return SCK_LEFT; case GDK_KEY_KP_Right: return SCK_RIGHT; case GDK_KEY_KP_Home: return SCK_HOME; case GDK_KEY_KP_End: return SCK_END; case GDK_KEY_KP_Page_Up: return SCK_PRIOR; case GDK_KEY_KP_Page_Down: return SCK_NEXT; case GDK_KEY_KP_Delete: return SCK_DELETE; case GDK_KEY_KP_Insert: return SCK_INSERT; case GDK_KEY_KP_Enter: return SCK_RETURN; case GDK_KEY_Down: return SCK_DOWN; case GDK_KEY_Up: return SCK_UP; case GDK_KEY_Left: return SCK_LEFT; case GDK_KEY_Right: return SCK_RIGHT; case GDK_KEY_Home: return SCK_HOME; case GDK_KEY_End: return SCK_END; case GDK_KEY_Page_Up: return SCK_PRIOR; case GDK_KEY_Page_Down: return SCK_NEXT; case GDK_KEY_Delete: return SCK_DELETE; case GDK_KEY_Insert: return SCK_INSERT; case GDK_KEY_Escape: return SCK_ESCAPE; case GDK_KEY_BackSpace: return SCK_BACK; case GDK_KEY_Tab: return SCK_TAB; case GDK_KEY_Return: return SCK_RETURN; case GDK_KEY_KP_Add: return SCK_ADD; case GDK_KEY_KP_Subtract: return SCK_SUBTRACT; case GDK_KEY_KP_Divide: return SCK_DIVIDE; case GDK_KEY_Super_L: return SCK_WIN; case GDK_KEY_Super_R: return SCK_RWIN; case GDK_KEY_Menu: return SCK_MENU; #else case GDK_ISO_Left_Tab: return SCK_TAB; case GDK_KP_Down: return SCK_DOWN; case GDK_KP_Up: return SCK_UP; case GDK_KP_Left: return SCK_LEFT; case GDK_KP_Right: return SCK_RIGHT; case GDK_KP_Home: return SCK_HOME; case GDK_KP_End: return SCK_END; case GDK_KP_Page_Up: return SCK_PRIOR; case GDK_KP_Page_Down: return SCK_NEXT; case GDK_KP_Delete: return SCK_DELETE; case GDK_KP_Insert: return SCK_INSERT; case GDK_KP_Enter: return SCK_RETURN; case GDK_Down: return SCK_DOWN; case GDK_Up: return SCK_UP; case GDK_Left: return SCK_LEFT; case GDK_Right: return SCK_RIGHT; case GDK_Home: return SCK_HOME; case GDK_End: return SCK_END; case GDK_Page_Up: return SCK_PRIOR; case GDK_Page_Down: return SCK_NEXT; case GDK_Delete: return SCK_DELETE; case GDK_Insert: return SCK_INSERT; case GDK_Escape: return SCK_ESCAPE; case GDK_BackSpace: return SCK_BACK; case GDK_Tab: return SCK_TAB; case GDK_Return: return SCK_RETURN; case GDK_KP_Add: return SCK_ADD; case GDK_KP_Subtract: return SCK_SUBTRACT; case GDK_KP_Divide: return SCK_DIVIDE; case GDK_Super_L: return SCK_WIN; case GDK_Super_R: return SCK_RWIN; case GDK_Menu: return SCK_MENU; #endif default: return keyIn; } } gboolean ScintillaGTK::KeyThis(GdkEventKey *event) { try { //fprintf(stderr, "SC-key: %d %x [%s]\n", // event->keyval, event->state, (event->length > 0) ? event->string : "empty"); if (gtk_im_context_filter_keypress(im_context, event)) { return 1; } if (!event->keyval) { return true; } bool shift = (event->state & GDK_SHIFT_MASK) != 0; bool ctrl = (event->state & GDK_CONTROL_MASK) != 0; bool alt = (event->state & GDK_MOD1_MASK) != 0; bool super = (event->state & GDK_MOD4_MASK) != 0; guint key = event->keyval; if ((ctrl || alt) && (key < 128)) key = toupper(key); #if GTK_CHECK_VERSION(3,0,0) else if (!ctrl && (key >= GDK_KEY_KP_Multiply && key <= GDK_KEY_KP_9)) #else else if (!ctrl && (key >= GDK_KP_Multiply && key <= GDK_KP_9)) #endif key &= 0x7F; // Hack for keys over 256 and below command keys but makes Hungarian work. // This will have to change for Unicode else if (key >= 0xFE00) key = KeyTranslate(key); bool consumed = false; #if !(PLAT_GTK_MACOSX) bool meta = false; #else bool meta = ctrl; ctrl = (event->state & GDK_META_MASK) != 0; #endif bool added = KeyDownWithModifiers(key, ModifierFlags(shift, ctrl, alt, meta, super), &consumed) != 0; if (!consumed) consumed = added; //fprintf(stderr, "SK-key: %d %x %x\n",event->keyval, event->state, consumed); if (event->keyval == 0xffffff && event->length > 0) { ClearSelection(); const int lengthInserted = pdoc->InsertString(CurrentPosition(), event->string, strlen(event->string)); if (lengthInserted > 0) { MovePositionTo(CurrentPosition() + lengthInserted); } } return consumed; } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gboolean ScintillaGTK::KeyPress(GtkWidget *widget, GdkEventKey *event) { ScintillaGTK *sciThis = FromWidget(widget); return sciThis->KeyThis(event); } gboolean ScintillaGTK::KeyRelease(GtkWidget *widget, GdkEventKey *event) { //Platform::DebugPrintf("SC-keyrel: %d %x %3s\n",event->keyval, event->state, event->string); ScintillaGTK *sciThis = FromWidget(widget); if (gtk_im_context_filter_keypress(sciThis->im_context, event)) { return TRUE; } return FALSE; } #if GTK_CHECK_VERSION(3,0,0) gboolean ScintillaGTK::DrawPreeditThis(GtkWidget *, cairo_t *cr) { try { PreEditString pes(im_context); PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str); pango_layout_set_attributes(layout, pes.attrs); cairo_move_to(cr, 0, 0); pango_cairo_show_layout(cr, layout); g_object_unref(layout); } catch (...) { errorStatus = SC_STATUS_FAILURE; } return TRUE; } gboolean ScintillaGTK::DrawPreedit(GtkWidget *widget, cairo_t *cr, ScintillaGTK *sciThis) { return sciThis->DrawPreeditThis(widget, cr); } #else gboolean ScintillaGTK::ExposePreeditThis(GtkWidget *widget, GdkEventExpose *) { try { PreEditString pes(im_context); PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str); pango_layout_set_attributes(layout, pes.attrs); cairo_t *context = gdk_cairo_create(reinterpret_cast(WindowFromWidget(widget))); cairo_move_to(context, 0, 0); pango_cairo_show_layout(context, layout); cairo_destroy(context); g_object_unref(layout); } catch (...) { errorStatus = SC_STATUS_FAILURE; } return TRUE; } gboolean ScintillaGTK::ExposePreedit(GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis) { return sciThis->ExposePreeditThis(widget, ose); } #endif bool ScintillaGTK::KoreanIME() { PreEditString pes(im_context); if (pes.pscript != PANGO_SCRIPT_COMMON) lastNonCommonScript = pes.pscript; return lastNonCommonScript == PANGO_SCRIPT_HANGUL; } void ScintillaGTK::MoveImeCarets(int pos) { // Move carets relatively by bytes for (size_t r=0; r INDIC_MAX) { return; } pdoc->decorations.SetCurrentIndicator(indicator); for (size_t r=0; rDecorationFillRange(positionInsert - len, 1, len); } } static std::vector MapImeIndicators(PangoAttrList *attrs, const char *u8Str) { // Map input style to scintilla ime indicator. // Attrs position points between UTF-8 bytes. // Indicator index to be returned is character based though. glong charactersLen = g_utf8_strlen(u8Str, strlen(u8Str)); std::vector indicator(charactersLen, SC_INDICATOR_UNKNOWN); PangoAttrIterator *iterunderline = pango_attr_list_get_iterator(attrs); if (iterunderline) { do { PangoAttribute *attrunderline = pango_attr_iterator_get(iterunderline, PANGO_ATTR_UNDERLINE); if (attrunderline) { glong start = g_utf8_strlen(u8Str, attrunderline->start_index); glong end = g_utf8_strlen(u8Str, attrunderline->end_index); PangoUnderline uline = (PangoUnderline)((PangoAttrInt *)attrunderline)->value; for (glong i=start; i < end; ++i) { switch (uline) { case PANGO_UNDERLINE_NONE: indicator[i] = SC_INDICATOR_UNKNOWN; break; case PANGO_UNDERLINE_SINGLE: // normal input indicator[i] = SC_INDICATOR_INPUT; break; case PANGO_UNDERLINE_DOUBLE: case PANGO_UNDERLINE_LOW: case PANGO_UNDERLINE_ERROR: break; } } } } while (pango_attr_iterator_next(iterunderline)); pango_attr_iterator_destroy(iterunderline); } PangoAttrIterator *itercolor = pango_attr_list_get_iterator(attrs); if (itercolor) { do { PangoAttribute *backcolor = pango_attr_iterator_get(itercolor, PANGO_ATTR_BACKGROUND); if (backcolor) { glong start = g_utf8_strlen(u8Str, backcolor->start_index); glong end = g_utf8_strlen(u8Str, backcolor->end_index); for (glong i=start; i < end; ++i) { indicator[i] = SC_INDICATOR_TARGET; // target converted } } } while (pango_attr_iterator_next(itercolor)); pango_attr_iterator_destroy(itercolor); } return indicator; } void ScintillaGTK::SetCandidateWindowPos() { // Composition box accompanies candidate box. Point pt = PointMainCaret(); GdkRectangle imeBox = {0}; // No need to set width imeBox.x = pt.x; // Only need positiion imeBox.y = pt.y + vs.lineHeight; // underneath the first charater gtk_im_context_set_cursor_location(im_context, &imeBox); } void ScintillaGTK::CommitThis(char *commitStr) { try { //~ fprintf(stderr, "Commit '%s'\n", commitStr); view.imeCaretBlockOverride = false; if (pdoc->TentativeActive()) { pdoc->TentativeUndo(); } const char *charSetSource = CharacterSetID(); glong uniStrLen = 0; gunichar *uniStr = g_utf8_to_ucs4_fast(commitStr, strlen(commitStr), &uniStrLen); for (glong i = 0; i < uniStrLen; i++) { gchar u8Char[UTF8MaxBytes+2] = {0}; gint u8CharLen = g_unichar_to_utf8(uniStr[i], u8Char); std::string docChar = u8Char; if (!IsUnicodeMode()) docChar = ConvertText(u8Char, u8CharLen, charSetSource, "UTF-8", true); AddCharUTF(docChar.c_str(), docChar.size()); } g_free(uniStr); ShowCaretAtCurrentPosition(); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::Commit(GtkIMContext *, char *str, ScintillaGTK *sciThis) { sciThis->CommitThis(str); } void ScintillaGTK::PreeditChangedInlineThis() { // Copy & paste by johnsonj with a lot of helps of Neil // Great thanks for my foreruners, jiniya and BLUEnLIVE try { if (pdoc->IsReadOnly() || SelectionContainsProtected()) { gtk_im_context_reset(im_context); return; } view.imeCaretBlockOverride = false; // If backspace. bool initialCompose = false; if (pdoc->TentativeActive()) { pdoc->TentativeUndo(); } else { // No tentative undo means start of this composition so // fill in any virtual spaces. initialCompose = true; } PreEditString preeditStr(im_context); const char *charSetSource = CharacterSetID(); if (!preeditStr.validUTF8 || (charSetSource == NULL)) { ShowCaretAtCurrentPosition(); return; } if (preeditStr.uniStrLen == 0 || preeditStr.uniStrLen > maxLenInputIME) { //fprintf(stderr, "Do not allow over 200 chars: %i\n", preeditStr.uniStrLen); ShowCaretAtCurrentPosition(); return; } if (initialCompose) ClearBeforeTentativeStart(); pdoc->TentativeStart(); // TentativeActive() from now on std::vector indicator = MapImeIndicators(preeditStr.attrs, preeditStr.str); bool tmpRecordingMacro = recordingMacro; recordingMacro = false; for (glong i = 0; i < preeditStr.uniStrLen; i++) { gchar u8Char[UTF8MaxBytes+2] = {0}; gint u8CharLen = g_unichar_to_utf8(preeditStr.uniStr[i], u8Char); std::string docChar = u8Char; if (!IsUnicodeMode()) docChar = ConvertText(u8Char, u8CharLen, charSetSource, "UTF-8", true); AddCharUTF(docChar.c_str(), docChar.size()); DrawImeIndicator(indicator[i], docChar.size()); } recordingMacro = tmpRecordingMacro; // Move caret to ime cursor position. int imeEndToImeCaretU32 = preeditStr.cursor_pos - preeditStr.uniStrLen; int imeCaretPosDoc = pdoc->GetRelativePosition(CurrentPosition(), imeEndToImeCaretU32); MoveImeCarets(- CurrentPosition() + imeCaretPosDoc); if (KoreanIME()) { #if !PLAT_GTK_WIN32 if (preeditStr.cursor_pos > 0) { int oneCharBefore = pdoc->GetRelativePosition(CurrentPosition(), -1); MoveImeCarets(- CurrentPosition() + oneCharBefore); } #endif view.imeCaretBlockOverride = true; } EnsureCaretVisible(); SetCandidateWindowPos(); ShowCaretAtCurrentPosition(); } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::PreeditChangedWindowedThis() { try { PreEditString pes(im_context); if (strlen(pes.str) > 0) { PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str); pango_layout_set_attributes(layout, pes.attrs); gint w, h; pango_layout_get_pixel_size(layout, &w, &h); g_object_unref(layout); gint x, y; gdk_window_get_origin(PWindow(wText), &x, &y); Point pt = PointMainCaret(); if (pt.x < 0) pt.x = 0; if (pt.y < 0) pt.y = 0; gtk_window_move(GTK_WINDOW(PWidget(wPreedit)), x + pt.x, y + pt.y); gtk_window_resize(GTK_WINDOW(PWidget(wPreedit)), w, h); gtk_widget_show(PWidget(wPreedit)); gtk_widget_queue_draw_area(PWidget(wPreeditDraw), 0, 0, w, h); } else { gtk_widget_hide(PWidget(wPreedit)); } } catch (...) { errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::PreeditChanged(GtkIMContext *, ScintillaGTK *sciThis) { if ((sciThis->imeInteraction == imeInline) || (sciThis->KoreanIME())) { sciThis->PreeditChangedInlineThis(); } else { sciThis->PreeditChangedWindowedThis(); } } void ScintillaGTK::StyleSetText(GtkWidget *widget, GtkStyle *, void*) { RealizeText(widget, NULL); } void ScintillaGTK::RealizeText(GtkWidget *widget, void*) { // Set NULL background to avoid automatic clearing so Scintilla responsible for all drawing if (WindowFromWidget(widget)) { #if GTK_CHECK_VERSION(3,22,0) // Appears unnecessary #elif GTK_CHECK_VERSION(3,0,0) gdk_window_set_background_pattern(WindowFromWidget(widget), NULL); #else gdk_window_set_back_pixmap(WindowFromWidget(widget), NULL, FALSE); #endif } } static GObjectClass *scintilla_class_parent_class; void ScintillaGTK::Dispose(GObject *object) { try { ScintillaObject *scio = reinterpret_cast(object); ScintillaGTK *sciThis = reinterpret_cast(scio->pscin); if (PWidget(sciThis->scrollbarv)) { gtk_widget_unparent(PWidget(sciThis->scrollbarv)); sciThis->scrollbarv = NULL; } if (PWidget(sciThis->scrollbarh)) { gtk_widget_unparent(PWidget(sciThis->scrollbarh)); sciThis->scrollbarh = NULL; } scintilla_class_parent_class->dispose(object); } catch (...) { // Its dying so nowhere to save the status } } void ScintillaGTK::Destroy(GObject *object) { try { ScintillaObject *scio = SCINTILLA(object); // This avoids a double destruction if (!scio->pscin) return; ScintillaGTK *sciThis = static_cast(scio->pscin); //Platform::DebugPrintf("Destroying %x %x\n", sciThis, object); sciThis->Finalise(); delete sciThis; scio->pscin = 0; scintilla_class_parent_class->finalize(object); } catch (...) { // Its dead so nowhere to save the status } } #if GTK_CHECK_VERSION(3,0,0) gboolean ScintillaGTK::DrawTextThis(cairo_t *cr) { try { paintState = painting; repaintFullWindow = false; rcPaint = GetClientRectangle(); PLATFORM_ASSERT(rgnUpdate == NULL); rgnUpdate = cairo_copy_clip_rectangle_list(cr); if (rgnUpdate && rgnUpdate->status != CAIRO_STATUS_SUCCESS) { // If not successful then ignore fprintf(stderr, "DrawTextThis failed to copy update region %d [%d]\n", rgnUpdate->status, rgnUpdate->num_rectangles); cairo_rectangle_list_destroy(rgnUpdate); rgnUpdate = 0; } double x1, y1, x2, y2; cairo_clip_extents(cr, &x1, &y1, &x2, &y2); rcPaint.left = x1; rcPaint.top = y1; rcPaint.right = x2; rcPaint.bottom = y2; PRectangle rcClient = GetClientRectangle(); paintingAllText = rcPaint.Contains(rcClient); Surface *surfaceWindow = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceWindow) { surfaceWindow->Init(cr, PWidget(wText)); Paint(surfaceWindow, rcPaint); surfaceWindow->Release(); delete surfaceWindow; } if ((paintState == paintAbandoned) || repaintFullWindow) { // Painting area was insufficient to cover new styling or brace highlight positions FullPaint(); } paintState = notPainting; repaintFullWindow = false; if (rgnUpdate) { cairo_rectangle_list_destroy(rgnUpdate); } rgnUpdate = 0; paintState = notPainting; } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gboolean ScintillaGTK::DrawText(GtkWidget *, cairo_t *cr, ScintillaGTK *sciThis) { return sciThis->DrawTextThis(cr); } gboolean ScintillaGTK::DrawThis(cairo_t *cr) { try { #ifdef GTK_STYLE_CLASS_SCROLLBARS_JUNCTION /* GTK >= 3.4 */ // if both scrollbars are visible, paint the little square on the bottom right corner if (verticalScrollBarVisible && horizontalScrollBarVisible && !Wrapping()) { GtkStyleContext *styleContext = gtk_widget_get_style_context(PWidget(wMain)); PRectangle rc = GetClientRectangle(); gtk_style_context_save(styleContext); gtk_style_context_add_class(styleContext, GTK_STYLE_CLASS_SCROLLBARS_JUNCTION); gtk_render_background(styleContext, cr, rc.right, rc.bottom, verticalScrollBarWidth, horizontalScrollBarHeight); gtk_render_frame(styleContext, cr, rc.right, rc.bottom, verticalScrollBarWidth, horizontalScrollBarHeight); gtk_style_context_restore(styleContext); } #endif gtk_container_propagate_draw( GTK_CONTAINER(PWidget(wMain)), PWidget(scrollbarh), cr); gtk_container_propagate_draw( GTK_CONTAINER(PWidget(wMain)), PWidget(scrollbarv), cr); // Starting from the following version, the expose event are not propagated // for double buffered non native windows, so we need to call it ourselves // or keep the default handler #if GTK_CHECK_VERSION(3,0,0) // we want to forward on any >= 3.9.2 runtime if (gtk_check_version(3,9,2) == NULL) { gtk_container_propagate_draw( GTK_CONTAINER(PWidget(wMain)), PWidget(wText), cr); } #endif } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gboolean ScintillaGTK::DrawMain(GtkWidget *widget, cairo_t *cr) { ScintillaGTK *sciThis = FromWidget(widget); return sciThis->DrawThis(cr); } #else gboolean ScintillaGTK::ExposeTextThis(GtkWidget * /*widget*/, GdkEventExpose *ose) { try { paintState = painting; rcPaint.left = ose->area.x; rcPaint.top = ose->area.y; rcPaint.right = ose->area.x + ose->area.width; rcPaint.bottom = ose->area.y + ose->area.height; PLATFORM_ASSERT(rgnUpdate == NULL); rgnUpdate = gdk_region_copy(ose->region); PRectangle rcClient = GetClientRectangle(); paintingAllText = rcPaint.Contains(rcClient); Surface *surfaceWindow = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceWindow) { cairo_t *cr = gdk_cairo_create(PWindow(wText)); surfaceWindow->Init(cr, PWidget(wText)); Paint(surfaceWindow, rcPaint); surfaceWindow->Release(); delete surfaceWindow; cairo_destroy(cr); } if (paintState == paintAbandoned) { // Painting area was insufficient to cover new styling or brace highlight positions FullPaint(); } paintState = notPainting; if (rgnUpdate) { gdk_region_destroy(rgnUpdate); } rgnUpdate = 0; } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gboolean ScintillaGTK::ExposeText(GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis) { return sciThis->ExposeTextThis(widget, ose); } gboolean ScintillaGTK::ExposeMain(GtkWidget *widget, GdkEventExpose *ose) { ScintillaGTK *sciThis = FromWidget(widget); //Platform::DebugPrintf("Expose Main %0d,%0d %0d,%0d\n", //ose->area.x, ose->area.y, ose->area.width, ose->area.height); return sciThis->Expose(widget, ose); } gboolean ScintillaGTK::Expose(GtkWidget *, GdkEventExpose *ose) { try { //fprintf(stderr, "Expose %0d,%0d %0d,%0d\n", //ose->area.x, ose->area.y, ose->area.width, ose->area.height); // The text is painted in ExposeText gtk_container_propagate_expose( GTK_CONTAINER(PWidget(wMain)), PWidget(scrollbarh), ose); gtk_container_propagate_expose( GTK_CONTAINER(PWidget(wMain)), PWidget(scrollbarv), ose); } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } #endif void ScintillaGTK::ScrollSignal(GtkAdjustment *adj, ScintillaGTK *sciThis) { try { sciThis->ScrollTo(static_cast(gtk_adjustment_get_value(adj)), false); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::ScrollHSignal(GtkAdjustment *adj, ScintillaGTK *sciThis) { try { sciThis->HorizontalScrollTo(static_cast(gtk_adjustment_get_value(adj))); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::SelectionReceived(GtkWidget *widget, GtkSelectionData *selection_data, guint) { ScintillaGTK *sciThis = FromWidget(widget); //Platform::DebugPrintf("Selection received\n"); sciThis->ReceivedSelection(selection_data); } void ScintillaGTK::SelectionGet(GtkWidget *widget, GtkSelectionData *selection_data, guint info, guint) { ScintillaGTK *sciThis = FromWidget(widget); try { //Platform::DebugPrintf("Selection get\n"); if (SelectionOfGSD(selection_data) == GDK_SELECTION_PRIMARY) { if (sciThis->primary.Empty()) { sciThis->CopySelectionRange(&sciThis->primary); } sciThis->GetSelection(selection_data, info, &sciThis->primary); } } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } gint ScintillaGTK::SelectionClear(GtkWidget *widget, GdkEventSelection *selection_event) { ScintillaGTK *sciThis = FromWidget(widget); //Platform::DebugPrintf("Selection clear\n"); sciThis->UnclaimSelection(selection_event); if (GTK_WIDGET_CLASS(sciThis->parentClass)->selection_clear_event) { return GTK_WIDGET_CLASS(sciThis->parentClass)->selection_clear_event(widget, selection_event); } return TRUE; } gboolean ScintillaGTK::DragMotionThis(GdkDragContext *context, gint x, gint y, guint dragtime) { try { Point npt(x, y); SetDragPosition(SPositionFromLocation(npt, false, false, UserVirtualSpace())); #if GTK_CHECK_VERSION(2,22,0) GdkDragAction preferredAction = gdk_drag_context_get_suggested_action(context); GdkDragAction actions = gdk_drag_context_get_actions(context); #else GdkDragAction preferredAction = context->suggested_action; GdkDragAction actions = context->actions; #endif SelectionPosition pos = SPositionFromLocation(npt); if ((inDragDrop == ddDragging) && (PositionInSelection(pos.Position()))) { // Avoid dragging selection onto itself as that produces a move // with no real effect but which creates undo actions. preferredAction = static_cast(0); } else if (actions == static_cast (GDK_ACTION_COPY | GDK_ACTION_MOVE)) { preferredAction = GDK_ACTION_MOVE; } gdk_drag_status(context, preferredAction, dragtime); } catch (...) { errorStatus = SC_STATUS_FAILURE; } return FALSE; } gboolean ScintillaGTK::DragMotion(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint dragtime) { ScintillaGTK *sciThis = FromWidget(widget); return sciThis->DragMotionThis(context, x, y, dragtime); } void ScintillaGTK::DragLeave(GtkWidget *widget, GdkDragContext * /*context*/, guint) { ScintillaGTK *sciThis = FromWidget(widget); try { sciThis->SetDragPosition(SelectionPosition(invalidPosition)); //Platform::DebugPrintf("DragLeave %x\n", sciThis); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::DragEnd(GtkWidget *widget, GdkDragContext * /*context*/) { ScintillaGTK *sciThis = FromWidget(widget); try { // If drag did not result in drop here or elsewhere if (!sciThis->dragWasDropped) sciThis->SetEmptySelection(sciThis->posDrag); sciThis->SetDragPosition(SelectionPosition(invalidPosition)); //Platform::DebugPrintf("DragEnd %x %d\n", sciThis, sciThis->dragWasDropped); sciThis->inDragDrop = ddNone; } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } gboolean ScintillaGTK::Drop(GtkWidget *widget, GdkDragContext * /*context*/, gint, gint, guint) { ScintillaGTK *sciThis = FromWidget(widget); try { //Platform::DebugPrintf("Drop %x\n", sciThis); sciThis->SetDragPosition(SelectionPosition(invalidPosition)); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } return FALSE; } void ScintillaGTK::DragDataReceived(GtkWidget *widget, GdkDragContext * /*context*/, gint, gint, GtkSelectionData *selection_data, guint /*info*/, guint) { ScintillaGTK *sciThis = FromWidget(widget); try { sciThis->ReceivedDrop(selection_data); sciThis->SetDragPosition(SelectionPosition(invalidPosition)); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } void ScintillaGTK::DragDataGet(GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, guint) { ScintillaGTK *sciThis = FromWidget(widget); try { sciThis->dragWasDropped = true; if (!sciThis->sel.Empty()) { sciThis->GetSelection(selection_data, info, &sciThis->drag); } #if GTK_CHECK_VERSION(2,22,0) GdkDragAction action = gdk_drag_context_get_selected_action(context); #else GdkDragAction action = context->action; #endif if (action == GDK_ACTION_MOVE) { for (size_t r=0; rsel.Count(); r++) { if (sciThis->posDrop >= sciThis->sel.Range(r).Start()) { if (sciThis->posDrop > sciThis->sel.Range(r).End()) { sciThis->posDrop.Add(-sciThis->sel.Range(r).Length()); } else { sciThis->posDrop.Add(-SelectionRange(sciThis->posDrop, sciThis->sel.Range(r).Start()).Length()); } } } sciThis->ClearSelection(); } sciThis->SetDragPosition(SelectionPosition(invalidPosition)); } catch (...) { sciThis->errorStatus = SC_STATUS_FAILURE; } } int ScintillaGTK::TimeOut(gpointer ptt) { TimeThunk *tt = static_cast(ptt); tt->scintilla->TickFor(tt->reason); return 1; } gboolean ScintillaGTK::IdleCallback(gpointer pSci) { ScintillaGTK *sciThis = static_cast(pSci); // Idler will be automatically stopped, if there is nothing // to do while idle. bool ret = sciThis->Idle(); if (ret == false) { // FIXME: This will remove the idler from GTK, we don't want to // remove it as it is removed automatically when this function // returns false (although, it should be harmless). sciThis->SetIdle(false); } return ret; } gboolean ScintillaGTK::StyleIdle(gpointer pSci) { ScintillaGTK *sciThis = static_cast(pSci); sciThis->IdleWork(); // Idler will be automatically stopped return FALSE; } void ScintillaGTK::IdleWork() { Editor::IdleWork(); styleIdleID = 0; } void ScintillaGTK::QueueIdleWork(WorkNeeded::workItems items, int upTo) { Editor::QueueIdleWork(items, upTo); if (!styleIdleID) { // Only allow one style needed to be queued styleIdleID = gdk_threads_add_idle_full(G_PRIORITY_HIGH_IDLE, StyleIdle, this, NULL); } } void ScintillaGTK::SetDocPointer(Document *document) { Document *oldDoc = 0; ScintillaGTKAccessible *sciAccessible = 0; if (accessible) { sciAccessible = ScintillaGTKAccessible::FromAccessible(accessible); if (sciAccessible && pdoc) { oldDoc = pdoc; oldDoc->AddRef(); } } Editor::SetDocPointer(document); if (sciAccessible) { // the accessible needs have the old Document, but also the new one active sciAccessible->ChangeDocument(oldDoc, pdoc); } if (oldDoc) { oldDoc->Release(); } } void ScintillaGTK::PopUpCB(GtkMenuItem *menuItem, ScintillaGTK *sciThis) { guint action = GPOINTER_TO_UINT(g_object_get_data(G_OBJECT(menuItem), "CmdNum")); if (action) { sciThis->Command(action); } } gboolean ScintillaGTK::PressCT(GtkWidget *widget, GdkEventButton *event, ScintillaGTK *sciThis) { try { if (event->window != WindowFromWidget(widget)) return FALSE; if (event->type != GDK_BUTTON_PRESS) return FALSE; Point pt; pt.x = int(event->x); pt.y = int(event->y); sciThis->ct.MouseClick(pt); sciThis->CallTipClick(); } catch (...) { } return TRUE; } #if GTK_CHECK_VERSION(3,0,0) gboolean ScintillaGTK::DrawCT(GtkWidget *widget, cairo_t *cr, CallTip *ctip) { try { Surface *surfaceWindow = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceWindow) { surfaceWindow->Init(cr, widget); surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == ctip->codePage); surfaceWindow->SetDBCSMode(ctip->codePage); ctip->PaintCT(surfaceWindow); surfaceWindow->Release(); delete surfaceWindow; } } catch (...) { // No pointer back to Scintilla to save status } return TRUE; } #else gboolean ScintillaGTK::ExposeCT(GtkWidget *widget, GdkEventExpose * /*ose*/, CallTip *ctip) { try { Surface *surfaceWindow = Surface::Allocate(SC_TECHNOLOGY_DEFAULT); if (surfaceWindow) { cairo_t *cr = gdk_cairo_create(WindowFromWidget(widget)); surfaceWindow->Init(cr, widget); surfaceWindow->SetUnicodeMode(SC_CP_UTF8 == ctip->codePage); surfaceWindow->SetDBCSMode(ctip->codePage); ctip->PaintCT(surfaceWindow); surfaceWindow->Release(); delete surfaceWindow; cairo_destroy(cr); } } catch (...) { // No pointer back to Scintilla to save status } return TRUE; } #endif AtkObject* ScintillaGTK::GetAccessibleThis(GtkWidget *widget) { return ScintillaGTKAccessible::WidgetGetAccessibleImpl(widget, &accessible, scintilla_class_parent_class); } AtkObject* ScintillaGTK::GetAccessible(GtkWidget *widget) { return FromWidget(widget)->GetAccessibleThis(widget); } sptr_t ScintillaGTK::DirectFunction( sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return reinterpret_cast(ptr)->WndProc(iMessage, wParam, lParam); } /* legacy name for scintilla_object_send_message */ sptr_t scintilla_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) { ScintillaGTK *psci = static_cast(sci->pscin); return psci->WndProc(iMessage, wParam, lParam); } gintptr scintilla_object_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return scintilla_send_message(sci, iMessage, wParam, lParam); } static void scintilla_class_init(ScintillaClass *klass); static void scintilla_init(ScintillaObject *sci); extern void Platform_Initialise(); extern void Platform_Finalise(); /* legacy name for scintilla_object_get_type */ GType scintilla_get_type() { static GType scintilla_type = 0; try { if (!scintilla_type) { scintilla_type = g_type_from_name("ScintillaObject"); if (!scintilla_type) { static GTypeInfo scintilla_info = { (guint16) sizeof (ScintillaObjectClass), NULL, //(GBaseInitFunc) NULL, //(GBaseFinalizeFunc) (GClassInitFunc) scintilla_class_init, NULL, //(GClassFinalizeFunc) NULL, //gconstpointer data (guint16) sizeof (ScintillaObject), 0, //n_preallocs (GInstanceInitFunc) scintilla_init, NULL //(GTypeValueTable*) }; scintilla_type = g_type_register_static( GTK_TYPE_CONTAINER, "ScintillaObject", &scintilla_info, (GTypeFlags) 0); } } } catch (...) { } return scintilla_type; } GType scintilla_object_get_type() { return scintilla_get_type(); } void ScintillaGTK::ClassInit(OBJECT_CLASS* object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class) { Platform_Initialise(); #ifdef SCI_LEXER Scintilla_LinkLexers(); #endif atomClipboard = gdk_atom_intern("CLIPBOARD", FALSE); atomUTF8 = gdk_atom_intern("UTF8_STRING", FALSE); atomString = GDK_SELECTION_TYPE_STRING; atomUriList = gdk_atom_intern("text/uri-list", FALSE); atomDROPFILES_DND = gdk_atom_intern("DROPFILES_DND", FALSE); // Define default signal handlers for the class: Could move more // of the signal handlers here (those that currently attached to wDraw // in Initialise() may require coordinate translation?) object_class->dispose = Dispose; object_class->finalize = Destroy; #if GTK_CHECK_VERSION(3,0,0) widget_class->get_preferred_width = GetPreferredWidth; widget_class->get_preferred_height = GetPreferredHeight; #else widget_class->size_request = SizeRequest; #endif widget_class->size_allocate = SizeAllocate; #if GTK_CHECK_VERSION(3,0,0) widget_class->draw = DrawMain; #else widget_class->expose_event = ExposeMain; #endif widget_class->motion_notify_event = Motion; widget_class->button_press_event = Press; widget_class->button_release_event = MouseRelease; widget_class->scroll_event = ScrollEvent; widget_class->key_press_event = KeyPress; widget_class->key_release_event = KeyRelease; widget_class->focus_in_event = FocusIn; widget_class->focus_out_event = FocusOut; widget_class->selection_received = SelectionReceived; widget_class->selection_get = SelectionGet; widget_class->selection_clear_event = SelectionClear; widget_class->drag_data_received = DragDataReceived; widget_class->drag_motion = DragMotion; widget_class->drag_leave = DragLeave; widget_class->drag_end = DragEnd; widget_class->drag_drop = Drop; widget_class->drag_data_get = DragDataGet; widget_class->realize = Realize; widget_class->unrealize = UnRealize; widget_class->map = Map; widget_class->unmap = UnMap; widget_class->get_accessible = GetAccessible; container_class->forall = MainForAll; } static void scintilla_class_init(ScintillaClass *klass) { try { OBJECT_CLASS *object_class = (OBJECT_CLASS*) klass; GtkWidgetClass *widget_class = (GtkWidgetClass*) klass; GtkContainerClass *container_class = (GtkContainerClass*) klass; GSignalFlags sigflags = GSignalFlags(G_SIGNAL_ACTION | G_SIGNAL_RUN_LAST); scintilla_signals[COMMAND_SIGNAL] = g_signal_new( "command", G_TYPE_FROM_CLASS(object_class), sigflags, G_STRUCT_OFFSET(ScintillaClass, command), NULL, //(GSignalAccumulator) NULL, //(gpointer) scintilla_marshal_VOID__INT_OBJECT, G_TYPE_NONE, 2, G_TYPE_INT, GTK_TYPE_WIDGET); scintilla_signals[NOTIFY_SIGNAL] = g_signal_new( SCINTILLA_NOTIFY, G_TYPE_FROM_CLASS(object_class), sigflags, G_STRUCT_OFFSET(ScintillaClass, notify), NULL, //(GSignalAccumulator) NULL, //(gpointer) scintilla_marshal_VOID__INT_BOXED, G_TYPE_NONE, 2, G_TYPE_INT, SCINTILLA_TYPE_NOTIFICATION); klass->command = NULL; klass->notify = NULL; scintilla_class_parent_class = G_OBJECT_CLASS(g_type_class_peek_parent(klass)); ScintillaGTK::ClassInit(object_class, widget_class, container_class); } catch (...) { } } static void scintilla_init(ScintillaObject *sci) { try { gtk_widget_set_can_focus(GTK_WIDGET(sci), TRUE); sci->pscin = new ScintillaGTK(sci); } catch (...) { } } /* legacy name for scintilla_object_new */ GtkWidget* scintilla_new() { GtkWidget *widget = GTK_WIDGET(g_object_new(scintilla_get_type(), NULL)); gtk_widget_set_direction(widget, GTK_TEXT_DIR_LTR); return widget; } GtkWidget *scintilla_object_new() { return scintilla_new(); } void scintilla_set_id(ScintillaObject *sci, uptr_t id) { ScintillaGTK *psci = static_cast(sci->pscin); psci->ctrlID = id; } void scintilla_release_resources(void) { try { Platform_Finalise(); } catch (...) { } } /* Define a dummy boxed type because g-ir-scanner is unable to * recognize gpointer-derived types. Note that SCNotificaiton * is always allocated on stack so copying is not appropriate. */ static void *copy_(void *src) { return src; } static void free_(void *) { } GType scnotification_get_type(void) { static gsize type_id = 0; if (g_once_init_enter(&type_id)) { gsize id = (gsize) g_boxed_type_register_static( g_intern_static_string("SCNotification"), (GBoxedCopyFunc) copy_, (GBoxedFreeFunc) free_); g_once_init_leave(&type_id, id); } return (GType) type_id; } codequery-0.21.0/scintilla/gtk/ScintillaGTK.h000066400000000000000000000250121310136352400210000ustar00rootroot00000000000000// Scintilla source code edit control // ScintillaGTK.h - GTK+ specific subclass of ScintillaBase // Copyright 1998-2004 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef SCINTILLAGTK_H #define SCINTILLAGTK_H #ifdef SCI_NAMESPACE namespace Scintilla { #endif class ScintillaGTKAccessible; #define OBJECT_CLASS GObjectClass class ScintillaGTK : public ScintillaBase { friend class ScintillaGTKAccessible; _ScintillaObject *sci; Window wText; Window scrollbarv; Window scrollbarh; GtkAdjustment *adjustmentv; GtkAdjustment *adjustmenth; int verticalScrollBarWidth; int horizontalScrollBarHeight; SelectionText primary; GdkEventButton *evbtn; bool capturedMouse; bool dragWasDropped; int lastKey; int rectangularSelectionModifier; GtkWidgetClass *parentClass; static GdkAtom atomClipboard; static GdkAtom atomUTF8; static GdkAtom atomString; static GdkAtom atomUriList; static GdkAtom atomDROPFILES_DND; GdkAtom atomSought; #if PLAT_GTK_WIN32 CLIPFORMAT cfColumnSelect; #endif Window wPreedit; Window wPreeditDraw; GtkIMContext *im_context; PangoScript lastNonCommonScript; // Wheel mouse support unsigned int linesPerScroll; GTimeVal lastWheelMouseTime; gint lastWheelMouseDirection; gint wheelMouseIntensity; gdouble smoothScrollY; gdouble smoothScrollX; #if GTK_CHECK_VERSION(3,0,0) cairo_rectangle_list_t *rgnUpdate; #else GdkRegion *rgnUpdate; #endif bool repaintFullWindow; guint styleIdleID; int accessibilityEnabled; AtkObject *accessible; // Private so ScintillaGTK objects can not be copied ScintillaGTK(const ScintillaGTK &); ScintillaGTK &operator=(const ScintillaGTK &); public: explicit ScintillaGTK(_ScintillaObject *sci_); virtual ~ScintillaGTK(); static ScintillaGTK *FromWidget(GtkWidget *widget); static void ClassInit(OBJECT_CLASS* object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class); private: virtual void Initialise(); virtual void Finalise(); virtual bool AbandonPaint(); virtual void DisplayCursor(Window::Cursor c); virtual bool DragThreshold(Point ptStart, Point ptNow); virtual void StartDrag(); int TargetAsUTF8(char *text); int EncodedFromUTF8(char *utf8, char *encoded) const; virtual bool ValidCodePage(int codePage) const; public: // Public for scintilla_send_message virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); private: virtual sptr_t DefWndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam); struct TimeThunk { TickReason reason; ScintillaGTK *scintilla; guint timer; TimeThunk() : reason(tickCaret), scintilla(NULL), timer(0) {} }; TimeThunk timers[tickDwell+1]; virtual bool FineTickerAvailable(); virtual bool FineTickerRunning(TickReason reason); virtual void FineTickerStart(TickReason reason, int millis, int tolerance); virtual void FineTickerCancel(TickReason reason); virtual bool SetIdle(bool on); virtual void SetMouseCapture(bool on); virtual bool HaveMouseCapture(); virtual bool PaintContains(PRectangle rc); void FullPaint(); virtual PRectangle GetClientRectangle() const; virtual void ScrollText(int linesToMove); virtual void SetVerticalScrollPos(); virtual void SetHorizontalScrollPos(); virtual bool ModifyScrollBars(int nMax, int nPage); void ReconfigureScrollBars(); virtual void NotifyChange(); virtual void NotifyFocus(bool focus); virtual void NotifyParent(SCNotification scn); void NotifyKey(int key, int modifiers); void NotifyURIDropped(const char *list); const char *CharacterSetID() const; virtual CaseFolder *CaseFolderForEncoding(); virtual std::string CaseMapString(const std::string &s, int caseMapping); virtual int KeyDefault(int key, int modifiers); virtual void CopyToClipboard(const SelectionText &selectedText); virtual void Copy(); virtual void Paste(); virtual void CreateCallTipWindow(PRectangle rc); virtual void AddToPopUp(const char *label, int cmd = 0, bool enabled = true); bool OwnPrimarySelection(); virtual void ClaimSelection(); void GetGtkSelectionText(GtkSelectionData *selectionData, SelectionText &selText); void ReceivedSelection(GtkSelectionData *selection_data); void ReceivedDrop(GtkSelectionData *selection_data); static void GetSelection(GtkSelectionData *selection_data, guint info, SelectionText *selected); void StoreOnClipboard(SelectionText *clipText); static void ClipboardGetSelection(GtkClipboard* clip, GtkSelectionData *selection_data, guint info, void *data); static void ClipboardClearSelection(GtkClipboard* clip, void *data); void UnclaimSelection(GdkEventSelection *selection_event); void Resize(int width, int height); // Callback functions void RealizeThis(GtkWidget *widget); static void Realize(GtkWidget *widget); void UnRealizeThis(GtkWidget *widget); static void UnRealize(GtkWidget *widget); void MapThis(); static void Map(GtkWidget *widget); void UnMapThis(); static void UnMap(GtkWidget *widget); gint FocusInThis(GtkWidget *widget); static gint FocusIn(GtkWidget *widget, GdkEventFocus *event); gint FocusOutThis(GtkWidget *widget); static gint FocusOut(GtkWidget *widget, GdkEventFocus *event); static void SizeRequest(GtkWidget *widget, GtkRequisition *requisition); #if GTK_CHECK_VERSION(3,0,0) static void GetPreferredWidth(GtkWidget *widget, gint *minimalWidth, gint *naturalWidth); static void GetPreferredHeight(GtkWidget *widget, gint *minimalHeight, gint *naturalHeight); #endif static void SizeAllocate(GtkWidget *widget, GtkAllocation *allocation); #if GTK_CHECK_VERSION(3,0,0) gboolean DrawTextThis(cairo_t *cr); static gboolean DrawText(GtkWidget *widget, cairo_t *cr, ScintillaGTK *sciThis); gboolean DrawThis(cairo_t *cr); static gboolean DrawMain(GtkWidget *widget, cairo_t *cr); #else gboolean ExposeTextThis(GtkWidget *widget, GdkEventExpose *ose); static gboolean ExposeText(GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis); gboolean Expose(GtkWidget *widget, GdkEventExpose *ose); static gboolean ExposeMain(GtkWidget *widget, GdkEventExpose *ose); #endif void ForAll(GtkCallback callback, gpointer callback_data); static void MainForAll(GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data); static void ScrollSignal(GtkAdjustment *adj, ScintillaGTK *sciThis); static void ScrollHSignal(GtkAdjustment *adj, ScintillaGTK *sciThis); gint PressThis(GdkEventButton *event); static gint Press(GtkWidget *widget, GdkEventButton *event); static gint MouseRelease(GtkWidget *widget, GdkEventButton *event); static gint ScrollEvent(GtkWidget *widget, GdkEventScroll *event); static gint Motion(GtkWidget *widget, GdkEventMotion *event); gboolean KeyThis(GdkEventKey *event); static gboolean KeyPress(GtkWidget *widget, GdkEventKey *event); static gboolean KeyRelease(GtkWidget *widget, GdkEventKey *event); #if GTK_CHECK_VERSION(3,0,0) gboolean DrawPreeditThis(GtkWidget *widget, cairo_t *cr); static gboolean DrawPreedit(GtkWidget *widget, cairo_t *cr, ScintillaGTK *sciThis); #else gboolean ExposePreeditThis(GtkWidget *widget, GdkEventExpose *ose); static gboolean ExposePreedit(GtkWidget *widget, GdkEventExpose *ose, ScintillaGTK *sciThis); #endif AtkObject* GetAccessibleThis(GtkWidget *widget); static AtkObject* GetAccessible(GtkWidget *widget); bool KoreanIME(); void CommitThis(char *str); static void Commit(GtkIMContext *context, char *str, ScintillaGTK *sciThis); void PreeditChangedInlineThis(); void PreeditChangedWindowedThis(); static void PreeditChanged(GtkIMContext *context, ScintillaGTK *sciThis); void MoveImeCarets(int pos); void DrawImeIndicator(int indicator, int len); void SetCandidateWindowPos(); static void StyleSetText(GtkWidget *widget, GtkStyle *previous, void*); static void RealizeText(GtkWidget *widget, void*); static void Dispose(GObject *object); static void Destroy(GObject *object); static void SelectionReceived(GtkWidget *widget, GtkSelectionData *selection_data, guint time); static void SelectionGet(GtkWidget *widget, GtkSelectionData *selection_data, guint info, guint time); static gint SelectionClear(GtkWidget *widget, GdkEventSelection *selection_event); gboolean DragMotionThis(GdkDragContext *context, gint x, gint y, guint dragtime); static gboolean DragMotion(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint dragtime); static void DragLeave(GtkWidget *widget, GdkDragContext *context, guint time); static void DragEnd(GtkWidget *widget, GdkDragContext *context); static gboolean Drop(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time); static void DragDataReceived(GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint info, guint time); static void DragDataGet(GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, guint time); static gboolean TimeOut(gpointer ptt); static gboolean IdleCallback(gpointer pSci); static gboolean StyleIdle(gpointer pSci); virtual void IdleWork(); virtual void QueueIdleWork(WorkNeeded::workItems items, int upTo); virtual void SetDocPointer(Document *document); static void PopUpCB(GtkMenuItem *menuItem, ScintillaGTK *sciThis); #if GTK_CHECK_VERSION(3,0,0) static gboolean DrawCT(GtkWidget *widget, cairo_t *cr, CallTip *ctip); #else static gboolean ExposeCT(GtkWidget *widget, GdkEventExpose *ose, CallTip *ct); #endif static gboolean PressCT(GtkWidget *widget, GdkEventButton *event, ScintillaGTK *sciThis); static sptr_t DirectFunction(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); }; // helper class to watch a GObject lifetime and get notified when it dies class GObjectWatcher { GObject *weakRef; void WeakNotifyThis(GObject *obj G_GNUC_UNUSED) { PLATFORM_ASSERT(obj == weakRef); Destroyed(); weakRef = 0; } static void WeakNotify(gpointer data, GObject *obj) { static_cast(data)->WeakNotifyThis(obj); } public: GObjectWatcher(GObject *obj) : weakRef(obj) { g_object_weak_ref(weakRef, WeakNotify, this); } virtual ~GObjectWatcher() { if (weakRef) { g_object_weak_unref(weakRef, WeakNotify, this); } } virtual void Destroyed() {} bool IsDestroyed() const { return weakRef != 0; } }; std::string ConvertText(const char *s, size_t len, const char *charSetDest, const char *charSetSource, bool transliterations, bool silent=false); #ifdef SCI_NAMESPACE } #endif #endif codequery-0.21.0/scintilla/gtk/ScintillaGTKAccessible.cxx000066400000000000000000001315051310136352400233360ustar00rootroot00000000000000/* Scintilla source code edit control */ /* ScintillaGTKAccessible.c - GTK+ accessibility for ScintillaGTK */ /* Copyright 2016 by Colomban Wendling * The License.txt file describes the conditions under which this software may be distributed. */ // REFERENCES BETWEEN THE DIFFERENT OBJECTS // // ScintillaGTKAccessible is the actual implementation, as a C++ class. // ScintillaObjectAccessible is the GObject derived from AtkObject that // implements the various ATK interfaces, through ScintillaGTKAccessible. // This follows the same pattern as ScintillaGTK and ScintillaObject. // // ScintillaGTK owns a strong reference to the ScintillaObjectAccessible, and // is both responsible for creating and destroying that object. // // ScintillaObjectAccessible owns a strong reference to ScintillaGTKAccessible, // and is responsible for creating and destroying that object. // // ScintillaGTKAccessible has weak references to both the ScintillaGTK and // the ScintillaObjectAccessible objects associated, but does not own any // strong references to those objects. // // The chain of ownership is as follows: // ScintillaGTK -> ScintillaObjectAccessible -> ScintillaGTKAccessible // DETAILS ON THE GOBJECT TYPE IMPLEMENTATION // // On GTK < 3.2, we need to use the AtkObjectFactory. We need to query // the factory to see what type we should derive from, thus making use of // dynamic inheritance. It's tricky, but it works so long as it's done // carefully enough. // // On GTK 3.2 through 3.6, we need to hack around because GTK stopped // registering its accessible types in the factory, so we can't query // them that way. Unfortunately, the accessible types aren't exposed // yet (not until 3.8), so there's no proper way to know which type to // inherit from. To work around this, we instantiate the parent's // AtkObject temporarily, and use it's type. It means creating an extra // throwaway object and being able to pass the type information up to the // type registration code, but it's the only solution I could find. // // On GTK 3.8 onward, we use the proper exposed GtkContainerAccessible as // parent, and so a straightforward class. // // To hide and contain the complexity in type creation arising from the // hackish support for GTK 3.2 to 3.8, the actual implementation for the // widget's get_accessible() is located in the accessibility layer itself. // Initially based on GtkTextViewAccessible from GTK 3.20 // Inspiration for the GTK < 3.2 part comes from Evince 2.24, thanks. // FIXME: optimize character/byte offset conversion (with a cache?) #include #include #include #include #include #include #include #include #include #include #include // whether we have widget_set() and widget_unset() #define HAVE_WIDGET_SET_UNSET (GTK_CHECK_VERSION(3, 3, 6)) // whether GTK accessibility is available through the ATK factory #define HAVE_GTK_FACTORY (! GTK_CHECK_VERSION(3, 1, 9)) // whether we have gtk-a11y.h and the public GTK accessible types #define HAVE_GTK_A11Y_H (GTK_CHECK_VERSION(3, 7, 6)) #if HAVE_GTK_A11Y_H # include #endif #if defined(__WIN32__) || defined(_MSC_VER) #include #endif // ScintillaGTK.h and stuff it needs #include "Platform.h" #include "ILexer.h" #include "Scintilla.h" #include "ScintillaWidget.h" #ifdef SCI_LEXER #include "SciLexer.h" #endif #include "StringCopy.h" #ifdef SCI_LEXER #include "LexerModule.h" #endif #include "Position.h" #include "SplitVector.h" #include "Partitioning.h" #include "RunStyles.h" #include "ContractionState.h" #include "CellBuffer.h" #include "CallTip.h" #include "KeyMap.h" #include "Indicator.h" #include "XPM.h" #include "LineMarker.h" #include "Style.h" #include "ViewStyle.h" #include "CharClassify.h" #include "Decoration.h" #include "CaseFolder.h" #include "Document.h" #include "CaseConvert.h" #include "UniConversion.h" #include "UnicodeFromUTF8.h" #include "Selection.h" #include "PositionCache.h" #include "EditModel.h" #include "MarginView.h" #include "EditView.h" #include "Editor.h" #include "AutoComplete.h" #include "ScintillaBase.h" #include "ScintillaGTK.h" #include "ScintillaGTKAccessible.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif struct ScintillaObjectAccessiblePrivate { ScintillaGTKAccessible *pscin; }; typedef GtkAccessible ScintillaObjectAccessible; typedef GtkAccessibleClass ScintillaObjectAccessibleClass; #define SCINTILLA_OBJECT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SCINTILLA_TYPE_OBJECT_ACCESSIBLE, ScintillaObjectAccessible)) #define SCINTILLA_TYPE_OBJECT_ACCESSIBLE (scintilla_object_accessible_get_type(0)) // We can't use priv member because of dynamic inheritance, so we don't actually know the offset. Meh. #define SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(inst) (G_TYPE_INSTANCE_GET_PRIVATE((inst), SCINTILLA_TYPE_OBJECT_ACCESSIBLE, ScintillaObjectAccessiblePrivate)) static GType scintilla_object_accessible_get_type(GType parent_type); ScintillaGTKAccessible *ScintillaGTKAccessible::FromAccessible(GtkAccessible *accessible) { // FIXME: do we need the check below? GTK checks that in all methods, so maybe GtkWidget *widget = gtk_accessible_get_widget(accessible); if (! widget) { return 0; } return SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(accessible)->pscin; } ScintillaGTKAccessible::ScintillaGTKAccessible(GtkAccessible *accessible_, GtkWidget *widget_) : accessible(accessible_), sci(ScintillaGTK::FromWidget(widget_)), deletionLengthChar(0), old_pos(-1) { g_signal_connect(widget_, "sci-notify", G_CALLBACK(SciNotify), this); } ScintillaGTKAccessible::~ScintillaGTKAccessible() { if (gtk_accessible_get_widget(accessible)) { g_signal_handlers_disconnect_matched(sci->sci, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, this); } } gchar *ScintillaGTKAccessible::GetTextRangeUTF8(Position startByte, Position endByte) { g_return_val_if_fail(startByte >= 0, NULL); // FIXME: should we swap start/end if necessary? g_return_val_if_fail(endByte >= startByte, NULL); gchar *utf8Text = NULL; const char *charSetBuffer; // like TargetAsUTF8, but avoids a double conversion if (sci->IsUnicodeMode() || ! *(charSetBuffer = sci->CharacterSetID())) { int len = endByte - startByte; utf8Text = (char *) g_malloc(len + 1); sci->pdoc->GetCharRange(utf8Text, startByte, len); utf8Text[len] = '\0'; } else { // Need to convert std::string s = sci->RangeText(startByte, endByte); std::string tmputf = ConvertText(&s[0], s.length(), "UTF-8", charSetBuffer, false); size_t len = tmputf.length(); utf8Text = (char *) g_malloc(len + 1); memcpy(utf8Text, tmputf.c_str(), len); utf8Text[len] = '\0'; } return utf8Text; } gchar *ScintillaGTKAccessible::GetText(int startChar, int endChar) { Position startByte, endByte; if (endChar == -1) { startByte = ByteOffsetFromCharacterOffset(startChar); endByte = sci->pdoc->Length(); } else { ByteRangeFromCharacterRange(startChar, endChar, startByte, endByte); } return GetTextRangeUTF8(startByte, endByte); } gchar *ScintillaGTKAccessible::GetTextAfterOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar) { g_return_val_if_fail(charOffset >= 0, NULL); Position startByte, endByte; Position byteOffset = ByteOffsetFromCharacterOffset(charOffset); switch (boundaryType) { case ATK_TEXT_BOUNDARY_CHAR: startByte = PositionAfter(byteOffset); endByte = PositionAfter(startByte); // FIXME: optimize conversion back, as we can reasonably assume +1 char? break; case ATK_TEXT_BOUNDARY_WORD_START: startByte = sci->WndProc(SCI_WORDENDPOSITION, byteOffset, 1); startByte = sci->WndProc(SCI_WORDENDPOSITION, startByte, 0); endByte = sci->WndProc(SCI_WORDENDPOSITION, startByte, 1); endByte = sci->WndProc(SCI_WORDENDPOSITION, endByte, 0); break; case ATK_TEXT_BOUNDARY_WORD_END: startByte = sci->WndProc(SCI_WORDENDPOSITION, byteOffset, 0); startByte = sci->WndProc(SCI_WORDENDPOSITION, startByte, 1); endByte = sci->WndProc(SCI_WORDENDPOSITION, startByte, 0); endByte = sci->WndProc(SCI_WORDENDPOSITION, endByte, 1); break; case ATK_TEXT_BOUNDARY_LINE_START: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); startByte = sci->WndProc(SCI_POSITIONFROMLINE, line + 1, 0); endByte = sci->WndProc(SCI_POSITIONFROMLINE, line + 2, 0); break; } case ATK_TEXT_BOUNDARY_LINE_END: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); startByte = sci->WndProc(SCI_GETLINEENDPOSITION, line, 0); endByte = sci->WndProc(SCI_GETLINEENDPOSITION, line + 1, 0); break; } default: *startChar = *endChar = -1; return NULL; } CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetTextRangeUTF8(startByte, endByte); } gchar *ScintillaGTKAccessible::GetTextBeforeOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar) { g_return_val_if_fail(charOffset >= 0, NULL); Position startByte, endByte; Position byteOffset = ByteOffsetFromCharacterOffset(charOffset); switch (boundaryType) { case ATK_TEXT_BOUNDARY_CHAR: endByte = PositionBefore(byteOffset); startByte = PositionBefore(endByte); break; case ATK_TEXT_BOUNDARY_WORD_START: endByte = sci->WndProc(SCI_WORDSTARTPOSITION, byteOffset, 0); endByte = sci->WndProc(SCI_WORDSTARTPOSITION, endByte, 1); startByte = sci->WndProc(SCI_WORDSTARTPOSITION, endByte, 0); startByte = sci->WndProc(SCI_WORDSTARTPOSITION, startByte, 1); break; case ATK_TEXT_BOUNDARY_WORD_END: endByte = sci->WndProc(SCI_WORDSTARTPOSITION, byteOffset, 1); endByte = sci->WndProc(SCI_WORDSTARTPOSITION, endByte, 0); startByte = sci->WndProc(SCI_WORDSTARTPOSITION, endByte, 1); startByte = sci->WndProc(SCI_WORDSTARTPOSITION, startByte, 0); break; case ATK_TEXT_BOUNDARY_LINE_START: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); endByte = sci->WndProc(SCI_POSITIONFROMLINE, line, 0); if (line > 0) { startByte = sci->WndProc(SCI_POSITIONFROMLINE, line - 1, 0); } else { startByte = endByte; } break; } case ATK_TEXT_BOUNDARY_LINE_END: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); if (line > 0) { endByte = sci->WndProc(SCI_GETLINEENDPOSITION, line - 1, 0); } else { endByte = 0; } if (line > 1) { startByte = sci->WndProc(SCI_GETLINEENDPOSITION, line - 2, 0); } else { startByte = endByte; } break; } default: *startChar = *endChar = -1; return NULL; } CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetTextRangeUTF8(startByte, endByte); } gchar *ScintillaGTKAccessible::GetTextAtOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar) { g_return_val_if_fail(charOffset >= 0, NULL); Position startByte, endByte; Position byteOffset = ByteOffsetFromCharacterOffset(charOffset); switch (boundaryType) { case ATK_TEXT_BOUNDARY_CHAR: startByte = byteOffset; endByte = sci->WndProc(SCI_POSITIONAFTER, byteOffset, 0); break; case ATK_TEXT_BOUNDARY_WORD_START: startByte = sci->WndProc(SCI_WORDSTARTPOSITION, byteOffset, 1); endByte = sci->WndProc(SCI_WORDENDPOSITION, byteOffset, 1); if (! sci->WndProc(SCI_ISRANGEWORD, startByte, endByte)) { // if the cursor was not on a word, forward back startByte = sci->WndProc(SCI_WORDSTARTPOSITION, startByte, 0); startByte = sci->WndProc(SCI_WORDSTARTPOSITION, startByte, 1); } endByte = sci->WndProc(SCI_WORDENDPOSITION, endByte, 0); break; case ATK_TEXT_BOUNDARY_WORD_END: startByte = sci->WndProc(SCI_WORDSTARTPOSITION, byteOffset, 1); endByte = sci->WndProc(SCI_WORDENDPOSITION, byteOffset, 1); if (! sci->WndProc(SCI_ISRANGEWORD, startByte, endByte)) { // if the cursor was not on a word, forward back endByte = sci->WndProc(SCI_WORDENDPOSITION, endByte, 0); endByte = sci->WndProc(SCI_WORDENDPOSITION, endByte, 1); } startByte = sci->WndProc(SCI_WORDSTARTPOSITION, startByte, 0); break; case ATK_TEXT_BOUNDARY_LINE_START: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); startByte = sci->WndProc(SCI_POSITIONFROMLINE, line, 0); endByte = sci->WndProc(SCI_POSITIONFROMLINE, line + 1, 0); break; } case ATK_TEXT_BOUNDARY_LINE_END: { int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); if (line > 0) { startByte = sci->WndProc(SCI_GETLINEENDPOSITION, line - 1, 0); } else { startByte = 0; } endByte = sci->WndProc(SCI_GETLINEENDPOSITION, line, 0); break; } default: *startChar = *endChar = -1; return NULL; } CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetTextRangeUTF8(startByte, endByte); } #if ATK_CHECK_VERSION(2, 10, 0) gchar *ScintillaGTKAccessible::GetStringAtOffset(int charOffset, AtkTextGranularity granularity, int *startChar, int *endChar) { g_return_val_if_fail(charOffset >= 0, NULL); Position startByte, endByte; Position byteOffset = ByteOffsetFromCharacterOffset(charOffset); switch (granularity) { case ATK_TEXT_GRANULARITY_CHAR: startByte = byteOffset; endByte = sci->WndProc(SCI_POSITIONAFTER, byteOffset, 0); break; case ATK_TEXT_GRANULARITY_WORD: startByte = sci->WndProc(SCI_WORDSTARTPOSITION, byteOffset, 1); endByte = sci->WndProc(SCI_WORDENDPOSITION, byteOffset, 1); break; case ATK_TEXT_GRANULARITY_LINE: { gint line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); startByte = sci->WndProc(SCI_POSITIONFROMLINE, line, 0); endByte = sci->WndProc(SCI_GETLINEENDPOSITION, line, 0); break; } default: *startChar = *endChar = -1; return NULL; } CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetTextRangeUTF8(startByte, endByte); } #endif gunichar ScintillaGTKAccessible::GetCharacterAtOffset(int charOffset) { g_return_val_if_fail(charOffset >= 0, 0); Position startByte = ByteOffsetFromCharacterOffset(charOffset); Position endByte = PositionAfter(startByte); gchar *ch = GetTextRangeUTF8(startByte, endByte); gunichar unichar = g_utf8_get_char_validated(ch, -1); g_free(ch); return unichar; } gint ScintillaGTKAccessible::GetCharacterCount() { return sci->pdoc->CountCharacters(0, sci->pdoc->Length()); } gint ScintillaGTKAccessible::GetCaretOffset() { return CharacterOffsetFromByteOffset(sci->WndProc(SCI_GETCURRENTPOS, 0, 0)); } gboolean ScintillaGTKAccessible::SetCaretOffset(int charOffset) { sci->WndProc(SCI_GOTOPOS, ByteOffsetFromCharacterOffset(charOffset), 0); return TRUE; } gint ScintillaGTKAccessible::GetOffsetAtPoint(gint x, gint y, AtkCoordType coords) { gint x_widget, y_widget, x_window, y_window; GtkWidget *widget = gtk_accessible_get_widget(accessible); GdkWindow *window = gtk_widget_get_window(widget); gdk_window_get_origin(window, &x_widget, &y_widget); if (coords == ATK_XY_SCREEN) { x = x - x_widget; y = y - y_widget; } else if (coords == ATK_XY_WINDOW) { window = gdk_window_get_toplevel(window); gdk_window_get_origin(window, &x_window, &y_window); x = x - x_widget + x_window; y = y - y_widget + y_window; } else { return -1; } // FIXME: should we handle scrolling? return CharacterOffsetFromByteOffset(sci->WndProc(SCI_CHARPOSITIONFROMPOINTCLOSE, x, y)); } void ScintillaGTKAccessible::GetCharacterExtents(int charOffset, gint *x, gint *y, gint *width, gint *height, AtkCoordType coords) { *x = *y = *height = *width = 0; Position byteOffset = ByteOffsetFromCharacterOffset(charOffset); // FIXME: should we handle scrolling? *x = sci->WndProc(SCI_POINTXFROMPOSITION, 0, byteOffset); *y = sci->WndProc(SCI_POINTYFROMPOSITION, 0, byteOffset); int line = sci->WndProc(SCI_LINEFROMPOSITION, byteOffset, 0); *height = sci->WndProc(SCI_TEXTHEIGHT, line, 0); int nextByteOffset = PositionAfter(byteOffset); int next_x = sci->WndProc(SCI_POINTXFROMPOSITION, 0, nextByteOffset); if (next_x > *x) { *width = next_x - *x; } else if (nextByteOffset > byteOffset) { /* maybe next position was on the next line or something. * just compute the expected character width */ int style = StyleAt(byteOffset, true); int len = nextByteOffset - byteOffset; char *ch = new char[len + 1]; sci->pdoc->GetCharRange(ch, byteOffset, len); ch[len] = '\0'; *width = sci->TextWidth(style, ch); delete[] ch; } GtkWidget *widget = gtk_accessible_get_widget(accessible); GdkWindow *window = gtk_widget_get_window(widget); int x_widget, y_widget; gdk_window_get_origin(window, &x_widget, &y_widget); if (coords == ATK_XY_SCREEN) { *x += x_widget; *y += y_widget; } else if (coords == ATK_XY_WINDOW) { window = gdk_window_get_toplevel(window); int x_window, y_window; gdk_window_get_origin(window, &x_window, &y_window); *x += x_widget - x_window; *y += y_widget - y_window; } else { *x = *y = *height = *width = 0; } } static AtkAttributeSet *AddTextAttribute(AtkAttributeSet *attributes, AtkTextAttribute attr, gchar *value) { AtkAttribute *at = g_new(AtkAttribute, 1); at->name = g_strdup(atk_text_attribute_get_name(attr)); at->value = value; return g_slist_prepend(attributes, at); } static AtkAttributeSet *AddTextIntAttribute(AtkAttributeSet *attributes, AtkTextAttribute attr, gint i) { return AddTextAttribute(attributes, attr, g_strdup(atk_text_attribute_get_value(attr, i))); } static AtkAttributeSet *AddTextColorAttribute(AtkAttributeSet *attributes, AtkTextAttribute attr, const ColourDesired &colour) { return AddTextAttribute(attributes, attr, g_strdup_printf("%u,%u,%u", colour.GetRed() * 257, colour.GetGreen() * 257, colour.GetBlue() * 257)); } AtkAttributeSet *ScintillaGTKAccessible::GetAttributesForStyle(unsigned int styleNum) { AtkAttributeSet *attr_set = NULL; if (styleNum >= sci->vs.styles.size()) return NULL; Style &style = sci->vs.styles[styleNum]; attr_set = AddTextAttribute(attr_set, ATK_TEXT_ATTR_FAMILY_NAME, g_strdup(style.fontName)); attr_set = AddTextAttribute(attr_set, ATK_TEXT_ATTR_SIZE, g_strdup_printf("%d", style.size / SC_FONT_SIZE_MULTIPLIER)); attr_set = AddTextIntAttribute(attr_set, ATK_TEXT_ATTR_WEIGHT, CLAMP(style.weight, 100, 1000)); attr_set = AddTextIntAttribute(attr_set, ATK_TEXT_ATTR_STYLE, style.italic ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL); attr_set = AddTextIntAttribute(attr_set, ATK_TEXT_ATTR_UNDERLINE, style.underline ? PANGO_UNDERLINE_SINGLE : PANGO_UNDERLINE_NONE); attr_set = AddTextColorAttribute(attr_set, ATK_TEXT_ATTR_FG_COLOR, style.fore); attr_set = AddTextColorAttribute(attr_set, ATK_TEXT_ATTR_BG_COLOR, style.back); attr_set = AddTextIntAttribute(attr_set, ATK_TEXT_ATTR_INVISIBLE, style.visible ? 0 : 1); attr_set = AddTextIntAttribute(attr_set, ATK_TEXT_ATTR_EDITABLE, style.changeable ? 1 : 0); return attr_set; } AtkAttributeSet *ScintillaGTKAccessible::GetRunAttributes(int charOffset, int *startChar, int *endChar) { g_return_val_if_fail(charOffset >= -1, NULL); Position byteOffset; if (charOffset == -1) { byteOffset = sci->WndProc(SCI_GETCURRENTPOS, 0, 0); } else { byteOffset = ByteOffsetFromCharacterOffset(charOffset); } int length = sci->pdoc->Length(); g_return_val_if_fail(byteOffset <= length, NULL); const char style = StyleAt(byteOffset, true); // compute the range for this style Position startByte = byteOffset; // when going backwards, we know the style is already computed while (startByte > 0 && sci->pdoc->StyleAt((startByte) - 1) == style) (startByte)--; Position endByte = byteOffset + 1; while (endByte < length && StyleAt(endByte, true) == style) (endByte)++; CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetAttributesForStyle((unsigned int) style); } AtkAttributeSet *ScintillaGTKAccessible::GetDefaultAttributes() { return GetAttributesForStyle(0); } gint ScintillaGTKAccessible::GetNSelections() { return sci->sel.Empty() ? 0 : sci->sel.Count(); } gchar *ScintillaGTKAccessible::GetSelection(gint selection_num, int *startChar, int *endChar) { if (selection_num < 0 || (unsigned int) selection_num >= sci->sel.Count()) return NULL; Position startByte = sci->sel.Range(selection_num).Start().Position(); Position endByte = sci->sel.Range(selection_num).End().Position(); CharacterRangeFromByteRange(startByte, endByte, startChar, endChar); return GetTextRangeUTF8(startByte, endByte); } gboolean ScintillaGTKAccessible::AddSelection(int startChar, int endChar) { size_t n_selections = sci->sel.Count(); Position startByte, endByte; ByteRangeFromCharacterRange(startChar, endChar, startByte, endByte); // use WndProc() to set the selections so it notifies as needed if (n_selections > 1 || ! sci->sel.Empty()) { sci->WndProc(SCI_ADDSELECTION, startByte, endByte); } else { sci->WndProc(SCI_SETSELECTION, startByte, endByte); } return TRUE; } gboolean ScintillaGTKAccessible::RemoveSelection(gint selection_num) { size_t n_selections = sci->sel.Count(); if (selection_num < 0 || (unsigned int) selection_num >= n_selections) return FALSE; if (n_selections > 1) { sci->WndProc(SCI_DROPSELECTIONN, selection_num, 0); } else if (sci->sel.Empty()) { return FALSE; } else { sci->WndProc(SCI_CLEARSELECTIONS, 0, 0); } return TRUE; } gboolean ScintillaGTKAccessible::SetSelection(gint selection_num, int startChar, int endChar) { if (selection_num < 0 || (unsigned int) selection_num >= sci->sel.Count()) return FALSE; Position startByte, endByte; ByteRangeFromCharacterRange(startChar, endChar, startByte, endByte); sci->WndProc(SCI_SETSELECTIONNSTART, selection_num, startByte); sci->WndProc(SCI_SETSELECTIONNEND, selection_num, endByte); return TRUE; } void ScintillaGTKAccessible::AtkTextIface::init(::AtkTextIface *iface) { iface->get_text = GetText; iface->get_text_after_offset = GetTextAfterOffset; iface->get_text_at_offset = GetTextAtOffset; iface->get_text_before_offset = GetTextBeforeOffset; #if ATK_CHECK_VERSION(2, 10, 0) iface->get_string_at_offset = GetStringAtOffset; #endif iface->get_character_at_offset = GetCharacterAtOffset; iface->get_character_count = GetCharacterCount; iface->get_caret_offset = GetCaretOffset; iface->set_caret_offset = SetCaretOffset; iface->get_offset_at_point = GetOffsetAtPoint; iface->get_character_extents = GetCharacterExtents; iface->get_n_selections = GetNSelections; iface->get_selection = GetSelection; iface->add_selection = AddSelection; iface->remove_selection = RemoveSelection; iface->set_selection = SetSelection; iface->get_run_attributes = GetRunAttributes; iface->get_default_attributes = GetDefaultAttributes; } /* atkeditabletext.h */ void ScintillaGTKAccessible::SetTextContents(const gchar *contents) { // FIXME: it's probably useless to check for READONLY here, SETTEXT probably does it just fine? if (! sci->pdoc->IsReadOnly()) { sci->WndProc(SCI_SETTEXT, 0, (sptr_t) contents); } } bool ScintillaGTKAccessible::InsertStringUTF8(Position bytePos, const gchar *utf8, int lengthBytes) { if (sci->pdoc->IsReadOnly()) { return false; } // like EncodedFromUTF8(), but avoids an extra copy // FIXME: update target? const char *charSetBuffer; if (sci->IsUnicodeMode() || ! *(charSetBuffer = sci->CharacterSetID())) { sci->pdoc->InsertString(bytePos, utf8, lengthBytes); } else { // conversion needed std::string encoded = ConvertText(utf8, lengthBytes, charSetBuffer, "UTF-8", true); sci->pdoc->InsertString(bytePos, encoded.c_str(), encoded.length()); } return true; } void ScintillaGTKAccessible::InsertText(const gchar *text, int lengthBytes, int *charPosition) { Position bytePosition = ByteOffsetFromCharacterOffset(*charPosition); // FIXME: should we update the target? if (InsertStringUTF8(bytePosition, text, lengthBytes)) { (*charPosition) += sci->pdoc->CountCharacters(bytePosition, lengthBytes); } } void ScintillaGTKAccessible::CopyText(int startChar, int endChar) { Position startByte, endByte; ByteRangeFromCharacterRange(startChar, endChar, startByte, endByte); sci->CopyRangeToClipboard(startByte, endByte); } void ScintillaGTKAccessible::CutText(int startChar, int endChar) { g_return_if_fail(endChar >= startChar); if (! sci->pdoc->IsReadOnly()) { // FIXME: have a byte variant of those and convert only once? CopyText(startChar, endChar); DeleteText(startChar, endChar); } } void ScintillaGTKAccessible::DeleteText(int startChar, int endChar) { g_return_if_fail(endChar >= startChar); if (! sci->pdoc->IsReadOnly()) { Position startByte, endByte; ByteRangeFromCharacterRange(startChar, endChar, startByte, endByte); if (! sci->RangeContainsProtected(startByte, endByte)) { // FIXME: restore the target? sci->pdoc->DeleteChars(startByte, endByte - startByte); } } } void ScintillaGTKAccessible::PasteText(int charPosition) { if (sci->pdoc->IsReadOnly()) return; // Helper class holding the position for the asynchronous paste operation. // We can only hope that when the callback gets called scia is still valid, but ScintillaGTK // has always done that without problems, so let's guess it's a fairly safe bet. struct Helper : GObjectWatcher { ScintillaGTKAccessible *scia; Position bytePosition; void Destroyed() override { scia = 0; } Helper(ScintillaGTKAccessible *scia_, Position bytePos_) : GObjectWatcher(G_OBJECT(scia_->sci->sci)), scia(scia_), bytePosition(bytePos_) { } void TextReceived(GtkClipboard *, const gchar *text) { if (text) { size_t len = strlen(text); std::string convertedText; if (len > 0 && scia->sci->convertPastes) { // Convert line endings of the paste into our local line-endings mode convertedText = Document::TransformLineEnds(text, len, scia->sci->pdoc->eolMode); len = convertedText.length(); text = convertedText.c_str(); } scia->InsertStringUTF8(bytePosition, text, static_cast(len)); } } static void TextReceivedCallback(GtkClipboard *clipboard, const gchar *text, gpointer data) { Helper *helper = reinterpret_cast(data); try { if (helper->scia != 0) { helper->TextReceived(clipboard, text); } } catch (...) {} delete helper; } }; Helper *helper = new Helper(this, ByteOffsetFromCharacterOffset(charPosition)); GtkWidget *widget = gtk_accessible_get_widget(accessible); GtkClipboard *clipboard = gtk_widget_get_clipboard(widget, GDK_SELECTION_CLIPBOARD); gtk_clipboard_request_text(clipboard, helper->TextReceivedCallback, helper); } void ScintillaGTKAccessible::AtkEditableTextIface::init(::AtkEditableTextIface *iface) { iface->set_text_contents = SetTextContents; iface->insert_text = InsertText; iface->copy_text = CopyText; iface->cut_text = CutText; iface->delete_text = DeleteText; iface->paste_text = PasteText; //~ iface->set_run_attributes = SetRunAttributes; } bool ScintillaGTKAccessible::Enabled() const { return sci->accessibilityEnabled == SC_ACCESSIBILITY_ENABLED; } // Callbacks void ScintillaGTKAccessible::UpdateCursor() { Position pos = sci->WndProc(SCI_GETCURRENTPOS, 0, 0); if (old_pos != pos) { int charPosition = CharacterOffsetFromByteOffset(pos); g_signal_emit_by_name(accessible, "text-caret-moved", charPosition); old_pos = pos; } size_t n_selections = sci->sel.Count(); size_t prev_n_selections = old_sels.size(); bool selection_changed = n_selections != prev_n_selections; old_sels.resize(n_selections); for (size_t i = 0; i < n_selections; i++) { SelectionRange &sel = sci->sel.Range(i); if (i < prev_n_selections && ! selection_changed) { SelectionRange &old_sel = old_sels[i]; // do not consider a caret move to be a selection change selection_changed = ((! old_sel.Empty() || ! sel.Empty()) && ! (old_sel == sel)); } old_sels[i] = sel; } if (selection_changed) g_signal_emit_by_name(accessible, "text-selection-changed"); } void ScintillaGTKAccessible::ChangeDocument(Document *oldDoc, Document *newDoc) { if (!Enabled()) { return; } if (oldDoc == newDoc) { return; } if (oldDoc) { int charLength = oldDoc->CountCharacters(0, oldDoc->Length()); g_signal_emit_by_name(accessible, "text-changed::delete", 0, charLength); } if (newDoc) { PLATFORM_ASSERT(newDoc == sci->pdoc); int charLength = newDoc->CountCharacters(0, newDoc->Length()); g_signal_emit_by_name(accessible, "text-changed::insert", 0, charLength); if ((oldDoc ? oldDoc->IsReadOnly() : false) != newDoc->IsReadOnly()) { NotifyReadOnly(); } // update cursor and selection old_pos = -1; old_sels.clear(); UpdateCursor(); } } void ScintillaGTKAccessible::NotifyReadOnly() { bool readonly = sci->pdoc->IsReadOnly(); atk_object_notify_state_change(ATK_OBJECT(accessible), ATK_STATE_EDITABLE, ! readonly); #if ATK_CHECK_VERSION(2, 16, 0) atk_object_notify_state_change(ATK_OBJECT(accessible), ATK_STATE_READ_ONLY, readonly); #endif } void ScintillaGTKAccessible::SetAccessibility() { // Called by ScintillaGTK when application has enabled or disabled accessibility character_offsets.resize(0); character_offsets.push_back(0); } void ScintillaGTKAccessible::Notify(GtkWidget *, gint, SCNotification *nt) { if (!Enabled()) return; switch (nt->nmhdr.code) { case SCN_MODIFIED: { if (nt->modificationType & (SC_MOD_INSERTTEXT | SC_MOD_DELETETEXT)) { // invalidate character offset cache if applicable const Position line = sci->pdoc->LineFromPosition(nt->position); if (character_offsets.size() > static_cast(line + 1)) { character_offsets.resize(line + 1); } } if (nt->modificationType & SC_MOD_INSERTTEXT) { int startChar = CharacterOffsetFromByteOffset(nt->position); int lengthChar = sci->pdoc->CountCharacters(nt->position, nt->position + nt->length); g_signal_emit_by_name(accessible, "text-changed::insert", startChar, lengthChar); UpdateCursor(); } if (nt->modificationType & SC_MOD_BEFOREDELETE) { // We cannot compute the deletion length in DELETETEXT as it requires accessing the // buffer, so that the character are still present. So, we cache the value here, // and use it in DELETETEXT that fires quickly after. deletionLengthChar = sci->pdoc->CountCharacters(nt->position, nt->position + nt->length); } if (nt->modificationType & SC_MOD_DELETETEXT) { int startChar = CharacterOffsetFromByteOffset(nt->position); g_signal_emit_by_name(accessible, "text-changed::delete", startChar, deletionLengthChar); UpdateCursor(); } if (nt->modificationType & SC_MOD_CHANGESTYLE) { g_signal_emit_by_name(accessible, "text-attributes-changed"); } } break; case SCN_UPDATEUI: { if (nt->updated & SC_UPDATE_SELECTION) { UpdateCursor(); } } break; } } // ATK method wrappers // wraps a call from the accessible object to the ScintillaGTKAccessible, and avoid leaking any exception #define WRAPPER_METHOD_BODY(accessible, call, defret) \ try { \ ScintillaGTKAccessible *thisAccessible = FromAccessible(reinterpret_cast(accessible)); \ if (thisAccessible) { \ return thisAccessible->call; \ } else { \ return defret; \ } \ } catch (...) { \ return defret; \ } // AtkText gchar *ScintillaGTKAccessible::AtkTextIface::GetText(AtkText *text, int start_offset, int end_offset) { WRAPPER_METHOD_BODY(text, GetText(start_offset, end_offset), NULL); } gchar *ScintillaGTKAccessible::AtkTextIface::GetTextAfterOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset) { WRAPPER_METHOD_BODY(text, GetTextAfterOffset(offset, boundary_type, start_offset, end_offset), NULL) } gchar *ScintillaGTKAccessible::AtkTextIface::GetTextBeforeOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset) { WRAPPER_METHOD_BODY(text, GetTextBeforeOffset(offset, boundary_type, start_offset, end_offset), NULL) } gchar *ScintillaGTKAccessible::AtkTextIface::GetTextAtOffset(AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset) { WRAPPER_METHOD_BODY(text, GetTextAtOffset(offset, boundary_type, start_offset, end_offset), NULL) } #if ATK_CHECK_VERSION(2, 10, 0) gchar *ScintillaGTKAccessible::AtkTextIface::GetStringAtOffset(AtkText *text, gint offset, AtkTextGranularity granularity, gint *start_offset, gint *end_offset) { WRAPPER_METHOD_BODY(text, GetStringAtOffset(offset, granularity, start_offset, end_offset), NULL) } #endif gunichar ScintillaGTKAccessible::AtkTextIface::GetCharacterAtOffset(AtkText *text, gint offset) { WRAPPER_METHOD_BODY(text, GetCharacterAtOffset(offset), 0) } gint ScintillaGTKAccessible::AtkTextIface::GetCharacterCount(AtkText *text) { WRAPPER_METHOD_BODY(text, GetCharacterCount(), 0) } gint ScintillaGTKAccessible::AtkTextIface::GetCaretOffset(AtkText *text) { WRAPPER_METHOD_BODY(text, GetCaretOffset(), 0) } gboolean ScintillaGTKAccessible::AtkTextIface::SetCaretOffset(AtkText *text, gint offset) { WRAPPER_METHOD_BODY(text, SetCaretOffset(offset), FALSE) } gint ScintillaGTKAccessible::AtkTextIface::GetOffsetAtPoint(AtkText *text, gint x, gint y, AtkCoordType coords) { WRAPPER_METHOD_BODY(text, GetOffsetAtPoint(x, y, coords), -1) } void ScintillaGTKAccessible::AtkTextIface::GetCharacterExtents(AtkText *text, gint offset, gint *x, gint *y, gint *width, gint *height, AtkCoordType coords) { WRAPPER_METHOD_BODY(text, GetCharacterExtents(offset, x, y, width, height, coords), ) } AtkAttributeSet *ScintillaGTKAccessible::AtkTextIface::GetRunAttributes(AtkText *text, gint offset, gint *start_offset, gint *end_offset) { WRAPPER_METHOD_BODY(text, GetRunAttributes(offset, start_offset, end_offset), NULL) } AtkAttributeSet *ScintillaGTKAccessible::AtkTextIface::GetDefaultAttributes(AtkText *text) { WRAPPER_METHOD_BODY(text, GetDefaultAttributes(), NULL) } gint ScintillaGTKAccessible::AtkTextIface::GetNSelections(AtkText *text) { WRAPPER_METHOD_BODY(text, GetNSelections(), 0) } gchar *ScintillaGTKAccessible::AtkTextIface::GetSelection(AtkText *text, gint selection_num, gint *start_pos, gint *end_pos) { WRAPPER_METHOD_BODY(text, GetSelection(selection_num, start_pos, end_pos), NULL) } gboolean ScintillaGTKAccessible::AtkTextIface::AddSelection(AtkText *text, gint start, gint end) { WRAPPER_METHOD_BODY(text, AddSelection(start, end), FALSE) } gboolean ScintillaGTKAccessible::AtkTextIface::RemoveSelection(AtkText *text, gint selection_num) { WRAPPER_METHOD_BODY(text, RemoveSelection(selection_num), FALSE) } gboolean ScintillaGTKAccessible::AtkTextIface::SetSelection(AtkText *text, gint selection_num, gint start, gint end) { WRAPPER_METHOD_BODY(text, SetSelection(selection_num, start, end), FALSE) } // AtkEditableText void ScintillaGTKAccessible::AtkEditableTextIface::SetTextContents(AtkEditableText *text, const gchar *contents) { WRAPPER_METHOD_BODY(text, SetTextContents(contents), ) } void ScintillaGTKAccessible::AtkEditableTextIface::InsertText(AtkEditableText *text, const gchar *contents, gint length, gint *position) { WRAPPER_METHOD_BODY(text, InsertText(contents, length, position), ) } void ScintillaGTKAccessible::AtkEditableTextIface::CopyText(AtkEditableText *text, gint start, gint end) { WRAPPER_METHOD_BODY(text, CopyText(start, end), ) } void ScintillaGTKAccessible::AtkEditableTextIface::CutText(AtkEditableText *text, gint start, gint end) { WRAPPER_METHOD_BODY(text, CutText(start, end), ) } void ScintillaGTKAccessible::AtkEditableTextIface::DeleteText(AtkEditableText *text, gint start, gint end) { WRAPPER_METHOD_BODY(text, DeleteText(start, end), ) } void ScintillaGTKAccessible::AtkEditableTextIface::PasteText(AtkEditableText *text, gint position) { WRAPPER_METHOD_BODY(text, PasteText(position), ) } // GObject glue #if HAVE_GTK_FACTORY static GType scintilla_object_accessible_factory_get_type(void); #endif static void scintilla_object_accessible_init(ScintillaObjectAccessible *accessible); static void scintilla_object_accessible_class_init(ScintillaObjectAccessibleClass *klass); static gpointer scintilla_object_accessible_parent_class = NULL; // @p parent_type is only required on GTK 3.2 to 3.6, and only on the first call static GType scintilla_object_accessible_get_type(GType parent_type G_GNUC_UNUSED) { static volatile gsize type_id_result = 0; if (g_once_init_enter(&type_id_result)) { GTypeInfo tinfo = { 0, /* class size */ (GBaseInitFunc) NULL, /* base init */ (GBaseFinalizeFunc) NULL, /* base finalize */ (GClassInitFunc) scintilla_object_accessible_class_init, /* class init */ (GClassFinalizeFunc) NULL, /* class finalize */ NULL, /* class data */ 0, /* instance size */ 0, /* nb preallocs */ (GInstanceInitFunc) scintilla_object_accessible_init, /* instance init */ NULL /* value table */ }; const GInterfaceInfo atk_text_info = { (GInterfaceInitFunc) ScintillaGTKAccessible::AtkTextIface::init, (GInterfaceFinalizeFunc) NULL, NULL }; const GInterfaceInfo atk_editable_text_info = { (GInterfaceInitFunc) ScintillaGTKAccessible::AtkEditableTextIface::init, (GInterfaceFinalizeFunc) NULL, NULL }; #if HAVE_GTK_A11Y_H // good, we have gtk-a11y.h, we can use that GType derived_atk_type = GTK_TYPE_CONTAINER_ACCESSIBLE; tinfo.class_size = sizeof (GtkContainerAccessibleClass); tinfo.instance_size = sizeof (GtkContainerAccessible); #else // ! HAVE_GTK_A11Y_H # if HAVE_GTK_FACTORY // Figure out the size of the class and instance we are deriving from through the registry GType derived_type = g_type_parent(SCINTILLA_TYPE_OBJECT); AtkObjectFactory *factory = atk_registry_get_factory(atk_get_default_registry(), derived_type); GType derived_atk_type = atk_object_factory_get_accessible_type(factory); # else // ! HAVE_GTK_FACTORY // We're kind of screwed and can't determine the parent (no registry, and no public type) // Hack your way around by requiring the caller to give us our parent type. The caller // might be able to trick its way into doing that, by e.g. instantiating the parent's // accessible type and get its GType. It's ugly but we can't do better on GTK 3.2 to 3.6. g_assert(parent_type != 0); GType derived_atk_type = parent_type; # endif // ! HAVE_GTK_FACTORY GTypeQuery query; g_type_query(derived_atk_type, &query); tinfo.class_size = query.class_size; tinfo.instance_size = query.instance_size; #endif // ! HAVE_GTK_A11Y_H GType type_id = g_type_register_static(derived_atk_type, "ScintillaObjectAccessible", &tinfo, (GTypeFlags) 0); g_type_add_interface_static(type_id, ATK_TYPE_TEXT, &atk_text_info); g_type_add_interface_static(type_id, ATK_TYPE_EDITABLE_TEXT, &atk_editable_text_info); g_once_init_leave(&type_id_result, type_id); } return type_id_result; } static AtkObject *scintilla_object_accessible_new(GType parent_type, GObject *obj) { g_return_val_if_fail(SCINTILLA_IS_OBJECT(obj), NULL); AtkObject *accessible = (AtkObject *) g_object_new(scintilla_object_accessible_get_type(parent_type), #if HAVE_WIDGET_SET_UNSET "widget", obj, #endif NULL); atk_object_initialize(accessible, obj); return accessible; } // implementation for gtk_widget_get_accessible(). // See the comment at the top of the file for details on the implementation // @p widget the widget. // @p cache pointer to store the AtkObject between repeated calls. Might or might not be filled. // @p widget_parent_class pointer to the widget's parent class (to chain up method calls). AtkObject *ScintillaGTKAccessible::WidgetGetAccessibleImpl(GtkWidget *widget, AtkObject **cache, gpointer widget_parent_class G_GNUC_UNUSED) { if (*cache != NULL) { return *cache; } #if HAVE_GTK_A11Y_H // just instantiate the accessible *cache = scintilla_object_accessible_new(0, G_OBJECT(widget)); #elif HAVE_GTK_FACTORY // register in the factory and let GTK instantiate static volatile gsize registered = 0; if (g_once_init_enter(®istered)) { // Figure out whether accessibility is enabled by looking at the type of the accessible // object which would be created for the parent type of ScintillaObject. GType derived_type = g_type_parent(SCINTILLA_TYPE_OBJECT); AtkRegistry *registry = atk_get_default_registry(); AtkObjectFactory *factory = atk_registry_get_factory(registry, derived_type); GType derived_atk_type = atk_object_factory_get_accessible_type(factory); if (g_type_is_a(derived_atk_type, GTK_TYPE_ACCESSIBLE)) { atk_registry_set_factory_type(registry, SCINTILLA_TYPE_OBJECT, scintilla_object_accessible_factory_get_type()); } g_once_init_leave(®istered, 1); } AtkObject *obj = GTK_WIDGET_CLASS(widget_parent_class)->get_accessible(widget); *cache = static_cast(g_object_ref(obj)); #else // no public API, no factory, so guess from the parent and instantiate static GType parent_atk_type = 0; if (parent_atk_type == 0) { AtkObject *parent_obj = GTK_WIDGET_CLASS(widget_parent_class)->get_accessible(widget); if (parent_obj) { GType parent_atk_type = G_OBJECT_TYPE(parent_obj); // Figure out whether accessibility is enabled by looking at the type of the accessible // object which would be created for the parent type of ScintillaObject. if (g_type_is_a(parent_atk_type, GTK_TYPE_ACCESSIBLE)) { *cache = scintilla_object_accessible_new(parent_atk_type, G_OBJECT(widget)); } else { *cache = static_cast(g_object_ref(parent_obj)); } } } #endif return *cache; } static AtkStateSet *scintilla_object_accessible_ref_state_set(AtkObject *accessible) { AtkStateSet *state_set = ATK_OBJECT_CLASS(scintilla_object_accessible_parent_class)->ref_state_set(accessible); GtkWidget *widget = gtk_accessible_get_widget(GTK_ACCESSIBLE(accessible)); if (widget == NULL) { atk_state_set_add_state(state_set, ATK_STATE_DEFUNCT); } else { if (! scintilla_send_message(SCINTILLA_OBJECT(widget), SCI_GETREADONLY, 0, 0)) atk_state_set_add_state(state_set, ATK_STATE_EDITABLE); #if ATK_CHECK_VERSION(2, 16, 0) else atk_state_set_add_state(state_set, ATK_STATE_READ_ONLY); #endif atk_state_set_add_state(state_set, ATK_STATE_MULTI_LINE); atk_state_set_add_state(state_set, ATK_STATE_MULTISELECTABLE); atk_state_set_add_state(state_set, ATK_STATE_SELECTABLE_TEXT); /*atk_state_set_add_state(state_set, ATK_STATE_SUPPORTS_AUTOCOMPLETION);*/ } return state_set; } static void scintilla_object_accessible_widget_set(GtkAccessible *accessible) { GtkWidget *widget = gtk_accessible_get_widget(accessible); if (widget == NULL) return; ScintillaObjectAccessiblePrivate *priv = SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(accessible); if (priv->pscin != 0) delete priv->pscin; priv->pscin = new ScintillaGTKAccessible(accessible, widget); } #if HAVE_WIDGET_SET_UNSET static void scintilla_object_accessible_widget_unset(GtkAccessible *accessible) { GtkWidget *widget = gtk_accessible_get_widget(accessible); if (widget == NULL) return; ScintillaObjectAccessiblePrivate *priv = SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(accessible); delete priv->pscin; priv->pscin = 0; } #endif static void scintilla_object_accessible_initialize(AtkObject *obj, gpointer data) { ATK_OBJECT_CLASS(scintilla_object_accessible_parent_class)->initialize(obj, data); #if ! HAVE_WIDGET_SET_UNSET scintilla_object_accessible_widget_set(GTK_ACCESSIBLE(obj)); #endif obj->role = ATK_ROLE_TEXT; } static void scintilla_object_accessible_finalize(GObject *object) { ScintillaObjectAccessiblePrivate *priv = SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(object); if (priv->pscin) { delete priv->pscin; priv->pscin = 0; } G_OBJECT_CLASS(scintilla_object_accessible_parent_class)->finalize(object); } static void scintilla_object_accessible_class_init(ScintillaObjectAccessibleClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS(klass); AtkObjectClass *object_class = ATK_OBJECT_CLASS(klass); #if HAVE_WIDGET_SET_UNSET GtkAccessibleClass *accessible_class = GTK_ACCESSIBLE_CLASS(klass); accessible_class->widget_set = scintilla_object_accessible_widget_set; accessible_class->widget_unset = scintilla_object_accessible_widget_unset; #endif object_class->ref_state_set = scintilla_object_accessible_ref_state_set; object_class->initialize = scintilla_object_accessible_initialize; gobject_class->finalize = scintilla_object_accessible_finalize; scintilla_object_accessible_parent_class = g_type_class_peek_parent(klass); g_type_class_add_private(klass, sizeof (ScintillaObjectAccessiblePrivate)); } static void scintilla_object_accessible_init(ScintillaObjectAccessible *accessible) { ScintillaObjectAccessiblePrivate *priv = SCINTILLA_OBJECT_ACCESSIBLE_GET_PRIVATE(accessible); priv->pscin = 0; } #if HAVE_GTK_FACTORY // Object factory typedef AtkObjectFactory ScintillaObjectAccessibleFactory; typedef AtkObjectFactoryClass ScintillaObjectAccessibleFactoryClass; G_DEFINE_TYPE(ScintillaObjectAccessibleFactory, scintilla_object_accessible_factory, ATK_TYPE_OBJECT_FACTORY) static void scintilla_object_accessible_factory_init(ScintillaObjectAccessibleFactory *) { } static GType scintilla_object_accessible_factory_get_accessible_type(void) { return SCINTILLA_TYPE_OBJECT_ACCESSIBLE; } static AtkObject *scintilla_object_accessible_factory_create_accessible(GObject *obj) { return scintilla_object_accessible_new(0, obj); } static void scintilla_object_accessible_factory_class_init(AtkObjectFactoryClass * klass) { klass->create_accessible = scintilla_object_accessible_factory_create_accessible; klass->get_accessible_type = scintilla_object_accessible_factory_get_accessible_type; } #endif codequery-0.21.0/scintilla/gtk/ScintillaGTKAccessible.h000066400000000000000000000174271310136352400227710ustar00rootroot00000000000000/* Scintilla source code edit control */ /* ScintillaGTKAccessible.h - GTK+ accessibility for ScintillaGTK */ /* Copyright 2016 by Colomban Wendling * The License.txt file describes the conditions under which this software may be distributed. */ #ifndef SCINTILLAGTKACCESSIBLE_H #define SCINTILLAGTKACCESSIBLE_H #ifdef SCI_NAMESPACE namespace Scintilla { #endif #ifndef ATK_CHECK_VERSION # define ATK_CHECK_VERSION(x, y, z) 0 #endif class ScintillaGTKAccessible { private: // weak references to related objects GtkAccessible *accessible; ScintillaGTK *sci; // cache holding character offset for each line start, see CharacterOffsetFromByteOffset() std::vector character_offsets; // cached length of the deletion, in characters (see Notify()) int deletionLengthChar; // local state for comparing Position old_pos; std::vector old_sels; bool Enabled() const; void UpdateCursor(); void Notify(GtkWidget *widget, gint code, SCNotification *nt); static void SciNotify(GtkWidget *widget, gint code, SCNotification *nt, gpointer data) { try { reinterpret_cast(data)->Notify(widget, code, nt); } catch (...) {} } Position ByteOffsetFromCharacterOffset(Position startByte, int characterOffset) { Position pos = sci->pdoc->GetRelativePosition(startByte, characterOffset); if (pos == INVALID_POSITION) { // clamp invalid positions inside the document if (characterOffset > 0) { return sci->pdoc->Length(); } else { return 0; } } return pos; } Position ByteOffsetFromCharacterOffset(int characterOffset) { return ByteOffsetFromCharacterOffset(0, characterOffset); } int CharacterOffsetFromByteOffset(Position byteOffset) { const Position line = sci->pdoc->LineFromPosition(byteOffset); if (character_offsets.size() <= static_cast(line)) { if (character_offsets.empty()) character_offsets.push_back(0); for (Position i = character_offsets.size(); i <= line; i++) { const Position start = sci->pdoc->LineStart(i - 1); const Position end = sci->pdoc->LineStart(i); character_offsets.push_back(character_offsets[i - 1] + sci->pdoc->CountCharacters(start, end)); } } const Position lineStart = sci->pdoc->LineStart(line); return character_offsets[line] + sci->pdoc->CountCharacters(lineStart, byteOffset); } void CharacterRangeFromByteRange(Position startByte, Position endByte, int *startChar, int *endChar) { *startChar = CharacterOffsetFromByteOffset(startByte); *endChar = *startChar + sci->pdoc->CountCharacters(startByte, endByte); } void ByteRangeFromCharacterRange(int startChar, int endChar, Position& startByte, Position& endByte) { startByte = ByteOffsetFromCharacterOffset(startChar); endByte = ByteOffsetFromCharacterOffset(startByte, endChar - startChar); } Position PositionBefore(Position pos) { return sci->pdoc->MovePositionOutsideChar(pos - 1, -1, true); } Position PositionAfter(Position pos) { return sci->pdoc->MovePositionOutsideChar(pos + 1, 1, true); } int StyleAt(Position position, bool ensureStyle = false) { if (ensureStyle) sci->pdoc->EnsureStyledTo(position); return sci->pdoc->StyleAt(position); } // For AtkText gchar *GetTextRangeUTF8(Position startByte, Position endByte); gchar *GetText(int startChar, int endChar); gchar *GetTextAfterOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); gchar *GetTextBeforeOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); gchar *GetTextAtOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); #if ATK_CHECK_VERSION(2, 10, 0) gchar *GetStringAtOffset(int charOffset, AtkTextGranularity granularity, int *startChar, int *endChar); #endif gunichar GetCharacterAtOffset(int charOffset); gint GetCharacterCount(); gint GetCaretOffset(); gboolean SetCaretOffset(int charOffset); gint GetOffsetAtPoint(gint x, gint y, AtkCoordType coords); void GetCharacterExtents(int charOffset, gint *x, gint *y, gint *width, gint *height, AtkCoordType coords); AtkAttributeSet *GetAttributesForStyle(unsigned int style); AtkAttributeSet *GetRunAttributes(int charOffset, int *startChar, int *endChar); AtkAttributeSet *GetDefaultAttributes(); gint GetNSelections(); gchar *GetSelection(gint selection_num, int *startChar, int *endChar); gboolean AddSelection(int startChar, int endChar); gboolean RemoveSelection(int selection_num); gboolean SetSelection(gint selection_num, int startChar, int endChar); // for AtkEditableText bool InsertStringUTF8(Position bytePos, const gchar *utf8, int lengthBytes); void SetTextContents(const gchar *contents); void InsertText(const gchar *contents, int lengthBytes, int *charPosition); void CopyText(int startChar, int endChar); void CutText(int startChar, int endChar); void DeleteText(int startChar, int endChar); void PasteText(int charPosition); public: ScintillaGTKAccessible(GtkAccessible *accessible, GtkWidget *widget); ~ScintillaGTKAccessible(); static ScintillaGTKAccessible *FromAccessible(GtkAccessible *accessible); static ScintillaGTKAccessible *FromAccessible(AtkObject *accessible) { return FromAccessible(GTK_ACCESSIBLE(accessible)); } // So ScintillaGTK can notify us void ChangeDocument(Document *oldDoc, Document *newDoc); void NotifyReadOnly(); void SetAccessibility(); // Helper GtkWidget methods static AtkObject *WidgetGetAccessibleImpl(GtkWidget *widget, AtkObject **cache, gpointer widget_parent_class); // ATK methods class AtkTextIface { public: static void init(::AtkTextIface *iface); private: AtkTextIface(); static gchar *GetText(AtkText *text, int start_offset, int end_offset); static gchar *GetTextAfterOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset); static gchar *GetTextBeforeOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset); static gchar *GetTextAtOffset(AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); #if ATK_CHECK_VERSION(2, 10, 0) static gchar *GetStringAtOffset(AtkText *text, gint offset, AtkTextGranularity granularity, gint *start_offset, gint *end_offset); #endif static gunichar GetCharacterAtOffset(AtkText *text, gint offset); static gint GetCharacterCount(AtkText *text); static gint GetCaretOffset(AtkText *text); static gboolean SetCaretOffset(AtkText *text, gint offset); static gint GetOffsetAtPoint(AtkText *text, gint x, gint y, AtkCoordType coords); static void GetCharacterExtents(AtkText *text, gint offset, gint *x, gint *y, gint *width, gint *height, AtkCoordType coords); static AtkAttributeSet *GetRunAttributes(AtkText *text, gint offset, gint *start_offset, gint *end_offset); static AtkAttributeSet *GetDefaultAttributes(AtkText *text); static gint GetNSelections(AtkText *text); static gchar *GetSelection(AtkText *text, gint selection_num, gint *start_pos, gint *end_pos); static gboolean AddSelection(AtkText *text, gint start, gint end); static gboolean RemoveSelection(AtkText *text, gint selection_num); static gboolean SetSelection(AtkText *text, gint selection_num, gint start, gint end); }; class AtkEditableTextIface { public: static void init(::AtkEditableTextIface *iface); private: AtkEditableTextIface(); static void SetTextContents(AtkEditableText *text, const gchar *contents); static void InsertText(AtkEditableText *text, const gchar *contents, gint length, gint *position); static void CopyText(AtkEditableText *text, gint start, gint end); static void CutText(AtkEditableText *text, gint start, gint end); static void DeleteText(AtkEditableText *text, gint start, gint end); static void PasteText(AtkEditableText *text, gint position); }; }; #ifdef SCI_NAMESPACE } #endif #endif /* SCINTILLAGTKACCESSIBLE_H */ codequery-0.21.0/scintilla/gtk/deps.mak000066400000000000000000001174241310136352400177750ustar00rootroot00000000000000PlatGTK.o: PlatGTK.cxx \ ../include/Scintilla.h ../include/Sci_Position.h \ ../include/ScintillaWidget.h ../lexlib/StringCopy.h ../src/XPM.h \ ../src/UniConversion.h Converter.h ScintillaGTK.o: ScintillaGTK.cxx \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../include/ScintillaWidget.h ../include/SciLexer.h \ ../lexlib/StringCopy.h ../lexlib/LexerModule.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h \ ../src/ContractionState.h ../src/CellBuffer.h ../src/CallTip.h \ ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ ../src/Decoration.h ../src/CaseFolder.h ../src/Document.h \ ../src/CaseConvert.h ../src/UniConversion.h ../src/UnicodeFromUTF8.h \ ../src/Selection.h ../src/PositionCache.h ../src/EditModel.h \ ../src/MarginView.h ../src/EditView.h ../src/Editor.h \ ../src/AutoComplete.h ../src/ScintillaBase.h ../src/ExternalLexer.h \ ScintillaGTK.h scintilla-marshal.h ScintillaGTKAccessible.h Converter.h ScintillaGTKAccessible.o: ScintillaGTKAccessible.cxx \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../include/ScintillaWidget.h ../include/SciLexer.h \ ../lexlib/StringCopy.h ../lexlib/LexerModule.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h \ ../src/ContractionState.h ../src/CellBuffer.h ../src/CallTip.h \ ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ ../src/Decoration.h ../src/CaseFolder.h ../src/Document.h \ ../src/CaseConvert.h ../src/UniConversion.h ../src/UnicodeFromUTF8.h \ ../src/Selection.h ../src/PositionCache.h ../src/EditModel.h \ ../src/MarginView.h ../src/EditView.h ../src/Editor.h \ ../src/AutoComplete.h ../src/ScintillaBase.h ScintillaGTK.h \ ScintillaGTKAccessible.h AutoComplete.o: ../src/AutoComplete.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h \ ../lexlib/CharacterSet.h ../src/Position.h ../src/AutoComplete.h CallTip.o: ../src/CallTip.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../lexlib/StringCopy.h \ ../src/Position.h ../src/CallTip.h CaseConvert.o: ../src/CaseConvert.cxx ../lexlib/StringCopy.h \ ../src/CaseConvert.h ../src/UniConversion.h ../src/UnicodeFromUTF8.h CaseFolder.o: ../src/CaseFolder.cxx ../src/CaseFolder.h \ ../src/CaseConvert.h ../src/UniConversion.h Catalogue.o: ../src/Catalogue.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/LexerModule.h ../src/Catalogue.h CellBuffer.o: ../src/CellBuffer.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/CellBuffer.h \ ../src/UniConversion.h CharClassify.o: ../src/CharClassify.cxx ../src/CharClassify.h ContractionState.o: ../src/ContractionState.cxx ../include/Platform.h \ ../src/Position.h ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/SparseVector.h ../src/ContractionState.h Decoration.o: ../src/Decoration.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h \ ../src/Decoration.h Document.o: ../src/Document.cxx ../include/Platform.h ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h \ ../lexlib/CharacterSet.h ../lexlib/CharacterCategory.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h \ ../src/CellBuffer.h ../src/PerLine.h ../src/CharClassify.h \ ../src/Decoration.h ../src/CaseFolder.h ../src/Document.h \ ../src/RESearch.h ../src/UniConversion.h ../src/UnicodeFromUTF8.h EditModel.o: ../src/EditModel.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../lexlib/StringCopy.h ../src/Position.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/ContractionState.h \ ../src/CellBuffer.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ ../src/CharClassify.h ../src/Decoration.h ../src/CaseFolder.h \ ../src/Document.h ../src/UniConversion.h ../src/Selection.h \ ../src/PositionCache.h ../src/EditModel.h EditView.o: ../src/EditView.cxx ../include/Platform.h ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../lexlib/StringCopy.h \ ../lexlib/CharacterSet.h ../src/Position.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/ContractionState.h \ ../src/CellBuffer.h ../src/PerLine.h ../src/KeyMap.h ../src/Indicator.h \ ../src/XPM.h ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ ../src/CharClassify.h ../src/Decoration.h ../src/CaseFolder.h \ ../src/Document.h ../src/UniConversion.h ../src/Selection.h \ ../src/PositionCache.h ../src/EditModel.h ../src/MarginView.h \ ../src/EditView.h Editor.o: ../src/Editor.cxx ../include/Platform.h ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../lexlib/StringCopy.h \ ../src/Position.h ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/ContractionState.h ../src/CellBuffer.h \ ../src/PerLine.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ ../src/CharClassify.h ../src/Decoration.h ../src/CaseFolder.h \ ../src/Document.h ../src/UniConversion.h ../src/Selection.h \ ../src/PositionCache.h ../src/EditModel.h ../src/MarginView.h \ ../src/EditView.h ../src/Editor.h ExternalLexer.o: ../src/ExternalLexer.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../include/SciLexer.h ../lexlib/LexerModule.h ../src/Catalogue.h \ ../src/ExternalLexer.h Indicator.o: ../src/Indicator.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Indicator.h \ ../src/XPM.h KeyMap.o: ../src/KeyMap.cxx ../include/Platform.h ../include/Scintilla.h \ ../include/Sci_Position.h ../src/KeyMap.h LineMarker.o: ../src/LineMarker.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../lexlib/StringCopy.h \ ../src/XPM.h ../src/LineMarker.h MarginView.o: ../src/MarginView.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../lexlib/StringCopy.h ../src/Position.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/ContractionState.h \ ../src/CellBuffer.h ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h \ ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ ../src/CharClassify.h ../src/Decoration.h ../src/CaseFolder.h \ ../src/Document.h ../src/UniConversion.h ../src/Selection.h \ ../src/PositionCache.h ../src/EditModel.h ../src/MarginView.h \ ../src/EditView.h PerLine.o: ../src/PerLine.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/CellBuffer.h \ ../src/PerLine.h PositionCache.o: ../src/PositionCache.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../src/Position.h ../src/SplitVector.h ../src/Partitioning.h \ ../src/RunStyles.h ../src/ContractionState.h ../src/CellBuffer.h \ ../src/KeyMap.h ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h \ ../src/Style.h ../src/ViewStyle.h ../src/CharClassify.h \ ../src/Decoration.h ../src/CaseFolder.h ../src/Document.h \ ../src/UniConversion.h ../src/Selection.h ../src/PositionCache.h RESearch.o: ../src/RESearch.cxx ../src/Position.h ../src/CharClassify.h \ ../src/RESearch.h RunStyles.o: ../src/RunStyles.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h ScintillaBase.o: ../src/ScintillaBase.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../include/SciLexer.h ../lexlib/PropSetSimple.h ../lexlib/LexerModule.h \ ../src/Catalogue.h ../src/Position.h ../src/SplitVector.h \ ../src/Partitioning.h ../src/RunStyles.h ../src/ContractionState.h \ ../src/CellBuffer.h ../src/CallTip.h ../src/KeyMap.h ../src/Indicator.h \ ../src/XPM.h ../src/LineMarker.h ../src/Style.h ../src/ViewStyle.h \ ../src/CharClassify.h ../src/Decoration.h ../src/CaseFolder.h \ ../src/Document.h ../src/Selection.h ../src/PositionCache.h \ ../src/EditModel.h ../src/MarginView.h ../src/EditView.h ../src/Editor.h \ ../src/AutoComplete.h ../src/ScintillaBase.h Selection.o: ../src/Selection.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/Selection.h Style.o: ../src/Style.cxx ../include/Platform.h ../include/Scintilla.h \ ../include/Sci_Position.h ../src/Style.h UniConversion.o: ../src/UniConversion.cxx ../src/UniConversion.h ViewStyle.o: ../src/ViewStyle.cxx ../include/Platform.h \ ../include/Scintilla.h ../include/Sci_Position.h ../src/Position.h \ ../src/SplitVector.h ../src/Partitioning.h ../src/RunStyles.h \ ../src/Indicator.h ../src/XPM.h ../src/LineMarker.h ../src/Style.h \ ../src/ViewStyle.h XPM.o: ../src/XPM.cxx ../include/Platform.h ../src/XPM.h Accessor.o: ../lexlib/Accessor.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h CharacterCategory.o: ../lexlib/CharacterCategory.cxx \ ../lexlib/StringCopy.h ../lexlib/CharacterCategory.h CharacterSet.o: ../lexlib/CharacterSet.cxx ../lexlib/CharacterSet.h LexerBase.o: ../lexlib/LexerBase.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/LexerModule.h ../lexlib/LexerBase.h LexerModule.o: ../lexlib/LexerModule.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/LexerModule.h ../lexlib/LexerBase.h \ ../lexlib/LexerSimple.h LexerNoExceptions.o: ../lexlib/LexerNoExceptions.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/LexerModule.h ../lexlib/LexerBase.h \ ../lexlib/LexerNoExceptions.h LexerSimple.o: ../lexlib/LexerSimple.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/LexerModule.h ../lexlib/LexerBase.h \ ../lexlib/LexerSimple.h PropSetSimple.o: ../lexlib/PropSetSimple.cxx ../lexlib/PropSetSimple.h StyleContext.o: ../lexlib/StyleContext.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h WordList.o: ../lexlib/WordList.cxx ../lexlib/StringCopy.h \ ../lexlib/WordList.h LexA68k.o: ../lexers/LexA68k.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAbaqus.o: ../lexers/LexAbaqus.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAda.o: ../lexers/LexAda.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAPDL.o: ../lexers/LexAPDL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAsm.o: ../lexers/LexAsm.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexAsn1.o: ../lexers/LexAsn1.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexASY.o: ../lexers/LexASY.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAU3.o: ../lexers/LexAU3.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAVE.o: ../lexers/LexAVE.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexAVS.o: ../lexers/LexAVS.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexBaan.o: ../lexers/LexBaan.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexBash.o: ../lexers/LexBash.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexBasic.o: ../lexers/LexBasic.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexBatch.o: ../lexers/LexBatch.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexBibTeX.o: ../lexers/LexBibTeX.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexBullant.o: ../lexers/LexBullant.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCaml.o: ../lexers/LexCaml.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCLW.o: ../lexers/LexCLW.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCmake.o: ../lexers/LexCmake.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCOBOL.o: ../lexers/LexCOBOL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCoffeeScript.o: ../lexers/LexCoffeeScript.cxx ../include/Platform.h \ ../include/ILexer.h ../include/Sci_Position.h ../include/Scintilla.h \ ../include/SciLexer.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexConf.o: ../lexers/LexConf.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCPP.o: ../lexers/LexCPP.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h ../lexlib/SparseState.h \ ../lexlib/SubStyles.h LexCrontab.o: ../lexers/LexCrontab.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCsound.o: ../lexers/LexCsound.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexCSS.o: ../lexers/LexCSS.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexD.o: ../lexers/LexD.cxx ../include/ILexer.h ../include/Sci_Position.h \ ../include/Scintilla.h ../include/SciLexer.h ../lexlib/WordList.h \ ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexDiff.o: ../lexers/LexDiff.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexDMAP.o: ../lexers/LexDMAP.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexDMIS.o: ../lexers/LexDMIS.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h LexECL.o: ../lexers/LexECL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexEDIFACT.o: ../lexers/LexEDIFACT.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/LexAccessor.h ../lexlib/LexerModule.h LexEiffel.o: ../lexers/LexEiffel.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexErlang.o: ../lexers/LexErlang.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexErrorList.o: ../lexers/LexErrorList.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexEScript.o: ../lexers/LexEScript.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexFlagship.o: ../lexers/LexFlagship.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexForth.o: ../lexers/LexForth.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexFortran.o: ../lexers/LexFortran.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexGAP.o: ../lexers/LexGAP.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexGui4Cli.o: ../lexers/LexGui4Cli.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexHaskell.o: ../lexers/LexHaskell.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/CharacterCategory.h ../lexlib/LexerModule.h \ ../lexlib/OptionSet.h LexHex.o: ../lexers/LexHex.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexHTML.o: ../lexers/LexHTML.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/StringCopy.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexInno.o: ../lexers/LexInno.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexJSON.o: ../lexers/LexJSON.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexKix.o: ../lexers/LexKix.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexKVIrc.o: ../lexers/LexKVIrc.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexLaTeX.o: ../lexers/LexLaTeX.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/LexerBase.h LexLisp.o: ../lexers/LexLisp.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexLout.o: ../lexers/LexLout.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexLua.o: ../lexers/LexLua.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMagik.o: ../lexers/LexMagik.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMake.o: ../lexers/LexMake.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMarkdown.o: ../lexers/LexMarkdown.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMatlab.o: ../lexers/LexMatlab.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMetapost.o: ../lexers/LexMetapost.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMMIXAL.o: ../lexers/LexMMIXAL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexModula.o: ../lexers/LexModula.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMPT.o: ../lexers/LexMPT.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMSSQL.o: ../lexers/LexMSSQL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexMySQL.o: ../lexers/LexMySQL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexNimrod.o: ../lexers/LexNimrod.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexNsis.o: ../lexers/LexNsis.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexNull.o: ../lexers/LexNull.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexOpal.o: ../lexers/LexOpal.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexOScript.o: ../lexers/LexOScript.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPascal.o: ../lexers/LexPascal.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPB.o: ../lexers/LexPB.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPerl.o: ../lexers/LexPerl.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexPLM.o: ../lexers/LexPLM.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPO.o: ../lexers/LexPO.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPOV.o: ../lexers/LexPOV.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPowerPro.o: ../lexers/LexPowerPro.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPowerShell.o: ../lexers/LexPowerShell.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexProgress.o: ../lexers/LexProgress.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h \ ../lexlib/SparseState.h LexProps.o: ../lexers/LexProps.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPS.o: ../lexers/LexPS.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexPython.o: ../lexers/LexPython.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h ../lexlib/SubStyles.h LexR.o: ../lexers/LexR.cxx ../include/ILexer.h ../include/Sci_Position.h \ ../include/Scintilla.h ../include/SciLexer.h ../lexlib/WordList.h \ ../lexlib/LexAccessor.h ../lexlib/Accessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h LexRebol.o: ../lexers/LexRebol.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexRegistry.o: ../lexers/LexRegistry.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/StyleContext.h \ ../lexlib/CharacterSet.h ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexRuby.o: ../lexers/LexRuby.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexRust.o: ../lexers/LexRust.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/PropSetSimple.h ../lexlib/WordList.h ../lexlib/LexAccessor.h \ ../lexlib/Accessor.h ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h LexScriptol.o: ../lexers/LexScriptol.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSmalltalk.o: ../lexers/LexSmalltalk.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSML.o: ../lexers/LexSML.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSorcus.o: ../lexers/LexSorcus.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSpecman.o: ../lexers/LexSpecman.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSpice.o: ../lexers/LexSpice.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexSQL.o: ../lexers/LexSQL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h ../lexlib/SparseState.h LexSTTXT.o: ../lexers/LexSTTXT.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTACL.o: ../lexers/LexTACL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTADS3.o: ../lexers/LexTADS3.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTAL.o: ../lexers/LexTAL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTCL.o: ../lexers/LexTCL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTCMD.o: ../lexers/LexTCMD.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTeX.o: ../lexers/LexTeX.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexTxt2tags.o: ../lexers/LexTxt2tags.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexVB.o: ../lexers/LexVB.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexVerilog.o: ../lexers/LexVerilog.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h ../lexlib/OptionSet.h ../lexlib/SubStyles.h LexVHDL.o: ../lexers/LexVHDL.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h LexVisualProlog.o: ../lexers/LexVisualProlog.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/CharacterCategory.h ../lexlib/LexerModule.h \ ../lexlib/OptionSet.h LexYAML.o: ../lexers/LexYAML.cxx ../include/ILexer.h \ ../include/Sci_Position.h ../include/Scintilla.h ../include/SciLexer.h \ ../lexlib/WordList.h ../lexlib/LexAccessor.h ../lexlib/Accessor.h \ ../lexlib/StyleContext.h ../lexlib/CharacterSet.h \ ../lexlib/LexerModule.h codequery-0.21.0/scintilla/gtk/makefile000066400000000000000000000076561310136352400200550ustar00rootroot00000000000000# Make file for Scintilla on Linux or compatible OS # Copyright 1998-2010 by Neil Hodgson # The License.txt file describes the conditions under which this software may be distributed. # This makefile assumes GCC 4.3 is used and changes will be needed to use other compilers. # GNU make does not like \r\n line endings so should be saved to CVS in binary form. # Builds for GTK+ 2 and no longer supports GTK+ 1. # Also works with ming32-make on Windows. srcdir ?= . .SUFFIXES: .cxx .c .o .h .a .list ifdef CLANG CXX = clang++ -Wno-deprecated-register CC = clang # Can choose aspect to sanitize: address and undefined can simply change SANITIZE but for # thread also need to create Position Independent Executable -> search online documentation SANITIZE = address #SANITIZE = undefined endif ARFLAGS = rc RANLIB = touch ifdef GTK3 GTKVERSION=gtk+-3.0 else GTKVERSION=gtk+-2.0 endif # Environment variable windir always defined on Win32 ifndef windir ifeq ($(shell uname),Darwin) RANLIB = ranlib endif endif # Enable Position Independent Code except on Windows where it is the default so the flag produces a warning ifndef windir PICFLAGS = -fPIC endif ifdef windir CC = gcc DEL = del /q COMPLIB=$(srcdir)\..\bin\scintilla.a else DEL = rm -f COMPLIB=$(srcdir)/../bin/scintilla.a endif vpath %.h $(srcdir) $(srcdir)/../src $(srcdir)/../include $(srcdir)/../lexlib vpath %.c $(srcdir) vpath %.cxx $(srcdir) $(srcdir)/../src $(srcdir)/../lexlib $(srcdir)/../lexers INCLUDEDIRS=-I $(srcdir)/../include -I $(srcdir)/../src -I $(srcdir)/../lexlib ifdef CHECK_DEPRECATED DEPRECATED=-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DDISABLE_GDK_FONT endif CXXBASEFLAGS=-Wall -pedantic $(PICFLAGS) -DGTK -DSCI_LEXER $(INCLUDEDIRS) $(DEPRECATED) ifdef NOTHREADS THREADFLAGS=-DG_THREADS_IMPL_NONE else THREADFLAGS= endif ifdef NO_CXX11_REGEX REFLAGS=-DNO_CXX11_REGEX endif ifdef DEBUG ifdef CLANG CTFLAGS=-DDEBUG -g -fsanitize=$(SANITIZE) $(CXXBASEFLAGS) $(THREADFLAGS) else CTFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS) endif else CTFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS) endif CXXTFLAGS:=--std=gnu++0x $(CTFLAGS) $(REFLAGS) CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION)) MARSHALLER=scintilla-marshal.o .cxx.o: $(CXX) $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) -c $< .c.o: $(CC) $(CONFIGFLAGS) $(CTFLAGS) $(CFLAGS) -w -c $< GLIB_GENMARSHAL = glib-genmarshal GLIB_GENMARSHAL_FLAGS = --prefix=scintilla_marshal .list.h: $(GLIB_GENMARSHAL) --header $(GLIB_GENMARSHAL_FLAGS) $< > $@ .list.c: $(GLIB_GENMARSHAL) --body $(GLIB_GENMARSHAL_FLAGS) $< > $@ LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard $(srcdir)/../lexers/Lex*.cxx)))) all: $(COMPLIB) clean: $(DEL) *.o $(COMPLIB) *.plist analyze: clang --analyze $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) $(srcdir)/*.cxx $(srcdir)/../src/*.cxx $(srcdir)/../lexlib/*.cxx $(srcdir)/../lexers/*.cxx # To minimize deltas, including between Unix and Windows, the lexer file names are sorted case-insensitively LEXSORTED=$(shell ls $(srcdir)/../lexers/Lex*.cxx | sort -f) DEPSRCS=$(srcdir)/*.cxx $(srcdir)/../src/*.cxx $(srcdir)/../lexlib/*.cxx $(LEXSORTED) deps: deps.mak deps.mak: $(CXX) -MM $(CONFIGFLAGS) $(CXXTFLAGS) $(DEPSRCS) | sed -e 's/\/usr.* //' | grep [a-zA-Z] > $@ $(COMPLIB): Accessor.o CharacterSet.o LexerBase.o LexerModule.o LexerSimple.o StyleContext.o WordList.o \ CharClassify.o Decoration.o Document.o PerLine.o Catalogue.o CallTip.o CaseConvert.o CaseFolder.o \ ScintillaBase.o ContractionState.o EditModel.o Editor.o EditView.o ExternalLexer.o MarginView.o \ PropSetSimple.o PlatGTK.o \ KeyMap.o LineMarker.o PositionCache.o ScintillaGTK.o ScintillaGTKAccessible.o CellBuffer.o CharacterCategory.o ViewStyle.o \ RESearch.o RunStyles.o Selection.o Style.o Indicator.o AutoComplete.o UniConversion.o XPM.o \ $(MARSHALLER) $(LEXOBJS) $(AR) $(ARFLAGS) $@ $^ $(RANLIB) $@ # Automatically generate header dependencies with "make deps" include deps.mak codequery-0.21.0/scintilla/gtk/scintilla-marshal.c000066400000000000000000000125061310136352400221160ustar00rootroot00000000000000 #include #ifdef G_ENABLE_DEBUG #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) #define g_marshal_value_peek_char(v) g_value_get_schar (v) #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) #define g_marshal_value_peek_int(v) g_value_get_int (v) #define g_marshal_value_peek_uint(v) g_value_get_uint (v) #define g_marshal_value_peek_long(v) g_value_get_long (v) #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) #define g_marshal_value_peek_enum(v) g_value_get_enum (v) #define g_marshal_value_peek_flags(v) g_value_get_flags (v) #define g_marshal_value_peek_float(v) g_value_get_float (v) #define g_marshal_value_peek_double(v) g_value_get_double (v) #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) #define g_marshal_value_peek_param(v) g_value_get_param (v) #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) #define g_marshal_value_peek_object(v) g_value_get_object (v) #define g_marshal_value_peek_variant(v) g_value_get_variant (v) #else /* !G_ENABLE_DEBUG */ /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. * Do not access GValues directly in your code. Instead, use the * g_value_get_*() functions */ #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int #define g_marshal_value_peek_char(v) (v)->data[0].v_int #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint #define g_marshal_value_peek_int(v) (v)->data[0].v_int #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint #define g_marshal_value_peek_long(v) (v)->data[0].v_long #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong #define g_marshal_value_peek_float(v) (v)->data[0].v_float #define g_marshal_value_peek_double(v) (v)->data[0].v_double #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer #endif /* !G_ENABLE_DEBUG */ /* NONE:INT,OBJECT (scintilla-marshal.list:1) */ void scintilla_marshal_VOID__INT_OBJECT (GClosure *closure, GValue *return_value G_GNUC_UNUSED, guint n_param_values, const GValue *param_values, gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data) { typedef void (*GMarshalFunc_VOID__INT_OBJECT) (gpointer data1, gint arg_1, gpointer arg_2, gpointer data2); GMarshalFunc_VOID__INT_OBJECT callback; GCClosure *cc = (GCClosure*) closure; gpointer data1, data2; g_return_if_fail (n_param_values == 3); if (G_CCLOSURE_SWAP_DATA (closure)) { data1 = closure->data; data2 = g_value_peek_pointer (param_values + 0); } else { data1 = g_value_peek_pointer (param_values + 0); data2 = closure->data; } callback = (GMarshalFunc_VOID__INT_OBJECT) (marshal_data ? marshal_data : cc->callback); callback (data1, g_marshal_value_peek_int (param_values + 1), g_marshal_value_peek_object (param_values + 2), data2); } /* NONE:INT,BOXED (scintilla-marshal.list:2) */ void scintilla_marshal_VOID__INT_BOXED (GClosure *closure, GValue *return_value G_GNUC_UNUSED, guint n_param_values, const GValue *param_values, gpointer invocation_hint G_GNUC_UNUSED, gpointer marshal_data) { typedef void (*GMarshalFunc_VOID__INT_BOXED) (gpointer data1, gint arg_1, gpointer arg_2, gpointer data2); GMarshalFunc_VOID__INT_BOXED callback; GCClosure *cc = (GCClosure*) closure; gpointer data1, data2; g_return_if_fail (n_param_values == 3); if (G_CCLOSURE_SWAP_DATA (closure)) { data1 = closure->data; data2 = g_value_peek_pointer (param_values + 0); } else { data1 = g_value_peek_pointer (param_values + 0); data2 = closure->data; } callback = (GMarshalFunc_VOID__INT_BOXED) (marshal_data ? marshal_data : cc->callback); callback (data1, g_marshal_value_peek_int (param_values + 1), g_marshal_value_peek_boxed (param_values + 2), data2); } codequery-0.21.0/scintilla/gtk/scintilla-marshal.h000066400000000000000000000024771310136352400221310ustar00rootroot00000000000000 #ifndef __scintilla_marshal_MARSHAL_H__ #define __scintilla_marshal_MARSHAL_H__ #include G_BEGIN_DECLS /* NONE:INT,OBJECT (scintilla-marshal.list:1) */ extern void scintilla_marshal_VOID__INT_OBJECT (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data); #define scintilla_marshal_NONE__INT_OBJECT scintilla_marshal_VOID__INT_OBJECT /* NONE:INT,BOXED (scintilla-marshal.list:2) */ extern void scintilla_marshal_VOID__INT_BOXED (GClosure *closure, GValue *return_value, guint n_param_values, const GValue *param_values, gpointer invocation_hint, gpointer marshal_data); #define scintilla_marshal_NONE__INT_BOXED scintilla_marshal_VOID__INT_BOXED G_END_DECLS #endif /* __scintilla_marshal_MARSHAL_H__ */ codequery-0.21.0/scintilla/gtk/scintilla-marshal.list000066400000000000000000000000371310136352400226430ustar00rootroot00000000000000NONE:INT,OBJECT NONE:INT,BOXED codequery-0.21.0/scintilla/include/000077500000000000000000000000001310136352400171755ustar00rootroot00000000000000codequery-0.21.0/scintilla/include/ILexer.h000066400000000000000000000101171310136352400205360ustar00rootroot00000000000000// Scintilla source code edit control /** @file ILexer.h ** Interface between Scintilla and lexers. **/ // Copyright 1998-2010 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef ILEXER_H #define ILEXER_H #include "Sci_Position.h" #ifdef SCI_NAMESPACE namespace Scintilla { #endif #ifdef _WIN32 #define SCI_METHOD __stdcall #else #define SCI_METHOD #endif enum { dvOriginal=0, dvLineEnd=1 }; class IDocument { public: virtual int SCI_METHOD Version() const = 0; virtual void SCI_METHOD SetErrorStatus(int status) = 0; virtual Sci_Position SCI_METHOD Length() const = 0; virtual void SCI_METHOD GetCharRange(char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const = 0; virtual char SCI_METHOD StyleAt(Sci_Position position) const = 0; virtual Sci_Position SCI_METHOD LineFromPosition(Sci_Position position) const = 0; virtual Sci_Position SCI_METHOD LineStart(Sci_Position line) const = 0; virtual int SCI_METHOD GetLevel(Sci_Position line) const = 0; virtual int SCI_METHOD SetLevel(Sci_Position line, int level) = 0; virtual int SCI_METHOD GetLineState(Sci_Position line) const = 0; virtual int SCI_METHOD SetLineState(Sci_Position line, int state) = 0; virtual void SCI_METHOD StartStyling(Sci_Position position, char mask) = 0; virtual bool SCI_METHOD SetStyleFor(Sci_Position length, char style) = 0; virtual bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) = 0; virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0; virtual void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength) = 0; virtual void SCI_METHOD ChangeLexerState(Sci_Position start, Sci_Position end) = 0; virtual int SCI_METHOD CodePage() const = 0; virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; virtual const char * SCI_METHOD BufferPointer() = 0; virtual int SCI_METHOD GetLineIndentation(Sci_Position line) = 0; }; class IDocumentWithLineEnd : public IDocument { public: virtual Sci_Position SCI_METHOD LineEnd(Sci_Position line) const = 0; virtual Sci_Position SCI_METHOD GetRelativePosition(Sci_Position positionStart, Sci_Position characterOffset) const = 0; virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0; }; enum { lvOriginal=0, lvSubStyles=1 }; class ILexer { public: virtual int SCI_METHOD Version() const = 0; virtual void SCI_METHOD Release() = 0; virtual const char * SCI_METHOD PropertyNames() = 0; virtual int SCI_METHOD PropertyType(const char *name) = 0; virtual const char * SCI_METHOD DescribeProperty(const char *name) = 0; virtual Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) = 0; virtual const char * SCI_METHOD DescribeWordListSets() = 0; virtual Sci_Position SCI_METHOD WordListSet(int n, const char *wl) = 0; virtual void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; virtual void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0; }; class ILexerWithSubStyles : public ILexer { public: virtual int SCI_METHOD LineEndTypesSupported() = 0; virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0; virtual int SCI_METHOD SubStylesStart(int styleBase) = 0; virtual int SCI_METHOD SubStylesLength(int styleBase) = 0; virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0; virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0; virtual void SCI_METHOD FreeSubStyles() = 0; virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0; virtual int SCI_METHOD DistanceToSecondaryStyles() = 0; virtual const char * SCI_METHOD GetSubStyleBases() = 0; }; class ILoader { public: virtual int SCI_METHOD Release() = 0; // Returns a status code from SC_STATUS_* virtual int SCI_METHOD AddData(char *data, Sci_Position length) = 0; virtual void * SCI_METHOD ConvertToDocument() = 0; }; #ifdef SCI_NAMESPACE } #endif #endif codequery-0.21.0/scintilla/include/Platform.h000066400000000000000000000343271310136352400211430ustar00rootroot00000000000000// Scintilla source code edit control /** @file Platform.h ** Interface to platform facilities. Also includes some basic utilities. ** Implemented in PlatGTK.cxx for GTK+/Linux, PlatWin.cxx for Windows, and PlatWX.cxx for wxWindows. **/ // Copyright 1998-2009 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef PLATFORM_H #define PLATFORM_H // PLAT_GTK = GTK+ on Linux or Win32 // PLAT_GTK_WIN32 is defined additionally when running PLAT_GTK under Win32 // PLAT_WIN = Win32 API on Win32 OS // PLAT_WX is wxWindows on any supported platform // PLAT_TK = Tcl/TK on Linux or Win32 #define PLAT_GTK 0 #define PLAT_GTK_WIN32 0 #define PLAT_GTK_MACOSX 0 #define PLAT_MACOSX 0 #define PLAT_WIN 0 #define PLAT_WX 0 #define PLAT_QT 0 #define PLAT_FOX 0 #define PLAT_CURSES 0 #define PLAT_TK 0 #if defined(FOX) #undef PLAT_FOX #define PLAT_FOX 1 #elif defined(__WX__) #undef PLAT_WX #define PLAT_WX 1 #elif defined(CURSES) #undef PLAT_CURSES #define PLAT_CURSES 1 #elif defined(SCINTILLA_QT) #undef PLAT_QT #define PLAT_QT 1 #elif defined(TK) #undef PLAT_TK #define PLAT_TK 1 #elif defined(GTK) #undef PLAT_GTK #define PLAT_GTK 1 #if defined(__WIN32__) || defined(_MSC_VER) #undef PLAT_GTK_WIN32 #define PLAT_GTK_WIN32 1 #endif #if defined(__APPLE__) #undef PLAT_GTK_MACOSX #define PLAT_GTK_MACOSX 1 #endif #elif defined(__APPLE__) #undef PLAT_MACOSX #define PLAT_MACOSX 1 #else #undef PLAT_WIN #define PLAT_WIN 1 #endif #ifdef SCI_NAMESPACE namespace Scintilla { #endif typedef float XYPOSITION; typedef double XYACCUMULATOR; inline int RoundXYPosition(XYPOSITION xyPos) { return int(xyPos + 0.5); } // Underlying the implementation of the platform classes are platform specific types. // Sometimes these need to be passed around by client code so they are defined here typedef void *FontID; typedef void *SurfaceID; typedef void *WindowID; typedef void *MenuID; typedef void *TickerID; typedef void *Function; typedef void *IdlerID; /** * A geometric point class. * Point is similar to the Win32 POINT and GTK+ GdkPoint types. */ class Point { public: XYPOSITION x; XYPOSITION y; explicit Point(XYPOSITION x_=0, XYPOSITION y_=0) : x(x_), y(y_) { } static Point FromInts(int x_, int y_) { return Point(static_cast(x_), static_cast(y_)); } // Other automatically defined methods (assignment, copy constructor, destructor) are fine static Point FromLong(long lpoint); }; /** * A geometric rectangle class. * PRectangle is similar to the Win32 RECT. * PRectangles contain their top and left sides, but not their right and bottom sides. */ class PRectangle { public: XYPOSITION left; XYPOSITION top; XYPOSITION right; XYPOSITION bottom; explicit PRectangle(XYPOSITION left_=0, XYPOSITION top_=0, XYPOSITION right_=0, XYPOSITION bottom_ = 0) : left(left_), top(top_), right(right_), bottom(bottom_) { } static PRectangle FromInts(int left_, int top_, int right_, int bottom_) { return PRectangle(static_cast(left_), static_cast(top_), static_cast(right_), static_cast(bottom_)); } // Other automatically defined methods (assignment, copy constructor, destructor) are fine bool operator==(PRectangle &rc) const { return (rc.left == left) && (rc.right == right) && (rc.top == top) && (rc.bottom == bottom); } bool Contains(Point pt) const { return (pt.x >= left) && (pt.x <= right) && (pt.y >= top) && (pt.y <= bottom); } bool ContainsWholePixel(Point pt) const { // Does the rectangle contain all of the pixel to left/below the point return (pt.x >= left) && ((pt.x+1) <= right) && (pt.y >= top) && ((pt.y+1) <= bottom); } bool Contains(PRectangle rc) const { return (rc.left >= left) && (rc.right <= right) && (rc.top >= top) && (rc.bottom <= bottom); } bool Intersects(PRectangle other) const { return (right > other.left) && (left < other.right) && (bottom > other.top) && (top < other.bottom); } void Move(XYPOSITION xDelta, XYPOSITION yDelta) { left += xDelta; top += yDelta; right += xDelta; bottom += yDelta; } XYPOSITION Width() const { return right - left; } XYPOSITION Height() const { return bottom - top; } bool Empty() const { return (Height() <= 0) || (Width() <= 0); } }; /** * Holds a desired RGB colour. */ class ColourDesired { long co; public: ColourDesired(long lcol=0) { co = lcol; } ColourDesired(unsigned int red, unsigned int green, unsigned int blue) { Set(red, green, blue); } bool operator==(const ColourDesired &other) const { return co == other.co; } void Set(long lcol) { co = lcol; } void Set(unsigned int red, unsigned int green, unsigned int blue) { co = red | (green << 8) | (blue << 16); } static inline unsigned int ValueOfHex(const char ch) { if (ch >= '0' && ch <= '9') return ch - '0'; else if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10; else if (ch >= 'a' && ch <= 'f') return ch - 'a' + 10; else return 0; } void Set(const char *val) { if (*val == '#') { val++; } unsigned int r = ValueOfHex(val[0]) * 16 + ValueOfHex(val[1]); unsigned int g = ValueOfHex(val[2]) * 16 + ValueOfHex(val[3]); unsigned int b = ValueOfHex(val[4]) * 16 + ValueOfHex(val[5]); Set(r, g, b); } long AsLong() const { return co; } unsigned int GetRed() const { return co & 0xff; } unsigned int GetGreen() const { return (co >> 8) & 0xff; } unsigned int GetBlue() const { return (co >> 16) & 0xff; } }; /** * Font management. */ struct FontParameters { const char *faceName; float size; int weight; bool italic; int extraFontFlag; int technology; int characterSet; FontParameters( const char *faceName_, float size_=10, int weight_=400, bool italic_=false, int extraFontFlag_=0, int technology_=0, int characterSet_=0) : faceName(faceName_), size(size_), weight(weight_), italic(italic_), extraFontFlag(extraFontFlag_), technology(technology_), characterSet(characterSet_) { } }; class Font { protected: FontID fid; // Private so Font objects can not be copied Font(const Font &); Font &operator=(const Font &); public: Font(); virtual ~Font(); virtual void Create(const FontParameters &fp); virtual void Release(); FontID GetID() { return fid; } // Alias another font - caller guarantees not to Release void SetID(FontID fid_) { fid = fid_; } friend class Surface; friend class SurfaceImpl; }; /** * A surface abstracts a place to draw. */ class Surface { private: // Private so Surface objects can not be copied Surface(const Surface &) {} Surface &operator=(const Surface &) { return *this; } public: Surface() {} virtual ~Surface() {} static Surface *Allocate(int technology); virtual void Init(WindowID wid)=0; virtual void Init(SurfaceID sid, WindowID wid)=0; virtual void InitPixMap(int width, int height, Surface *surface_, WindowID wid)=0; virtual void Release()=0; virtual bool Initialised()=0; virtual void PenColour(ColourDesired fore)=0; virtual int LogPixelsY()=0; virtual int DeviceHeightFont(int points)=0; virtual void MoveTo(int x_, int y_)=0; virtual void LineTo(int x_, int y_)=0; virtual void Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back)=0; virtual void RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired back)=0; virtual void FillRectangle(PRectangle rc, ColourDesired back)=0; virtual void FillRectangle(PRectangle rc, Surface &surfacePattern)=0; virtual void RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesired back)=0; virtual void AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fill, int alphaFill, ColourDesired outline, int alphaOutline, int flags)=0; virtual void DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) = 0; virtual void Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back)=0; virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0; virtual void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0; virtual void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore, ColourDesired back)=0; virtual void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDesired fore)=0; virtual void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions)=0; virtual XYPOSITION WidthText(Font &font_, const char *s, int len)=0; virtual XYPOSITION WidthChar(Font &font_, char ch)=0; virtual XYPOSITION Ascent(Font &font_)=0; virtual XYPOSITION Descent(Font &font_)=0; virtual XYPOSITION InternalLeading(Font &font_)=0; virtual XYPOSITION ExternalLeading(Font &font_)=0; virtual XYPOSITION Height(Font &font_)=0; virtual XYPOSITION AverageCharWidth(Font &font_)=0; virtual void SetClip(PRectangle rc)=0; virtual void FlushCachedState()=0; virtual void SetUnicodeMode(bool unicodeMode_)=0; virtual void SetDBCSMode(int codePage)=0; }; /** * A simple callback action passing one piece of untyped user data. */ typedef void (*CallBackAction)(void*); /** * Class to hide the details of window manipulation. * Does not own the window which will normally have a longer life than this object. */ class Window { protected: WindowID wid; public: Window() : wid(0), cursorLast(cursorInvalid) { } Window(const Window &source) : wid(source.wid), cursorLast(cursorInvalid) { } virtual ~Window(); Window &operator=(WindowID wid_) { wid = wid_; return *this; } WindowID GetID() const { return wid; } bool Created() const { return wid != 0; } void Destroy(); bool HasFocus(); PRectangle GetPosition(); void SetPosition(PRectangle rc); void SetPositionRelative(PRectangle rc, Window relativeTo); PRectangle GetClientPosition(); void Show(bool show=true); void InvalidateAll(); void InvalidateRectangle(PRectangle rc); virtual void SetFont(Font &font); enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow, cursorHand }; void SetCursor(Cursor curs); void SetTitle(const char *s); PRectangle GetMonitorRect(Point pt); private: Cursor cursorLast; }; /** * Listbox management. */ class ListBox : public Window { public: ListBox(); virtual ~ListBox(); static ListBox *Allocate(); virtual void SetFont(Font &font)=0; virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool unicodeMode_, int technology_)=0; virtual void SetAverageCharWidth(int width)=0; virtual void SetVisibleRows(int rows)=0; virtual int GetVisibleRows() const=0; virtual PRectangle GetDesiredRect()=0; virtual int CaretFromEdge()=0; virtual void Clear()=0; virtual void Append(char *s, int type = -1)=0; virtual int Length()=0; virtual void Select(int n)=0; virtual int GetSelection()=0; virtual int Find(const char *prefix)=0; virtual void GetValue(int n, char *value, int len)=0; virtual void RegisterImage(int type, const char *xpm_data)=0; virtual void RegisterRGBAImage(int type, int width, int height, const unsigned char *pixelsImage) = 0; virtual void ClearRegisteredImages()=0; virtual void SetDoubleClickAction(CallBackAction, void *)=0; virtual void SetList(const char* list, char separator, char typesep)=0; }; /** * Menu management. */ class Menu { MenuID mid; public: Menu(); MenuID GetID() { return mid; } void CreatePopUp(); void Destroy(); void Show(Point pt, Window &w); }; class ElapsedTime { long bigBit; long littleBit; public: ElapsedTime(); double Duration(bool reset=false); }; /** * Dynamic Library (DLL/SO/...) loading */ class DynamicLibrary { public: virtual ~DynamicLibrary() {} /// @return Pointer to function "name", or NULL on failure. virtual Function FindFunction(const char *name) = 0; /// @return true if the library was loaded successfully. virtual bool IsValid() = 0; /// @return An instance of a DynamicLibrary subclass with "modulePath" loaded. static DynamicLibrary *Load(const char *modulePath); }; #if defined(__clang__) # if __has_feature(attribute_analyzer_noreturn) # define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn)) # else # define CLANG_ANALYZER_NORETURN # endif #else # define CLANG_ANALYZER_NORETURN #endif /** * Platform class used to retrieve system wide parameters such as double click speed * and chrome colour. Not a creatable object, more of a module with several functions. */ class Platform { // Private so Platform objects can not be copied Platform(const Platform &) {} Platform &operator=(const Platform &) { return *this; } public: // Should be private because no new Platforms are ever created // but gcc warns about this Platform() {} ~Platform() {} static ColourDesired Chrome(); static ColourDesired ChromeHighlight(); static const char *DefaultFont(); static int DefaultFontSize(); static unsigned int DoubleClickTime(); static bool MouseButtonBounce(); static void DebugDisplay(const char *s); static bool IsKeyDown(int key); static long SendScintilla( WindowID w, unsigned int msg, unsigned long wParam=0, long lParam=0); static long SendScintillaPointer( WindowID w, unsigned int msg, unsigned long wParam=0, void *lParam=0); static bool IsDBCSLeadByte(int codePage, char ch); static int DBCSCharLength(int codePage, const char *s); static int DBCSCharMaxLength(); // These are utility functions not really tied to a platform static int Minimum(int a, int b); static int Maximum(int a, int b); // Next three assume 16 bit shorts and 32 bit longs static long LongFromTwoShorts(short a,short b) { return (a) | ((b) << 16); } static short HighShortFromLong(long x) { return static_cast(x >> 16); } static short LowShortFromLong(long x) { return static_cast(x & 0xffff); } static void DebugPrintf(const char *format, ...); static bool ShowAssertionPopUps(bool assertionPopUps_); static void Assert(const char *c, const char *file, int line) CLANG_ANALYZER_NORETURN; static int Clamp(int val, int minVal, int maxVal); }; #ifdef NDEBUG #define PLATFORM_ASSERT(c) ((void)0) #else #ifdef SCI_NAMESPACE #define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Scintilla::Platform::Assert(#c, __FILE__, __LINE__)) #else #define PLATFORM_ASSERT(c) ((c) ? (void)(0) : Platform::Assert(#c, __FILE__, __LINE__)) #endif #endif #ifdef SCI_NAMESPACE } #endif #endif codequery-0.21.0/scintilla/include/SciLexer.h000066400000000000000000001447721310136352400211030ustar00rootroot00000000000000/* Scintilla source code edit control */ /** @file SciLexer.h ** Interface to the added lexer functions in the SciLexer version of the edit control. **/ /* Copyright 1998-2002 by Neil Hodgson * The License.txt file describes the conditions under which this software may be distributed. */ /* Most of this file is automatically generated from the Scintilla.iface interface definition * file which contains any comments about the definitions. HFacer.py does the generation. */ #ifndef SCILEXER_H #define SCILEXER_H /* SciLexer features - not in standard Scintilla */ /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ #define SCLEX_CONTAINER 0 #define SCLEX_NULL 1 #define SCLEX_PYTHON 2 #define SCLEX_CPP 3 #define SCLEX_HTML 4 #define SCLEX_XML 5 #define SCLEX_PERL 6 #define SCLEX_SQL 7 #define SCLEX_VB 8 #define SCLEX_PROPERTIES 9 #define SCLEX_ERRORLIST 10 #define SCLEX_MAKEFILE 11 #define SCLEX_BATCH 12 #define SCLEX_XCODE 13 #define SCLEX_LATEX 14 #define SCLEX_LUA 15 #define SCLEX_DIFF 16 #define SCLEX_CONF 17 #define SCLEX_PASCAL 18 #define SCLEX_AVE 19 #define SCLEX_ADA 20 #define SCLEX_LISP 21 #define SCLEX_RUBY 22 #define SCLEX_EIFFEL 23 #define SCLEX_EIFFELKW 24 #define SCLEX_TCL 25 #define SCLEX_NNCRONTAB 26 #define SCLEX_BULLANT 27 #define SCLEX_VBSCRIPT 28 #define SCLEX_BAAN 31 #define SCLEX_MATLAB 32 #define SCLEX_SCRIPTOL 33 #define SCLEX_ASM 34 #define SCLEX_CPPNOCASE 35 #define SCLEX_FORTRAN 36 #define SCLEX_F77 37 #define SCLEX_CSS 38 #define SCLEX_POV 39 #define SCLEX_LOUT 40 #define SCLEX_ESCRIPT 41 #define SCLEX_PS 42 #define SCLEX_NSIS 43 #define SCLEX_MMIXAL 44 #define SCLEX_CLW 45 #define SCLEX_CLWNOCASE 46 #define SCLEX_LOT 47 #define SCLEX_YAML 48 #define SCLEX_TEX 49 #define SCLEX_METAPOST 50 #define SCLEX_POWERBASIC 51 #define SCLEX_FORTH 52 #define SCLEX_ERLANG 53 #define SCLEX_OCTAVE 54 #define SCLEX_MSSQL 55 #define SCLEX_VERILOG 56 #define SCLEX_KIX 57 #define SCLEX_GUI4CLI 58 #define SCLEX_SPECMAN 59 #define SCLEX_AU3 60 #define SCLEX_APDL 61 #define SCLEX_BASH 62 #define SCLEX_ASN1 63 #define SCLEX_VHDL 64 #define SCLEX_CAML 65 #define SCLEX_BLITZBASIC 66 #define SCLEX_PUREBASIC 67 #define SCLEX_HASKELL 68 #define SCLEX_PHPSCRIPT 69 #define SCLEX_TADS3 70 #define SCLEX_REBOL 71 #define SCLEX_SMALLTALK 72 #define SCLEX_FLAGSHIP 73 #define SCLEX_CSOUND 74 #define SCLEX_FREEBASIC 75 #define SCLEX_INNOSETUP 76 #define SCLEX_OPAL 77 #define SCLEX_SPICE 78 #define SCLEX_D 79 #define SCLEX_CMAKE 80 #define SCLEX_GAP 81 #define SCLEX_PLM 82 #define SCLEX_PROGRESS 83 #define SCLEX_ABAQUS 84 #define SCLEX_ASYMPTOTE 85 #define SCLEX_R 86 #define SCLEX_MAGIK 87 #define SCLEX_POWERSHELL 88 #define SCLEX_MYSQL 89 #define SCLEX_PO 90 #define SCLEX_TAL 91 #define SCLEX_COBOL 92 #define SCLEX_TACL 93 #define SCLEX_SORCUS 94 #define SCLEX_POWERPRO 95 #define SCLEX_NIMROD 96 #define SCLEX_SML 97 #define SCLEX_MARKDOWN 98 #define SCLEX_TXT2TAGS 99 #define SCLEX_A68K 100 #define SCLEX_MODULA 101 #define SCLEX_COFFEESCRIPT 102 #define SCLEX_TCMD 103 #define SCLEX_AVS 104 #define SCLEX_ECL 105 #define SCLEX_OSCRIPT 106 #define SCLEX_VISUALPROLOG 107 #define SCLEX_LITERATEHASKELL 108 #define SCLEX_STTXT 109 #define SCLEX_KVIRC 110 #define SCLEX_RUST 111 #define SCLEX_DMAP 112 #define SCLEX_AS 113 #define SCLEX_DMIS 114 #define SCLEX_REGISTRY 115 #define SCLEX_BIBTEX 116 #define SCLEX_SREC 117 #define SCLEX_IHEX 118 #define SCLEX_TEHEX 119 #define SCLEX_JSON 120 #define SCLEX_EDIFACT 121 #define SCLEX_INDENT 122 #define SCLEX_AUTOMATIC 1000 #define SCE_P_DEFAULT 0 #define SCE_P_COMMENTLINE 1 #define SCE_P_NUMBER 2 #define SCE_P_STRING 3 #define SCE_P_CHARACTER 4 #define SCE_P_WORD 5 #define SCE_P_TRIPLE 6 #define SCE_P_TRIPLEDOUBLE 7 #define SCE_P_CLASSNAME 8 #define SCE_P_DEFNAME 9 #define SCE_P_OPERATOR 10 #define SCE_P_IDENTIFIER 11 #define SCE_P_COMMENTBLOCK 12 #define SCE_P_STRINGEOL 13 #define SCE_P_WORD2 14 #define SCE_P_DECORATOR 15 #define SCE_P_FSTRING 16 #define SCE_P_FCHARACTER 17 #define SCE_P_FTRIPLE 18 #define SCE_P_FTRIPLEDOUBLE 19 #define SCE_C_DEFAULT 0 #define SCE_C_COMMENT 1 #define SCE_C_COMMENTLINE 2 #define SCE_C_COMMENTDOC 3 #define SCE_C_NUMBER 4 #define SCE_C_WORD 5 #define SCE_C_STRING 6 #define SCE_C_CHARACTER 7 #define SCE_C_UUID 8 #define SCE_C_PREPROCESSOR 9 #define SCE_C_OPERATOR 10 #define SCE_C_IDENTIFIER 11 #define SCE_C_STRINGEOL 12 #define SCE_C_VERBATIM 13 #define SCE_C_REGEX 14 #define SCE_C_COMMENTLINEDOC 15 #define SCE_C_WORD2 16 #define SCE_C_COMMENTDOCKEYWORD 17 #define SCE_C_COMMENTDOCKEYWORDERROR 18 #define SCE_C_GLOBALCLASS 19 #define SCE_C_STRINGRAW 20 #define SCE_C_TRIPLEVERBATIM 21 #define SCE_C_HASHQUOTEDSTRING 22 #define SCE_C_PREPROCESSORCOMMENT 23 #define SCE_C_PREPROCESSORCOMMENTDOC 24 #define SCE_C_USERLITERAL 25 #define SCE_C_TASKMARKER 26 #define SCE_C_ESCAPESEQUENCE 27 #define SCE_D_DEFAULT 0 #define SCE_D_COMMENT 1 #define SCE_D_COMMENTLINE 2 #define SCE_D_COMMENTDOC 3 #define SCE_D_COMMENTNESTED 4 #define SCE_D_NUMBER 5 #define SCE_D_WORD 6 #define SCE_D_WORD2 7 #define SCE_D_WORD3 8 #define SCE_D_TYPEDEF 9 #define SCE_D_STRING 10 #define SCE_D_STRINGEOL 11 #define SCE_D_CHARACTER 12 #define SCE_D_OPERATOR 13 #define SCE_D_IDENTIFIER 14 #define SCE_D_COMMENTLINEDOC 15 #define SCE_D_COMMENTDOCKEYWORD 16 #define SCE_D_COMMENTDOCKEYWORDERROR 17 #define SCE_D_STRINGB 18 #define SCE_D_STRINGR 19 #define SCE_D_WORD5 20 #define SCE_D_WORD6 21 #define SCE_D_WORD7 22 #define SCE_TCL_DEFAULT 0 #define SCE_TCL_COMMENT 1 #define SCE_TCL_COMMENTLINE 2 #define SCE_TCL_NUMBER 3 #define SCE_TCL_WORD_IN_QUOTE 4 #define SCE_TCL_IN_QUOTE 5 #define SCE_TCL_OPERATOR 6 #define SCE_TCL_IDENTIFIER 7 #define SCE_TCL_SUBSTITUTION 8 #define SCE_TCL_SUB_BRACE 9 #define SCE_TCL_MODIFIER 10 #define SCE_TCL_EXPAND 11 #define SCE_TCL_WORD 12 #define SCE_TCL_WORD2 13 #define SCE_TCL_WORD3 14 #define SCE_TCL_WORD4 15 #define SCE_TCL_WORD5 16 #define SCE_TCL_WORD6 17 #define SCE_TCL_WORD7 18 #define SCE_TCL_WORD8 19 #define SCE_TCL_COMMENT_BOX 20 #define SCE_TCL_BLOCK_COMMENT 21 #define SCE_H_DEFAULT 0 #define SCE_H_TAG 1 #define SCE_H_TAGUNKNOWN 2 #define SCE_H_ATTRIBUTE 3 #define SCE_H_ATTRIBUTEUNKNOWN 4 #define SCE_H_NUMBER 5 #define SCE_H_DOUBLESTRING 6 #define SCE_H_SINGLESTRING 7 #define SCE_H_OTHER 8 #define SCE_H_COMMENT 9 #define SCE_H_ENTITY 10 #define SCE_H_TAGEND 11 #define SCE_H_XMLSTART 12 #define SCE_H_XMLEND 13 #define SCE_H_SCRIPT 14 #define SCE_H_ASP 15 #define SCE_H_ASPAT 16 #define SCE_H_CDATA 17 #define SCE_H_QUESTION 18 #define SCE_H_VALUE 19 #define SCE_H_XCCOMMENT 20 #define SCE_H_SGML_DEFAULT 21 #define SCE_H_SGML_COMMAND 22 #define SCE_H_SGML_1ST_PARAM 23 #define SCE_H_SGML_DOUBLESTRING 24 #define SCE_H_SGML_SIMPLESTRING 25 #define SCE_H_SGML_ERROR 26 #define SCE_H_SGML_SPECIAL 27 #define SCE_H_SGML_ENTITY 28 #define SCE_H_SGML_COMMENT 29 #define SCE_H_SGML_1ST_PARAM_COMMENT 30 #define SCE_H_SGML_BLOCK_DEFAULT 31 #define SCE_HJ_START 40 #define SCE_HJ_DEFAULT 41 #define SCE_HJ_COMMENT 42 #define SCE_HJ_COMMENTLINE 43 #define SCE_HJ_COMMENTDOC 44 #define SCE_HJ_NUMBER 45 #define SCE_HJ_WORD 46 #define SCE_HJ_KEYWORD 47 #define SCE_HJ_DOUBLESTRING 48 #define SCE_HJ_SINGLESTRING 49 #define SCE_HJ_SYMBOLS 50 #define SCE_HJ_STRINGEOL 51 #define SCE_HJ_REGEX 52 #define SCE_HJA_START 55 #define SCE_HJA_DEFAULT 56 #define SCE_HJA_COMMENT 57 #define SCE_HJA_COMMENTLINE 58 #define SCE_HJA_COMMENTDOC 59 #define SCE_HJA_NUMBER 60 #define SCE_HJA_WORD 61 #define SCE_HJA_KEYWORD 62 #define SCE_HJA_DOUBLESTRING 63 #define SCE_HJA_SINGLESTRING 64 #define SCE_HJA_SYMBOLS 65 #define SCE_HJA_STRINGEOL 66 #define SCE_HJA_REGEX 67 #define SCE_HB_START 70 #define SCE_HB_DEFAULT 71 #define SCE_HB_COMMENTLINE 72 #define SCE_HB_NUMBER 73 #define SCE_HB_WORD 74 #define SCE_HB_STRING 75 #define SCE_HB_IDENTIFIER 76 #define SCE_HB_STRINGEOL 77 #define SCE_HBA_START 80 #define SCE_HBA_DEFAULT 81 #define SCE_HBA_COMMENTLINE 82 #define SCE_HBA_NUMBER 83 #define SCE_HBA_WORD 84 #define SCE_HBA_STRING 85 #define SCE_HBA_IDENTIFIER 86 #define SCE_HBA_STRINGEOL 87 #define SCE_HP_START 90 #define SCE_HP_DEFAULT 91 #define SCE_HP_COMMENTLINE 92 #define SCE_HP_NUMBER 93 #define SCE_HP_STRING 94 #define SCE_HP_CHARACTER 95 #define SCE_HP_WORD 96 #define SCE_HP_TRIPLE 97 #define SCE_HP_TRIPLEDOUBLE 98 #define SCE_HP_CLASSNAME 99 #define SCE_HP_DEFNAME 100 #define SCE_HP_OPERATOR 101 #define SCE_HP_IDENTIFIER 102 #define SCE_HPHP_COMPLEX_VARIABLE 104 #define SCE_HPA_START 105 #define SCE_HPA_DEFAULT 106 #define SCE_HPA_COMMENTLINE 107 #define SCE_HPA_NUMBER 108 #define SCE_HPA_STRING 109 #define SCE_HPA_CHARACTER 110 #define SCE_HPA_WORD 111 #define SCE_HPA_TRIPLE 112 #define SCE_HPA_TRIPLEDOUBLE 113 #define SCE_HPA_CLASSNAME 114 #define SCE_HPA_DEFNAME 115 #define SCE_HPA_OPERATOR 116 #define SCE_HPA_IDENTIFIER 117 #define SCE_HPHP_DEFAULT 118 #define SCE_HPHP_HSTRING 119 #define SCE_HPHP_SIMPLESTRING 120 #define SCE_HPHP_WORD 121 #define SCE_HPHP_NUMBER 122 #define SCE_HPHP_VARIABLE 123 #define SCE_HPHP_COMMENT 124 #define SCE_HPHP_COMMENTLINE 125 #define SCE_HPHP_HSTRING_VARIABLE 126 #define SCE_HPHP_OPERATOR 127 #define SCE_PL_DEFAULT 0 #define SCE_PL_ERROR 1 #define SCE_PL_COMMENTLINE 2 #define SCE_PL_POD 3 #define SCE_PL_NUMBER 4 #define SCE_PL_WORD 5 #define SCE_PL_STRING 6 #define SCE_PL_CHARACTER 7 #define SCE_PL_PUNCTUATION 8 #define SCE_PL_PREPROCESSOR 9 #define SCE_PL_OPERATOR 10 #define SCE_PL_IDENTIFIER 11 #define SCE_PL_SCALAR 12 #define SCE_PL_ARRAY 13 #define SCE_PL_HASH 14 #define SCE_PL_SYMBOLTABLE 15 #define SCE_PL_VARIABLE_INDEXER 16 #define SCE_PL_REGEX 17 #define SCE_PL_REGSUBST 18 #define SCE_PL_LONGQUOTE 19 #define SCE_PL_BACKTICKS 20 #define SCE_PL_DATASECTION 21 #define SCE_PL_HERE_DELIM 22 #define SCE_PL_HERE_Q 23 #define SCE_PL_HERE_QQ 24 #define SCE_PL_HERE_QX 25 #define SCE_PL_STRING_Q 26 #define SCE_PL_STRING_QQ 27 #define SCE_PL_STRING_QX 28 #define SCE_PL_STRING_QR 29 #define SCE_PL_STRING_QW 30 #define SCE_PL_POD_VERB 31 #define SCE_PL_SUB_PROTOTYPE 40 #define SCE_PL_FORMAT_IDENT 41 #define SCE_PL_FORMAT 42 #define SCE_PL_STRING_VAR 43 #define SCE_PL_XLAT 44 #define SCE_PL_REGEX_VAR 54 #define SCE_PL_REGSUBST_VAR 55 #define SCE_PL_BACKTICKS_VAR 57 #define SCE_PL_HERE_QQ_VAR 61 #define SCE_PL_HERE_QX_VAR 62 #define SCE_PL_STRING_QQ_VAR 64 #define SCE_PL_STRING_QX_VAR 65 #define SCE_PL_STRING_QR_VAR 66 #define SCE_RB_DEFAULT 0 #define SCE_RB_ERROR 1 #define SCE_RB_COMMENTLINE 2 #define SCE_RB_POD 3 #define SCE_RB_NUMBER 4 #define SCE_RB_WORD 5 #define SCE_RB_STRING 6 #define SCE_RB_CHARACTER 7 #define SCE_RB_CLASSNAME 8 #define SCE_RB_DEFNAME 9 #define SCE_RB_OPERATOR 10 #define SCE_RB_IDENTIFIER 11 #define SCE_RB_REGEX 12 #define SCE_RB_GLOBAL 13 #define SCE_RB_SYMBOL 14 #define SCE_RB_MODULE_NAME 15 #define SCE_RB_INSTANCE_VAR 16 #define SCE_RB_CLASS_VAR 17 #define SCE_RB_BACKTICKS 18 #define SCE_RB_DATASECTION 19 #define SCE_RB_HERE_DELIM 20 #define SCE_RB_HERE_Q 21 #define SCE_RB_HERE_QQ 22 #define SCE_RB_HERE_QX 23 #define SCE_RB_STRING_Q 24 #define SCE_RB_STRING_QQ 25 #define SCE_RB_STRING_QX 26 #define SCE_RB_STRING_QR 27 #define SCE_RB_STRING_QW 28 #define SCE_RB_WORD_DEMOTED 29 #define SCE_RB_STDIN 30 #define SCE_RB_STDOUT 31 #define SCE_RB_STDERR 40 #define SCE_RB_UPPER_BOUND 41 #define SCE_B_DEFAULT 0 #define SCE_B_COMMENT 1 #define SCE_B_NUMBER 2 #define SCE_B_KEYWORD 3 #define SCE_B_STRING 4 #define SCE_B_PREPROCESSOR 5 #define SCE_B_OPERATOR 6 #define SCE_B_IDENTIFIER 7 #define SCE_B_DATE 8 #define SCE_B_STRINGEOL 9 #define SCE_B_KEYWORD2 10 #define SCE_B_KEYWORD3 11 #define SCE_B_KEYWORD4 12 #define SCE_B_CONSTANT 13 #define SCE_B_ASM 14 #define SCE_B_LABEL 15 #define SCE_B_ERROR 16 #define SCE_B_HEXNUMBER 17 #define SCE_B_BINNUMBER 18 #define SCE_B_COMMENTBLOCK 19 #define SCE_B_DOCLINE 20 #define SCE_B_DOCBLOCK 21 #define SCE_B_DOCKEYWORD 22 #define SCE_PROPS_DEFAULT 0 #define SCE_PROPS_COMMENT 1 #define SCE_PROPS_SECTION 2 #define SCE_PROPS_ASSIGNMENT 3 #define SCE_PROPS_DEFVAL 4 #define SCE_PROPS_KEY 5 #define SCE_L_DEFAULT 0 #define SCE_L_COMMAND 1 #define SCE_L_TAG 2 #define SCE_L_MATH 3 #define SCE_L_COMMENT 4 #define SCE_L_TAG2 5 #define SCE_L_MATH2 6 #define SCE_L_COMMENT2 7 #define SCE_L_VERBATIM 8 #define SCE_L_SHORTCMD 9 #define SCE_L_SPECIAL 10 #define SCE_L_CMDOPT 11 #define SCE_L_ERROR 12 #define SCE_LUA_DEFAULT 0 #define SCE_LUA_COMMENT 1 #define SCE_LUA_COMMENTLINE 2 #define SCE_LUA_COMMENTDOC 3 #define SCE_LUA_NUMBER 4 #define SCE_LUA_WORD 5 #define SCE_LUA_STRING 6 #define SCE_LUA_CHARACTER 7 #define SCE_LUA_LITERALSTRING 8 #define SCE_LUA_PREPROCESSOR 9 #define SCE_LUA_OPERATOR 10 #define SCE_LUA_IDENTIFIER 11 #define SCE_LUA_STRINGEOL 12 #define SCE_LUA_WORD2 13 #define SCE_LUA_WORD3 14 #define SCE_LUA_WORD4 15 #define SCE_LUA_WORD5 16 #define SCE_LUA_WORD6 17 #define SCE_LUA_WORD7 18 #define SCE_LUA_WORD8 19 #define SCE_LUA_LABEL 20 #define SCE_ERR_DEFAULT 0 #define SCE_ERR_PYTHON 1 #define SCE_ERR_GCC 2 #define SCE_ERR_MS 3 #define SCE_ERR_CMD 4 #define SCE_ERR_BORLAND 5 #define SCE_ERR_PERL 6 #define SCE_ERR_NET 7 #define SCE_ERR_LUA 8 #define SCE_ERR_CTAG 9 #define SCE_ERR_DIFF_CHANGED 10 #define SCE_ERR_DIFF_ADDITION 11 #define SCE_ERR_DIFF_DELETION 12 #define SCE_ERR_DIFF_MESSAGE 13 #define SCE_ERR_PHP 14 #define SCE_ERR_ELF 15 #define SCE_ERR_IFC 16 #define SCE_ERR_IFORT 17 #define SCE_ERR_ABSF 18 #define SCE_ERR_TIDY 19 #define SCE_ERR_JAVA_STACK 20 #define SCE_ERR_VALUE 21 #define SCE_ERR_GCC_INCLUDED_FROM 22 #define SCE_ERR_ESCSEQ 23 #define SCE_ERR_ESCSEQ_UNKNOWN 24 #define SCE_ERR_ES_BLACK 40 #define SCE_ERR_ES_RED 41 #define SCE_ERR_ES_GREEN 42 #define SCE_ERR_ES_BROWN 43 #define SCE_ERR_ES_BLUE 44 #define SCE_ERR_ES_MAGENTA 45 #define SCE_ERR_ES_CYAN 46 #define SCE_ERR_ES_GRAY 47 #define SCE_ERR_ES_DARK_GRAY 48 #define SCE_ERR_ES_BRIGHT_RED 49 #define SCE_ERR_ES_BRIGHT_GREEN 50 #define SCE_ERR_ES_YELLOW 51 #define SCE_ERR_ES_BRIGHT_BLUE 52 #define SCE_ERR_ES_BRIGHT_MAGENTA 53 #define SCE_ERR_ES_BRIGHT_CYAN 54 #define SCE_ERR_ES_WHITE 55 #define SCE_BAT_DEFAULT 0 #define SCE_BAT_COMMENT 1 #define SCE_BAT_WORD 2 #define SCE_BAT_LABEL 3 #define SCE_BAT_HIDE 4 #define SCE_BAT_COMMAND 5 #define SCE_BAT_IDENTIFIER 6 #define SCE_BAT_OPERATOR 7 #define SCE_TCMD_DEFAULT 0 #define SCE_TCMD_COMMENT 1 #define SCE_TCMD_WORD 2 #define SCE_TCMD_LABEL 3 #define SCE_TCMD_HIDE 4 #define SCE_TCMD_COMMAND 5 #define SCE_TCMD_IDENTIFIER 6 #define SCE_TCMD_OPERATOR 7 #define SCE_TCMD_ENVIRONMENT 8 #define SCE_TCMD_EXPANSION 9 #define SCE_TCMD_CLABEL 10 #define SCE_MAKE_DEFAULT 0 #define SCE_MAKE_COMMENT 1 #define SCE_MAKE_PREPROCESSOR 2 #define SCE_MAKE_IDENTIFIER 3 #define SCE_MAKE_OPERATOR 4 #define SCE_MAKE_TARGET 5 #define SCE_MAKE_IDEOL 9 #define SCE_DIFF_DEFAULT 0 #define SCE_DIFF_COMMENT 1 #define SCE_DIFF_COMMAND 2 #define SCE_DIFF_HEADER 3 #define SCE_DIFF_POSITION 4 #define SCE_DIFF_DELETED 5 #define SCE_DIFF_ADDED 6 #define SCE_DIFF_CHANGED 7 #define SCE_CONF_DEFAULT 0 #define SCE_CONF_COMMENT 1 #define SCE_CONF_NUMBER 2 #define SCE_CONF_IDENTIFIER 3 #define SCE_CONF_EXTENSION 4 #define SCE_CONF_PARAMETER 5 #define SCE_CONF_STRING 6 #define SCE_CONF_OPERATOR 7 #define SCE_CONF_IP 8 #define SCE_CONF_DIRECTIVE 9 #define SCE_AVE_DEFAULT 0 #define SCE_AVE_COMMENT 1 #define SCE_AVE_NUMBER 2 #define SCE_AVE_WORD 3 #define SCE_AVE_STRING 6 #define SCE_AVE_ENUM 7 #define SCE_AVE_STRINGEOL 8 #define SCE_AVE_IDENTIFIER 9 #define SCE_AVE_OPERATOR 10 #define SCE_AVE_WORD1 11 #define SCE_AVE_WORD2 12 #define SCE_AVE_WORD3 13 #define SCE_AVE_WORD4 14 #define SCE_AVE_WORD5 15 #define SCE_AVE_WORD6 16 #define SCE_ADA_DEFAULT 0 #define SCE_ADA_WORD 1 #define SCE_ADA_IDENTIFIER 2 #define SCE_ADA_NUMBER 3 #define SCE_ADA_DELIMITER 4 #define SCE_ADA_CHARACTER 5 #define SCE_ADA_CHARACTEREOL 6 #define SCE_ADA_STRING 7 #define SCE_ADA_STRINGEOL 8 #define SCE_ADA_LABEL 9 #define SCE_ADA_COMMENTLINE 10 #define SCE_ADA_ILLEGAL 11 #define SCE_BAAN_DEFAULT 0 #define SCE_BAAN_COMMENT 1 #define SCE_BAAN_COMMENTDOC 2 #define SCE_BAAN_NUMBER 3 #define SCE_BAAN_WORD 4 #define SCE_BAAN_STRING 5 #define SCE_BAAN_PREPROCESSOR 6 #define SCE_BAAN_OPERATOR 7 #define SCE_BAAN_IDENTIFIER 8 #define SCE_BAAN_STRINGEOL 9 #define SCE_BAAN_WORD2 10 #define SCE_BAAN_WORD3 11 #define SCE_BAAN_WORD4 12 #define SCE_BAAN_WORD5 13 #define SCE_BAAN_WORD6 14 #define SCE_BAAN_WORD7 15 #define SCE_BAAN_WORD8 16 #define SCE_BAAN_WORD9 17 #define SCE_BAAN_TABLEDEF 18 #define SCE_BAAN_TABLESQL 19 #define SCE_BAAN_FUNCTION 20 #define SCE_BAAN_DOMDEF 21 #define SCE_BAAN_FUNCDEF 22 #define SCE_BAAN_OBJECTDEF 23 #define SCE_BAAN_DEFINEDEF 24 #define SCE_LISP_DEFAULT 0 #define SCE_LISP_COMMENT 1 #define SCE_LISP_NUMBER 2 #define SCE_LISP_KEYWORD 3 #define SCE_LISP_KEYWORD_KW 4 #define SCE_LISP_SYMBOL 5 #define SCE_LISP_STRING 6 #define SCE_LISP_STRINGEOL 8 #define SCE_LISP_IDENTIFIER 9 #define SCE_LISP_OPERATOR 10 #define SCE_LISP_SPECIAL 11 #define SCE_LISP_MULTI_COMMENT 12 #define SCE_EIFFEL_DEFAULT 0 #define SCE_EIFFEL_COMMENTLINE 1 #define SCE_EIFFEL_NUMBER 2 #define SCE_EIFFEL_WORD 3 #define SCE_EIFFEL_STRING 4 #define SCE_EIFFEL_CHARACTER 5 #define SCE_EIFFEL_OPERATOR 6 #define SCE_EIFFEL_IDENTIFIER 7 #define SCE_EIFFEL_STRINGEOL 8 #define SCE_NNCRONTAB_DEFAULT 0 #define SCE_NNCRONTAB_COMMENT 1 #define SCE_NNCRONTAB_TASK 2 #define SCE_NNCRONTAB_SECTION 3 #define SCE_NNCRONTAB_KEYWORD 4 #define SCE_NNCRONTAB_MODIFIER 5 #define SCE_NNCRONTAB_ASTERISK 6 #define SCE_NNCRONTAB_NUMBER 7 #define SCE_NNCRONTAB_STRING 8 #define SCE_NNCRONTAB_ENVIRONMENT 9 #define SCE_NNCRONTAB_IDENTIFIER 10 #define SCE_FORTH_DEFAULT 0 #define SCE_FORTH_COMMENT 1 #define SCE_FORTH_COMMENT_ML 2 #define SCE_FORTH_IDENTIFIER 3 #define SCE_FORTH_CONTROL 4 #define SCE_FORTH_KEYWORD 5 #define SCE_FORTH_DEFWORD 6 #define SCE_FORTH_PREWORD1 7 #define SCE_FORTH_PREWORD2 8 #define SCE_FORTH_NUMBER 9 #define SCE_FORTH_STRING 10 #define SCE_FORTH_LOCALE 11 #define SCE_MATLAB_DEFAULT 0 #define SCE_MATLAB_COMMENT 1 #define SCE_MATLAB_COMMAND 2 #define SCE_MATLAB_NUMBER 3 #define SCE_MATLAB_KEYWORD 4 #define SCE_MATLAB_STRING 5 #define SCE_MATLAB_OPERATOR 6 #define SCE_MATLAB_IDENTIFIER 7 #define SCE_MATLAB_DOUBLEQUOTESTRING 8 #define SCE_SCRIPTOL_DEFAULT 0 #define SCE_SCRIPTOL_WHITE 1 #define SCE_SCRIPTOL_COMMENTLINE 2 #define SCE_SCRIPTOL_PERSISTENT 3 #define SCE_SCRIPTOL_CSTYLE 4 #define SCE_SCRIPTOL_COMMENTBLOCK 5 #define SCE_SCRIPTOL_NUMBER 6 #define SCE_SCRIPTOL_STRING 7 #define SCE_SCRIPTOL_CHARACTER 8 #define SCE_SCRIPTOL_STRINGEOL 9 #define SCE_SCRIPTOL_KEYWORD 10 #define SCE_SCRIPTOL_OPERATOR 11 #define SCE_SCRIPTOL_IDENTIFIER 12 #define SCE_SCRIPTOL_TRIPLE 13 #define SCE_SCRIPTOL_CLASSNAME 14 #define SCE_SCRIPTOL_PREPROCESSOR 15 #define SCE_ASM_DEFAULT 0 #define SCE_ASM_COMMENT 1 #define SCE_ASM_NUMBER 2 #define SCE_ASM_STRING 3 #define SCE_ASM_OPERATOR 4 #define SCE_ASM_IDENTIFIER 5 #define SCE_ASM_CPUINSTRUCTION 6 #define SCE_ASM_MATHINSTRUCTION 7 #define SCE_ASM_REGISTER 8 #define SCE_ASM_DIRECTIVE 9 #define SCE_ASM_DIRECTIVEOPERAND 10 #define SCE_ASM_COMMENTBLOCK 11 #define SCE_ASM_CHARACTER 12 #define SCE_ASM_STRINGEOL 13 #define SCE_ASM_EXTINSTRUCTION 14 #define SCE_ASM_COMMENTDIRECTIVE 15 #define SCE_F_DEFAULT 0 #define SCE_F_COMMENT 1 #define SCE_F_NUMBER 2 #define SCE_F_STRING1 3 #define SCE_F_STRING2 4 #define SCE_F_STRINGEOL 5 #define SCE_F_OPERATOR 6 #define SCE_F_IDENTIFIER 7 #define SCE_F_WORD 8 #define SCE_F_WORD2 9 #define SCE_F_WORD3 10 #define SCE_F_PREPROCESSOR 11 #define SCE_F_OPERATOR2 12 #define SCE_F_LABEL 13 #define SCE_F_CONTINUATION 14 #define SCE_CSS_DEFAULT 0 #define SCE_CSS_TAG 1 #define SCE_CSS_CLASS 2 #define SCE_CSS_PSEUDOCLASS 3 #define SCE_CSS_UNKNOWN_PSEUDOCLASS 4 #define SCE_CSS_OPERATOR 5 #define SCE_CSS_IDENTIFIER 6 #define SCE_CSS_UNKNOWN_IDENTIFIER 7 #define SCE_CSS_VALUE 8 #define SCE_CSS_COMMENT 9 #define SCE_CSS_ID 10 #define SCE_CSS_IMPORTANT 11 #define SCE_CSS_DIRECTIVE 12 #define SCE_CSS_DOUBLESTRING 13 #define SCE_CSS_SINGLESTRING 14 #define SCE_CSS_IDENTIFIER2 15 #define SCE_CSS_ATTRIBUTE 16 #define SCE_CSS_IDENTIFIER3 17 #define SCE_CSS_PSEUDOELEMENT 18 #define SCE_CSS_EXTENDED_IDENTIFIER 19 #define SCE_CSS_EXTENDED_PSEUDOCLASS 20 #define SCE_CSS_EXTENDED_PSEUDOELEMENT 21 #define SCE_CSS_MEDIA 22 #define SCE_CSS_VARIABLE 23 #define SCE_POV_DEFAULT 0 #define SCE_POV_COMMENT 1 #define SCE_POV_COMMENTLINE 2 #define SCE_POV_NUMBER 3 #define SCE_POV_OPERATOR 4 #define SCE_POV_IDENTIFIER 5 #define SCE_POV_STRING 6 #define SCE_POV_STRINGEOL 7 #define SCE_POV_DIRECTIVE 8 #define SCE_POV_BADDIRECTIVE 9 #define SCE_POV_WORD2 10 #define SCE_POV_WORD3 11 #define SCE_POV_WORD4 12 #define SCE_POV_WORD5 13 #define SCE_POV_WORD6 14 #define SCE_POV_WORD7 15 #define SCE_POV_WORD8 16 #define SCE_LOUT_DEFAULT 0 #define SCE_LOUT_COMMENT 1 #define SCE_LOUT_NUMBER 2 #define SCE_LOUT_WORD 3 #define SCE_LOUT_WORD2 4 #define SCE_LOUT_WORD3 5 #define SCE_LOUT_WORD4 6 #define SCE_LOUT_STRING 7 #define SCE_LOUT_OPERATOR 8 #define SCE_LOUT_IDENTIFIER 9 #define SCE_LOUT_STRINGEOL 10 #define SCE_ESCRIPT_DEFAULT 0 #define SCE_ESCRIPT_COMMENT 1 #define SCE_ESCRIPT_COMMENTLINE 2 #define SCE_ESCRIPT_COMMENTDOC 3 #define SCE_ESCRIPT_NUMBER 4 #define SCE_ESCRIPT_WORD 5 #define SCE_ESCRIPT_STRING 6 #define SCE_ESCRIPT_OPERATOR 7 #define SCE_ESCRIPT_IDENTIFIER 8 #define SCE_ESCRIPT_BRACE 9 #define SCE_ESCRIPT_WORD2 10 #define SCE_ESCRIPT_WORD3 11 #define SCE_PS_DEFAULT 0 #define SCE_PS_COMMENT 1 #define SCE_PS_DSC_COMMENT 2 #define SCE_PS_DSC_VALUE 3 #define SCE_PS_NUMBER 4 #define SCE_PS_NAME 5 #define SCE_PS_KEYWORD 6 #define SCE_PS_LITERAL 7 #define SCE_PS_IMMEVAL 8 #define SCE_PS_PAREN_ARRAY 9 #define SCE_PS_PAREN_DICT 10 #define SCE_PS_PAREN_PROC 11 #define SCE_PS_TEXT 12 #define SCE_PS_HEXSTRING 13 #define SCE_PS_BASE85STRING 14 #define SCE_PS_BADSTRINGCHAR 15 #define SCE_NSIS_DEFAULT 0 #define SCE_NSIS_COMMENT 1 #define SCE_NSIS_STRINGDQ 2 #define SCE_NSIS_STRINGLQ 3 #define SCE_NSIS_STRINGRQ 4 #define SCE_NSIS_FUNCTION 5 #define SCE_NSIS_VARIABLE 6 #define SCE_NSIS_LABEL 7 #define SCE_NSIS_USERDEFINED 8 #define SCE_NSIS_SECTIONDEF 9 #define SCE_NSIS_SUBSECTIONDEF 10 #define SCE_NSIS_IFDEFINEDEF 11 #define SCE_NSIS_MACRODEF 12 #define SCE_NSIS_STRINGVAR 13 #define SCE_NSIS_NUMBER 14 #define SCE_NSIS_SECTIONGROUP 15 #define SCE_NSIS_PAGEEX 16 #define SCE_NSIS_FUNCTIONDEF 17 #define SCE_NSIS_COMMENTBOX 18 #define SCE_MMIXAL_LEADWS 0 #define SCE_MMIXAL_COMMENT 1 #define SCE_MMIXAL_LABEL 2 #define SCE_MMIXAL_OPCODE 3 #define SCE_MMIXAL_OPCODE_PRE 4 #define SCE_MMIXAL_OPCODE_VALID 5 #define SCE_MMIXAL_OPCODE_UNKNOWN 6 #define SCE_MMIXAL_OPCODE_POST 7 #define SCE_MMIXAL_OPERANDS 8 #define SCE_MMIXAL_NUMBER 9 #define SCE_MMIXAL_REF 10 #define SCE_MMIXAL_CHAR 11 #define SCE_MMIXAL_STRING 12 #define SCE_MMIXAL_REGISTER 13 #define SCE_MMIXAL_HEX 14 #define SCE_MMIXAL_OPERATOR 15 #define SCE_MMIXAL_SYMBOL 16 #define SCE_MMIXAL_INCLUDE 17 #define SCE_CLW_DEFAULT 0 #define SCE_CLW_LABEL 1 #define SCE_CLW_COMMENT 2 #define SCE_CLW_STRING 3 #define SCE_CLW_USER_IDENTIFIER 4 #define SCE_CLW_INTEGER_CONSTANT 5 #define SCE_CLW_REAL_CONSTANT 6 #define SCE_CLW_PICTURE_STRING 7 #define SCE_CLW_KEYWORD 8 #define SCE_CLW_COMPILER_DIRECTIVE 9 #define SCE_CLW_RUNTIME_EXPRESSIONS 10 #define SCE_CLW_BUILTIN_PROCEDURES_FUNCTION 11 #define SCE_CLW_STRUCTURE_DATA_TYPE 12 #define SCE_CLW_ATTRIBUTE 13 #define SCE_CLW_STANDARD_EQUATE 14 #define SCE_CLW_ERROR 15 #define SCE_CLW_DEPRECATED 16 #define SCE_LOT_DEFAULT 0 #define SCE_LOT_HEADER 1 #define SCE_LOT_BREAK 2 #define SCE_LOT_SET 3 #define SCE_LOT_PASS 4 #define SCE_LOT_FAIL 5 #define SCE_LOT_ABORT 6 #define SCE_YAML_DEFAULT 0 #define SCE_YAML_COMMENT 1 #define SCE_YAML_IDENTIFIER 2 #define SCE_YAML_KEYWORD 3 #define SCE_YAML_NUMBER 4 #define SCE_YAML_REFERENCE 5 #define SCE_YAML_DOCUMENT 6 #define SCE_YAML_TEXT 7 #define SCE_YAML_ERROR 8 #define SCE_YAML_OPERATOR 9 #define SCE_TEX_DEFAULT 0 #define SCE_TEX_SPECIAL 1 #define SCE_TEX_GROUP 2 #define SCE_TEX_SYMBOL 3 #define SCE_TEX_COMMAND 4 #define SCE_TEX_TEXT 5 #define SCE_METAPOST_DEFAULT 0 #define SCE_METAPOST_SPECIAL 1 #define SCE_METAPOST_GROUP 2 #define SCE_METAPOST_SYMBOL 3 #define SCE_METAPOST_COMMAND 4 #define SCE_METAPOST_TEXT 5 #define SCE_METAPOST_EXTRA 6 #define SCE_ERLANG_DEFAULT 0 #define SCE_ERLANG_COMMENT 1 #define SCE_ERLANG_VARIABLE 2 #define SCE_ERLANG_NUMBER 3 #define SCE_ERLANG_KEYWORD 4 #define SCE_ERLANG_STRING 5 #define SCE_ERLANG_OPERATOR 6 #define SCE_ERLANG_ATOM 7 #define SCE_ERLANG_FUNCTION_NAME 8 #define SCE_ERLANG_CHARACTER 9 #define SCE_ERLANG_MACRO 10 #define SCE_ERLANG_RECORD 11 #define SCE_ERLANG_PREPROC 12 #define SCE_ERLANG_NODE_NAME 13 #define SCE_ERLANG_COMMENT_FUNCTION 14 #define SCE_ERLANG_COMMENT_MODULE 15 #define SCE_ERLANG_COMMENT_DOC 16 #define SCE_ERLANG_COMMENT_DOC_MACRO 17 #define SCE_ERLANG_ATOM_QUOTED 18 #define SCE_ERLANG_MACRO_QUOTED 19 #define SCE_ERLANG_RECORD_QUOTED 20 #define SCE_ERLANG_NODE_NAME_QUOTED 21 #define SCE_ERLANG_BIFS 22 #define SCE_ERLANG_MODULES 23 #define SCE_ERLANG_MODULES_ATT 24 #define SCE_ERLANG_UNKNOWN 31 #define SCE_MSSQL_DEFAULT 0 #define SCE_MSSQL_COMMENT 1 #define SCE_MSSQL_LINE_COMMENT 2 #define SCE_MSSQL_NUMBER 3 #define SCE_MSSQL_STRING 4 #define SCE_MSSQL_OPERATOR 5 #define SCE_MSSQL_IDENTIFIER 6 #define SCE_MSSQL_VARIABLE 7 #define SCE_MSSQL_COLUMN_NAME 8 #define SCE_MSSQL_STATEMENT 9 #define SCE_MSSQL_DATATYPE 10 #define SCE_MSSQL_SYSTABLE 11 #define SCE_MSSQL_GLOBAL_VARIABLE 12 #define SCE_MSSQL_FUNCTION 13 #define SCE_MSSQL_STORED_PROCEDURE 14 #define SCE_MSSQL_DEFAULT_PREF_DATATYPE 15 #define SCE_MSSQL_COLUMN_NAME_2 16 #define SCE_V_DEFAULT 0 #define SCE_V_COMMENT 1 #define SCE_V_COMMENTLINE 2 #define SCE_V_COMMENTLINEBANG 3 #define SCE_V_NUMBER 4 #define SCE_V_WORD 5 #define SCE_V_STRING 6 #define SCE_V_WORD2 7 #define SCE_V_WORD3 8 #define SCE_V_PREPROCESSOR 9 #define SCE_V_OPERATOR 10 #define SCE_V_IDENTIFIER 11 #define SCE_V_STRINGEOL 12 #define SCE_V_USER 19 #define SCE_V_COMMENT_WORD 20 #define SCE_V_INPUT 21 #define SCE_V_OUTPUT 22 #define SCE_V_INOUT 23 #define SCE_V_PORT_CONNECT 24 #define SCE_KIX_DEFAULT 0 #define SCE_KIX_COMMENT 1 #define SCE_KIX_STRING1 2 #define SCE_KIX_STRING2 3 #define SCE_KIX_NUMBER 4 #define SCE_KIX_VAR 5 #define SCE_KIX_MACRO 6 #define SCE_KIX_KEYWORD 7 #define SCE_KIX_FUNCTIONS 8 #define SCE_KIX_OPERATOR 9 #define SCE_KIX_COMMENTSTREAM 10 #define SCE_KIX_IDENTIFIER 31 #define SCE_GC_DEFAULT 0 #define SCE_GC_COMMENTLINE 1 #define SCE_GC_COMMENTBLOCK 2 #define SCE_GC_GLOBAL 3 #define SCE_GC_EVENT 4 #define SCE_GC_ATTRIBUTE 5 #define SCE_GC_CONTROL 6 #define SCE_GC_COMMAND 7 #define SCE_GC_STRING 8 #define SCE_GC_OPERATOR 9 #define SCE_SN_DEFAULT 0 #define SCE_SN_CODE 1 #define SCE_SN_COMMENTLINE 2 #define SCE_SN_COMMENTLINEBANG 3 #define SCE_SN_NUMBER 4 #define SCE_SN_WORD 5 #define SCE_SN_STRING 6 #define SCE_SN_WORD2 7 #define SCE_SN_WORD3 8 #define SCE_SN_PREPROCESSOR 9 #define SCE_SN_OPERATOR 10 #define SCE_SN_IDENTIFIER 11 #define SCE_SN_STRINGEOL 12 #define SCE_SN_REGEXTAG 13 #define SCE_SN_SIGNAL 14 #define SCE_SN_USER 19 #define SCE_AU3_DEFAULT 0 #define SCE_AU3_COMMENT 1 #define SCE_AU3_COMMENTBLOCK 2 #define SCE_AU3_NUMBER 3 #define SCE_AU3_FUNCTION 4 #define SCE_AU3_KEYWORD 5 #define SCE_AU3_MACRO 6 #define SCE_AU3_STRING 7 #define SCE_AU3_OPERATOR 8 #define SCE_AU3_VARIABLE 9 #define SCE_AU3_SENT 10 #define SCE_AU3_PREPROCESSOR 11 #define SCE_AU3_SPECIAL 12 #define SCE_AU3_EXPAND 13 #define SCE_AU3_COMOBJ 14 #define SCE_AU3_UDF 15 #define SCE_APDL_DEFAULT 0 #define SCE_APDL_COMMENT 1 #define SCE_APDL_COMMENTBLOCK 2 #define SCE_APDL_NUMBER 3 #define SCE_APDL_STRING 4 #define SCE_APDL_OPERATOR 5 #define SCE_APDL_WORD 6 #define SCE_APDL_PROCESSOR 7 #define SCE_APDL_COMMAND 8 #define SCE_APDL_SLASHCOMMAND 9 #define SCE_APDL_STARCOMMAND 10 #define SCE_APDL_ARGUMENT 11 #define SCE_APDL_FUNCTION 12 #define SCE_SH_DEFAULT 0 #define SCE_SH_ERROR 1 #define SCE_SH_COMMENTLINE 2 #define SCE_SH_NUMBER 3 #define SCE_SH_WORD 4 #define SCE_SH_STRING 5 #define SCE_SH_CHARACTER 6 #define SCE_SH_OPERATOR 7 #define SCE_SH_IDENTIFIER 8 #define SCE_SH_SCALAR 9 #define SCE_SH_PARAM 10 #define SCE_SH_BACKTICKS 11 #define SCE_SH_HERE_DELIM 12 #define SCE_SH_HERE_Q 13 #define SCE_ASN1_DEFAULT 0 #define SCE_ASN1_COMMENT 1 #define SCE_ASN1_IDENTIFIER 2 #define SCE_ASN1_STRING 3 #define SCE_ASN1_OID 4 #define SCE_ASN1_SCALAR 5 #define SCE_ASN1_KEYWORD 6 #define SCE_ASN1_ATTRIBUTE 7 #define SCE_ASN1_DESCRIPTOR 8 #define SCE_ASN1_TYPE 9 #define SCE_ASN1_OPERATOR 10 #define SCE_VHDL_DEFAULT 0 #define SCE_VHDL_COMMENT 1 #define SCE_VHDL_COMMENTLINEBANG 2 #define SCE_VHDL_NUMBER 3 #define SCE_VHDL_STRING 4 #define SCE_VHDL_OPERATOR 5 #define SCE_VHDL_IDENTIFIER 6 #define SCE_VHDL_STRINGEOL 7 #define SCE_VHDL_KEYWORD 8 #define SCE_VHDL_STDOPERATOR 9 #define SCE_VHDL_ATTRIBUTE 10 #define SCE_VHDL_STDFUNCTION 11 #define SCE_VHDL_STDPACKAGE 12 #define SCE_VHDL_STDTYPE 13 #define SCE_VHDL_USERWORD 14 #define SCE_VHDL_BLOCK_COMMENT 15 #define SCE_CAML_DEFAULT 0 #define SCE_CAML_IDENTIFIER 1 #define SCE_CAML_TAGNAME 2 #define SCE_CAML_KEYWORD 3 #define SCE_CAML_KEYWORD2 4 #define SCE_CAML_KEYWORD3 5 #define SCE_CAML_LINENUM 6 #define SCE_CAML_OPERATOR 7 #define SCE_CAML_NUMBER 8 #define SCE_CAML_CHAR 9 #define SCE_CAML_WHITE 10 #define SCE_CAML_STRING 11 #define SCE_CAML_COMMENT 12 #define SCE_CAML_COMMENT1 13 #define SCE_CAML_COMMENT2 14 #define SCE_CAML_COMMENT3 15 #define SCE_HA_DEFAULT 0 #define SCE_HA_IDENTIFIER 1 #define SCE_HA_KEYWORD 2 #define SCE_HA_NUMBER 3 #define SCE_HA_STRING 4 #define SCE_HA_CHARACTER 5 #define SCE_HA_CLASS 6 #define SCE_HA_MODULE 7 #define SCE_HA_CAPITAL 8 #define SCE_HA_DATA 9 #define SCE_HA_IMPORT 10 #define SCE_HA_OPERATOR 11 #define SCE_HA_INSTANCE 12 #define SCE_HA_COMMENTLINE 13 #define SCE_HA_COMMENTBLOCK 14 #define SCE_HA_COMMENTBLOCK2 15 #define SCE_HA_COMMENTBLOCK3 16 #define SCE_HA_PRAGMA 17 #define SCE_HA_PREPROCESSOR 18 #define SCE_HA_STRINGEOL 19 #define SCE_HA_RESERVED_OPERATOR 20 #define SCE_HA_LITERATE_COMMENT 21 #define SCE_HA_LITERATE_CODEDELIM 22 #define SCE_T3_DEFAULT 0 #define SCE_T3_X_DEFAULT 1 #define SCE_T3_PREPROCESSOR 2 #define SCE_T3_BLOCK_COMMENT 3 #define SCE_T3_LINE_COMMENT 4 #define SCE_T3_OPERATOR 5 #define SCE_T3_KEYWORD 6 #define SCE_T3_NUMBER 7 #define SCE_T3_IDENTIFIER 8 #define SCE_T3_S_STRING 9 #define SCE_T3_D_STRING 10 #define SCE_T3_X_STRING 11 #define SCE_T3_LIB_DIRECTIVE 12 #define SCE_T3_MSG_PARAM 13 #define SCE_T3_HTML_TAG 14 #define SCE_T3_HTML_DEFAULT 15 #define SCE_T3_HTML_STRING 16 #define SCE_T3_USER1 17 #define SCE_T3_USER2 18 #define SCE_T3_USER3 19 #define SCE_T3_BRACE 20 #define SCE_REBOL_DEFAULT 0 #define SCE_REBOL_COMMENTLINE 1 #define SCE_REBOL_COMMENTBLOCK 2 #define SCE_REBOL_PREFACE 3 #define SCE_REBOL_OPERATOR 4 #define SCE_REBOL_CHARACTER 5 #define SCE_REBOL_QUOTEDSTRING 6 #define SCE_REBOL_BRACEDSTRING 7 #define SCE_REBOL_NUMBER 8 #define SCE_REBOL_PAIR 9 #define SCE_REBOL_TUPLE 10 #define SCE_REBOL_BINARY 11 #define SCE_REBOL_MONEY 12 #define SCE_REBOL_ISSUE 13 #define SCE_REBOL_TAG 14 #define SCE_REBOL_FILE 15 #define SCE_REBOL_EMAIL 16 #define SCE_REBOL_URL 17 #define SCE_REBOL_DATE 18 #define SCE_REBOL_TIME 19 #define SCE_REBOL_IDENTIFIER 20 #define SCE_REBOL_WORD 21 #define SCE_REBOL_WORD2 22 #define SCE_REBOL_WORD3 23 #define SCE_REBOL_WORD4 24 #define SCE_REBOL_WORD5 25 #define SCE_REBOL_WORD6 26 #define SCE_REBOL_WORD7 27 #define SCE_REBOL_WORD8 28 #define SCE_SQL_DEFAULT 0 #define SCE_SQL_COMMENT 1 #define SCE_SQL_COMMENTLINE 2 #define SCE_SQL_COMMENTDOC 3 #define SCE_SQL_NUMBER 4 #define SCE_SQL_WORD 5 #define SCE_SQL_STRING 6 #define SCE_SQL_CHARACTER 7 #define SCE_SQL_SQLPLUS 8 #define SCE_SQL_SQLPLUS_PROMPT 9 #define SCE_SQL_OPERATOR 10 #define SCE_SQL_IDENTIFIER 11 #define SCE_SQL_SQLPLUS_COMMENT 13 #define SCE_SQL_COMMENTLINEDOC 15 #define SCE_SQL_WORD2 16 #define SCE_SQL_COMMENTDOCKEYWORD 17 #define SCE_SQL_COMMENTDOCKEYWORDERROR 18 #define SCE_SQL_USER1 19 #define SCE_SQL_USER2 20 #define SCE_SQL_USER3 21 #define SCE_SQL_USER4 22 #define SCE_SQL_QUOTEDIDENTIFIER 23 #define SCE_SQL_QOPERATOR 24 #define SCE_ST_DEFAULT 0 #define SCE_ST_STRING 1 #define SCE_ST_NUMBER 2 #define SCE_ST_COMMENT 3 #define SCE_ST_SYMBOL 4 #define SCE_ST_BINARY 5 #define SCE_ST_BOOL 6 #define SCE_ST_SELF 7 #define SCE_ST_SUPER 8 #define SCE_ST_NIL 9 #define SCE_ST_GLOBAL 10 #define SCE_ST_RETURN 11 #define SCE_ST_SPECIAL 12 #define SCE_ST_KWSEND 13 #define SCE_ST_ASSIGN 14 #define SCE_ST_CHARACTER 15 #define SCE_ST_SPEC_SEL 16 #define SCE_FS_DEFAULT 0 #define SCE_FS_COMMENT 1 #define SCE_FS_COMMENTLINE 2 #define SCE_FS_COMMENTDOC 3 #define SCE_FS_COMMENTLINEDOC 4 #define SCE_FS_COMMENTDOCKEYWORD 5 #define SCE_FS_COMMENTDOCKEYWORDERROR 6 #define SCE_FS_KEYWORD 7 #define SCE_FS_KEYWORD2 8 #define SCE_FS_KEYWORD3 9 #define SCE_FS_KEYWORD4 10 #define SCE_FS_NUMBER 11 #define SCE_FS_STRING 12 #define SCE_FS_PREPROCESSOR 13 #define SCE_FS_OPERATOR 14 #define SCE_FS_IDENTIFIER 15 #define SCE_FS_DATE 16 #define SCE_FS_STRINGEOL 17 #define SCE_FS_CONSTANT 18 #define SCE_FS_WORDOPERATOR 19 #define SCE_FS_DISABLEDCODE 20 #define SCE_FS_DEFAULT_C 21 #define SCE_FS_COMMENTDOC_C 22 #define SCE_FS_COMMENTLINEDOC_C 23 #define SCE_FS_KEYWORD_C 24 #define SCE_FS_KEYWORD2_C 25 #define SCE_FS_NUMBER_C 26 #define SCE_FS_STRING_C 27 #define SCE_FS_PREPROCESSOR_C 28 #define SCE_FS_OPERATOR_C 29 #define SCE_FS_IDENTIFIER_C 30 #define SCE_FS_STRINGEOL_C 31 #define SCE_CSOUND_DEFAULT 0 #define SCE_CSOUND_COMMENT 1 #define SCE_CSOUND_NUMBER 2 #define SCE_CSOUND_OPERATOR 3 #define SCE_CSOUND_INSTR 4 #define SCE_CSOUND_IDENTIFIER 5 #define SCE_CSOUND_OPCODE 6 #define SCE_CSOUND_HEADERSTMT 7 #define SCE_CSOUND_USERKEYWORD 8 #define SCE_CSOUND_COMMENTBLOCK 9 #define SCE_CSOUND_PARAM 10 #define SCE_CSOUND_ARATE_VAR 11 #define SCE_CSOUND_KRATE_VAR 12 #define SCE_CSOUND_IRATE_VAR 13 #define SCE_CSOUND_GLOBAL_VAR 14 #define SCE_CSOUND_STRINGEOL 15 #define SCE_INNO_DEFAULT 0 #define SCE_INNO_COMMENT 1 #define SCE_INNO_KEYWORD 2 #define SCE_INNO_PARAMETER 3 #define SCE_INNO_SECTION 4 #define SCE_INNO_PREPROC 5 #define SCE_INNO_INLINE_EXPANSION 6 #define SCE_INNO_COMMENT_PASCAL 7 #define SCE_INNO_KEYWORD_PASCAL 8 #define SCE_INNO_KEYWORD_USER 9 #define SCE_INNO_STRING_DOUBLE 10 #define SCE_INNO_STRING_SINGLE 11 #define SCE_INNO_IDENTIFIER 12 #define SCE_OPAL_SPACE 0 #define SCE_OPAL_COMMENT_BLOCK 1 #define SCE_OPAL_COMMENT_LINE 2 #define SCE_OPAL_INTEGER 3 #define SCE_OPAL_KEYWORD 4 #define SCE_OPAL_SORT 5 #define SCE_OPAL_STRING 6 #define SCE_OPAL_PAR 7 #define SCE_OPAL_BOOL_CONST 8 #define SCE_OPAL_DEFAULT 32 #define SCE_SPICE_DEFAULT 0 #define SCE_SPICE_IDENTIFIER 1 #define SCE_SPICE_KEYWORD 2 #define SCE_SPICE_KEYWORD2 3 #define SCE_SPICE_KEYWORD3 4 #define SCE_SPICE_NUMBER 5 #define SCE_SPICE_DELIMITER 6 #define SCE_SPICE_VALUE 7 #define SCE_SPICE_COMMENTLINE 8 #define SCE_CMAKE_DEFAULT 0 #define SCE_CMAKE_COMMENT 1 #define SCE_CMAKE_STRINGDQ 2 #define SCE_CMAKE_STRINGLQ 3 #define SCE_CMAKE_STRINGRQ 4 #define SCE_CMAKE_COMMANDS 5 #define SCE_CMAKE_PARAMETERS 6 #define SCE_CMAKE_VARIABLE 7 #define SCE_CMAKE_USERDEFINED 8 #define SCE_CMAKE_WHILEDEF 9 #define SCE_CMAKE_FOREACHDEF 10 #define SCE_CMAKE_IFDEFINEDEF 11 #define SCE_CMAKE_MACRODEF 12 #define SCE_CMAKE_STRINGVAR 13 #define SCE_CMAKE_NUMBER 14 #define SCE_GAP_DEFAULT 0 #define SCE_GAP_IDENTIFIER 1 #define SCE_GAP_KEYWORD 2 #define SCE_GAP_KEYWORD2 3 #define SCE_GAP_KEYWORD3 4 #define SCE_GAP_KEYWORD4 5 #define SCE_GAP_STRING 6 #define SCE_GAP_CHAR 7 #define SCE_GAP_OPERATOR 8 #define SCE_GAP_COMMENT 9 #define SCE_GAP_NUMBER 10 #define SCE_GAP_STRINGEOL 11 #define SCE_PLM_DEFAULT 0 #define SCE_PLM_COMMENT 1 #define SCE_PLM_STRING 2 #define SCE_PLM_NUMBER 3 #define SCE_PLM_IDENTIFIER 4 #define SCE_PLM_OPERATOR 5 #define SCE_PLM_CONTROL 6 #define SCE_PLM_KEYWORD 7 #define SCE_ABL_DEFAULT 0 #define SCE_ABL_NUMBER 1 #define SCE_ABL_WORD 2 #define SCE_ABL_STRING 3 #define SCE_ABL_CHARACTER 4 #define SCE_ABL_PREPROCESSOR 5 #define SCE_ABL_OPERATOR 6 #define SCE_ABL_IDENTIFIER 7 #define SCE_ABL_BLOCK 8 #define SCE_ABL_END 9 #define SCE_ABL_COMMENT 10 #define SCE_ABL_TASKMARKER 11 #define SCE_ABL_LINECOMMENT 12 #define SCE_ABAQUS_DEFAULT 0 #define SCE_ABAQUS_COMMENT 1 #define SCE_ABAQUS_COMMENTBLOCK 2 #define SCE_ABAQUS_NUMBER 3 #define SCE_ABAQUS_STRING 4 #define SCE_ABAQUS_OPERATOR 5 #define SCE_ABAQUS_WORD 6 #define SCE_ABAQUS_PROCESSOR 7 #define SCE_ABAQUS_COMMAND 8 #define SCE_ABAQUS_SLASHCOMMAND 9 #define SCE_ABAQUS_STARCOMMAND 10 #define SCE_ABAQUS_ARGUMENT 11 #define SCE_ABAQUS_FUNCTION 12 #define SCE_ASY_DEFAULT 0 #define SCE_ASY_COMMENT 1 #define SCE_ASY_COMMENTLINE 2 #define SCE_ASY_NUMBER 3 #define SCE_ASY_WORD 4 #define SCE_ASY_STRING 5 #define SCE_ASY_CHARACTER 6 #define SCE_ASY_OPERATOR 7 #define SCE_ASY_IDENTIFIER 8 #define SCE_ASY_STRINGEOL 9 #define SCE_ASY_COMMENTLINEDOC 10 #define SCE_ASY_WORD2 11 #define SCE_R_DEFAULT 0 #define SCE_R_COMMENT 1 #define SCE_R_KWORD 2 #define SCE_R_BASEKWORD 3 #define SCE_R_OTHERKWORD 4 #define SCE_R_NUMBER 5 #define SCE_R_STRING 6 #define SCE_R_STRING2 7 #define SCE_R_OPERATOR 8 #define SCE_R_IDENTIFIER 9 #define SCE_R_INFIX 10 #define SCE_R_INFIXEOL 11 #define SCE_MAGIK_DEFAULT 0 #define SCE_MAGIK_COMMENT 1 #define SCE_MAGIK_HYPER_COMMENT 16 #define SCE_MAGIK_STRING 2 #define SCE_MAGIK_CHARACTER 3 #define SCE_MAGIK_NUMBER 4 #define SCE_MAGIK_IDENTIFIER 5 #define SCE_MAGIK_OPERATOR 6 #define SCE_MAGIK_FLOW 7 #define SCE_MAGIK_CONTAINER 8 #define SCE_MAGIK_BRACKET_BLOCK 9 #define SCE_MAGIK_BRACE_BLOCK 10 #define SCE_MAGIK_SQBRACKET_BLOCK 11 #define SCE_MAGIK_UNKNOWN_KEYWORD 12 #define SCE_MAGIK_KEYWORD 13 #define SCE_MAGIK_PRAGMA 14 #define SCE_MAGIK_SYMBOL 15 #define SCE_POWERSHELL_DEFAULT 0 #define SCE_POWERSHELL_COMMENT 1 #define SCE_POWERSHELL_STRING 2 #define SCE_POWERSHELL_CHARACTER 3 #define SCE_POWERSHELL_NUMBER 4 #define SCE_POWERSHELL_VARIABLE 5 #define SCE_POWERSHELL_OPERATOR 6 #define SCE_POWERSHELL_IDENTIFIER 7 #define SCE_POWERSHELL_KEYWORD 8 #define SCE_POWERSHELL_CMDLET 9 #define SCE_POWERSHELL_ALIAS 10 #define SCE_POWERSHELL_FUNCTION 11 #define SCE_POWERSHELL_USER1 12 #define SCE_POWERSHELL_COMMENTSTREAM 13 #define SCE_POWERSHELL_HERE_STRING 14 #define SCE_POWERSHELL_HERE_CHARACTER 15 #define SCE_POWERSHELL_COMMENTDOCKEYWORD 16 #define SCE_MYSQL_DEFAULT 0 #define SCE_MYSQL_COMMENT 1 #define SCE_MYSQL_COMMENTLINE 2 #define SCE_MYSQL_VARIABLE 3 #define SCE_MYSQL_SYSTEMVARIABLE 4 #define SCE_MYSQL_KNOWNSYSTEMVARIABLE 5 #define SCE_MYSQL_NUMBER 6 #define SCE_MYSQL_MAJORKEYWORD 7 #define SCE_MYSQL_KEYWORD 8 #define SCE_MYSQL_DATABASEOBJECT 9 #define SCE_MYSQL_PROCEDUREKEYWORD 10 #define SCE_MYSQL_STRING 11 #define SCE_MYSQL_SQSTRING 12 #define SCE_MYSQL_DQSTRING 13 #define SCE_MYSQL_OPERATOR 14 #define SCE_MYSQL_FUNCTION 15 #define SCE_MYSQL_IDENTIFIER 16 #define SCE_MYSQL_QUOTEDIDENTIFIER 17 #define SCE_MYSQL_USER1 18 #define SCE_MYSQL_USER2 19 #define SCE_MYSQL_USER3 20 #define SCE_MYSQL_HIDDENCOMMAND 21 #define SCE_MYSQL_PLACEHOLDER 22 #define SCE_PO_DEFAULT 0 #define SCE_PO_COMMENT 1 #define SCE_PO_MSGID 2 #define SCE_PO_MSGID_TEXT 3 #define SCE_PO_MSGSTR 4 #define SCE_PO_MSGSTR_TEXT 5 #define SCE_PO_MSGCTXT 6 #define SCE_PO_MSGCTXT_TEXT 7 #define SCE_PO_FUZZY 8 #define SCE_PO_PROGRAMMER_COMMENT 9 #define SCE_PO_REFERENCE 10 #define SCE_PO_FLAGS 11 #define SCE_PO_MSGID_TEXT_EOL 12 #define SCE_PO_MSGSTR_TEXT_EOL 13 #define SCE_PO_MSGCTXT_TEXT_EOL 14 #define SCE_PO_ERROR 15 #define SCE_PAS_DEFAULT 0 #define SCE_PAS_IDENTIFIER 1 #define SCE_PAS_COMMENT 2 #define SCE_PAS_COMMENT2 3 #define SCE_PAS_COMMENTLINE 4 #define SCE_PAS_PREPROCESSOR 5 #define SCE_PAS_PREPROCESSOR2 6 #define SCE_PAS_NUMBER 7 #define SCE_PAS_HEXNUMBER 8 #define SCE_PAS_WORD 9 #define SCE_PAS_STRING 10 #define SCE_PAS_STRINGEOL 11 #define SCE_PAS_CHARACTER 12 #define SCE_PAS_OPERATOR 13 #define SCE_PAS_ASM 14 #define SCE_SORCUS_DEFAULT 0 #define SCE_SORCUS_COMMAND 1 #define SCE_SORCUS_PARAMETER 2 #define SCE_SORCUS_COMMENTLINE 3 #define SCE_SORCUS_STRING 4 #define SCE_SORCUS_STRINGEOL 5 #define SCE_SORCUS_IDENTIFIER 6 #define SCE_SORCUS_OPERATOR 7 #define SCE_SORCUS_NUMBER 8 #define SCE_SORCUS_CONSTANT 9 #define SCE_POWERPRO_DEFAULT 0 #define SCE_POWERPRO_COMMENTBLOCK 1 #define SCE_POWERPRO_COMMENTLINE 2 #define SCE_POWERPRO_NUMBER 3 #define SCE_POWERPRO_WORD 4 #define SCE_POWERPRO_WORD2 5 #define SCE_POWERPRO_WORD3 6 #define SCE_POWERPRO_WORD4 7 #define SCE_POWERPRO_DOUBLEQUOTEDSTRING 8 #define SCE_POWERPRO_SINGLEQUOTEDSTRING 9 #define SCE_POWERPRO_LINECONTINUE 10 #define SCE_POWERPRO_OPERATOR 11 #define SCE_POWERPRO_IDENTIFIER 12 #define SCE_POWERPRO_STRINGEOL 13 #define SCE_POWERPRO_VERBATIM 14 #define SCE_POWERPRO_ALTQUOTE 15 #define SCE_POWERPRO_FUNCTION 16 #define SCE_SML_DEFAULT 0 #define SCE_SML_IDENTIFIER 1 #define SCE_SML_TAGNAME 2 #define SCE_SML_KEYWORD 3 #define SCE_SML_KEYWORD2 4 #define SCE_SML_KEYWORD3 5 #define SCE_SML_LINENUM 6 #define SCE_SML_OPERATOR 7 #define SCE_SML_NUMBER 8 #define SCE_SML_CHAR 9 #define SCE_SML_STRING 11 #define SCE_SML_COMMENT 12 #define SCE_SML_COMMENT1 13 #define SCE_SML_COMMENT2 14 #define SCE_SML_COMMENT3 15 #define SCE_MARKDOWN_DEFAULT 0 #define SCE_MARKDOWN_LINE_BEGIN 1 #define SCE_MARKDOWN_STRONG1 2 #define SCE_MARKDOWN_STRONG2 3 #define SCE_MARKDOWN_EM1 4 #define SCE_MARKDOWN_EM2 5 #define SCE_MARKDOWN_HEADER1 6 #define SCE_MARKDOWN_HEADER2 7 #define SCE_MARKDOWN_HEADER3 8 #define SCE_MARKDOWN_HEADER4 9 #define SCE_MARKDOWN_HEADER5 10 #define SCE_MARKDOWN_HEADER6 11 #define SCE_MARKDOWN_PRECHAR 12 #define SCE_MARKDOWN_ULIST_ITEM 13 #define SCE_MARKDOWN_OLIST_ITEM 14 #define SCE_MARKDOWN_BLOCKQUOTE 15 #define SCE_MARKDOWN_STRIKEOUT 16 #define SCE_MARKDOWN_HRULE 17 #define SCE_MARKDOWN_LINK 18 #define SCE_MARKDOWN_CODE 19 #define SCE_MARKDOWN_CODE2 20 #define SCE_MARKDOWN_CODEBK 21 #define SCE_TXT2TAGS_DEFAULT 0 #define SCE_TXT2TAGS_LINE_BEGIN 1 #define SCE_TXT2TAGS_STRONG1 2 #define SCE_TXT2TAGS_STRONG2 3 #define SCE_TXT2TAGS_EM1 4 #define SCE_TXT2TAGS_EM2 5 #define SCE_TXT2TAGS_HEADER1 6 #define SCE_TXT2TAGS_HEADER2 7 #define SCE_TXT2TAGS_HEADER3 8 #define SCE_TXT2TAGS_HEADER4 9 #define SCE_TXT2TAGS_HEADER5 10 #define SCE_TXT2TAGS_HEADER6 11 #define SCE_TXT2TAGS_PRECHAR 12 #define SCE_TXT2TAGS_ULIST_ITEM 13 #define SCE_TXT2TAGS_OLIST_ITEM 14 #define SCE_TXT2TAGS_BLOCKQUOTE 15 #define SCE_TXT2TAGS_STRIKEOUT 16 #define SCE_TXT2TAGS_HRULE 17 #define SCE_TXT2TAGS_LINK 18 #define SCE_TXT2TAGS_CODE 19 #define SCE_TXT2TAGS_CODE2 20 #define SCE_TXT2TAGS_CODEBK 21 #define SCE_TXT2TAGS_COMMENT 22 #define SCE_TXT2TAGS_OPTION 23 #define SCE_TXT2TAGS_PREPROC 24 #define SCE_TXT2TAGS_POSTPROC 25 #define SCE_A68K_DEFAULT 0 #define SCE_A68K_COMMENT 1 #define SCE_A68K_NUMBER_DEC 2 #define SCE_A68K_NUMBER_BIN 3 #define SCE_A68K_NUMBER_HEX 4 #define SCE_A68K_STRING1 5 #define SCE_A68K_OPERATOR 6 #define SCE_A68K_CPUINSTRUCTION 7 #define SCE_A68K_EXTINSTRUCTION 8 #define SCE_A68K_REGISTER 9 #define SCE_A68K_DIRECTIVE 10 #define SCE_A68K_MACRO_ARG 11 #define SCE_A68K_LABEL 12 #define SCE_A68K_STRING2 13 #define SCE_A68K_IDENTIFIER 14 #define SCE_A68K_MACRO_DECLARATION 15 #define SCE_A68K_COMMENT_WORD 16 #define SCE_A68K_COMMENT_SPECIAL 17 #define SCE_A68K_COMMENT_DOXYGEN 18 #define SCE_MODULA_DEFAULT 0 #define SCE_MODULA_COMMENT 1 #define SCE_MODULA_DOXYCOMM 2 #define SCE_MODULA_DOXYKEY 3 #define SCE_MODULA_KEYWORD 4 #define SCE_MODULA_RESERVED 5 #define SCE_MODULA_NUMBER 6 #define SCE_MODULA_BASENUM 7 #define SCE_MODULA_FLOAT 8 #define SCE_MODULA_STRING 9 #define SCE_MODULA_STRSPEC 10 #define SCE_MODULA_CHAR 11 #define SCE_MODULA_CHARSPEC 12 #define SCE_MODULA_PROC 13 #define SCE_MODULA_PRAGMA 14 #define SCE_MODULA_PRGKEY 15 #define SCE_MODULA_OPERATOR 16 #define SCE_MODULA_BADSTR 17 #define SCE_COFFEESCRIPT_DEFAULT 0 #define SCE_COFFEESCRIPT_COMMENT 1 #define SCE_COFFEESCRIPT_COMMENTLINE 2 #define SCE_COFFEESCRIPT_COMMENTDOC 3 #define SCE_COFFEESCRIPT_NUMBER 4 #define SCE_COFFEESCRIPT_WORD 5 #define SCE_COFFEESCRIPT_STRING 6 #define SCE_COFFEESCRIPT_CHARACTER 7 #define SCE_COFFEESCRIPT_UUID 8 #define SCE_COFFEESCRIPT_PREPROCESSOR 9 #define SCE_COFFEESCRIPT_OPERATOR 10 #define SCE_COFFEESCRIPT_IDENTIFIER 11 #define SCE_COFFEESCRIPT_STRINGEOL 12 #define SCE_COFFEESCRIPT_VERBATIM 13 #define SCE_COFFEESCRIPT_REGEX 14 #define SCE_COFFEESCRIPT_COMMENTLINEDOC 15 #define SCE_COFFEESCRIPT_WORD2 16 #define SCE_COFFEESCRIPT_COMMENTDOCKEYWORD 17 #define SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18 #define SCE_COFFEESCRIPT_GLOBALCLASS 19 #define SCE_COFFEESCRIPT_STRINGRAW 20 #define SCE_COFFEESCRIPT_TRIPLEVERBATIM 21 #define SCE_COFFEESCRIPT_COMMENTBLOCK 22 #define SCE_COFFEESCRIPT_VERBOSE_REGEX 23 #define SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24 #define SCE_COFFEESCRIPT_INSTANCEPROPERTY 25 #define SCE_AVS_DEFAULT 0 #define SCE_AVS_COMMENTBLOCK 1 #define SCE_AVS_COMMENTBLOCKN 2 #define SCE_AVS_COMMENTLINE 3 #define SCE_AVS_NUMBER 4 #define SCE_AVS_OPERATOR 5 #define SCE_AVS_IDENTIFIER 6 #define SCE_AVS_STRING 7 #define SCE_AVS_TRIPLESTRING 8 #define SCE_AVS_KEYWORD 9 #define SCE_AVS_FILTER 10 #define SCE_AVS_PLUGIN 11 #define SCE_AVS_FUNCTION 12 #define SCE_AVS_CLIPPROP 13 #define SCE_AVS_USERDFN 14 #define SCE_ECL_DEFAULT 0 #define SCE_ECL_COMMENT 1 #define SCE_ECL_COMMENTLINE 2 #define SCE_ECL_NUMBER 3 #define SCE_ECL_STRING 4 #define SCE_ECL_WORD0 5 #define SCE_ECL_OPERATOR 6 #define SCE_ECL_CHARACTER 7 #define SCE_ECL_UUID 8 #define SCE_ECL_PREPROCESSOR 9 #define SCE_ECL_UNKNOWN 10 #define SCE_ECL_IDENTIFIER 11 #define SCE_ECL_STRINGEOL 12 #define SCE_ECL_VERBATIM 13 #define SCE_ECL_REGEX 14 #define SCE_ECL_COMMENTLINEDOC 15 #define SCE_ECL_WORD1 16 #define SCE_ECL_COMMENTDOCKEYWORD 17 #define SCE_ECL_COMMENTDOCKEYWORDERROR 18 #define SCE_ECL_WORD2 19 #define SCE_ECL_WORD3 20 #define SCE_ECL_WORD4 21 #define SCE_ECL_WORD5 22 #define SCE_ECL_COMMENTDOC 23 #define SCE_ECL_ADDED 24 #define SCE_ECL_DELETED 25 #define SCE_ECL_CHANGED 26 #define SCE_ECL_MOVED 27 #define SCE_OSCRIPT_DEFAULT 0 #define SCE_OSCRIPT_LINE_COMMENT 1 #define SCE_OSCRIPT_BLOCK_COMMENT 2 #define SCE_OSCRIPT_DOC_COMMENT 3 #define SCE_OSCRIPT_PREPROCESSOR 4 #define SCE_OSCRIPT_NUMBER 5 #define SCE_OSCRIPT_SINGLEQUOTE_STRING 6 #define SCE_OSCRIPT_DOUBLEQUOTE_STRING 7 #define SCE_OSCRIPT_CONSTANT 8 #define SCE_OSCRIPT_IDENTIFIER 9 #define SCE_OSCRIPT_GLOBAL 10 #define SCE_OSCRIPT_KEYWORD 11 #define SCE_OSCRIPT_OPERATOR 12 #define SCE_OSCRIPT_LABEL 13 #define SCE_OSCRIPT_TYPE 14 #define SCE_OSCRIPT_FUNCTION 15 #define SCE_OSCRIPT_OBJECT 16 #define SCE_OSCRIPT_PROPERTY 17 #define SCE_OSCRIPT_METHOD 18 #define SCE_VISUALPROLOG_DEFAULT 0 #define SCE_VISUALPROLOG_KEY_MAJOR 1 #define SCE_VISUALPROLOG_KEY_MINOR 2 #define SCE_VISUALPROLOG_KEY_DIRECTIVE 3 #define SCE_VISUALPROLOG_COMMENT_BLOCK 4 #define SCE_VISUALPROLOG_COMMENT_LINE 5 #define SCE_VISUALPROLOG_COMMENT_KEY 6 #define SCE_VISUALPROLOG_COMMENT_KEY_ERROR 7 #define SCE_VISUALPROLOG_IDENTIFIER 8 #define SCE_VISUALPROLOG_VARIABLE 9 #define SCE_VISUALPROLOG_ANONYMOUS 10 #define SCE_VISUALPROLOG_NUMBER 11 #define SCE_VISUALPROLOG_OPERATOR 12 #define SCE_VISUALPROLOG_CHARACTER 13 #define SCE_VISUALPROLOG_CHARACTER_TOO_MANY 14 #define SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15 #define SCE_VISUALPROLOG_STRING 16 #define SCE_VISUALPROLOG_STRING_ESCAPE 17 #define SCE_VISUALPROLOG_STRING_ESCAPE_ERROR 18 #define SCE_VISUALPROLOG_STRING_EOL_OPEN 19 #define SCE_VISUALPROLOG_STRING_VERBATIM 20 #define SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21 #define SCE_VISUALPROLOG_STRING_VERBATIM_EOL 22 #define SCE_STTXT_DEFAULT 0 #define SCE_STTXT_COMMENT 1 #define SCE_STTXT_COMMENTLINE 2 #define SCE_STTXT_KEYWORD 3 #define SCE_STTXT_TYPE 4 #define SCE_STTXT_FUNCTION 5 #define SCE_STTXT_FB 6 #define SCE_STTXT_NUMBER 7 #define SCE_STTXT_HEXNUMBER 8 #define SCE_STTXT_PRAGMA 9 #define SCE_STTXT_OPERATOR 10 #define SCE_STTXT_CHARACTER 11 #define SCE_STTXT_STRING1 12 #define SCE_STTXT_STRING2 13 #define SCE_STTXT_STRINGEOL 14 #define SCE_STTXT_IDENTIFIER 15 #define SCE_STTXT_DATETIME 16 #define SCE_STTXT_VARS 17 #define SCE_STTXT_PRAGMAS 18 #define SCE_KVIRC_DEFAULT 0 #define SCE_KVIRC_COMMENT 1 #define SCE_KVIRC_COMMENTBLOCK 2 #define SCE_KVIRC_STRING 3 #define SCE_KVIRC_WORD 4 #define SCE_KVIRC_KEYWORD 5 #define SCE_KVIRC_FUNCTION_KEYWORD 6 #define SCE_KVIRC_FUNCTION 7 #define SCE_KVIRC_VARIABLE 8 #define SCE_KVIRC_NUMBER 9 #define SCE_KVIRC_OPERATOR 10 #define SCE_KVIRC_STRING_FUNCTION 11 #define SCE_KVIRC_STRING_VARIABLE 12 #define SCE_RUST_DEFAULT 0 #define SCE_RUST_COMMENTBLOCK 1 #define SCE_RUST_COMMENTLINE 2 #define SCE_RUST_COMMENTBLOCKDOC 3 #define SCE_RUST_COMMENTLINEDOC 4 #define SCE_RUST_NUMBER 5 #define SCE_RUST_WORD 6 #define SCE_RUST_WORD2 7 #define SCE_RUST_WORD3 8 #define SCE_RUST_WORD4 9 #define SCE_RUST_WORD5 10 #define SCE_RUST_WORD6 11 #define SCE_RUST_WORD7 12 #define SCE_RUST_STRING 13 #define SCE_RUST_STRINGR 14 #define SCE_RUST_CHARACTER 15 #define SCE_RUST_OPERATOR 16 #define SCE_RUST_IDENTIFIER 17 #define SCE_RUST_LIFETIME 18 #define SCE_RUST_MACRO 19 #define SCE_RUST_LEXERROR 20 #define SCE_RUST_BYTESTRING 21 #define SCE_RUST_BYTESTRINGR 22 #define SCE_RUST_BYTECHARACTER 23 #define SCE_DMAP_DEFAULT 0 #define SCE_DMAP_COMMENT 1 #define SCE_DMAP_NUMBER 2 #define SCE_DMAP_STRING1 3 #define SCE_DMAP_STRING2 4 #define SCE_DMAP_STRINGEOL 5 #define SCE_DMAP_OPERATOR 6 #define SCE_DMAP_IDENTIFIER 7 #define SCE_DMAP_WORD 8 #define SCE_DMAP_WORD2 9 #define SCE_DMAP_WORD3 10 #define SCE_DMIS_DEFAULT 0 #define SCE_DMIS_COMMENT 1 #define SCE_DMIS_STRING 2 #define SCE_DMIS_NUMBER 3 #define SCE_DMIS_KEYWORD 4 #define SCE_DMIS_MAJORWORD 5 #define SCE_DMIS_MINORWORD 6 #define SCE_DMIS_UNSUPPORTED_MAJOR 7 #define SCE_DMIS_UNSUPPORTED_MINOR 8 #define SCE_DMIS_LABEL 9 #define SCE_REG_DEFAULT 0 #define SCE_REG_COMMENT 1 #define SCE_REG_VALUENAME 2 #define SCE_REG_STRING 3 #define SCE_REG_HEXDIGIT 4 #define SCE_REG_VALUETYPE 5 #define SCE_REG_ADDEDKEY 6 #define SCE_REG_DELETEDKEY 7 #define SCE_REG_ESCAPED 8 #define SCE_REG_KEYPATH_GUID 9 #define SCE_REG_STRING_GUID 10 #define SCE_REG_PARAMETER 11 #define SCE_REG_OPERATOR 12 #define SCE_BIBTEX_DEFAULT 0 #define SCE_BIBTEX_ENTRY 1 #define SCE_BIBTEX_UNKNOWN_ENTRY 2 #define SCE_BIBTEX_KEY 3 #define SCE_BIBTEX_PARAMETER 4 #define SCE_BIBTEX_VALUE 5 #define SCE_BIBTEX_COMMENT 6 #define SCE_HEX_DEFAULT 0 #define SCE_HEX_RECSTART 1 #define SCE_HEX_RECTYPE 2 #define SCE_HEX_RECTYPE_UNKNOWN 3 #define SCE_HEX_BYTECOUNT 4 #define SCE_HEX_BYTECOUNT_WRONG 5 #define SCE_HEX_NOADDRESS 6 #define SCE_HEX_DATAADDRESS 7 #define SCE_HEX_RECCOUNT 8 #define SCE_HEX_STARTADDRESS 9 #define SCE_HEX_ADDRESSFIELD_UNKNOWN 10 #define SCE_HEX_EXTENDEDADDRESS 11 #define SCE_HEX_DATA_ODD 12 #define SCE_HEX_DATA_EVEN 13 #define SCE_HEX_DATA_UNKNOWN 14 #define SCE_HEX_DATA_EMPTY 15 #define SCE_HEX_CHECKSUM 16 #define SCE_HEX_CHECKSUM_WRONG 17 #define SCE_HEX_GARBAGE 18 #define SCE_JSON_DEFAULT 0 #define SCE_JSON_NUMBER 1 #define SCE_JSON_STRING 2 #define SCE_JSON_STRINGEOL 3 #define SCE_JSON_PROPERTYNAME 4 #define SCE_JSON_ESCAPESEQUENCE 5 #define SCE_JSON_LINECOMMENT 6 #define SCE_JSON_BLOCKCOMMENT 7 #define SCE_JSON_OPERATOR 8 #define SCE_JSON_URI 9 #define SCE_JSON_COMPACTIRI 10 #define SCE_JSON_KEYWORD 11 #define SCE_JSON_LDKEYWORD 12 #define SCE_JSON_ERROR 13 #define SCE_EDI_DEFAULT 0 #define SCE_EDI_SEGMENTSTART 1 #define SCE_EDI_SEGMENTEND 2 #define SCE_EDI_SEP_ELEMENT 3 #define SCE_EDI_SEP_COMPOSITE 4 #define SCE_EDI_SEP_RELEASE 5 #define SCE_EDI_UNA 6 #define SCE_EDI_UNH 7 #define SCE_EDI_BADSEGMENT 8 /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ #endif codequery-0.21.0/scintilla/include/Sci_Position.h000066400000000000000000000013231310136352400217470ustar00rootroot00000000000000// Scintilla source code edit control /** @file Sci_Position.h ** Define the Sci_Position type used in Scintilla's external interfaces. ** These need to be available to clients written in C so are not in a C++ namespace. **/ // Copyright 2015 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef SCI_POSITION_H #define SCI_POSITION_H // Basic signed type used throughout interface typedef int Sci_Position; // Unsigned variant used for ILexer::Lex and ILexer::Fold typedef unsigned int Sci_PositionU; // For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE typedef long Sci_PositionCR; #endif codequery-0.21.0/scintilla/include/Scintilla.h000066400000000000000000001125751310136352400213030ustar00rootroot00000000000000/* Scintilla source code edit control */ /** @file Scintilla.h ** Interface to the edit control. **/ /* Copyright 1998-2003 by Neil Hodgson * The License.txt file describes the conditions under which this software may be distributed. */ /* Most of this file is automatically generated from the Scintilla.iface interface definition * file which contains any comments about the definitions. HFacer.py does the generation. */ #ifndef SCINTILLA_H #define SCINTILLA_H #ifdef __cplusplus extern "C" { #endif #if defined(_WIN32) /* Return false on failure: */ int Scintilla_RegisterClasses(void *hInstance); int Scintilla_ReleaseResources(void); #endif int Scintilla_LinkLexers(void); #ifdef __cplusplus } #endif // Include header that defines basic numeric types. #if defined(_MSC_VER) // Older releases of MSVC did not have stdint.h. #include #else #include #endif // Define uptr_t, an unsigned integer type large enough to hold a pointer. typedef uintptr_t uptr_t; // Define sptr_t, a signed integer large enough to hold a pointer. typedef intptr_t sptr_t; #include "Sci_Position.h" typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ #define INVALID_POSITION -1 #define SCI_START 2000 #define SCI_OPTIONAL_START 3000 #define SCI_LEXER_START 4000 #define SCI_ADDTEXT 2001 #define SCI_ADDSTYLEDTEXT 2002 #define SCI_INSERTTEXT 2003 #define SCI_CHANGEINSERTION 2672 #define SCI_CLEARALL 2004 #define SCI_DELETERANGE 2645 #define SCI_CLEARDOCUMENTSTYLE 2005 #define SCI_GETLENGTH 2006 #define SCI_GETCHARAT 2007 #define SCI_GETCURRENTPOS 2008 #define SCI_GETANCHOR 2009 #define SCI_GETSTYLEAT 2010 #define SCI_REDO 2011 #define SCI_SETUNDOCOLLECTION 2012 #define SCI_SELECTALL 2013 #define SCI_SETSAVEPOINT 2014 #define SCI_GETSTYLEDTEXT 2015 #define SCI_CANREDO 2016 #define SCI_MARKERLINEFROMHANDLE 2017 #define SCI_MARKERDELETEHANDLE 2018 #define SCI_GETUNDOCOLLECTION 2019 #define SCWS_INVISIBLE 0 #define SCWS_VISIBLEALWAYS 1 #define SCWS_VISIBLEAFTERINDENT 2 #define SCWS_VISIBLEONLYININDENT 3 #define SCI_GETVIEWWS 2020 #define SCI_SETVIEWWS 2021 #define SCTD_LONGARROW 0 #define SCTD_STRIKEOUT 1 #define SCI_GETTABDRAWMODE 2698 #define SCI_SETTABDRAWMODE 2699 #define SCI_POSITIONFROMPOINT 2022 #define SCI_POSITIONFROMPOINTCLOSE 2023 #define SCI_GOTOLINE 2024 #define SCI_GOTOPOS 2025 #define SCI_SETANCHOR 2026 #define SCI_GETCURLINE 2027 #define SCI_GETENDSTYLED 2028 #define SC_EOL_CRLF 0 #define SC_EOL_CR 1 #define SC_EOL_LF 2 #define SCI_CONVERTEOLS 2029 #define SCI_GETEOLMODE 2030 #define SCI_SETEOLMODE 2031 #define SCI_STARTSTYLING 2032 #define SCI_SETSTYLING 2033 #define SCI_GETBUFFEREDDRAW 2034 #define SCI_SETBUFFEREDDRAW 2035 #define SCI_SETTABWIDTH 2036 #define SCI_GETTABWIDTH 2121 #define SCI_CLEARTABSTOPS 2675 #define SCI_ADDTABSTOP 2676 #define SCI_GETNEXTTABSTOP 2677 #define SC_CP_UTF8 65001 #define SCI_SETCODEPAGE 2037 #define SC_IME_WINDOWED 0 #define SC_IME_INLINE 1 #define SCI_GETIMEINTERACTION 2678 #define SCI_SETIMEINTERACTION 2679 #define MARKER_MAX 31 #define SC_MARK_CIRCLE 0 #define SC_MARK_ROUNDRECT 1 #define SC_MARK_ARROW 2 #define SC_MARK_SMALLRECT 3 #define SC_MARK_SHORTARROW 4 #define SC_MARK_EMPTY 5 #define SC_MARK_ARROWDOWN 6 #define SC_MARK_MINUS 7 #define SC_MARK_PLUS 8 #define SC_MARK_VLINE 9 #define SC_MARK_LCORNER 10 #define SC_MARK_TCORNER 11 #define SC_MARK_BOXPLUS 12 #define SC_MARK_BOXPLUSCONNECTED 13 #define SC_MARK_BOXMINUS 14 #define SC_MARK_BOXMINUSCONNECTED 15 #define SC_MARK_LCORNERCURVE 16 #define SC_MARK_TCORNERCURVE 17 #define SC_MARK_CIRCLEPLUS 18 #define SC_MARK_CIRCLEPLUSCONNECTED 19 #define SC_MARK_CIRCLEMINUS 20 #define SC_MARK_CIRCLEMINUSCONNECTED 21 #define SC_MARK_BACKGROUND 22 #define SC_MARK_DOTDOTDOT 23 #define SC_MARK_ARROWS 24 #define SC_MARK_PIXMAP 25 #define SC_MARK_FULLRECT 26 #define SC_MARK_LEFTRECT 27 #define SC_MARK_AVAILABLE 28 #define SC_MARK_UNDERLINE 29 #define SC_MARK_RGBAIMAGE 30 #define SC_MARK_BOOKMARK 31 #define SC_MARK_CHARACTER 10000 #define SC_MARKNUM_FOLDEREND 25 #define SC_MARKNUM_FOLDEROPENMID 26 #define SC_MARKNUM_FOLDERMIDTAIL 27 #define SC_MARKNUM_FOLDERTAIL 28 #define SC_MARKNUM_FOLDERSUB 29 #define SC_MARKNUM_FOLDER 30 #define SC_MARKNUM_FOLDEROPEN 31 #define SC_MASK_FOLDERS 0xFE000000 #define SCI_MARKERDEFINE 2040 #define SCI_MARKERSETFORE 2041 #define SCI_MARKERSETBACK 2042 #define SCI_MARKERSETBACKSELECTED 2292 #define SCI_MARKERENABLEHIGHLIGHT 2293 #define SCI_MARKERADD 2043 #define SCI_MARKERDELETE 2044 #define SCI_MARKERDELETEALL 2045 #define SCI_MARKERGET 2046 #define SCI_MARKERNEXT 2047 #define SCI_MARKERPREVIOUS 2048 #define SCI_MARKERDEFINEPIXMAP 2049 #define SCI_MARKERADDSET 2466 #define SCI_MARKERSETALPHA 2476 #define SC_MAX_MARGIN 4 #define SC_MARGIN_SYMBOL 0 #define SC_MARGIN_NUMBER 1 #define SC_MARGIN_BACK 2 #define SC_MARGIN_FORE 3 #define SC_MARGIN_TEXT 4 #define SC_MARGIN_RTEXT 5 #define SC_MARGIN_COLOUR 6 #define SCI_SETMARGINTYPEN 2240 #define SCI_GETMARGINTYPEN 2241 #define SCI_SETMARGINWIDTHN 2242 #define SCI_GETMARGINWIDTHN 2243 #define SCI_SETMARGINMASKN 2244 #define SCI_GETMARGINMASKN 2245 #define SCI_SETMARGINSENSITIVEN 2246 #define SCI_GETMARGINSENSITIVEN 2247 #define SCI_SETMARGINCURSORN 2248 #define SCI_GETMARGINCURSORN 2249 #define SCI_SETMARGINBACKN 2250 #define SCI_GETMARGINBACKN 2251 #define SCI_SETMARGINS 2252 #define SCI_GETMARGINS 2253 #define STYLE_DEFAULT 32 #define STYLE_LINENUMBER 33 #define STYLE_BRACELIGHT 34 #define STYLE_BRACEBAD 35 #define STYLE_CONTROLCHAR 36 #define STYLE_INDENTGUIDE 37 #define STYLE_CALLTIP 38 #define STYLE_FOLDDISPLAYTEXT 39 #define STYLE_LASTPREDEFINED 39 #define STYLE_MAX 255 #define SC_CHARSET_ANSI 0 #define SC_CHARSET_DEFAULT 1 #define SC_CHARSET_BALTIC 186 #define SC_CHARSET_CHINESEBIG5 136 #define SC_CHARSET_EASTEUROPE 238 #define SC_CHARSET_GB2312 134 #define SC_CHARSET_GREEK 161 #define SC_CHARSET_HANGUL 129 #define SC_CHARSET_MAC 77 #define SC_CHARSET_OEM 255 #define SC_CHARSET_RUSSIAN 204 #define SC_CHARSET_OEM866 866 #define SC_CHARSET_CYRILLIC 1251 #define SC_CHARSET_SHIFTJIS 128 #define SC_CHARSET_SYMBOL 2 #define SC_CHARSET_TURKISH 162 #define SC_CHARSET_JOHAB 130 #define SC_CHARSET_HEBREW 177 #define SC_CHARSET_ARABIC 178 #define SC_CHARSET_VIETNAMESE 163 #define SC_CHARSET_THAI 222 #define SC_CHARSET_8859_15 1000 #define SCI_STYLECLEARALL 2050 #define SCI_STYLESETFORE 2051 #define SCI_STYLESETBACK 2052 #define SCI_STYLESETBOLD 2053 #define SCI_STYLESETITALIC 2054 #define SCI_STYLESETSIZE 2055 #define SCI_STYLESETFONT 2056 #define SCI_STYLESETEOLFILLED 2057 #define SCI_STYLERESETDEFAULT 2058 #define SCI_STYLESETUNDERLINE 2059 #define SC_CASE_MIXED 0 #define SC_CASE_UPPER 1 #define SC_CASE_LOWER 2 #define SC_CASE_CAMEL 3 #define SCI_STYLEGETFORE 2481 #define SCI_STYLEGETBACK 2482 #define SCI_STYLEGETBOLD 2483 #define SCI_STYLEGETITALIC 2484 #define SCI_STYLEGETSIZE 2485 #define SCI_STYLEGETFONT 2486 #define SCI_STYLEGETEOLFILLED 2487 #define SCI_STYLEGETUNDERLINE 2488 #define SCI_STYLEGETCASE 2489 #define SCI_STYLEGETCHARACTERSET 2490 #define SCI_STYLEGETVISIBLE 2491 #define SCI_STYLEGETCHANGEABLE 2492 #define SCI_STYLEGETHOTSPOT 2493 #define SCI_STYLESETCASE 2060 #define SC_FONT_SIZE_MULTIPLIER 100 #define SCI_STYLESETSIZEFRACTIONAL 2061 #define SCI_STYLEGETSIZEFRACTIONAL 2062 #define SC_WEIGHT_NORMAL 400 #define SC_WEIGHT_SEMIBOLD 600 #define SC_WEIGHT_BOLD 700 #define SCI_STYLESETWEIGHT 2063 #define SCI_STYLEGETWEIGHT 2064 #define SCI_STYLESETCHARACTERSET 2066 #define SCI_STYLESETHOTSPOT 2409 #define SCI_SETSELFORE 2067 #define SCI_SETSELBACK 2068 #define SCI_GETSELALPHA 2477 #define SCI_SETSELALPHA 2478 #define SCI_GETSELEOLFILLED 2479 #define SCI_SETSELEOLFILLED 2480 #define SCI_SETCARETFORE 2069 #define SCI_ASSIGNCMDKEY 2070 #define SCI_CLEARCMDKEY 2071 #define SCI_CLEARALLCMDKEYS 2072 #define SCI_SETSTYLINGEX 2073 #define SCI_STYLESETVISIBLE 2074 #define SCI_GETCARETPERIOD 2075 #define SCI_SETCARETPERIOD 2076 #define SCI_SETWORDCHARS 2077 #define SCI_GETWORDCHARS 2646 #define SCI_BEGINUNDOACTION 2078 #define SCI_ENDUNDOACTION 2079 #define INDIC_PLAIN 0 #define INDIC_SQUIGGLE 1 #define INDIC_TT 2 #define INDIC_DIAGONAL 3 #define INDIC_STRIKE 4 #define INDIC_HIDDEN 5 #define INDIC_BOX 6 #define INDIC_ROUNDBOX 7 #define INDIC_STRAIGHTBOX 8 #define INDIC_DASH 9 #define INDIC_DOTS 10 #define INDIC_SQUIGGLELOW 11 #define INDIC_DOTBOX 12 #define INDIC_SQUIGGLEPIXMAP 13 #define INDIC_COMPOSITIONTHICK 14 #define INDIC_COMPOSITIONTHIN 15 #define INDIC_FULLBOX 16 #define INDIC_TEXTFORE 17 #define INDIC_POINT 18 #define INDIC_POINTCHARACTER 19 #define INDIC_IME 32 #define INDIC_IME_MAX 35 #define INDIC_MAX 35 #define INDIC_CONTAINER 8 #define INDIC0_MASK 0x20 #define INDIC1_MASK 0x40 #define INDIC2_MASK 0x80 #define INDICS_MASK 0xE0 #define SCI_INDICSETSTYLE 2080 #define SCI_INDICGETSTYLE 2081 #define SCI_INDICSETFORE 2082 #define SCI_INDICGETFORE 2083 #define SCI_INDICSETUNDER 2510 #define SCI_INDICGETUNDER 2511 #define SCI_INDICSETHOVERSTYLE 2680 #define SCI_INDICGETHOVERSTYLE 2681 #define SCI_INDICSETHOVERFORE 2682 #define SCI_INDICGETHOVERFORE 2683 #define SC_INDICVALUEBIT 0x1000000 #define SC_INDICVALUEMASK 0xFFFFFF #define SC_INDICFLAG_VALUEFORE 1 #define SCI_INDICSETFLAGS 2684 #define SCI_INDICGETFLAGS 2685 #define SCI_SETWHITESPACEFORE 2084 #define SCI_SETWHITESPACEBACK 2085 #define SCI_SETWHITESPACESIZE 2086 #define SCI_GETWHITESPACESIZE 2087 #define SCI_SETSTYLEBITS 2090 #define SCI_GETSTYLEBITS 2091 #define SCI_SETLINESTATE 2092 #define SCI_GETLINESTATE 2093 #define SCI_GETMAXLINESTATE 2094 #define SCI_GETCARETLINEVISIBLE 2095 #define SCI_SETCARETLINEVISIBLE 2096 #define SCI_GETCARETLINEBACK 2097 #define SCI_SETCARETLINEBACK 2098 #define SCI_STYLESETCHANGEABLE 2099 #define SCI_AUTOCSHOW 2100 #define SCI_AUTOCCANCEL 2101 #define SCI_AUTOCACTIVE 2102 #define SCI_AUTOCPOSSTART 2103 #define SCI_AUTOCCOMPLETE 2104 #define SCI_AUTOCSTOPS 2105 #define SCI_AUTOCSETSEPARATOR 2106 #define SCI_AUTOCGETSEPARATOR 2107 #define SCI_AUTOCSELECT 2108 #define SCI_AUTOCSETCANCELATSTART 2110 #define SCI_AUTOCGETCANCELATSTART 2111 #define SCI_AUTOCSETFILLUPS 2112 #define SCI_AUTOCSETCHOOSESINGLE 2113 #define SCI_AUTOCGETCHOOSESINGLE 2114 #define SCI_AUTOCSETIGNORECASE 2115 #define SCI_AUTOCGETIGNORECASE 2116 #define SCI_USERLISTSHOW 2117 #define SCI_AUTOCSETAUTOHIDE 2118 #define SCI_AUTOCGETAUTOHIDE 2119 #define SCI_AUTOCSETDROPRESTOFWORD 2270 #define SCI_AUTOCGETDROPRESTOFWORD 2271 #define SCI_REGISTERIMAGE 2405 #define SCI_CLEARREGISTEREDIMAGES 2408 #define SCI_AUTOCGETTYPESEPARATOR 2285 #define SCI_AUTOCSETTYPESEPARATOR 2286 #define SCI_AUTOCSETMAXWIDTH 2208 #define SCI_AUTOCGETMAXWIDTH 2209 #define SCI_AUTOCSETMAXHEIGHT 2210 #define SCI_AUTOCGETMAXHEIGHT 2211 #define SCI_SETINDENT 2122 #define SCI_GETINDENT 2123 #define SCI_SETUSETABS 2124 #define SCI_GETUSETABS 2125 #define SCI_SETLINEINDENTATION 2126 #define SCI_GETLINEINDENTATION 2127 #define SCI_GETLINEINDENTPOSITION 2128 #define SCI_GETCOLUMN 2129 #define SCI_COUNTCHARACTERS 2633 #define SCI_SETHSCROLLBAR 2130 #define SCI_GETHSCROLLBAR 2131 #define SC_IV_NONE 0 #define SC_IV_REAL 1 #define SC_IV_LOOKFORWARD 2 #define SC_IV_LOOKBOTH 3 #define SCI_SETINDENTATIONGUIDES 2132 #define SCI_GETINDENTATIONGUIDES 2133 #define SCI_SETHIGHLIGHTGUIDE 2134 #define SCI_GETHIGHLIGHTGUIDE 2135 #define SCI_GETLINEENDPOSITION 2136 #define SCI_GETCODEPAGE 2137 #define SCI_GETCARETFORE 2138 #define SCI_GETREADONLY 2140 #define SCI_SETCURRENTPOS 2141 #define SCI_SETSELECTIONSTART 2142 #define SCI_GETSELECTIONSTART 2143 #define SCI_SETSELECTIONEND 2144 #define SCI_GETSELECTIONEND 2145 #define SCI_SETEMPTYSELECTION 2556 #define SCI_SETPRINTMAGNIFICATION 2146 #define SCI_GETPRINTMAGNIFICATION 2147 #define SC_PRINT_NORMAL 0 #define SC_PRINT_INVERTLIGHT 1 #define SC_PRINT_BLACKONWHITE 2 #define SC_PRINT_COLOURONWHITE 3 #define SC_PRINT_COLOURONWHITEDEFAULTBG 4 #define SCI_SETPRINTCOLOURMODE 2148 #define SCI_GETPRINTCOLOURMODE 2149 #define SCFIND_WHOLEWORD 0x2 #define SCFIND_MATCHCASE 0x4 #define SCFIND_WORDSTART 0x00100000 #define SCFIND_REGEXP 0x00200000 #define SCFIND_POSIX 0x00400000 #define SCFIND_CXX11REGEX 0x00800000 #define SCI_FINDTEXT 2150 #define SCI_FORMATRANGE 2151 #define SCI_GETFIRSTVISIBLELINE 2152 #define SCI_GETLINE 2153 #define SCI_GETLINECOUNT 2154 #define SCI_SETMARGINLEFT 2155 #define SCI_GETMARGINLEFT 2156 #define SCI_SETMARGINRIGHT 2157 #define SCI_GETMARGINRIGHT 2158 #define SCI_GETMODIFY 2159 #define SCI_SETSEL 2160 #define SCI_GETSELTEXT 2161 #define SCI_GETTEXTRANGE 2162 #define SCI_HIDESELECTION 2163 #define SCI_POINTXFROMPOSITION 2164 #define SCI_POINTYFROMPOSITION 2165 #define SCI_LINEFROMPOSITION 2166 #define SCI_POSITIONFROMLINE 2167 #define SCI_LINESCROLL 2168 #define SCI_SCROLLCARET 2169 #define SCI_SCROLLRANGE 2569 #define SCI_REPLACESEL 2170 #define SCI_SETREADONLY 2171 #define SCI_NULL 2172 #define SCI_CANPASTE 2173 #define SCI_CANUNDO 2174 #define SCI_EMPTYUNDOBUFFER 2175 #define SCI_UNDO 2176 #define SCI_CUT 2177 #define SCI_COPY 2178 #define SCI_PASTE 2179 #define SCI_CLEAR 2180 #define SCI_SETTEXT 2181 #define SCI_GETTEXT 2182 #define SCI_GETTEXTLENGTH 2183 #define SCI_GETDIRECTFUNCTION 2184 #define SCI_GETDIRECTPOINTER 2185 #define SCI_SETOVERTYPE 2186 #define SCI_GETOVERTYPE 2187 #define SCI_SETCARETWIDTH 2188 #define SCI_GETCARETWIDTH 2189 #define SCI_SETTARGETSTART 2190 #define SCI_GETTARGETSTART 2191 #define SCI_SETTARGETEND 2192 #define SCI_GETTARGETEND 2193 #define SCI_SETTARGETRANGE 2686 #define SCI_GETTARGETTEXT 2687 #define SCI_TARGETFROMSELECTION 2287 #define SCI_TARGETWHOLEDOCUMENT 2690 #define SCI_REPLACETARGET 2194 #define SCI_REPLACETARGETRE 2195 #define SCI_SEARCHINTARGET 2197 #define SCI_SETSEARCHFLAGS 2198 #define SCI_GETSEARCHFLAGS 2199 #define SCI_CALLTIPSHOW 2200 #define SCI_CALLTIPCANCEL 2201 #define SCI_CALLTIPACTIVE 2202 #define SCI_CALLTIPPOSSTART 2203 #define SCI_CALLTIPSETPOSSTART 2214 #define SCI_CALLTIPSETHLT 2204 #define SCI_CALLTIPSETBACK 2205 #define SCI_CALLTIPSETFORE 2206 #define SCI_CALLTIPSETFOREHLT 2207 #define SCI_CALLTIPUSESTYLE 2212 #define SCI_CALLTIPSETPOSITION 2213 #define SCI_VISIBLEFROMDOCLINE 2220 #define SCI_DOCLINEFROMVISIBLE 2221 #define SCI_WRAPCOUNT 2235 #define SC_FOLDLEVELBASE 0x400 #define SC_FOLDLEVELWHITEFLAG 0x1000 #define SC_FOLDLEVELHEADERFLAG 0x2000 #define SC_FOLDLEVELNUMBERMASK 0x0FFF #define SCI_SETFOLDLEVEL 2222 #define SCI_GETFOLDLEVEL 2223 #define SCI_GETLASTCHILD 2224 #define SCI_GETFOLDPARENT 2225 #define SCI_SHOWLINES 2226 #define SCI_HIDELINES 2227 #define SCI_GETLINEVISIBLE 2228 #define SCI_GETALLLINESVISIBLE 2236 #define SCI_SETFOLDEXPANDED 2229 #define SCI_GETFOLDEXPANDED 2230 #define SCI_TOGGLEFOLD 2231 #define SCI_TOGGLEFOLDSHOWTEXT 2700 #define SC_FOLDDISPLAYTEXT_HIDDEN 0 #define SC_FOLDDISPLAYTEXT_STANDARD 1 #define SC_FOLDDISPLAYTEXT_BOXED 2 #define SCI_FOLDDISPLAYTEXTSETSTYLE 2701 #define SC_FOLDACTION_CONTRACT 0 #define SC_FOLDACTION_EXPAND 1 #define SC_FOLDACTION_TOGGLE 2 #define SCI_FOLDLINE 2237 #define SCI_FOLDCHILDREN 2238 #define SCI_EXPANDCHILDREN 2239 #define SCI_FOLDALL 2662 #define SCI_ENSUREVISIBLE 2232 #define SC_AUTOMATICFOLD_SHOW 0x0001 #define SC_AUTOMATICFOLD_CLICK 0x0002 #define SC_AUTOMATICFOLD_CHANGE 0x0004 #define SCI_SETAUTOMATICFOLD 2663 #define SCI_GETAUTOMATICFOLD 2664 #define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 #define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 #define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 #define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 #define SC_FOLDFLAG_LEVELNUMBERS 0x0040 #define SC_FOLDFLAG_LINESTATE 0x0080 #define SCI_SETFOLDFLAGS 2233 #define SCI_ENSUREVISIBLEENFORCEPOLICY 2234 #define SCI_SETTABINDENTS 2260 #define SCI_GETTABINDENTS 2261 #define SCI_SETBACKSPACEUNINDENTS 2262 #define SCI_GETBACKSPACEUNINDENTS 2263 #define SC_TIME_FOREVER 10000000 #define SCI_SETMOUSEDWELLTIME 2264 #define SCI_GETMOUSEDWELLTIME 2265 #define SCI_WORDSTARTPOSITION 2266 #define SCI_WORDENDPOSITION 2267 #define SCI_ISRANGEWORD 2691 #define SC_IDLESTYLING_NONE 0 #define SC_IDLESTYLING_TOVISIBLE 1 #define SC_IDLESTYLING_AFTERVISIBLE 2 #define SC_IDLESTYLING_ALL 3 #define SCI_SETIDLESTYLING 2692 #define SCI_GETIDLESTYLING 2693 #define SC_WRAP_NONE 0 #define SC_WRAP_WORD 1 #define SC_WRAP_CHAR 2 #define SC_WRAP_WHITESPACE 3 #define SCI_SETWRAPMODE 2268 #define SCI_GETWRAPMODE 2269 #define SC_WRAPVISUALFLAG_NONE 0x0000 #define SC_WRAPVISUALFLAG_END 0x0001 #define SC_WRAPVISUALFLAG_START 0x0002 #define SC_WRAPVISUALFLAG_MARGIN 0x0004 #define SCI_SETWRAPVISUALFLAGS 2460 #define SCI_GETWRAPVISUALFLAGS 2461 #define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 #define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 #define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 #define SCI_SETWRAPVISUALFLAGSLOCATION 2462 #define SCI_GETWRAPVISUALFLAGSLOCATION 2463 #define SCI_SETWRAPSTARTINDENT 2464 #define SCI_GETWRAPSTARTINDENT 2465 #define SC_WRAPINDENT_FIXED 0 #define SC_WRAPINDENT_SAME 1 #define SC_WRAPINDENT_INDENT 2 #define SCI_SETWRAPINDENTMODE 2472 #define SCI_GETWRAPINDENTMODE 2473 #define SC_CACHE_NONE 0 #define SC_CACHE_CARET 1 #define SC_CACHE_PAGE 2 #define SC_CACHE_DOCUMENT 3 #define SCI_SETLAYOUTCACHE 2272 #define SCI_GETLAYOUTCACHE 2273 #define SCI_SETSCROLLWIDTH 2274 #define SCI_GETSCROLLWIDTH 2275 #define SCI_SETSCROLLWIDTHTRACKING 2516 #define SCI_GETSCROLLWIDTHTRACKING 2517 #define SCI_TEXTWIDTH 2276 #define SCI_SETENDATLASTLINE 2277 #define SCI_GETENDATLASTLINE 2278 #define SCI_TEXTHEIGHT 2279 #define SCI_SETVSCROLLBAR 2280 #define SCI_GETVSCROLLBAR 2281 #define SCI_APPENDTEXT 2282 #define SCI_GETTWOPHASEDRAW 2283 #define SCI_SETTWOPHASEDRAW 2284 #define SC_PHASES_ONE 0 #define SC_PHASES_TWO 1 #define SC_PHASES_MULTIPLE 2 #define SCI_GETPHASESDRAW 2673 #define SCI_SETPHASESDRAW 2674 #define SC_EFF_QUALITY_MASK 0xF #define SC_EFF_QUALITY_DEFAULT 0 #define SC_EFF_QUALITY_NON_ANTIALIASED 1 #define SC_EFF_QUALITY_ANTIALIASED 2 #define SC_EFF_QUALITY_LCD_OPTIMIZED 3 #define SCI_SETFONTQUALITY 2611 #define SCI_GETFONTQUALITY 2612 #define SCI_SETFIRSTVISIBLELINE 2613 #define SC_MULTIPASTE_ONCE 0 #define SC_MULTIPASTE_EACH 1 #define SCI_SETMULTIPASTE 2614 #define SCI_GETMULTIPASTE 2615 #define SCI_GETTAG 2616 #define SCI_LINESJOIN 2288 #define SCI_LINESSPLIT 2289 #define SCI_SETFOLDMARGINCOLOUR 2290 #define SCI_SETFOLDMARGINHICOLOUR 2291 #define SC_ACCESSIBILITY_DISABLED 0 #define SC_ACCESSIBILITY_ENABLED 1 #define SCI_SETACCESSIBILITY 2702 #define SCI_GETACCESSIBILITY 2703 #define SCI_LINEDOWN 2300 #define SCI_LINEDOWNEXTEND 2301 #define SCI_LINEUP 2302 #define SCI_LINEUPEXTEND 2303 #define SCI_CHARLEFT 2304 #define SCI_CHARLEFTEXTEND 2305 #define SCI_CHARRIGHT 2306 #define SCI_CHARRIGHTEXTEND 2307 #define SCI_WORDLEFT 2308 #define SCI_WORDLEFTEXTEND 2309 #define SCI_WORDRIGHT 2310 #define SCI_WORDRIGHTEXTEND 2311 #define SCI_HOME 2312 #define SCI_HOMEEXTEND 2313 #define SCI_LINEEND 2314 #define SCI_LINEENDEXTEND 2315 #define SCI_DOCUMENTSTART 2316 #define SCI_DOCUMENTSTARTEXTEND 2317 #define SCI_DOCUMENTEND 2318 #define SCI_DOCUMENTENDEXTEND 2319 #define SCI_PAGEUP 2320 #define SCI_PAGEUPEXTEND 2321 #define SCI_PAGEDOWN 2322 #define SCI_PAGEDOWNEXTEND 2323 #define SCI_EDITTOGGLEOVERTYPE 2324 #define SCI_CANCEL 2325 #define SCI_DELETEBACK 2326 #define SCI_TAB 2327 #define SCI_BACKTAB 2328 #define SCI_NEWLINE 2329 #define SCI_FORMFEED 2330 #define SCI_VCHOME 2331 #define SCI_VCHOMEEXTEND 2332 #define SCI_ZOOMIN 2333 #define SCI_ZOOMOUT 2334 #define SCI_DELWORDLEFT 2335 #define SCI_DELWORDRIGHT 2336 #define SCI_DELWORDRIGHTEND 2518 #define SCI_LINECUT 2337 #define SCI_LINEDELETE 2338 #define SCI_LINETRANSPOSE 2339 #define SCI_LINEDUPLICATE 2404 #define SCI_LOWERCASE 2340 #define SCI_UPPERCASE 2341 #define SCI_LINESCROLLDOWN 2342 #define SCI_LINESCROLLUP 2343 #define SCI_DELETEBACKNOTLINE 2344 #define SCI_HOMEDISPLAY 2345 #define SCI_HOMEDISPLAYEXTEND 2346 #define SCI_LINEENDDISPLAY 2347 #define SCI_LINEENDDISPLAYEXTEND 2348 #define SCI_HOMEWRAP 2349 #define SCI_HOMEWRAPEXTEND 2450 #define SCI_LINEENDWRAP 2451 #define SCI_LINEENDWRAPEXTEND 2452 #define SCI_VCHOMEWRAP 2453 #define SCI_VCHOMEWRAPEXTEND 2454 #define SCI_LINECOPY 2455 #define SCI_MOVECARETINSIDEVIEW 2401 #define SCI_LINELENGTH 2350 #define SCI_BRACEHIGHLIGHT 2351 #define SCI_BRACEHIGHLIGHTINDICATOR 2498 #define SCI_BRACEBADLIGHT 2352 #define SCI_BRACEBADLIGHTINDICATOR 2499 #define SCI_BRACEMATCH 2353 #define SCI_GETVIEWEOL 2355 #define SCI_SETVIEWEOL 2356 #define SCI_GETDOCPOINTER 2357 #define SCI_SETDOCPOINTER 2358 #define SCI_SETMODEVENTMASK 2359 #define EDGE_NONE 0 #define EDGE_LINE 1 #define EDGE_BACKGROUND 2 #define EDGE_MULTILINE 3 #define SCI_GETEDGECOLUMN 2360 #define SCI_SETEDGECOLUMN 2361 #define SCI_GETEDGEMODE 2362 #define SCI_SETEDGEMODE 2363 #define SCI_GETEDGECOLOUR 2364 #define SCI_SETEDGECOLOUR 2365 #define SCI_MULTIEDGEADDLINE 2694 #define SCI_MULTIEDGECLEARALL 2695 #define SCI_SEARCHANCHOR 2366 #define SCI_SEARCHNEXT 2367 #define SCI_SEARCHPREV 2368 #define SCI_LINESONSCREEN 2370 #define SC_POPUP_NEVER 0 #define SC_POPUP_ALL 1 #define SC_POPUP_TEXT 2 #define SCI_USEPOPUP 2371 #define SCI_SELECTIONISRECTANGLE 2372 #define SCI_SETZOOM 2373 #define SCI_GETZOOM 2374 #define SCI_CREATEDOCUMENT 2375 #define SCI_ADDREFDOCUMENT 2376 #define SCI_RELEASEDOCUMENT 2377 #define SCI_GETMODEVENTMASK 2378 #define SCI_SETFOCUS 2380 #define SCI_GETFOCUS 2381 #define SC_STATUS_OK 0 #define SC_STATUS_FAILURE 1 #define SC_STATUS_BADALLOC 2 #define SC_STATUS_WARN_START 1000 #define SC_STATUS_WARN_REGEX 1001 #define SCI_SETSTATUS 2382 #define SCI_GETSTATUS 2383 #define SCI_SETMOUSEDOWNCAPTURES 2384 #define SCI_GETMOUSEDOWNCAPTURES 2385 #define SCI_SETMOUSEWHEELCAPTURES 2696 #define SCI_GETMOUSEWHEELCAPTURES 2697 #define SC_CURSORNORMAL -1 #define SC_CURSORARROW 2 #define SC_CURSORWAIT 4 #define SC_CURSORREVERSEARROW 7 #define SCI_SETCURSOR 2386 #define SCI_GETCURSOR 2387 #define SCI_SETCONTROLCHARSYMBOL 2388 #define SCI_GETCONTROLCHARSYMBOL 2389 #define SCI_WORDPARTLEFT 2390 #define SCI_WORDPARTLEFTEXTEND 2391 #define SCI_WORDPARTRIGHT 2392 #define SCI_WORDPARTRIGHTEXTEND 2393 #define VISIBLE_SLOP 0x01 #define VISIBLE_STRICT 0x04 #define SCI_SETVISIBLEPOLICY 2394 #define SCI_DELLINELEFT 2395 #define SCI_DELLINERIGHT 2396 #define SCI_SETXOFFSET 2397 #define SCI_GETXOFFSET 2398 #define SCI_CHOOSECARETX 2399 #define SCI_GRABFOCUS 2400 #define CARET_SLOP 0x01 #define CARET_STRICT 0x04 #define CARET_JUMPS 0x10 #define CARET_EVEN 0x08 #define SCI_SETXCARETPOLICY 2402 #define SCI_SETYCARETPOLICY 2403 #define SCI_SETPRINTWRAPMODE 2406 #define SCI_GETPRINTWRAPMODE 2407 #define SCI_SETHOTSPOTACTIVEFORE 2410 #define SCI_GETHOTSPOTACTIVEFORE 2494 #define SCI_SETHOTSPOTACTIVEBACK 2411 #define SCI_GETHOTSPOTACTIVEBACK 2495 #define SCI_SETHOTSPOTACTIVEUNDERLINE 2412 #define SCI_GETHOTSPOTACTIVEUNDERLINE 2496 #define SCI_SETHOTSPOTSINGLELINE 2421 #define SCI_GETHOTSPOTSINGLELINE 2497 #define SCI_PARADOWN 2413 #define SCI_PARADOWNEXTEND 2414 #define SCI_PARAUP 2415 #define SCI_PARAUPEXTEND 2416 #define SCI_POSITIONBEFORE 2417 #define SCI_POSITIONAFTER 2418 #define SCI_POSITIONRELATIVE 2670 #define SCI_COPYRANGE 2419 #define SCI_COPYTEXT 2420 #define SC_SEL_STREAM 0 #define SC_SEL_RECTANGLE 1 #define SC_SEL_LINES 2 #define SC_SEL_THIN 3 #define SCI_SETSELECTIONMODE 2422 #define SCI_GETSELECTIONMODE 2423 #define SCI_GETLINESELSTARTPOSITION 2424 #define SCI_GETLINESELENDPOSITION 2425 #define SCI_LINEDOWNRECTEXTEND 2426 #define SCI_LINEUPRECTEXTEND 2427 #define SCI_CHARLEFTRECTEXTEND 2428 #define SCI_CHARRIGHTRECTEXTEND 2429 #define SCI_HOMERECTEXTEND 2430 #define SCI_VCHOMERECTEXTEND 2431 #define SCI_LINEENDRECTEXTEND 2432 #define SCI_PAGEUPRECTEXTEND 2433 #define SCI_PAGEDOWNRECTEXTEND 2434 #define SCI_STUTTEREDPAGEUP 2435 #define SCI_STUTTEREDPAGEUPEXTEND 2436 #define SCI_STUTTEREDPAGEDOWN 2437 #define SCI_STUTTEREDPAGEDOWNEXTEND 2438 #define SCI_WORDLEFTEND 2439 #define SCI_WORDLEFTENDEXTEND 2440 #define SCI_WORDRIGHTEND 2441 #define SCI_WORDRIGHTENDEXTEND 2442 #define SCI_SETWHITESPACECHARS 2443 #define SCI_GETWHITESPACECHARS 2647 #define SCI_SETPUNCTUATIONCHARS 2648 #define SCI_GETPUNCTUATIONCHARS 2649 #define SCI_SETCHARSDEFAULT 2444 #define SCI_AUTOCGETCURRENT 2445 #define SCI_AUTOCGETCURRENTTEXT 2610 #define SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0 #define SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 #define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634 #define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635 #define SC_MULTIAUTOC_ONCE 0 #define SC_MULTIAUTOC_EACH 1 #define SCI_AUTOCSETMULTI 2636 #define SCI_AUTOCGETMULTI 2637 #define SC_ORDER_PRESORTED 0 #define SC_ORDER_PERFORMSORT 1 #define SC_ORDER_CUSTOM 2 #define SCI_AUTOCSETORDER 2660 #define SCI_AUTOCGETORDER 2661 #define SCI_ALLOCATE 2446 #define SCI_TARGETASUTF8 2447 #define SCI_SETLENGTHFORENCODE 2448 #define SCI_ENCODEDFROMUTF8 2449 #define SCI_FINDCOLUMN 2456 #define SCI_GETCARETSTICKY 2457 #define SCI_SETCARETSTICKY 2458 #define SC_CARETSTICKY_OFF 0 #define SC_CARETSTICKY_ON 1 #define SC_CARETSTICKY_WHITESPACE 2 #define SCI_TOGGLECARETSTICKY 2459 #define SCI_SETPASTECONVERTENDINGS 2467 #define SCI_GETPASTECONVERTENDINGS 2468 #define SCI_SELECTIONDUPLICATE 2469 #define SC_ALPHA_TRANSPARENT 0 #define SC_ALPHA_OPAQUE 255 #define SC_ALPHA_NOALPHA 256 #define SCI_SETCARETLINEBACKALPHA 2470 #define SCI_GETCARETLINEBACKALPHA 2471 #define CARETSTYLE_INVISIBLE 0 #define CARETSTYLE_LINE 1 #define CARETSTYLE_BLOCK 2 #define SCI_SETCARETSTYLE 2512 #define SCI_GETCARETSTYLE 2513 #define SCI_SETINDICATORCURRENT 2500 #define SCI_GETINDICATORCURRENT 2501 #define SCI_SETINDICATORVALUE 2502 #define SCI_GETINDICATORVALUE 2503 #define SCI_INDICATORFILLRANGE 2504 #define SCI_INDICATORCLEARRANGE 2505 #define SCI_INDICATORALLONFOR 2506 #define SCI_INDICATORVALUEAT 2507 #define SCI_INDICATORSTART 2508 #define SCI_INDICATOREND 2509 #define SCI_SETPOSITIONCACHE 2514 #define SCI_GETPOSITIONCACHE 2515 #define SCI_COPYALLOWLINE 2519 #define SCI_GETCHARACTERPOINTER 2520 #define SCI_GETRANGEPOINTER 2643 #define SCI_GETGAPPOSITION 2644 #define SCI_INDICSETALPHA 2523 #define SCI_INDICGETALPHA 2524 #define SCI_INDICSETOUTLINEALPHA 2558 #define SCI_INDICGETOUTLINEALPHA 2559 #define SCI_SETEXTRAASCENT 2525 #define SCI_GETEXTRAASCENT 2526 #define SCI_SETEXTRADESCENT 2527 #define SCI_GETEXTRADESCENT 2528 #define SCI_MARKERSYMBOLDEFINED 2529 #define SCI_MARGINSETTEXT 2530 #define SCI_MARGINGETTEXT 2531 #define SCI_MARGINSETSTYLE 2532 #define SCI_MARGINGETSTYLE 2533 #define SCI_MARGINSETSTYLES 2534 #define SCI_MARGINGETSTYLES 2535 #define SCI_MARGINTEXTCLEARALL 2536 #define SCI_MARGINSETSTYLEOFFSET 2537 #define SCI_MARGINGETSTYLEOFFSET 2538 #define SC_MARGINOPTION_NONE 0 #define SC_MARGINOPTION_SUBLINESELECT 1 #define SCI_SETMARGINOPTIONS 2539 #define SCI_GETMARGINOPTIONS 2557 #define SCI_ANNOTATIONSETTEXT 2540 #define SCI_ANNOTATIONGETTEXT 2541 #define SCI_ANNOTATIONSETSTYLE 2542 #define SCI_ANNOTATIONGETSTYLE 2543 #define SCI_ANNOTATIONSETSTYLES 2544 #define SCI_ANNOTATIONGETSTYLES 2545 #define SCI_ANNOTATIONGETLINES 2546 #define SCI_ANNOTATIONCLEARALL 2547 #define ANNOTATION_HIDDEN 0 #define ANNOTATION_STANDARD 1 #define ANNOTATION_BOXED 2 #define ANNOTATION_INDENTED 3 #define SCI_ANNOTATIONSETVISIBLE 2548 #define SCI_ANNOTATIONGETVISIBLE 2549 #define SCI_ANNOTATIONSETSTYLEOFFSET 2550 #define SCI_ANNOTATIONGETSTYLEOFFSET 2551 #define SCI_RELEASEALLEXTENDEDSTYLES 2552 #define SCI_ALLOCATEEXTENDEDSTYLES 2553 #define UNDO_MAY_COALESCE 1 #define SCI_ADDUNDOACTION 2560 #define SCI_CHARPOSITIONFROMPOINT 2561 #define SCI_CHARPOSITIONFROMPOINTCLOSE 2562 #define SCI_SETMOUSESELECTIONRECTANGULARSWITCH 2668 #define SCI_GETMOUSESELECTIONRECTANGULARSWITCH 2669 #define SCI_SETMULTIPLESELECTION 2563 #define SCI_GETMULTIPLESELECTION 2564 #define SCI_SETADDITIONALSELECTIONTYPING 2565 #define SCI_GETADDITIONALSELECTIONTYPING 2566 #define SCI_SETADDITIONALCARETSBLINK 2567 #define SCI_GETADDITIONALCARETSBLINK 2568 #define SCI_SETADDITIONALCARETSVISIBLE 2608 #define SCI_GETADDITIONALCARETSVISIBLE 2609 #define SCI_GETSELECTIONS 2570 #define SCI_GETSELECTIONEMPTY 2650 #define SCI_CLEARSELECTIONS 2571 #define SCI_SETSELECTION 2572 #define SCI_ADDSELECTION 2573 #define SCI_DROPSELECTIONN 2671 #define SCI_SETMAINSELECTION 2574 #define SCI_GETMAINSELECTION 2575 #define SCI_SETSELECTIONNCARET 2576 #define SCI_GETSELECTIONNCARET 2577 #define SCI_SETSELECTIONNANCHOR 2578 #define SCI_GETSELECTIONNANCHOR 2579 #define SCI_SETSELECTIONNCARETVIRTUALSPACE 2580 #define SCI_GETSELECTIONNCARETVIRTUALSPACE 2581 #define SCI_SETSELECTIONNANCHORVIRTUALSPACE 2582 #define SCI_GETSELECTIONNANCHORVIRTUALSPACE 2583 #define SCI_SETSELECTIONNSTART 2584 #define SCI_GETSELECTIONNSTART 2585 #define SCI_SETSELECTIONNEND 2586 #define SCI_GETSELECTIONNEND 2587 #define SCI_SETRECTANGULARSELECTIONCARET 2588 #define SCI_GETRECTANGULARSELECTIONCARET 2589 #define SCI_SETRECTANGULARSELECTIONANCHOR 2590 #define SCI_GETRECTANGULARSELECTIONANCHOR 2591 #define SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE 2592 #define SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE 2593 #define SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2594 #define SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE 2595 #define SCVS_NONE 0 #define SCVS_RECTANGULARSELECTION 1 #define SCVS_USERACCESSIBLE 2 #define SCVS_NOWRAPLINESTART 4 #define SCI_SETVIRTUALSPACEOPTIONS 2596 #define SCI_GETVIRTUALSPACEOPTIONS 2597 #define SCI_SETRECTANGULARSELECTIONMODIFIER 2598 #define SCI_GETRECTANGULARSELECTIONMODIFIER 2599 #define SCI_SETADDITIONALSELFORE 2600 #define SCI_SETADDITIONALSELBACK 2601 #define SCI_SETADDITIONALSELALPHA 2602 #define SCI_GETADDITIONALSELALPHA 2603 #define SCI_SETADDITIONALCARETFORE 2604 #define SCI_GETADDITIONALCARETFORE 2605 #define SCI_ROTATESELECTION 2606 #define SCI_SWAPMAINANCHORCARET 2607 #define SCI_MULTIPLESELECTADDNEXT 2688 #define SCI_MULTIPLESELECTADDEACH 2689 #define SCI_CHANGELEXERSTATE 2617 #define SCI_CONTRACTEDFOLDNEXT 2618 #define SCI_VERTICALCENTRECARET 2619 #define SCI_MOVESELECTEDLINESUP 2620 #define SCI_MOVESELECTEDLINESDOWN 2621 #define SCI_SETIDENTIFIER 2622 #define SCI_GETIDENTIFIER 2623 #define SCI_RGBAIMAGESETWIDTH 2624 #define SCI_RGBAIMAGESETHEIGHT 2625 #define SCI_RGBAIMAGESETSCALE 2651 #define SCI_MARKERDEFINERGBAIMAGE 2626 #define SCI_REGISTERRGBAIMAGE 2627 #define SCI_SCROLLTOSTART 2628 #define SCI_SCROLLTOEND 2629 #define SC_TECHNOLOGY_DEFAULT 0 #define SC_TECHNOLOGY_DIRECTWRITE 1 #define SC_TECHNOLOGY_DIRECTWRITERETAIN 2 #define SC_TECHNOLOGY_DIRECTWRITEDC 3 #define SCI_SETTECHNOLOGY 2630 #define SCI_GETTECHNOLOGY 2631 #define SCI_CREATELOADER 2632 #define SCI_FINDINDICATORSHOW 2640 #define SCI_FINDINDICATORFLASH 2641 #define SCI_FINDINDICATORHIDE 2642 #define SCI_VCHOMEDISPLAY 2652 #define SCI_VCHOMEDISPLAYEXTEND 2653 #define SCI_GETCARETLINEVISIBLEALWAYS 2654 #define SCI_SETCARETLINEVISIBLEALWAYS 2655 #define SC_LINE_END_TYPE_DEFAULT 0 #define SC_LINE_END_TYPE_UNICODE 1 #define SCI_SETLINEENDTYPESALLOWED 2656 #define SCI_GETLINEENDTYPESALLOWED 2657 #define SCI_GETLINEENDTYPESACTIVE 2658 #define SCI_SETREPRESENTATION 2665 #define SCI_GETREPRESENTATION 2666 #define SCI_CLEARREPRESENTATION 2667 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 #define SCI_SETLEXER 4001 #define SCI_GETLEXER 4002 #define SCI_COLOURISE 4003 #define SCI_SETPROPERTY 4004 #define KEYWORDSET_MAX 8 #define SCI_SETKEYWORDS 4005 #define SCI_SETLEXERLANGUAGE 4006 #define SCI_LOADLEXERLIBRARY 4007 #define SCI_GETPROPERTY 4008 #define SCI_GETPROPERTYEXPANDED 4009 #define SCI_GETPROPERTYINT 4010 #define SCI_GETSTYLEBITSNEEDED 4011 #define SCI_GETLEXERLANGUAGE 4012 #define SCI_PRIVATELEXERCALL 4013 #define SCI_PROPERTYNAMES 4014 #define SC_TYPE_BOOLEAN 0 #define SC_TYPE_INTEGER 1 #define SC_TYPE_STRING 2 #define SCI_PROPERTYTYPE 4015 #define SCI_DESCRIBEPROPERTY 4016 #define SCI_DESCRIBEKEYWORDSETS 4017 #define SCI_GETLINEENDTYPESSUPPORTED 4018 #define SCI_ALLOCATESUBSTYLES 4020 #define SCI_GETSUBSTYLESSTART 4021 #define SCI_GETSUBSTYLESLENGTH 4022 #define SCI_GETSTYLEFROMSUBSTYLE 4027 #define SCI_GETPRIMARYSTYLEFROMSTYLE 4028 #define SCI_FREESUBSTYLES 4023 #define SCI_SETIDENTIFIERS 4024 #define SCI_DISTANCETOSECONDARYSTYLES 4025 #define SCI_GETSUBSTYLEBASES 4026 #define SC_MOD_INSERTTEXT 0x1 #define SC_MOD_DELETETEXT 0x2 #define SC_MOD_CHANGESTYLE 0x4 #define SC_MOD_CHANGEFOLD 0x8 #define SC_PERFORMED_USER 0x10 #define SC_PERFORMED_UNDO 0x20 #define SC_PERFORMED_REDO 0x40 #define SC_MULTISTEPUNDOREDO 0x80 #define SC_LASTSTEPINUNDOREDO 0x100 #define SC_MOD_CHANGEMARKER 0x200 #define SC_MOD_BEFOREINSERT 0x400 #define SC_MOD_BEFOREDELETE 0x800 #define SC_MULTILINEUNDOREDO 0x1000 #define SC_STARTACTION 0x2000 #define SC_MOD_CHANGEINDICATOR 0x4000 #define SC_MOD_CHANGELINESTATE 0x8000 #define SC_MOD_CHANGEMARGIN 0x10000 #define SC_MOD_CHANGEANNOTATION 0x20000 #define SC_MOD_CONTAINER 0x40000 #define SC_MOD_LEXERSTATE 0x80000 #define SC_MOD_INSERTCHECK 0x100000 #define SC_MOD_CHANGETABSTOPS 0x200000 #define SC_MODEVENTMASKALL 0x3FFFFF #define SC_UPDATE_CONTENT 0x1 #define SC_UPDATE_SELECTION 0x2 #define SC_UPDATE_V_SCROLL 0x4 #define SC_UPDATE_H_SCROLL 0x8 #define SCEN_CHANGE 768 #define SCEN_SETFOCUS 512 #define SCEN_KILLFOCUS 256 #define SCK_DOWN 300 #define SCK_UP 301 #define SCK_LEFT 302 #define SCK_RIGHT 303 #define SCK_HOME 304 #define SCK_END 305 #define SCK_PRIOR 306 #define SCK_NEXT 307 #define SCK_DELETE 308 #define SCK_INSERT 309 #define SCK_ESCAPE 7 #define SCK_BACK 8 #define SCK_TAB 9 #define SCK_RETURN 13 #define SCK_ADD 310 #define SCK_SUBTRACT 311 #define SCK_DIVIDE 312 #define SCK_WIN 313 #define SCK_RWIN 314 #define SCK_MENU 315 #define SCMOD_NORM 0 #define SCMOD_SHIFT 1 #define SCMOD_CTRL 2 #define SCMOD_ALT 4 #define SCMOD_SUPER 8 #define SCMOD_META 16 #define SC_AC_FILLUP 1 #define SC_AC_DOUBLECLICK 2 #define SC_AC_TAB 3 #define SC_AC_NEWLINE 4 #define SC_AC_COMMAND 5 #define SCN_STYLENEEDED 2000 #define SCN_CHARADDED 2001 #define SCN_SAVEPOINTREACHED 2002 #define SCN_SAVEPOINTLEFT 2003 #define SCN_MODIFYATTEMPTRO 2004 #define SCN_KEY 2005 #define SCN_DOUBLECLICK 2006 #define SCN_UPDATEUI 2007 #define SCN_MODIFIED 2008 #define SCN_MACRORECORD 2009 #define SCN_MARGINCLICK 2010 #define SCN_NEEDSHOWN 2011 #define SCN_PAINTED 2013 #define SCN_USERLISTSELECTION 2014 #define SCN_URIDROPPED 2015 #define SCN_DWELLSTART 2016 #define SCN_DWELLEND 2017 #define SCN_ZOOM 2018 #define SCN_HOTSPOTCLICK 2019 #define SCN_HOTSPOTDOUBLECLICK 2020 #define SCN_CALLTIPCLICK 2021 #define SCN_AUTOCSELECTION 2022 #define SCN_INDICATORCLICK 2023 #define SCN_INDICATORRELEASE 2024 #define SCN_AUTOCCANCELLED 2025 #define SCN_AUTOCCHARDELETED 2026 #define SCN_HOTSPOTRELEASECLICK 2027 #define SCN_FOCUSIN 2028 #define SCN_FOCUSOUT 2029 #define SCN_AUTOCCOMPLETED 2030 #define SCN_MARGINRIGHTCLICK 2031 /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ /* These structures are defined to be exactly the same shape as the Win32 * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. * So older code that treats Scintilla as a RichEdit will work. */ struct Sci_CharacterRange { Sci_PositionCR cpMin; Sci_PositionCR cpMax; }; struct Sci_TextRange { struct Sci_CharacterRange chrg; char *lpstrText; }; struct Sci_TextToFind { struct Sci_CharacterRange chrg; const char *lpstrText; struct Sci_CharacterRange chrgText; }; typedef void *Sci_SurfaceID; struct Sci_Rectangle { int left; int top; int right; int bottom; }; /* This structure is used in printing and requires some of the graphics types * from Platform.h. Not needed by most client code. */ struct Sci_RangeToFormat { Sci_SurfaceID hdc; Sci_SurfaceID hdcTarget; struct Sci_Rectangle rc; struct Sci_Rectangle rcPage; struct Sci_CharacterRange chrg; }; #ifndef __cplusplus /* For the GTK+ platform, g-ir-scanner needs to have these typedefs. This * is not required in C++ code and actually seems to break ScintillaEditPy */ typedef struct Sci_NotifyHeader Sci_NotifyHeader; typedef struct SCNotification SCNotification; #endif struct Sci_NotifyHeader { /* Compatible with Windows NMHDR. * hwndFrom is really an environment specific window handle or pointer * but most clients of Scintilla.h do not have this type visible. */ void *hwndFrom; uptr_t idFrom; unsigned int code; }; struct SCNotification { Sci_NotifyHeader nmhdr; Sci_Position position; /* SCN_STYLENEEDED, SCN_DOUBLECLICK, SCN_MODIFIED, SCN_MARGINCLICK, */ /* SCN_NEEDSHOWN, SCN_DWELLSTART, SCN_DWELLEND, SCN_CALLTIPCLICK, */ /* SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, SCN_HOTSPOTRELEASECLICK, */ /* SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ /* SCN_USERLISTSELECTION, SCN_AUTOCSELECTION */ int ch; /* SCN_CHARADDED, SCN_KEY, SCN_AUTOCCOMPLETED, SCN_AUTOCSELECTION, */ /* SCN_USERLISTSELECTION */ int modifiers; /* SCN_KEY, SCN_DOUBLECLICK, SCN_HOTSPOTCLICK, SCN_HOTSPOTDOUBLECLICK, */ /* SCN_HOTSPOTRELEASECLICK, SCN_INDICATORCLICK, SCN_INDICATORRELEASE, */ int modificationType; /* SCN_MODIFIED */ const char *text; /* SCN_MODIFIED, SCN_USERLISTSELECTION, SCN_AUTOCSELECTION, SCN_URIDROPPED */ Sci_Position length; /* SCN_MODIFIED */ Sci_Position linesAdded; /* SCN_MODIFIED */ int message; /* SCN_MACRORECORD */ uptr_t wParam; /* SCN_MACRORECORD */ sptr_t lParam; /* SCN_MACRORECORD */ Sci_Position line; /* SCN_MODIFIED */ int foldLevelNow; /* SCN_MODIFIED */ int foldLevelPrev; /* SCN_MODIFIED */ int margin; /* SCN_MARGINCLICK */ int listType; /* SCN_USERLISTSELECTION */ int x; /* SCN_DWELLSTART, SCN_DWELLEND */ int y; /* SCN_DWELLSTART, SCN_DWELLEND */ int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */ Sci_Position annotationLinesAdded; /* SCN_MODIFIED with SC_MOD_CHANGEANNOTATION */ int updated; /* SCN_UPDATEUI */ int listCompletionMethod; /* SCN_AUTOCSELECTION, SCN_AUTOCCOMPLETED, SCN_USERLISTSELECTION, */ }; #ifdef INCLUDE_DEPRECATED_FEATURES #define SCI_SETKEYSUNICODE 2521 #define SCI_GETKEYSUNICODE 2522 #define CharacterRange Sci_CharacterRange #define TextRange Sci_TextRange #define TextToFind Sci_TextToFind #define RangeToFormat Sci_RangeToFormat #define NotifyHeader Sci_NotifyHeader #endif #endif codequery-0.21.0/scintilla/include/Scintilla.iface000066400000000000000000004403551310136352400221230ustar00rootroot00000000000000## First line may be used for shbang ## This file defines the interface to Scintilla ## Copyright 2000-2003 by Neil Hodgson ## The License.txt file describes the conditions under which this software may be distributed. ## A line starting with ## is a pure comment and should be stripped by readers. ## A line starting with #! is for future shbang use ## A line starting with # followed by a space is a documentation comment and refers ## to the next feature definition. ## Each feature is defined by a line starting with fun, get, set, val or evt. ## cat -> start a category ## fun -> a function ## get -> a property get function ## set -> a property set function ## val -> definition of a constant ## evt -> an event ## enu -> associate an enumeration with a set of vals with a prefix ## lex -> associate a lexer with the lexical classes it produces ## ## All other feature names should be ignored. They may be defined in the future. ## A property may have a set function, a get function or both. Each will have ## "Get" or "Set" in their names and the corresponding name will have the obvious switch. ## A property may be subscripted, in which case the first parameter is the subscript. ## fun, get, and set features have a strict syntax: ## [=,) ## where stands for white space. ## param may be empty (null value) or is [=] ## Additional white space is allowed between elements. ## The syntax for evt is [=[,]*]) ## Feature names that contain an underscore are defined by Windows, so in these ## cases, using the Windows definition is preferred where available. ## The feature numbers are stable so features will not be renumbered. ## Features may be removed but they will go through a period of deprecation ## before removal which is signalled by moving them into the Deprecated category. ## ## enu has the syntax enu=[]* where all the val ## features in this file starting with a given are considered part of the ## enumeration. ## ## lex has the syntax lex=[]* ## where name is a reasonably capitalised (Python, XML) identifier or UI name, ## lexerVal is the val used to specify the lexer, and the list of prefixes is similar ## to enu. The name may not be the same as that used within the lexer so the lexerVal ## should be used to tie these entities together. ## Types: ## void ## int ## bool -> integer, 1=true, 0=false ## position -> integer position in a document ## colour -> colour integer containing red, green and blue bytes. ## string -> pointer to const character ## stringresult -> pointer to character, NULL-> return size of result ## cells -> pointer to array of cells, each cell containing a style byte and character byte ## textrange -> range of a min and a max position with an output string ## findtext -> searchrange, text -> foundposition ## keymod -> integer containing key in low half and modifiers in high half ## formatrange ## Types no longer used: ## findtextex -> searchrange ## charrange -> range of a min and a max position ## charrangeresult -> like charrange, but output param ## countedstring ## point -> x,y ## pointresult -> like point, but output param ## rectangle -> left,top,right,bottom ## Client code should ignore definitions containing types it does not understand, except ## for possibly #defining the constants ## Line numbers and positions start at 0. ## String arguments may contain NUL ('\0') characters where the calls provide a length ## argument and retrieve NUL characters. APIs marked as NUL-terminated also have a ## NUL appended but client code should calculate the size that will be returned rather ## than relying upon the NUL whenever possible. Allow for the extra NUL character when ## allocating buffers. The size to allocate for a stringresult (not including NUL) can be ## determined by calling with a NULL (0) pointer. cat Basics ################################################ ## For Scintilla.h val INVALID_POSITION=-1 # Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages # as many EM_ messages can be used although that use is deprecated. val SCI_START=2000 val SCI_OPTIONAL_START=3000 val SCI_LEXER_START=4000 # Add text to the document at current position. fun void AddText=2001(int length, string text) # Add array of cells to document. fun void AddStyledText=2002(int length, cells c) # Insert string at a position. fun void InsertText=2003(position pos, string text) # Change the text that is being inserted in response to SC_MOD_INSERTCHECK fun void ChangeInsertion=2672(int length, string text) # Delete all text in the document. fun void ClearAll=2004(,) # Delete a range of text in the document. fun void DeleteRange=2645(position start, int lengthDelete) # Set all style bytes to 0, remove all folding information. fun void ClearDocumentStyle=2005(,) # Returns the number of bytes in the document. get int GetLength=2006(,) # Returns the character byte at the position. get int GetCharAt=2007(position pos,) # Returns the position of the caret. get position GetCurrentPos=2008(,) # Returns the position of the opposite end of the selection to the caret. get position GetAnchor=2009(,) # Returns the style byte at the position. get int GetStyleAt=2010(position pos,) # Redoes the next action on the undo history. fun void Redo=2011(,) # Choose between collecting actions into the undo # history and discarding them. set void SetUndoCollection=2012(bool collectUndo,) # Select all the text in the document. fun void SelectAll=2013(,) # Remember the current position in the undo history as the position # at which the document was saved. fun void SetSavePoint=2014(,) # Retrieve a buffer of cells. # Returns the number of bytes in the buffer not including terminating NULs. fun int GetStyledText=2015(, textrange tr) # Are there any redoable actions in the undo history? fun bool CanRedo=2016(,) # Retrieve the line number at which a particular marker is located. fun int MarkerLineFromHandle=2017(int markerHandle,) # Delete a marker. fun void MarkerDeleteHandle=2018(int markerHandle,) # Is undo history being collected? get bool GetUndoCollection=2019(,) enu WhiteSpace=SCWS_ val SCWS_INVISIBLE=0 val SCWS_VISIBLEALWAYS=1 val SCWS_VISIBLEAFTERINDENT=2 val SCWS_VISIBLEONLYININDENT=3 # Are white space characters currently visible? # Returns one of SCWS_* constants. get int GetViewWS=2020(,) # Make white space characters invisible, always visible or visible outside indentation. set void SetViewWS=2021(int viewWS,) enu TabDrawMode=SCTD_ val SCTD_LONGARROW=0 val SCTD_STRIKEOUT=1 # Retrieve the current tab draw mode. # Returns one of SCTD_* constants. get int GetTabDrawMode=2698(,) # Set how tabs are drawn when visible. set void SetTabDrawMode=2699(int tabDrawMode,) # Find the position from a point within the window. fun position PositionFromPoint=2022(int x, int y) # Find the position from a point within the window but return # INVALID_POSITION if not close to text. fun position PositionFromPointClose=2023(int x, int y) # Set caret to start of a line and ensure it is visible. fun void GotoLine=2024(int line,) # Set caret to a position and ensure it is visible. fun void GotoPos=2025(position caret,) # Set the selection anchor to a position. The anchor is the opposite # end of the selection from the caret. set void SetAnchor=2026(position anchor,) # Retrieve the text of the line containing the caret. # Returns the index of the caret on the line. # Result is NUL-terminated. fun int GetCurLine=2027(int length, stringresult text) # Retrieve the position of the last correctly styled character. get position GetEndStyled=2028(,) enu EndOfLine=SC_EOL_ val SC_EOL_CRLF=0 val SC_EOL_CR=1 val SC_EOL_LF=2 # Convert all line endings in the document to one mode. fun void ConvertEOLs=2029(int eolMode,) # Retrieve the current end of line mode - one of CRLF, CR, or LF. get int GetEOLMode=2030(,) # Set the current end of line mode. set void SetEOLMode=2031(int eolMode,) # Set the current styling position to start. # The unused parameter is no longer used and should be set to 0. fun void StartStyling=2032(position start, int unused) # Change style from current styling position for length characters to a style # and move the current styling position to after this newly styled segment. fun void SetStyling=2033(int length, int style) # Is drawing done first into a buffer or direct to the screen? get bool GetBufferedDraw=2034(,) # If drawing is buffered then each line of text is drawn into a bitmap buffer # before drawing it to the screen to avoid flicker. set void SetBufferedDraw=2035(bool buffered,) # Change the visible size of a tab to be a multiple of the width of a space character. set void SetTabWidth=2036(int tabWidth,) # Retrieve the visible size of a tab. get int GetTabWidth=2121(,) # Clear explicit tabstops on a line. fun void ClearTabStops=2675(int line,) # Add an explicit tab stop for a line. fun void AddTabStop=2676(int line, int x) # Find the next explicit tab stop position on a line after a position. fun int GetNextTabStop=2677(int line, int x) # The SC_CP_UTF8 value can be used to enter Unicode mode. # This is the same value as CP_UTF8 in Windows val SC_CP_UTF8=65001 # Set the code page used to interpret the bytes of the document as characters. # The SC_CP_UTF8 value can be used to enter Unicode mode. set void SetCodePage=2037(int codePage,) enu IMEInteraction=SC_IME_ val SC_IME_WINDOWED=0 val SC_IME_INLINE=1 # Is the IME displayed in a window or inline? get int GetIMEInteraction=2678(,) # Choose to display the the IME in a winow or inline. set void SetIMEInteraction=2679(int imeInteraction,) enu MarkerSymbol=SC_MARK_ val MARKER_MAX=31 val SC_MARK_CIRCLE=0 val SC_MARK_ROUNDRECT=1 val SC_MARK_ARROW=2 val SC_MARK_SMALLRECT=3 val SC_MARK_SHORTARROW=4 val SC_MARK_EMPTY=5 val SC_MARK_ARROWDOWN=6 val SC_MARK_MINUS=7 val SC_MARK_PLUS=8 # Shapes used for outlining column. val SC_MARK_VLINE=9 val SC_MARK_LCORNER=10 val SC_MARK_TCORNER=11 val SC_MARK_BOXPLUS=12 val SC_MARK_BOXPLUSCONNECTED=13 val SC_MARK_BOXMINUS=14 val SC_MARK_BOXMINUSCONNECTED=15 val SC_MARK_LCORNERCURVE=16 val SC_MARK_TCORNERCURVE=17 val SC_MARK_CIRCLEPLUS=18 val SC_MARK_CIRCLEPLUSCONNECTED=19 val SC_MARK_CIRCLEMINUS=20 val SC_MARK_CIRCLEMINUSCONNECTED=21 # Invisible mark that only sets the line background colour. val SC_MARK_BACKGROUND=22 val SC_MARK_DOTDOTDOT=23 val SC_MARK_ARROWS=24 val SC_MARK_PIXMAP=25 val SC_MARK_FULLRECT=26 val SC_MARK_LEFTRECT=27 val SC_MARK_AVAILABLE=28 val SC_MARK_UNDERLINE=29 val SC_MARK_RGBAIMAGE=30 val SC_MARK_BOOKMARK=31 val SC_MARK_CHARACTER=10000 enu MarkerOutline=SC_MARKNUM_ # Markers used for outlining column. val SC_MARKNUM_FOLDEREND=25 val SC_MARKNUM_FOLDEROPENMID=26 val SC_MARKNUM_FOLDERMIDTAIL=27 val SC_MARKNUM_FOLDERTAIL=28 val SC_MARKNUM_FOLDERSUB=29 val SC_MARKNUM_FOLDER=30 val SC_MARKNUM_FOLDEROPEN=31 val SC_MASK_FOLDERS=0xFE000000 # Set the symbol used for a particular marker number. fun void MarkerDefine=2040(int markerNumber, int markerSymbol) # Set the foreground colour used for a particular marker number. set void MarkerSetFore=2041(int markerNumber, colour fore) # Set the background colour used for a particular marker number. set void MarkerSetBack=2042(int markerNumber, colour back) # Set the background colour used for a particular marker number when its folding block is selected. set void MarkerSetBackSelected=2292(int markerNumber, colour back) # Enable/disable highlight for current folding bloc (smallest one that contains the caret) fun void MarkerEnableHighlight=2293(bool enabled,) # Add a marker to a line, returning an ID which can be used to find or delete the marker. fun int MarkerAdd=2043(int line, int markerNumber) # Delete a marker from a line. fun void MarkerDelete=2044(int line, int markerNumber) # Delete all markers with a particular number from all lines. fun void MarkerDeleteAll=2045(int markerNumber,) # Get a bit mask of all the markers set on a line. fun int MarkerGet=2046(int line,) # Find the next line at or after lineStart that includes a marker in mask. # Return -1 when no more lines. fun int MarkerNext=2047(int lineStart, int markerMask) # Find the previous line before lineStart that includes a marker in mask. fun int MarkerPrevious=2048(int lineStart, int markerMask) # Define a marker from a pixmap. fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap) # Add a set of markers to a line. fun void MarkerAddSet=2466(int line, int markerSet) # Set the alpha used for a marker that is drawn in the text area, not the margin. set void MarkerSetAlpha=2476(int markerNumber, int alpha) val SC_MAX_MARGIN=4 enu MarginType=SC_MARGIN_ val SC_MARGIN_SYMBOL=0 val SC_MARGIN_NUMBER=1 val SC_MARGIN_BACK=2 val SC_MARGIN_FORE=3 val SC_MARGIN_TEXT=4 val SC_MARGIN_RTEXT=5 val SC_MARGIN_COLOUR=6 # Set a margin to be either numeric or symbolic. set void SetMarginTypeN=2240(int margin, int marginType) # Retrieve the type of a margin. get int GetMarginTypeN=2241(int margin,) # Set the width of a margin to a width expressed in pixels. set void SetMarginWidthN=2242(int margin, int pixelWidth) # Retrieve the width of a margin in pixels. get int GetMarginWidthN=2243(int margin,) # Set a mask that determines which markers are displayed in a margin. set void SetMarginMaskN=2244(int margin, int mask) # Retrieve the marker mask of a margin. get int GetMarginMaskN=2245(int margin,) # Make a margin sensitive or insensitive to mouse clicks. set void SetMarginSensitiveN=2246(int margin, bool sensitive) # Retrieve the mouse click sensitivity of a margin. get bool GetMarginSensitiveN=2247(int margin,) # Set the cursor shown when the mouse is inside a margin. set void SetMarginCursorN=2248(int margin, int cursor) # Retrieve the cursor shown in a margin. get int GetMarginCursorN=2249(int margin,) # Set the background colour of a margin. Only visible for SC_MARGIN_COLOUR. set void SetMarginBackN=2250(int margin, colour back) # Retrieve the background colour of a margin get colour GetMarginBackN=2251(int margin,) # Allocate a non-standard number of margins. set void SetMargins=2252(int margins,) # How many margins are there?. get int GetMargins=2253(,) # Styles in range 32..39 are predefined for parts of the UI and are not used as normal styles. enu StylesCommon=STYLE_ val STYLE_DEFAULT=32 val STYLE_LINENUMBER=33 val STYLE_BRACELIGHT=34 val STYLE_BRACEBAD=35 val STYLE_CONTROLCHAR=36 val STYLE_INDENTGUIDE=37 val STYLE_CALLTIP=38 val STYLE_FOLDDISPLAYTEXT=39 val STYLE_LASTPREDEFINED=39 val STYLE_MAX=255 # Character set identifiers are used in StyleSetCharacterSet. # The values are the same as the Windows *_CHARSET values. enu CharacterSet=SC_CHARSET_ val SC_CHARSET_ANSI=0 val SC_CHARSET_DEFAULT=1 val SC_CHARSET_BALTIC=186 val SC_CHARSET_CHINESEBIG5=136 val SC_CHARSET_EASTEUROPE=238 val SC_CHARSET_GB2312=134 val SC_CHARSET_GREEK=161 val SC_CHARSET_HANGUL=129 val SC_CHARSET_MAC=77 val SC_CHARSET_OEM=255 val SC_CHARSET_RUSSIAN=204 val SC_CHARSET_OEM866=866 val SC_CHARSET_CYRILLIC=1251 val SC_CHARSET_SHIFTJIS=128 val SC_CHARSET_SYMBOL=2 val SC_CHARSET_TURKISH=162 val SC_CHARSET_JOHAB=130 val SC_CHARSET_HEBREW=177 val SC_CHARSET_ARABIC=178 val SC_CHARSET_VIETNAMESE=163 val SC_CHARSET_THAI=222 val SC_CHARSET_8859_15=1000 # Clear all the styles and make equivalent to the global default style. fun void StyleClearAll=2050(,) # Set the foreground colour of a style. set void StyleSetFore=2051(int style, colour fore) # Set the background colour of a style. set void StyleSetBack=2052(int style, colour back) # Set a style to be bold or not. set void StyleSetBold=2053(int style, bool bold) # Set a style to be italic or not. set void StyleSetItalic=2054(int style, bool italic) # Set the size of characters of a style. set void StyleSetSize=2055(int style, int sizePoints) # Set the font of a style. set void StyleSetFont=2056(int style, string fontName) # Set a style to have its end of line filled or not. set void StyleSetEOLFilled=2057(int style, bool eolFilled) # Reset the default style to its state at startup fun void StyleResetDefault=2058(,) # Set a style to be underlined or not. set void StyleSetUnderline=2059(int style, bool underline) enu CaseVisible=SC_CASE_ val SC_CASE_MIXED=0 val SC_CASE_UPPER=1 val SC_CASE_LOWER=2 val SC_CASE_CAMEL=3 # Get the foreground colour of a style. get colour StyleGetFore=2481(int style,) # Get the background colour of a style. get colour StyleGetBack=2482(int style,) # Get is a style bold or not. get bool StyleGetBold=2483(int style,) # Get is a style italic or not. get bool StyleGetItalic=2484(int style,) # Get the size of characters of a style. get int StyleGetSize=2485(int style,) # Get the font of a style. # Returns the length of the fontName # Result is NUL-terminated. get int StyleGetFont=2486(int style, stringresult fontName) # Get is a style to have its end of line filled or not. get bool StyleGetEOLFilled=2487(int style,) # Get is a style underlined or not. get bool StyleGetUnderline=2488(int style,) # Get is a style mixed case, or to force upper or lower case. get int StyleGetCase=2489(int style,) # Get the character get of the font in a style. get int StyleGetCharacterSet=2490(int style,) # Get is a style visible or not. get bool StyleGetVisible=2491(int style,) # Get is a style changeable or not (read only). # Experimental feature, currently buggy. get bool StyleGetChangeable=2492(int style,) # Get is a style a hotspot or not. get bool StyleGetHotSpot=2493(int style,) # Set a style to be mixed case, or to force upper or lower case. set void StyleSetCase=2060(int style, int caseVisible) val SC_FONT_SIZE_MULTIPLIER=100 # Set the size of characters of a style. Size is in points multiplied by 100. set void StyleSetSizeFractional=2061(int style, int sizeHundredthPoints) # Get the size of characters of a style in points multiplied by 100 get int StyleGetSizeFractional=2062(int style,) enu FontWeight=SC_WEIGHT_ val SC_WEIGHT_NORMAL=400 val SC_WEIGHT_SEMIBOLD=600 val SC_WEIGHT_BOLD=700 # Set the weight of characters of a style. set void StyleSetWeight=2063(int style, int weight) # Get the weight of characters of a style. get int StyleGetWeight=2064(int style,) # Set the character set of the font in a style. set void StyleSetCharacterSet=2066(int style, int characterSet) # Set a style to be a hotspot or not. set void StyleSetHotSpot=2409(int style, bool hotspot) # Set the foreground colour of the main and additional selections and whether to use this setting. fun void SetSelFore=2067(bool useSetting, colour fore) # Set the background colour of the main and additional selections and whether to use this setting. fun void SetSelBack=2068(bool useSetting, colour back) # Get the alpha of the selection. get int GetSelAlpha=2477(,) # Set the alpha of the selection. set void SetSelAlpha=2478(int alpha,) # Is the selection end of line filled? get bool GetSelEOLFilled=2479(,) # Set the selection to have its end of line filled or not. set void SetSelEOLFilled=2480(bool filled,) # Set the foreground colour of the caret. set void SetCaretFore=2069(colour fore,) # When key+modifier combination keyDefinition is pressed perform sciCommand. fun void AssignCmdKey=2070(keymod keyDefinition, int sciCommand) # When key+modifier combination keyDefinition is pressed do nothing. fun void ClearCmdKey=2071(keymod keyDefinition,) # Drop all key mappings. fun void ClearAllCmdKeys=2072(,) # Set the styles for a segment of the document. fun void SetStylingEx=2073(int length, string styles) # Set a style to be visible or not. set void StyleSetVisible=2074(int style, bool visible) # Get the time in milliseconds that the caret is on and off. get int GetCaretPeriod=2075(,) # Get the time in milliseconds that the caret is on and off. 0 = steady on. set void SetCaretPeriod=2076(int periodMilliseconds,) # Set the set of characters making up words for when moving or selecting by word. # First sets defaults like SetCharsDefault. set void SetWordChars=2077(, string characters) # Get the set of characters making up words for when moving or selecting by word. # Returns the number of characters get int GetWordChars=2646(, stringresult characters) # Start a sequence of actions that is undone and redone as a unit. # May be nested. fun void BeginUndoAction=2078(,) # End a sequence of actions that is undone and redone as a unit. fun void EndUndoAction=2079(,) # Indicator style enumeration and some constants enu IndicatorStyle=INDIC_ val INDIC_PLAIN=0 val INDIC_SQUIGGLE=1 val INDIC_TT=2 val INDIC_DIAGONAL=3 val INDIC_STRIKE=4 val INDIC_HIDDEN=5 val INDIC_BOX=6 val INDIC_ROUNDBOX=7 val INDIC_STRAIGHTBOX=8 val INDIC_DASH=9 val INDIC_DOTS=10 val INDIC_SQUIGGLELOW=11 val INDIC_DOTBOX=12 val INDIC_SQUIGGLEPIXMAP=13 val INDIC_COMPOSITIONTHICK=14 val INDIC_COMPOSITIONTHIN=15 val INDIC_FULLBOX=16 val INDIC_TEXTFORE=17 val INDIC_POINT=18 val INDIC_POINTCHARACTER=19 val INDIC_IME=32 val INDIC_IME_MAX=35 val INDIC_MAX=35 val INDIC_CONTAINER=8 val INDIC0_MASK=0x20 val INDIC1_MASK=0x40 val INDIC2_MASK=0x80 val INDICS_MASK=0xE0 # Set an indicator to plain, squiggle or TT. set void IndicSetStyle=2080(int indicator, int indicatorStyle) # Retrieve the style of an indicator. get int IndicGetStyle=2081(int indicator,) # Set the foreground colour of an indicator. set void IndicSetFore=2082(int indicator, colour fore) # Retrieve the foreground colour of an indicator. get colour IndicGetFore=2083(int indicator,) # Set an indicator to draw under text or over(default). set void IndicSetUnder=2510(int indicator, bool under) # Retrieve whether indicator drawn under or over text. get bool IndicGetUnder=2511(int indicator,) # Set a hover indicator to plain, squiggle or TT. set void IndicSetHoverStyle=2680(int indicator, int indicatorStyle) # Retrieve the hover style of an indicator. get int IndicGetHoverStyle=2681(int indicator,) # Set the foreground hover colour of an indicator. set void IndicSetHoverFore=2682(int indicator, colour fore) # Retrieve the foreground hover colour of an indicator. get colour IndicGetHoverFore=2683(int indicator,) val SC_INDICVALUEBIT=0x1000000 val SC_INDICVALUEMASK=0xFFFFFF enu IndicFlag=SC_INDICFLAG_ val SC_INDICFLAG_VALUEFORE=1 # Set the attributes of an indicator. set void IndicSetFlags=2684(int indicator, int flags) # Retrieve the attributes of an indicator. get int IndicGetFlags=2685(int indicator,) # Set the foreground colour of all whitespace and whether to use this setting. fun void SetWhitespaceFore=2084(bool useSetting, colour fore) # Set the background colour of all whitespace and whether to use this setting. fun void SetWhitespaceBack=2085(bool useSetting, colour back) # Set the size of the dots used to mark space characters. set void SetWhitespaceSize=2086(int size,) # Get the size of the dots used to mark space characters. get int GetWhitespaceSize=2087(,) # Divide each styling byte into lexical class bits (default: 5) and indicator # bits (default: 3). If a lexer requires more than 32 lexical states, then this # is used to expand the possible states. set void SetStyleBits=2090(int bits,) # Retrieve number of bits in style bytes used to hold the lexical state. get int GetStyleBits=2091(,) # Used to hold extra styling information for each line. set void SetLineState=2092(int line, int state) # Retrieve the extra styling information for a line. get int GetLineState=2093(int line,) # Retrieve the last line number that has line state. get int GetMaxLineState=2094(,) # Is the background of the line containing the caret in a different colour? get bool GetCaretLineVisible=2095(,) # Display the background of the line containing the caret in a different colour. set void SetCaretLineVisible=2096(bool show,) # Get the colour of the background of the line containing the caret. get colour GetCaretLineBack=2097(,) # Set the colour of the background of the line containing the caret. set void SetCaretLineBack=2098(colour back,) # Set a style to be changeable or not (read only). # Experimental feature, currently buggy. set void StyleSetChangeable=2099(int style, bool changeable) # Display a auto-completion list. # The lengthEntered parameter indicates how many characters before # the caret should be used to provide context. fun void AutoCShow=2100(int lengthEntered, string itemList) # Remove the auto-completion list from the screen. fun void AutoCCancel=2101(,) # Is there an auto-completion list visible? fun bool AutoCActive=2102(,) # Retrieve the position of the caret when the auto-completion list was displayed. fun position AutoCPosStart=2103(,) # User has selected an item so remove the list and insert the selection. fun void AutoCComplete=2104(,) # Define a set of character that when typed cancel the auto-completion list. fun void AutoCStops=2105(, string characterSet) # Change the separator character in the string setting up an auto-completion list. # Default is space but can be changed if items contain space. set void AutoCSetSeparator=2106(int separatorCharacter,) # Retrieve the auto-completion list separator character. get int AutoCGetSeparator=2107(,) # Select the item in the auto-completion list that starts with a string. fun void AutoCSelect=2108(, string select) # Should the auto-completion list be cancelled if the user backspaces to a # position before where the box was created. set void AutoCSetCancelAtStart=2110(bool cancel,) # Retrieve whether auto-completion cancelled by backspacing before start. get bool AutoCGetCancelAtStart=2111(,) # Define a set of characters that when typed will cause the autocompletion to # choose the selected item. set void AutoCSetFillUps=2112(, string characterSet) # Should a single item auto-completion list automatically choose the item. set void AutoCSetChooseSingle=2113(bool chooseSingle,) # Retrieve whether a single item auto-completion list automatically choose the item. get bool AutoCGetChooseSingle=2114(,) # Set whether case is significant when performing auto-completion searches. set void AutoCSetIgnoreCase=2115(bool ignoreCase,) # Retrieve state of ignore case flag. get bool AutoCGetIgnoreCase=2116(,) # Display a list of strings and send notification when user chooses one. fun void UserListShow=2117(int listType, string itemList) # Set whether or not autocompletion is hidden automatically when nothing matches. set void AutoCSetAutoHide=2118(bool autoHide,) # Retrieve whether or not autocompletion is hidden automatically when nothing matches. get bool AutoCGetAutoHide=2119(,) # Set whether or not autocompletion deletes any word characters # after the inserted text upon completion. set void AutoCSetDropRestOfWord=2270(bool dropRestOfWord,) # Retrieve whether or not autocompletion deletes any word characters # after the inserted text upon completion. get bool AutoCGetDropRestOfWord=2271(,) # Register an XPM image for use in autocompletion lists. fun void RegisterImage=2405(int type, string xpmData) # Clear all the registered XPM images. fun void ClearRegisteredImages=2408(,) # Retrieve the auto-completion list type-separator character. get int AutoCGetTypeSeparator=2285(,) # Change the type-separator character in the string setting up an auto-completion list. # Default is '?' but can be changed if items contain '?'. set void AutoCSetTypeSeparator=2286(int separatorCharacter,) # Set the maximum width, in characters, of auto-completion and user lists. # Set to 0 to autosize to fit longest item, which is the default. set void AutoCSetMaxWidth=2208(int characterCount,) # Get the maximum width, in characters, of auto-completion and user lists. get int AutoCGetMaxWidth=2209(,) # Set the maximum height, in rows, of auto-completion and user lists. # The default is 5 rows. set void AutoCSetMaxHeight=2210(int rowCount,) # Set the maximum height, in rows, of auto-completion and user lists. get int AutoCGetMaxHeight=2211(,) # Set the number of spaces used for one level of indentation. set void SetIndent=2122(int indentSize,) # Retrieve indentation size. get int GetIndent=2123(,) # Indentation will only use space characters if useTabs is false, otherwise # it will use a combination of tabs and spaces. set void SetUseTabs=2124(bool useTabs,) # Retrieve whether tabs will be used in indentation. get bool GetUseTabs=2125(,) # Change the indentation of a line to a number of columns. set void SetLineIndentation=2126(int line, int indentation) # Retrieve the number of columns that a line is indented. get int GetLineIndentation=2127(int line,) # Retrieve the position before the first non indentation character on a line. get position GetLineIndentPosition=2128(int line,) # Retrieve the column number of a position, taking tab width into account. get int GetColumn=2129(position pos,) # Count characters between two positions. fun int CountCharacters=2633(position start, position end) # Show or hide the horizontal scroll bar. set void SetHScrollBar=2130(bool visible,) # Is the horizontal scroll bar visible? get bool GetHScrollBar=2131(,) enu IndentView=SC_IV_ val SC_IV_NONE=0 val SC_IV_REAL=1 val SC_IV_LOOKFORWARD=2 val SC_IV_LOOKBOTH=3 # Show or hide indentation guides. set void SetIndentationGuides=2132(int indentView,) # Are the indentation guides visible? get int GetIndentationGuides=2133(,) # Set the highlighted indentation guide column. # 0 = no highlighted guide. set void SetHighlightGuide=2134(int column,) # Get the highlighted indentation guide column. get int GetHighlightGuide=2135(,) # Get the position after the last visible characters on a line. get position GetLineEndPosition=2136(int line,) # Get the code page used to interpret the bytes of the document as characters. get int GetCodePage=2137(,) # Get the foreground colour of the caret. get colour GetCaretFore=2138(,) # In read-only mode? get bool GetReadOnly=2140(,) # Sets the position of the caret. set void SetCurrentPos=2141(position caret,) # Sets the position that starts the selection - this becomes the anchor. set void SetSelectionStart=2142(position anchor,) # Returns the position at the start of the selection. get position GetSelectionStart=2143(,) # Sets the position that ends the selection - this becomes the caret. set void SetSelectionEnd=2144(position caret,) # Returns the position at the end of the selection. get position GetSelectionEnd=2145(,) # Set caret to a position, while removing any existing selection. fun void SetEmptySelection=2556(position caret,) # Sets the print magnification added to the point size of each style for printing. set void SetPrintMagnification=2146(int magnification,) # Returns the print magnification. get int GetPrintMagnification=2147(,) enu PrintOption=SC_PRINT_ # PrintColourMode - use same colours as screen. val SC_PRINT_NORMAL=0 # PrintColourMode - invert the light value of each style for printing. val SC_PRINT_INVERTLIGHT=1 # PrintColourMode - force black text on white background for printing. val SC_PRINT_BLACKONWHITE=2 # PrintColourMode - text stays coloured, but all background is forced to be white for printing. val SC_PRINT_COLOURONWHITE=3 # PrintColourMode - only the default-background is forced to be white for printing. val SC_PRINT_COLOURONWHITEDEFAULTBG=4 # Modify colours when printing for clearer printed text. set void SetPrintColourMode=2148(int mode,) # Returns the print colour mode. get int GetPrintColourMode=2149(,) enu FindOption=SCFIND_ val SCFIND_WHOLEWORD=0x2 val SCFIND_MATCHCASE=0x4 val SCFIND_WORDSTART=0x00100000 val SCFIND_REGEXP=0x00200000 val SCFIND_POSIX=0x00400000 val SCFIND_CXX11REGEX=0x00800000 # Find some text in the document. fun position FindText=2150(int searchFlags, findtext ft) # On Windows, will draw the document into a display context such as a printer. fun position FormatRange=2151(bool draw, formatrange fr) # Retrieve the display line at the top of the display. get int GetFirstVisibleLine=2152(,) # Retrieve the contents of a line. # Returns the length of the line. fun int GetLine=2153(int line, stringresult text) # Returns the number of lines in the document. There is always at least one. get int GetLineCount=2154(,) # Sets the size in pixels of the left margin. set void SetMarginLeft=2155(, int pixelWidth) # Returns the size in pixels of the left margin. get int GetMarginLeft=2156(,) # Sets the size in pixels of the right margin. set void SetMarginRight=2157(, int pixelWidth) # Returns the size in pixels of the right margin. get int GetMarginRight=2158(,) # Is the document different from when it was last saved? get bool GetModify=2159(,) # Select a range of text. fun void SetSel=2160(position anchor, position caret) # Retrieve the selected text. # Return the length of the text. # Result is NUL-terminated. fun int GetSelText=2161(, stringresult text) # Retrieve a range of text. # Return the length of the text. fun int GetTextRange=2162(, textrange tr) # Draw the selection in normal style or with selection highlighted. fun void HideSelection=2163(bool hide,) # Retrieve the x value of the point in the window where a position is displayed. fun int PointXFromPosition=2164(, position pos) # Retrieve the y value of the point in the window where a position is displayed. fun int PointYFromPosition=2165(, position pos) # Retrieve the line containing a position. fun int LineFromPosition=2166(position pos,) # Retrieve the position at the start of a line. fun position PositionFromLine=2167(int line,) # Scroll horizontally and vertically. fun void LineScroll=2168(int columns, int lines) # Ensure the caret is visible. fun void ScrollCaret=2169(,) # Scroll the argument positions and the range between them into view giving # priority to the primary position then the secondary position. # This may be used to make a search match visible. fun void ScrollRange=2569(position secondary, position primary) # Replace the selected text with the argument text. fun void ReplaceSel=2170(, string text) # Set to read only or read write. set void SetReadOnly=2171(bool readOnly,) # Null operation. fun void Null=2172(,) # Will a paste succeed? fun bool CanPaste=2173(,) # Are there any undoable actions in the undo history? fun bool CanUndo=2174(,) # Delete the undo history. fun void EmptyUndoBuffer=2175(,) # Undo one action in the undo history. fun void Undo=2176(,) # Cut the selection to the clipboard. fun void Cut=2177(,) # Copy the selection to the clipboard. fun void Copy=2178(,) # Paste the contents of the clipboard into the document replacing the selection. fun void Paste=2179(,) # Clear the selection. fun void Clear=2180(,) # Replace the contents of the document with the argument text. fun void SetText=2181(, string text) # Retrieve all the text in the document. # Returns number of characters retrieved. # Result is NUL-terminated. fun int GetText=2182(int length, stringresult text) # Retrieve the number of characters in the document. get int GetTextLength=2183(,) # Retrieve a pointer to a function that processes messages for this Scintilla. get int GetDirectFunction=2184(,) # Retrieve a pointer value to use as the first argument when calling # the function returned by GetDirectFunction. get int GetDirectPointer=2185(,) # Set to overtype (true) or insert mode. set void SetOvertype=2186(bool overType,) # Returns true if overtype mode is active otherwise false is returned. get bool GetOvertype=2187(,) # Set the width of the insert mode caret. set void SetCaretWidth=2188(int pixelWidth,) # Returns the width of the insert mode caret. get int GetCaretWidth=2189(,) # Sets the position that starts the target which is used for updating the # document without affecting the scroll position. set void SetTargetStart=2190(position start,) # Get the position that starts the target. get position GetTargetStart=2191(,) # Sets the position that ends the target which is used for updating the # document without affecting the scroll position. set void SetTargetEnd=2192(position end,) # Get the position that ends the target. get position GetTargetEnd=2193(,) # Sets both the start and end of the target in one call. fun void SetTargetRange=2686(position start, position end) # Retrieve the text in the target. get int GetTargetText=2687(, stringresult text) # Make the target range start and end be the same as the selection range start and end. fun void TargetFromSelection=2287(,) # Sets the target to the whole document. fun void TargetWholeDocument=2690(,) # Replace the target text with the argument text. # Text is counted so it can contain NULs. # Returns the length of the replacement text. fun int ReplaceTarget=2194(int length, string text) # Replace the target text with the argument text after \d processing. # Text is counted so it can contain NULs. # Looks for \d where d is between 1 and 9 and replaces these with the strings # matched in the last search operation which were surrounded by \( and \). # Returns the length of the replacement text including any change # caused by processing the \d patterns. fun int ReplaceTargetRE=2195(int length, string text) # Search for a counted string in the target and set the target to the found # range. Text is counted so it can contain NULs. # Returns length of range or -1 for failure in which case target is not moved. fun int SearchInTarget=2197(int length, string text) # Set the search flags used by SearchInTarget. set void SetSearchFlags=2198(int searchFlags,) # Get the search flags used by SearchInTarget. get int GetSearchFlags=2199(,) # Show a call tip containing a definition near position pos. fun void CallTipShow=2200(position pos, string definition) # Remove the call tip from the screen. fun void CallTipCancel=2201(,) # Is there an active call tip? fun bool CallTipActive=2202(,) # Retrieve the position where the caret was before displaying the call tip. fun position CallTipPosStart=2203(,) # Set the start position in order to change when backspacing removes the calltip. set void CallTipSetPosStart=2214(int posStart,) # Highlight a segment of the definition. fun void CallTipSetHlt=2204(int highlightStart, int highlightEnd) # Set the background colour for the call tip. set void CallTipSetBack=2205(colour back,) # Set the foreground colour for the call tip. set void CallTipSetFore=2206(colour fore,) # Set the foreground colour for the highlighted part of the call tip. set void CallTipSetForeHlt=2207(colour fore,) # Enable use of STYLE_CALLTIP and set call tip tab size in pixels. set void CallTipUseStyle=2212(int tabSize,) # Set position of calltip, above or below text. set void CallTipSetPosition=2213(bool above,) # Find the display line of a document line taking hidden lines into account. fun int VisibleFromDocLine=2220(int docLine,) # Find the document line of a display line taking hidden lines into account. fun int DocLineFromVisible=2221(int displayLine,) # The number of display lines needed to wrap a document line fun int WrapCount=2235(int docLine,) enu FoldLevel=SC_FOLDLEVEL val SC_FOLDLEVELBASE=0x400 val SC_FOLDLEVELWHITEFLAG=0x1000 val SC_FOLDLEVELHEADERFLAG=0x2000 val SC_FOLDLEVELNUMBERMASK=0x0FFF # Set the fold level of a line. # This encodes an integer level along with flags indicating whether the # line is a header and whether it is effectively white space. set void SetFoldLevel=2222(int line, int level) # Retrieve the fold level of a line. get int GetFoldLevel=2223(int line,) # Find the last child line of a header line. get int GetLastChild=2224(int line, int level) # Find the parent line of a child line. get int GetFoldParent=2225(int line,) # Make a range of lines visible. fun void ShowLines=2226(int lineStart, int lineEnd) # Make a range of lines invisible. fun void HideLines=2227(int lineStart, int lineEnd) # Is a line visible? get bool GetLineVisible=2228(int line,) # Are all lines visible? get bool GetAllLinesVisible=2236(,) # Show the children of a header line. set void SetFoldExpanded=2229(int line, bool expanded) # Is a header line expanded? get bool GetFoldExpanded=2230(int line,) # Switch a header line between expanded and contracted. fun void ToggleFold=2231(int line,) # Switch a header line between expanded and contracted and show some text after the line. fun void ToggleFoldShowText=2700(int line, string text) enu FoldDisplayTextStyle=SC_FOLDDISPLAYTEXT_ val SC_FOLDDISPLAYTEXT_HIDDEN=0 val SC_FOLDDISPLAYTEXT_STANDARD=1 val SC_FOLDDISPLAYTEXT_BOXED=2 # Set the style of fold display text set void FoldDisplayTextSetStyle=2701(int style,) enu FoldAction=SC_FOLDACTION_ val SC_FOLDACTION_CONTRACT=0 val SC_FOLDACTION_EXPAND=1 val SC_FOLDACTION_TOGGLE=2 # Expand or contract a fold header. fun void FoldLine=2237(int line, int action) # Expand or contract a fold header and its children. fun void FoldChildren=2238(int line, int action) # Expand a fold header and all children. Use the level argument instead of the line's current level. fun void ExpandChildren=2239(int line, int level) # Expand or contract all fold headers. fun void FoldAll=2662(int action,) # Ensure a particular line is visible by expanding any header line hiding it. fun void EnsureVisible=2232(int line,) enu AutomaticFold=SC_AUTOMATICFOLD_ val SC_AUTOMATICFOLD_SHOW=0x0001 val SC_AUTOMATICFOLD_CLICK=0x0002 val SC_AUTOMATICFOLD_CHANGE=0x0004 # Set automatic folding behaviours. set void SetAutomaticFold=2663(int automaticFold,) # Get automatic folding behaviours. get int GetAutomaticFold=2664(,) enu FoldFlag=SC_FOLDFLAG_ val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002 val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004 val SC_FOLDFLAG_LINEAFTER_EXPANDED=0x0008 val SC_FOLDFLAG_LINEAFTER_CONTRACTED=0x0010 val SC_FOLDFLAG_LEVELNUMBERS=0x0040 val SC_FOLDFLAG_LINESTATE=0x0080 # Set some style options for folding. set void SetFoldFlags=2233(int flags,) # Ensure a particular line is visible by expanding any header line hiding it. # Use the currently set visibility policy to determine which range to display. fun void EnsureVisibleEnforcePolicy=2234(int line,) # Sets whether a tab pressed when caret is within indentation indents. set void SetTabIndents=2260(bool tabIndents,) # Does a tab pressed when caret is within indentation indent? get bool GetTabIndents=2261(,) # Sets whether a backspace pressed when caret is within indentation unindents. set void SetBackSpaceUnIndents=2262(bool bsUnIndents,) # Does a backspace pressed when caret is within indentation unindent? get bool GetBackSpaceUnIndents=2263(,) val SC_TIME_FOREVER=10000000 # Sets the time the mouse must sit still to generate a mouse dwell event. set void SetMouseDwellTime=2264(int periodMilliseconds,) # Retrieve the time the mouse must sit still to generate a mouse dwell event. get int GetMouseDwellTime=2265(,) # Get position of start of word. fun int WordStartPosition=2266(position pos, bool onlyWordCharacters) # Get position of end of word. fun int WordEndPosition=2267(position pos, bool onlyWordCharacters) # Is the range start..end considered a word? fun bool IsRangeWord=2691(position start, position end) enu IdleStyling=SC_IDLESTYLING_ val SC_IDLESTYLING_NONE=0 val SC_IDLESTYLING_TOVISIBLE=1 val SC_IDLESTYLING_AFTERVISIBLE=2 val SC_IDLESTYLING_ALL=3 # Sets limits to idle styling. set void SetIdleStyling=2692(int idleStyling,) # Retrieve the limits to idle styling. get int GetIdleStyling=2693(,) enu Wrap=SC_WRAP_ val SC_WRAP_NONE=0 val SC_WRAP_WORD=1 val SC_WRAP_CHAR=2 val SC_WRAP_WHITESPACE=3 # Sets whether text is word wrapped. set void SetWrapMode=2268(int wrapMode,) # Retrieve whether text is word wrapped. get int GetWrapMode=2269(,) enu WrapVisualFlag=SC_WRAPVISUALFLAG_ val SC_WRAPVISUALFLAG_NONE=0x0000 val SC_WRAPVISUALFLAG_END=0x0001 val SC_WRAPVISUALFLAG_START=0x0002 val SC_WRAPVISUALFLAG_MARGIN=0x0004 # Set the display mode of visual flags for wrapped lines. set void SetWrapVisualFlags=2460(int wrapVisualFlags,) # Retrive the display mode of visual flags for wrapped lines. get int GetWrapVisualFlags=2461(,) enu WrapVisualLocation=SC_WRAPVISUALFLAGLOC_ val SC_WRAPVISUALFLAGLOC_DEFAULT=0x0000 val SC_WRAPVISUALFLAGLOC_END_BY_TEXT=0x0001 val SC_WRAPVISUALFLAGLOC_START_BY_TEXT=0x0002 # Set the location of visual flags for wrapped lines. set void SetWrapVisualFlagsLocation=2462(int wrapVisualFlagsLocation,) # Retrive the location of visual flags for wrapped lines. get int GetWrapVisualFlagsLocation=2463(,) # Set the start indent for wrapped lines. set void SetWrapStartIndent=2464(int indent,) # Retrive the start indent for wrapped lines. get int GetWrapStartIndent=2465(,) enu WrapIndentMode=SC_WRAPINDENT_ val SC_WRAPINDENT_FIXED=0 val SC_WRAPINDENT_SAME=1 val SC_WRAPINDENT_INDENT=2 # Sets how wrapped sublines are placed. Default is fixed. set void SetWrapIndentMode=2472(int wrapIndentMode,) # Retrieve how wrapped sublines are placed. Default is fixed. get int GetWrapIndentMode=2473(,) enu LineCache=SC_CACHE_ val SC_CACHE_NONE=0 val SC_CACHE_CARET=1 val SC_CACHE_PAGE=2 val SC_CACHE_DOCUMENT=3 # Sets the degree of caching of layout information. set void SetLayoutCache=2272(int cacheMode,) # Retrieve the degree of caching of layout information. get int GetLayoutCache=2273(,) # Sets the document width assumed for scrolling. set void SetScrollWidth=2274(int pixelWidth,) # Retrieve the document width assumed for scrolling. get int GetScrollWidth=2275(,) # Sets whether the maximum width line displayed is used to set scroll width. set void SetScrollWidthTracking=2516(bool tracking,) # Retrieve whether the scroll width tracks wide lines. get bool GetScrollWidthTracking=2517(,) # Measure the pixel width of some text in a particular style. # NUL terminated text argument. # Does not handle tab or control characters. fun int TextWidth=2276(int style, string text) # Sets the scroll range so that maximum scroll position has # the last line at the bottom of the view (default). # Setting this to false allows scrolling one page below the last line. set void SetEndAtLastLine=2277(bool endAtLastLine,) # Retrieve whether the maximum scroll position has the last # line at the bottom of the view. get bool GetEndAtLastLine=2278(,) # Retrieve the height of a particular line of text in pixels. fun int TextHeight=2279(int line,) # Show or hide the vertical scroll bar. set void SetVScrollBar=2280(bool visible,) # Is the vertical scroll bar visible? get bool GetVScrollBar=2281(,) # Append a string to the end of the document without changing the selection. fun void AppendText=2282(int length, string text) # Is drawing done in two phases with backgrounds drawn before foregrounds? get bool GetTwoPhaseDraw=2283(,) # In twoPhaseDraw mode, drawing is performed in two phases, first the background # and then the foreground. This avoids chopping off characters that overlap the next run. set void SetTwoPhaseDraw=2284(bool twoPhase,) enu PhasesDraw=SC_PHASES_ val SC_PHASES_ONE=0 val SC_PHASES_TWO=1 val SC_PHASES_MULTIPLE=2 # How many phases is drawing done in? get int GetPhasesDraw=2673(,) # In one phase draw, text is drawn in a series of rectangular blocks with no overlap. # In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally. # In multiple phase draw, each element is drawn over the whole drawing area, allowing text # to overlap from one line to the next. set void SetPhasesDraw=2674(int phases,) # Control font anti-aliasing. enu FontQuality=SC_EFF_ val SC_EFF_QUALITY_MASK=0xF val SC_EFF_QUALITY_DEFAULT=0 val SC_EFF_QUALITY_NON_ANTIALIASED=1 val SC_EFF_QUALITY_ANTIALIASED=2 val SC_EFF_QUALITY_LCD_OPTIMIZED=3 # Choose the quality level for text from the FontQuality enumeration. set void SetFontQuality=2611(int fontQuality,) # Retrieve the quality level for text. get int GetFontQuality=2612(,) # Scroll so that a display line is at the top of the display. set void SetFirstVisibleLine=2613(int displayLine,) enu MultiPaste=SC_MULTIPASTE_ val SC_MULTIPASTE_ONCE=0 val SC_MULTIPASTE_EACH=1 # Change the effect of pasting when there are multiple selections. set void SetMultiPaste=2614(int multiPaste,) # Retrieve the effect of pasting when there are multiple selections. get int GetMultiPaste=2615(,) # Retrieve the value of a tag from a regular expression search. # Result is NUL-terminated. get int GetTag=2616(int tagNumber, stringresult tagValue) # Join the lines in the target. fun void LinesJoin=2288(,) # Split the lines in the target into lines that are less wide than pixelWidth # where possible. fun void LinesSplit=2289(int pixelWidth,) # Set one of the colours used as a chequerboard pattern in the fold margin fun void SetFoldMarginColour=2290(bool useSetting, colour back) # Set the other colour used as a chequerboard pattern in the fold margin fun void SetFoldMarginHiColour=2291(bool useSetting, colour fore) enu Accessibility=SC_ACCESSIBILITY_ val SC_ACCESSIBILITY_DISABLED=0 val SC_ACCESSIBILITY_ENABLED=1 # Enable or disable accessibility. set void SetAccessibility=2702(int accessibility,) # Report accessibility status. get int GetAccessibility=2703(,) ## New messages go here ## Start of key messages # Move caret down one line. fun void LineDown=2300(,) # Move caret down one line extending selection to new caret position. fun void LineDownExtend=2301(,) # Move caret up one line. fun void LineUp=2302(,) # Move caret up one line extending selection to new caret position. fun void LineUpExtend=2303(,) # Move caret left one character. fun void CharLeft=2304(,) # Move caret left one character extending selection to new caret position. fun void CharLeftExtend=2305(,) # Move caret right one character. fun void CharRight=2306(,) # Move caret right one character extending selection to new caret position. fun void CharRightExtend=2307(,) # Move caret left one word. fun void WordLeft=2308(,) # Move caret left one word extending selection to new caret position. fun void WordLeftExtend=2309(,) # Move caret right one word. fun void WordRight=2310(,) # Move caret right one word extending selection to new caret position. fun void WordRightExtend=2311(,) # Move caret to first position on line. fun void Home=2312(,) # Move caret to first position on line extending selection to new caret position. fun void HomeExtend=2313(,) # Move caret to last position on line. fun void LineEnd=2314(,) # Move caret to last position on line extending selection to new caret position. fun void LineEndExtend=2315(,) # Move caret to first position in document. fun void DocumentStart=2316(,) # Move caret to first position in document extending selection to new caret position. fun void DocumentStartExtend=2317(,) # Move caret to last position in document. fun void DocumentEnd=2318(,) # Move caret to last position in document extending selection to new caret position. fun void DocumentEndExtend=2319(,) # Move caret one page up. fun void PageUp=2320(,) # Move caret one page up extending selection to new caret position. fun void PageUpExtend=2321(,) # Move caret one page down. fun void PageDown=2322(,) # Move caret one page down extending selection to new caret position. fun void PageDownExtend=2323(,) # Switch from insert to overtype mode or the reverse. fun void EditToggleOvertype=2324(,) # Cancel any modes such as call tip or auto-completion list display. fun void Cancel=2325(,) # Delete the selection or if no selection, the character before the caret. fun void DeleteBack=2326(,) # If selection is empty or all on one line replace the selection with a tab character. # If more than one line selected, indent the lines. fun void Tab=2327(,) # Dedent the selected lines. fun void BackTab=2328(,) # Insert a new line, may use a CRLF, CR or LF depending on EOL mode. fun void NewLine=2329(,) # Insert a Form Feed character. fun void FormFeed=2330(,) # Move caret to before first visible character on line. # If already there move to first character on line. fun void VCHome=2331(,) # Like VCHome but extending selection to new caret position. fun void VCHomeExtend=2332(,) # Magnify the displayed text by increasing the sizes by 1 point. fun void ZoomIn=2333(,) # Make the displayed text smaller by decreasing the sizes by 1 point. fun void ZoomOut=2334(,) # Delete the word to the left of the caret. fun void DelWordLeft=2335(,) # Delete the word to the right of the caret. fun void DelWordRight=2336(,) # Delete the word to the right of the caret, but not the trailing non-word characters. fun void DelWordRightEnd=2518(,) # Cut the line containing the caret. fun void LineCut=2337(,) # Delete the line containing the caret. fun void LineDelete=2338(,) # Switch the current line with the previous. fun void LineTranspose=2339(,) # Duplicate the current line. fun void LineDuplicate=2404(,) # Transform the selection to lower case. fun void LowerCase=2340(,) # Transform the selection to upper case. fun void UpperCase=2341(,) # Scroll the document down, keeping the caret visible. fun void LineScrollDown=2342(,) # Scroll the document up, keeping the caret visible. fun void LineScrollUp=2343(,) # Delete the selection or if no selection, the character before the caret. # Will not delete the character before at the start of a line. fun void DeleteBackNotLine=2344(,) # Move caret to first position on display line. fun void HomeDisplay=2345(,) # Move caret to first position on display line extending selection to # new caret position. fun void HomeDisplayExtend=2346(,) # Move caret to last position on display line. fun void LineEndDisplay=2347(,) # Move caret to last position on display line extending selection to new # caret position. fun void LineEndDisplayExtend=2348(,) # Like Home but when word-wrap is enabled goes first to start of display line # HomeDisplay, then to start of document line Home. fun void HomeWrap=2349(,) # Like HomeExtend but when word-wrap is enabled extends first to start of display line # HomeDisplayExtend, then to start of document line HomeExtend. fun void HomeWrapExtend=2450(,) # Like LineEnd but when word-wrap is enabled goes first to end of display line # LineEndDisplay, then to start of document line LineEnd. fun void LineEndWrap=2451(,) # Like LineEndExtend but when word-wrap is enabled extends first to end of display line # LineEndDisplayExtend, then to start of document line LineEndExtend. fun void LineEndWrapExtend=2452(,) # Like VCHome but when word-wrap is enabled goes first to start of display line # VCHomeDisplay, then behaves like VCHome. fun void VCHomeWrap=2453(,) # Like VCHomeExtend but when word-wrap is enabled extends first to start of display line # VCHomeDisplayExtend, then behaves like VCHomeExtend. fun void VCHomeWrapExtend=2454(,) # Copy the line containing the caret. fun void LineCopy=2455(,) # Move the caret inside current view if it's not there already. fun void MoveCaretInsideView=2401(,) # How many characters are on a line, including end of line characters? fun int LineLength=2350(int line,) # Highlight the characters at two positions. fun void BraceHighlight=2351(position posA, position posB) # Use specified indicator to highlight matching braces instead of changing their style. fun void BraceHighlightIndicator=2498(bool useSetting, int indicator) # Highlight the character at a position indicating there is no matching brace. fun void BraceBadLight=2352(position pos,) # Use specified indicator to highlight non matching brace instead of changing its style. fun void BraceBadLightIndicator=2499(bool useSetting, int indicator) # Find the position of a matching brace or INVALID_POSITION if no match. # The maxReStyle must be 0 for now. It may be defined in a future release. fun position BraceMatch=2353(position pos, int maxReStyle) # Are the end of line characters visible? get bool GetViewEOL=2355(,) # Make the end of line characters visible or invisible. set void SetViewEOL=2356(bool visible,) # Retrieve a pointer to the document object. get int GetDocPointer=2357(,) # Change the document object used. set void SetDocPointer=2358(, int doc) # Set which document modification events are sent to the container. set void SetModEventMask=2359(int eventMask,) enu EdgeVisualStyle=EDGE_ val EDGE_NONE=0 val EDGE_LINE=1 val EDGE_BACKGROUND=2 val EDGE_MULTILINE=3 # Retrieve the column number which text should be kept within. get int GetEdgeColumn=2360(,) # Set the column number of the edge. # If text goes past the edge then it is highlighted. set void SetEdgeColumn=2361(int column,) # Retrieve the edge highlight mode. get int GetEdgeMode=2362(,) # The edge may be displayed by a line (EDGE_LINE/EDGE_MULTILINE) or by highlighting text that # goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). set void SetEdgeMode=2363(int edgeMode,) # Retrieve the colour used in edge indication. get colour GetEdgeColour=2364(,) # Change the colour used in edge indication. set void SetEdgeColour=2365(colour edgeColour,) # Add a new vertical edge to the view. fun void MultiEdgeAddLine=2694(int column, colour edgeColour) # Clear all vertical edges. fun void MultiEdgeClearAll=2695(,) # Sets the current caret position to be the search anchor. fun void SearchAnchor=2366(,) # Find some text starting at the search anchor. # Does not ensure the selection is visible. fun int SearchNext=2367(int searchFlags, string text) # Find some text starting at the search anchor and moving backwards. # Does not ensure the selection is visible. fun int SearchPrev=2368(int searchFlags, string text) # Retrieves the number of lines completely visible. get int LinesOnScreen=2370(,) enu PopUp=SC_POPUP_ val SC_POPUP_NEVER=0 val SC_POPUP_ALL=1 val SC_POPUP_TEXT=2 # Set whether a pop up menu is displayed automatically when the user presses # the wrong mouse button on certain areas. fun void UsePopUp=2371(int popUpMode,) # Is the selection rectangular? The alternative is the more common stream selection. get bool SelectionIsRectangle=2372(,) # Set the zoom level. This number of points is added to the size of all fonts. # It may be positive to magnify or negative to reduce. set void SetZoom=2373(int zoomInPoints,) # Retrieve the zoom level. get int GetZoom=2374(,) # Create a new document object. # Starts with reference count of 1 and not selected into editor. fun int CreateDocument=2375(,) # Extend life of document. fun void AddRefDocument=2376(, int doc) # Release a reference to the document, deleting document if it fades to black. fun void ReleaseDocument=2377(, int doc) # Get which document modification events are sent to the container. get int GetModEventMask=2378(,) # Change internal focus flag. set void SetFocus=2380(bool focus,) # Get internal focus flag. get bool GetFocus=2381(,) enu Status=SC_STATUS_ val SC_STATUS_OK=0 val SC_STATUS_FAILURE=1 val SC_STATUS_BADALLOC=2 val SC_STATUS_WARN_START=1000 val SC_STATUS_WARN_REGEX=1001 # Change error status - 0 = OK. set void SetStatus=2382(int status,) # Get error status. get int GetStatus=2383(,) # Set whether the mouse is captured when its button is pressed. set void SetMouseDownCaptures=2384(bool captures,) # Get whether mouse gets captured. get bool GetMouseDownCaptures=2385(,) # Set whether the mouse wheel can be active outside the window. set void SetMouseWheelCaptures=2696(bool captures,) # Get whether mouse wheel can be active outside the window. get bool GetMouseWheelCaptures=2697(,) enu CursorShape=SC_CURSOR val SC_CURSORNORMAL=-1 val SC_CURSORARROW=2 val SC_CURSORWAIT=4 val SC_CURSORREVERSEARROW=7 # Sets the cursor to one of the SC_CURSOR* values. set void SetCursor=2386(int cursorType,) # Get cursor type. get int GetCursor=2387(,) # Change the way control characters are displayed: # If symbol is < 32, keep the drawn way, else, use the given character. set void SetControlCharSymbol=2388(int symbol,) # Get the way control characters are displayed. get int GetControlCharSymbol=2389(,) # Move to the previous change in capitalisation. fun void WordPartLeft=2390(,) # Move to the previous change in capitalisation extending selection # to new caret position. fun void WordPartLeftExtend=2391(,) # Move to the change next in capitalisation. fun void WordPartRight=2392(,) # Move to the next change in capitalisation extending selection # to new caret position. fun void WordPartRightExtend=2393(,) # Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. enu VisiblePolicy=VISIBLE_ val VISIBLE_SLOP=0x01 val VISIBLE_STRICT=0x04 # Set the way the display area is determined when a particular line # is to be moved to by Find, FindNext, GotoLine, etc. fun void SetVisiblePolicy=2394(int visiblePolicy, int visibleSlop) # Delete back from the current position to the start of the line. fun void DelLineLeft=2395(,) # Delete forwards from the current position to the end of the line. fun void DelLineRight=2396(,) # Set the xOffset (ie, horizontal scroll position). set void SetXOffset=2397(int xOffset,) # Get the xOffset (ie, horizontal scroll position). get int GetXOffset=2398(,) # Set the last x chosen value to be the caret x position. fun void ChooseCaretX=2399(,) # Set the focus to this Scintilla widget. fun void GrabFocus=2400(,) enu CaretPolicy=CARET_ # Caret policy, used by SetXCaretPolicy and SetYCaretPolicy. # If CARET_SLOP is set, we can define a slop value: caretSlop. # This value defines an unwanted zone (UZ) where the caret is... unwanted. # This zone is defined as a number of pixels near the vertical margins, # and as a number of lines near the horizontal margins. # By keeping the caret away from the edges, it is seen within its context, # so it is likely that the identifier that the caret is on can be completely seen, # and that the current line is seen with some of the lines following it which are # often dependent on that line. val CARET_SLOP=0x01 # If CARET_STRICT is set, the policy is enforced... strictly. # The caret is centred on the display if slop is not set, # and cannot go in the UZ if slop is set. val CARET_STRICT=0x04 # If CARET_JUMPS is set, the display is moved more energetically # so the caret can move in the same direction longer before the policy is applied again. val CARET_JUMPS=0x10 # If CARET_EVEN is not set, instead of having symmetrical UZs, # the left and bottom UZs are extended up to right and top UZs respectively. # This way, we favour the displaying of useful information: the beginning of lines, # where most code reside, and the lines after the caret, eg. the body of a function. val CARET_EVEN=0x08 # Set the way the caret is kept visible when going sideways. # The exclusion zone is given in pixels. fun void SetXCaretPolicy=2402(int caretPolicy, int caretSlop) # Set the way the line the caret is on is kept visible. # The exclusion zone is given in lines. fun void SetYCaretPolicy=2403(int caretPolicy, int caretSlop) # Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). set void SetPrintWrapMode=2406(int wrapMode,) # Is printing line wrapped? get int GetPrintWrapMode=2407(,) # Set a fore colour for active hotspots. set void SetHotspotActiveFore=2410(bool useSetting, colour fore) # Get the fore colour for active hotspots. get colour GetHotspotActiveFore=2494(,) # Set a back colour for active hotspots. set void SetHotspotActiveBack=2411(bool useSetting, colour back) # Get the back colour for active hotspots. get colour GetHotspotActiveBack=2495(,) # Enable / Disable underlining active hotspots. set void SetHotspotActiveUnderline=2412(bool underline,) # Get whether underlining for active hotspots. get bool GetHotspotActiveUnderline=2496(,) # Limit hotspots to single line so hotspots on two lines don't merge. set void SetHotspotSingleLine=2421(bool singleLine,) # Get the HotspotSingleLine property get bool GetHotspotSingleLine=2497(,) # Move caret down one paragraph (delimited by empty lines). fun void ParaDown=2413(,) # Extend selection down one paragraph (delimited by empty lines). fun void ParaDownExtend=2414(,) # Move caret up one paragraph (delimited by empty lines). fun void ParaUp=2415(,) # Extend selection up one paragraph (delimited by empty lines). fun void ParaUpExtend=2416(,) # Given a valid document position, return the previous position taking code # page into account. Returns 0 if passed 0. fun position PositionBefore=2417(position pos,) # Given a valid document position, return the next position taking code # page into account. Maximum value returned is the last position in the document. fun position PositionAfter=2418(position pos,) # Given a valid document position, return a position that differs in a number # of characters. Returned value is always between 0 and last position in document. fun position PositionRelative=2670(position pos, int relative) # Copy a range of text to the clipboard. Positions are clipped into the document. fun void CopyRange=2419(position start, position end) # Copy argument text to the clipboard. fun void CopyText=2420(int length, string text) enu SelectionMode=SC_SEL_ val SC_SEL_STREAM=0 val SC_SEL_RECTANGLE=1 val SC_SEL_LINES=2 val SC_SEL_THIN=3 # Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or # by lines (SC_SEL_LINES). set void SetSelectionMode=2422(int selectionMode,) # Get the mode of the current selection. get int GetSelectionMode=2423(,) # Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). fun position GetLineSelStartPosition=2424(int line,) # Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). fun position GetLineSelEndPosition=2425(int line,) ## RectExtended rectangular selection moves # Move caret down one line, extending rectangular selection to new caret position. fun void LineDownRectExtend=2426(,) # Move caret up one line, extending rectangular selection to new caret position. fun void LineUpRectExtend=2427(,) # Move caret left one character, extending rectangular selection to new caret position. fun void CharLeftRectExtend=2428(,) # Move caret right one character, extending rectangular selection to new caret position. fun void CharRightRectExtend=2429(,) # Move caret to first position on line, extending rectangular selection to new caret position. fun void HomeRectExtend=2430(,) # Move caret to before first visible character on line. # If already there move to first character on line. # In either case, extend rectangular selection to new caret position. fun void VCHomeRectExtend=2431(,) # Move caret to last position on line, extending rectangular selection to new caret position. fun void LineEndRectExtend=2432(,) # Move caret one page up, extending rectangular selection to new caret position. fun void PageUpRectExtend=2433(,) # Move caret one page down, extending rectangular selection to new caret position. fun void PageDownRectExtend=2434(,) # Move caret to top of page, or one page up if already at top of page. fun void StutteredPageUp=2435(,) # Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. fun void StutteredPageUpExtend=2436(,) # Move caret to bottom of page, or one page down if already at bottom of page. fun void StutteredPageDown=2437(,) # Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. fun void StutteredPageDownExtend=2438(,) # Move caret left one word, position cursor at end of word. fun void WordLeftEnd=2439(,) # Move caret left one word, position cursor at end of word, extending selection to new caret position. fun void WordLeftEndExtend=2440(,) # Move caret right one word, position cursor at end of word. fun void WordRightEnd=2441(,) # Move caret right one word, position cursor at end of word, extending selection to new caret position. fun void WordRightEndExtend=2442(,) # Set the set of characters making up whitespace for when moving or selecting by word. # Should be called after SetWordChars. set void SetWhitespaceChars=2443(, string characters) # Get the set of characters making up whitespace for when moving or selecting by word. get int GetWhitespaceChars=2647(, stringresult characters) # Set the set of characters making up punctuation characters # Should be called after SetWordChars. set void SetPunctuationChars=2648(, string characters) # Get the set of characters making up punctuation characters get int GetPunctuationChars=2649(, stringresult characters) # Reset the set of characters for whitespace and word characters to the defaults. fun void SetCharsDefault=2444(,) # Get currently selected item position in the auto-completion list get int AutoCGetCurrent=2445(,) # Get currently selected item text in the auto-completion list # Returns the length of the item text # Result is NUL-terminated. get int AutoCGetCurrentText=2610(, stringresult text) enu CaseInsensitiveBehaviour=SC_CASEINSENSITIVEBEHAVIOUR_ val SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE=0 val SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE=1 # Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. set void AutoCSetCaseInsensitiveBehaviour=2634(int behaviour,) # Get auto-completion case insensitive behaviour. get int AutoCGetCaseInsensitiveBehaviour=2635(,) enu MultiAutoComplete=SC_MULTIAUTOC_ val SC_MULTIAUTOC_ONCE=0 val SC_MULTIAUTOC_EACH=1 # Change the effect of autocompleting when there are multiple selections. set void AutoCSetMulti=2636(int multi,) # Retrieve the effect of autocompleting when there are multiple selections. get int AutoCGetMulti=2637(,) enu Ordering=SC_ORDER_ val SC_ORDER_PRESORTED=0 val SC_ORDER_PERFORMSORT=1 val SC_ORDER_CUSTOM=2 # Set the way autocompletion lists are ordered. set void AutoCSetOrder=2660(int order,) # Get the way autocompletion lists are ordered. get int AutoCGetOrder=2661(,) # Enlarge the document to a particular size of text bytes. fun void Allocate=2446(int bytes,) # Returns the target converted to UTF8. # Return the length in bytes. fun int TargetAsUTF8=2447(, stringresult s) # Set the length of the utf8 argument for calling EncodedFromUTF8. # Set to -1 and the string will be measured to the first nul. fun void SetLengthForEncode=2448(int bytes,) # Translates a UTF8 string into the document encoding. # Return the length of the result in bytes. # On error return 0. fun int EncodedFromUTF8=2449(string utf8, stringresult encoded) # Find the position of a column on a line taking into account tabs and # multi-byte characters. If beyond end of line, return line end position. fun int FindColumn=2456(int line, int column) # Can the caret preferred x position only be changed by explicit movement commands? get int GetCaretSticky=2457(,) # Stop the caret preferred x position changing when the user types. set void SetCaretSticky=2458(int useCaretStickyBehaviour,) enu CaretSticky=SC_CARETSTICKY_ val SC_CARETSTICKY_OFF=0 val SC_CARETSTICKY_ON=1 val SC_CARETSTICKY_WHITESPACE=2 # Switch between sticky and non-sticky: meant to be bound to a key. fun void ToggleCaretSticky=2459(,) # Enable/Disable convert-on-paste for line endings set void SetPasteConvertEndings=2467(bool convert,) # Get convert-on-paste setting get bool GetPasteConvertEndings=2468(,) # Duplicate the selection. If selection empty duplicate the line containing the caret. fun void SelectionDuplicate=2469(,) enu Alpha=SC_ALPHA_ val SC_ALPHA_TRANSPARENT=0 val SC_ALPHA_OPAQUE=255 val SC_ALPHA_NOALPHA=256 # Set background alpha of the caret line. set void SetCaretLineBackAlpha=2470(int alpha,) # Get the background alpha of the caret line. get int GetCaretLineBackAlpha=2471(,) enu CaretStyle=CARETSTYLE_ val CARETSTYLE_INVISIBLE=0 val CARETSTYLE_LINE=1 val CARETSTYLE_BLOCK=2 # Set the style of the caret to be drawn. set void SetCaretStyle=2512(int caretStyle,) # Returns the current style of the caret. get int GetCaretStyle=2513(,) # Set the indicator used for IndicatorFillRange and IndicatorClearRange set void SetIndicatorCurrent=2500(int indicator,) # Get the current indicator get int GetIndicatorCurrent=2501(,) # Set the value used for IndicatorFillRange set void SetIndicatorValue=2502(int value,) # Get the current indicator value get int GetIndicatorValue=2503(,) # Turn a indicator on over a range. fun void IndicatorFillRange=2504(position start, int lengthFill) # Turn a indicator off over a range. fun void IndicatorClearRange=2505(position start, int lengthClear) # Are any indicators present at pos? fun int IndicatorAllOnFor=2506(position pos,) # What value does a particular indicator have at a position? fun int IndicatorValueAt=2507(int indicator, position pos) # Where does a particular indicator start? fun int IndicatorStart=2508(int indicator, position pos) # Where does a particular indicator end? fun int IndicatorEnd=2509(int indicator, position pos) # Set number of entries in position cache set void SetPositionCache=2514(int size,) # How many entries are allocated to the position cache? get int GetPositionCache=2515(,) # Copy the selection, if selection empty copy the line with the caret fun void CopyAllowLine=2519(,) # Compact the document buffer and return a read-only pointer to the # characters in the document. get int GetCharacterPointer=2520(,) # Return a read-only pointer to a range of characters in the document. # May move the gap so that the range is contiguous, but will only move up # to lengthRange bytes. get int GetRangePointer=2643(position start, int lengthRange) # Return a position which, to avoid performance costs, should not be within # the range of a call to GetRangePointer. get position GetGapPosition=2644(,) # Set the alpha fill colour of the given indicator. set void IndicSetAlpha=2523(int indicator, int alpha) # Get the alpha fill colour of the given indicator. get int IndicGetAlpha=2524(int indicator,) # Set the alpha outline colour of the given indicator. set void IndicSetOutlineAlpha=2558(int indicator, int alpha) # Get the alpha outline colour of the given indicator. get int IndicGetOutlineAlpha=2559(int indicator,) # Set extra ascent for each line set void SetExtraAscent=2525(int extraAscent,) # Get extra ascent for each line get int GetExtraAscent=2526(,) # Set extra descent for each line set void SetExtraDescent=2527(int extraDescent,) # Get extra descent for each line get int GetExtraDescent=2528(,) # Which symbol was defined for markerNumber with MarkerDefine fun int MarkerSymbolDefined=2529(int markerNumber,) # Set the text in the text margin for a line set void MarginSetText=2530(int line, string text) # Get the text in the text margin for a line get int MarginGetText=2531(int line, stringresult text) # Set the style number for the text margin for a line set void MarginSetStyle=2532(int line, int style) # Get the style number for the text margin for a line get int MarginGetStyle=2533(int line,) # Set the style in the text margin for a line set void MarginSetStyles=2534(int line, string styles) # Get the styles in the text margin for a line get int MarginGetStyles=2535(int line, stringresult styles) # Clear the margin text on all lines fun void MarginTextClearAll=2536(,) # Get the start of the range of style numbers used for margin text set void MarginSetStyleOffset=2537(int style,) # Get the start of the range of style numbers used for margin text get int MarginGetStyleOffset=2538(,) enu MarginOption=SC_MARGINOPTION_ val SC_MARGINOPTION_NONE=0 val SC_MARGINOPTION_SUBLINESELECT=1 # Set the margin options. set void SetMarginOptions=2539(int marginOptions,) # Get the margin options. get int GetMarginOptions=2557(,) # Set the annotation text for a line set void AnnotationSetText=2540(int line, string text) # Get the annotation text for a line get int AnnotationGetText=2541(int line, stringresult text) # Set the style number for the annotations for a line set void AnnotationSetStyle=2542(int line, int style) # Get the style number for the annotations for a line get int AnnotationGetStyle=2543(int line,) # Set the annotation styles for a line set void AnnotationSetStyles=2544(int line, string styles) # Get the annotation styles for a line get int AnnotationGetStyles=2545(int line, stringresult styles) # Get the number of annotation lines for a line get int AnnotationGetLines=2546(int line,) # Clear the annotations from all lines fun void AnnotationClearAll=2547(,) enu AnnotationVisible=ANNOTATION_ val ANNOTATION_HIDDEN=0 val ANNOTATION_STANDARD=1 val ANNOTATION_BOXED=2 val ANNOTATION_INDENTED=3 # Set the visibility for the annotations for a view set void AnnotationSetVisible=2548(int visible,) # Get the visibility for the annotations for a view get int AnnotationGetVisible=2549(,) # Get the start of the range of style numbers used for annotations set void AnnotationSetStyleOffset=2550(int style,) # Get the start of the range of style numbers used for annotations get int AnnotationGetStyleOffset=2551(,) # Release all extended (>255) style numbers fun void ReleaseAllExtendedStyles=2552(,) # Allocate some extended (>255) style numbers and return the start of the range fun int AllocateExtendedStyles=2553(int numberStyles,) val UNDO_MAY_COALESCE=1 # Add a container action to the undo stack fun void AddUndoAction=2560(int token, int flags) # Find the position of a character from a point within the window. fun position CharPositionFromPoint=2561(int x, int y) # Find the position of a character from a point within the window. # Return INVALID_POSITION if not close to text. fun position CharPositionFromPointClose=2562(int x, int y) # Set whether switching to rectangular mode while selecting with the mouse is allowed. set void SetMouseSelectionRectangularSwitch=2668(bool mouseSelectionRectangularSwitch,) # Whether switching to rectangular mode while selecting with the mouse is allowed. get bool GetMouseSelectionRectangularSwitch=2669(,) # Set whether multiple selections can be made set void SetMultipleSelection=2563(bool multipleSelection,) # Whether multiple selections can be made get bool GetMultipleSelection=2564(,) # Set whether typing can be performed into multiple selections set void SetAdditionalSelectionTyping=2565(bool additionalSelectionTyping,) # Whether typing can be performed into multiple selections get bool GetAdditionalSelectionTyping=2566(,) # Set whether additional carets will blink set void SetAdditionalCaretsBlink=2567(bool additionalCaretsBlink,) # Whether additional carets will blink get bool GetAdditionalCaretsBlink=2568(,) # Set whether additional carets are visible set void SetAdditionalCaretsVisible=2608(bool additionalCaretsVisible,) # Whether additional carets are visible get bool GetAdditionalCaretsVisible=2609(,) # How many selections are there? get int GetSelections=2570(,) # Is every selected range empty? get bool GetSelectionEmpty=2650(,) # Clear selections to a single empty stream selection fun void ClearSelections=2571(,) # Set a simple selection fun void SetSelection=2572(position caret, position anchor) # Add a selection fun void AddSelection=2573(position caret, position anchor) # Drop one selection fun void DropSelectionN=2671(int selection,) # Set the main selection set void SetMainSelection=2574(int selection,) # Which selection is the main selection get int GetMainSelection=2575(,) # Set the caret position of the nth selection. set void SetSelectionNCaret=2576(int selection, position caret) # Return the caret position of the nth selection. get position GetSelectionNCaret=2577(int selection,) # Set the anchor position of the nth selection. set void SetSelectionNAnchor=2578(int selection, position anchor) # Return the anchor position of the nth selection. get position GetSelectionNAnchor=2579(int selection,) # Set the virtual space of the caret of the nth selection. set void SetSelectionNCaretVirtualSpace=2580(int selection, int space) # Return the virtual space of the caret of the nth selection. get int GetSelectionNCaretVirtualSpace=2581(int selection,) # Set the virtual space of the anchor of the nth selection. set void SetSelectionNAnchorVirtualSpace=2582(int selection, int space) # Return the virtual space of the anchor of the nth selection. get int GetSelectionNAnchorVirtualSpace=2583(int selection,) # Sets the position that starts the selection - this becomes the anchor. set void SetSelectionNStart=2584(int selection, position anchor) # Returns the position at the start of the selection. get position GetSelectionNStart=2585(int selection,) # Sets the position that ends the selection - this becomes the currentPosition. set void SetSelectionNEnd=2586(int selection, position caret) # Returns the position at the end of the selection. get position GetSelectionNEnd=2587(int selection,) # Set the caret position of the rectangular selection. set void SetRectangularSelectionCaret=2588(position caret,) # Return the caret position of the rectangular selection. get position GetRectangularSelectionCaret=2589(,) # Set the anchor position of the rectangular selection. set void SetRectangularSelectionAnchor=2590(position anchor,) # Return the anchor position of the rectangular selection. get position GetRectangularSelectionAnchor=2591(,) # Set the virtual space of the caret of the rectangular selection. set void SetRectangularSelectionCaretVirtualSpace=2592(int space,) # Return the virtual space of the caret of the rectangular selection. get int GetRectangularSelectionCaretVirtualSpace=2593(,) # Set the virtual space of the anchor of the rectangular selection. set void SetRectangularSelectionAnchorVirtualSpace=2594(int space,) # Return the virtual space of the anchor of the rectangular selection. get int GetRectangularSelectionAnchorVirtualSpace=2595(,) enu VirtualSpace=SCVS_ val SCVS_NONE=0 val SCVS_RECTANGULARSELECTION=1 val SCVS_USERACCESSIBLE=2 val SCVS_NOWRAPLINESTART=4 # Set options for virtual space behaviour. set void SetVirtualSpaceOptions=2596(int virtualSpaceOptions,) # Return options for virtual space behaviour. get int GetVirtualSpaceOptions=2597(,) # On GTK+, allow selecting the modifier key to use for mouse-based # rectangular selection. Often the window manager requires Alt+Mouse Drag # for moving windows. # Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER. set void SetRectangularSelectionModifier=2598(int modifier,) # Get the modifier key used for rectangular selection. get int GetRectangularSelectionModifier=2599(,) # Set the foreground colour of additional selections. # Must have previously called SetSelFore with non-zero first argument for this to have an effect. set void SetAdditionalSelFore=2600(colour fore,) # Set the background colour of additional selections. # Must have previously called SetSelBack with non-zero first argument for this to have an effect. set void SetAdditionalSelBack=2601(colour back,) # Set the alpha of the selection. set void SetAdditionalSelAlpha=2602(int alpha,) # Get the alpha of the selection. get int GetAdditionalSelAlpha=2603(,) # Set the foreground colour of additional carets. set void SetAdditionalCaretFore=2604(colour fore,) # Get the foreground colour of additional carets. get colour GetAdditionalCaretFore=2605(,) # Set the main selection to the next selection. fun void RotateSelection=2606(,) # Swap that caret and anchor of the main selection. fun void SwapMainAnchorCaret=2607(,) # Add the next occurrence of the main selection to the set of selections as main. # If the current selection is empty then select word around caret. fun void MultipleSelectAddNext=2688(,) # Add each occurrence of the main selection in the target to the set of selections. # If the current selection is empty then select word around caret. fun void MultipleSelectAddEach=2689(,) # Indicate that the internal state of a lexer has changed over a range and therefore # there may be a need to redraw. fun int ChangeLexerState=2617(position start, position end) # Find the next line at or after lineStart that is a contracted fold header line. # Return -1 when no more lines. fun int ContractedFoldNext=2618(int lineStart,) # Centre current line in window. fun void VerticalCentreCaret=2619(,) # Move the selected lines up one line, shifting the line above after the selection fun void MoveSelectedLinesUp=2620(,) # Move the selected lines down one line, shifting the line below before the selection fun void MoveSelectedLinesDown=2621(,) # Set the identifier reported as idFrom in notification messages. set void SetIdentifier=2622(int identifier,) # Get the identifier. get int GetIdentifier=2623(,) # Set the width for future RGBA image data. set void RGBAImageSetWidth=2624(int width,) # Set the height for future RGBA image data. set void RGBAImageSetHeight=2625(int height,) # Set the scale factor in percent for future RGBA image data. set void RGBAImageSetScale=2651(int scalePercent,) # Define a marker from RGBA data. # It has the width and height from RGBAImageSetWidth/Height fun void MarkerDefineRGBAImage=2626(int markerNumber, string pixels) # Register an RGBA image for use in autocompletion lists. # It has the width and height from RGBAImageSetWidth/Height fun void RegisterRGBAImage=2627(int type, string pixels) # Scroll to start of document. fun void ScrollToStart=2628(,) # Scroll to end of document. fun void ScrollToEnd=2629(,) enu Technology=SC_TECHNOLOGY_ val SC_TECHNOLOGY_DEFAULT=0 val SC_TECHNOLOGY_DIRECTWRITE=1 val SC_TECHNOLOGY_DIRECTWRITERETAIN=2 val SC_TECHNOLOGY_DIRECTWRITEDC=3 # Set the technology used. set void SetTechnology=2630(int technology,) # Get the tech. get int GetTechnology=2631(,) # Create an ILoader*. fun int CreateLoader=2632(int bytes,) # On OS X, show a find indicator. fun void FindIndicatorShow=2640(position start, position end) # On OS X, flash a find indicator, then fade out. fun void FindIndicatorFlash=2641(position start, position end) # On OS X, hide the find indicator. fun void FindIndicatorHide=2642(,) # Move caret to before first visible character on display line. # If already there move to first character on display line. fun void VCHomeDisplay=2652(,) # Like VCHomeDisplay but extending selection to new caret position. fun void VCHomeDisplayExtend=2653(,) # Is the caret line always visible? get bool GetCaretLineVisibleAlways=2654(,) # Sets the caret line to always visible. set void SetCaretLineVisibleAlways=2655(bool alwaysVisible,) # Line end types which may be used in addition to LF, CR, and CRLF # SC_LINE_END_TYPE_UNICODE includes U+2028 Line Separator, # U+2029 Paragraph Separator, and U+0085 Next Line enu LineEndType=SC_LINE_END_TYPE_ val SC_LINE_END_TYPE_DEFAULT=0 val SC_LINE_END_TYPE_UNICODE=1 # Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. set void SetLineEndTypesAllowed=2656(int lineEndBitSet,) # Get the line end types currently allowed. get int GetLineEndTypesAllowed=2657(,) # Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation. get int GetLineEndTypesActive=2658(,) # Set the way a character is drawn. set void SetRepresentation=2665(string encodedCharacter, string representation) # Set the way a character is drawn. # Result is NUL-terminated. get int GetRepresentation=2666(string encodedCharacter, stringresult representation) # Remove a character representation. fun void ClearRepresentation=2667(string encodedCharacter,) # Start notifying the container of all key presses and commands. fun void StartRecord=3001(,) # Stop notifying the container of all key presses and commands. fun void StopRecord=3002(,) # Set the lexing language of the document. set void SetLexer=4001(int lexer,) # Retrieve the lexing language of the document. get int GetLexer=4002(,) # Colourise a segment of the document using the current lexing language. fun void Colourise=4003(position start, position end) # Set up a value that may be used by a lexer for some optional feature. set void SetProperty=4004(string key, string value) # Maximum value of keywordSet parameter of SetKeyWords. val KEYWORDSET_MAX=8 # Set up the key words used by the lexer. set void SetKeyWords=4005(int keyWordSet, string keyWords) # Set the lexing language of the document based on string name. set void SetLexerLanguage=4006(, string language) # Load a lexer library (dll / so). fun void LoadLexerLibrary=4007(, string path) # Retrieve a "property" value previously set with SetProperty. # Result is NUL-terminated. get int GetProperty=4008(string key, stringresult value) # Retrieve a "property" value previously set with SetProperty, # with "$()" variable replacement on returned buffer. # Result is NUL-terminated. get int GetPropertyExpanded=4009(string key, stringresult value) # Retrieve a "property" value previously set with SetProperty, # interpreted as an int AFTER any "$()" variable replacement. get int GetPropertyInt=4010(string key, int defaultValue) # Retrieve the number of bits the current lexer needs for styling. get int GetStyleBitsNeeded=4011(,) # Retrieve the name of the lexer. # Return the length of the text. # Result is NUL-terminated. get int GetLexerLanguage=4012(, stringresult language) # For private communication between an application and a known lexer. fun int PrivateLexerCall=4013(int operation, int pointer) # Retrieve a '\n' separated list of properties understood by the current lexer. # Result is NUL-terminated. fun int PropertyNames=4014(, stringresult names) enu TypeProperty=SC_TYPE_ val SC_TYPE_BOOLEAN=0 val SC_TYPE_INTEGER=1 val SC_TYPE_STRING=2 # Retrieve the type of a property. fun int PropertyType=4015(string name,) # Describe a property. # Result is NUL-terminated. fun int DescribeProperty=4016(string name, stringresult description) # Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. # Result is NUL-terminated. fun int DescribeKeyWordSets=4017(, stringresult descriptions) # Bit set of LineEndType enumertion for which line ends beyond the standard # LF, CR, and CRLF are supported by the lexer. get int GetLineEndTypesSupported=4018(,) # Allocate a set of sub styles for a particular base style, returning start of range fun int AllocateSubStyles=4020(int styleBase, int numberStyles) # The starting style number for the sub styles associated with a base style get int GetSubStylesStart=4021(int styleBase,) # The number of sub styles associated with a base style get int GetSubStylesLength=4022(int styleBase,) # For a sub style, return the base style, else return the argument. get int GetStyleFromSubStyle=4027(int subStyle,) # For a secondary style, return the primary style, else return the argument. get int GetPrimaryStyleFromStyle=4028(int style,) # Free allocated sub styles fun void FreeSubStyles=4023(,) # Set the identifiers that are shown in a particular style set void SetIdentifiers=4024(int style, string identifiers) # Where styles are duplicated by a feature such as active/inactive code # return the distance between the two types. get int DistanceToSecondaryStyles=4025(,) # Get the set of base styles that can be extended with sub styles # Result is NUL-terminated. get int GetSubStyleBases=4026(, stringresult styles) # Notifications # Type of modification and the action which caused the modification. # These are defined as a bit mask to make it easy to specify which notifications are wanted. # One bit is set from each of SC_MOD_* and SC_PERFORMED_*. enu ModificationFlags=SC_MOD_ SC_PERFORMED_ SC_MULTISTEPUNDOREDO SC_LASTSTEPINUNDOREDO SC_MULTILINEUNDOREDO SC_STARTACTION SC_MODEVENTMASKALL val SC_MOD_INSERTTEXT=0x1 val SC_MOD_DELETETEXT=0x2 val SC_MOD_CHANGESTYLE=0x4 val SC_MOD_CHANGEFOLD=0x8 val SC_PERFORMED_USER=0x10 val SC_PERFORMED_UNDO=0x20 val SC_PERFORMED_REDO=0x40 val SC_MULTISTEPUNDOREDO=0x80 val SC_LASTSTEPINUNDOREDO=0x100 val SC_MOD_CHANGEMARKER=0x200 val SC_MOD_BEFOREINSERT=0x400 val SC_MOD_BEFOREDELETE=0x800 val SC_MULTILINEUNDOREDO=0x1000 val SC_STARTACTION=0x2000 val SC_MOD_CHANGEINDICATOR=0x4000 val SC_MOD_CHANGELINESTATE=0x8000 val SC_MOD_CHANGEMARGIN=0x10000 val SC_MOD_CHANGEANNOTATION=0x20000 val SC_MOD_CONTAINER=0x40000 val SC_MOD_LEXERSTATE=0x80000 val SC_MOD_INSERTCHECK=0x100000 val SC_MOD_CHANGETABSTOPS=0x200000 val SC_MODEVENTMASKALL=0x3FFFFF enu Update=SC_UPDATE_ val SC_UPDATE_CONTENT=0x1 val SC_UPDATE_SELECTION=0x2 val SC_UPDATE_V_SCROLL=0x4 val SC_UPDATE_H_SCROLL=0x8 # For compatibility, these go through the COMMAND notification rather than NOTIFY # and should have had exactly the same values as the EN_* constants. # Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_* # As clients depend on these constants, this will not be changed. val SCEN_CHANGE=768 val SCEN_SETFOCUS=512 val SCEN_KILLFOCUS=256 # Symbolic key codes and modifier flags. # ASCII and other printable characters below 256. # Extended keys above 300. enu Keys=SCK_ val SCK_DOWN=300 val SCK_UP=301 val SCK_LEFT=302 val SCK_RIGHT=303 val SCK_HOME=304 val SCK_END=305 val SCK_PRIOR=306 val SCK_NEXT=307 val SCK_DELETE=308 val SCK_INSERT=309 val SCK_ESCAPE=7 val SCK_BACK=8 val SCK_TAB=9 val SCK_RETURN=13 val SCK_ADD=310 val SCK_SUBTRACT=311 val SCK_DIVIDE=312 val SCK_WIN=313 val SCK_RWIN=314 val SCK_MENU=315 enu KeyMod=SCMOD_ val SCMOD_NORM=0 val SCMOD_SHIFT=1 val SCMOD_CTRL=2 val SCMOD_ALT=4 val SCMOD_SUPER=8 val SCMOD_META=16 enu CompletionMethods=SC_AC_ val SC_AC_FILLUP=1 val SC_AC_DOUBLECLICK=2 val SC_AC_TAB=3 val SC_AC_NEWLINE=4 val SC_AC_COMMAND=5 ################################################ # For SciLexer.h enu Lexer=SCLEX_ val SCLEX_CONTAINER=0 val SCLEX_NULL=1 val SCLEX_PYTHON=2 val SCLEX_CPP=3 val SCLEX_HTML=4 val SCLEX_XML=5 val SCLEX_PERL=6 val SCLEX_SQL=7 val SCLEX_VB=8 val SCLEX_PROPERTIES=9 val SCLEX_ERRORLIST=10 val SCLEX_MAKEFILE=11 val SCLEX_BATCH=12 val SCLEX_XCODE=13 val SCLEX_LATEX=14 val SCLEX_LUA=15 val SCLEX_DIFF=16 val SCLEX_CONF=17 val SCLEX_PASCAL=18 val SCLEX_AVE=19 val SCLEX_ADA=20 val SCLEX_LISP=21 val SCLEX_RUBY=22 val SCLEX_EIFFEL=23 val SCLEX_EIFFELKW=24 val SCLEX_TCL=25 val SCLEX_NNCRONTAB=26 val SCLEX_BULLANT=27 val SCLEX_VBSCRIPT=28 val SCLEX_BAAN=31 val SCLEX_MATLAB=32 val SCLEX_SCRIPTOL=33 val SCLEX_ASM=34 val SCLEX_CPPNOCASE=35 val SCLEX_FORTRAN=36 val SCLEX_F77=37 val SCLEX_CSS=38 val SCLEX_POV=39 val SCLEX_LOUT=40 val SCLEX_ESCRIPT=41 val SCLEX_PS=42 val SCLEX_NSIS=43 val SCLEX_MMIXAL=44 val SCLEX_CLW=45 val SCLEX_CLWNOCASE=46 val SCLEX_LOT=47 val SCLEX_YAML=48 val SCLEX_TEX=49 val SCLEX_METAPOST=50 val SCLEX_POWERBASIC=51 val SCLEX_FORTH=52 val SCLEX_ERLANG=53 val SCLEX_OCTAVE=54 val SCLEX_MSSQL=55 val SCLEX_VERILOG=56 val SCLEX_KIX=57 val SCLEX_GUI4CLI=58 val SCLEX_SPECMAN=59 val SCLEX_AU3=60 val SCLEX_APDL=61 val SCLEX_BASH=62 val SCLEX_ASN1=63 val SCLEX_VHDL=64 val SCLEX_CAML=65 val SCLEX_BLITZBASIC=66 val SCLEX_PUREBASIC=67 val SCLEX_HASKELL=68 val SCLEX_PHPSCRIPT=69 val SCLEX_TADS3=70 val SCLEX_REBOL=71 val SCLEX_SMALLTALK=72 val SCLEX_FLAGSHIP=73 val SCLEX_CSOUND=74 val SCLEX_FREEBASIC=75 val SCLEX_INNOSETUP=76 val SCLEX_OPAL=77 val SCLEX_SPICE=78 val SCLEX_D=79 val SCLEX_CMAKE=80 val SCLEX_GAP=81 val SCLEX_PLM=82 val SCLEX_PROGRESS=83 val SCLEX_ABAQUS=84 val SCLEX_ASYMPTOTE=85 val SCLEX_R=86 val SCLEX_MAGIK=87 val SCLEX_POWERSHELL=88 val SCLEX_MYSQL=89 val SCLEX_PO=90 val SCLEX_TAL=91 val SCLEX_COBOL=92 val SCLEX_TACL=93 val SCLEX_SORCUS=94 val SCLEX_POWERPRO=95 val SCLEX_NIMROD=96 val SCLEX_SML=97 val SCLEX_MARKDOWN=98 val SCLEX_TXT2TAGS=99 val SCLEX_A68K=100 val SCLEX_MODULA=101 val SCLEX_COFFEESCRIPT=102 val SCLEX_TCMD=103 val SCLEX_AVS=104 val SCLEX_ECL=105 val SCLEX_OSCRIPT=106 val SCLEX_VISUALPROLOG=107 val SCLEX_LITERATEHASKELL=108 val SCLEX_STTXT=109 val SCLEX_KVIRC=110 val SCLEX_RUST=111 val SCLEX_DMAP=112 val SCLEX_AS=113 val SCLEX_DMIS=114 val SCLEX_REGISTRY=115 val SCLEX_BIBTEX=116 val SCLEX_SREC=117 val SCLEX_IHEX=118 val SCLEX_TEHEX=119 val SCLEX_JSON=120 val SCLEX_EDIFACT=121 val SCLEX_INDENT=122 # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a # value assigned in sequence from SCLEX_AUTOMATIC+1. val SCLEX_AUTOMATIC=1000 # Lexical states for SCLEX_PYTHON lex Python=SCLEX_PYTHON SCE_P_ lex Nimrod=SCLEX_NIMROD SCE_P_ val SCE_P_DEFAULT=0 val SCE_P_COMMENTLINE=1 val SCE_P_NUMBER=2 val SCE_P_STRING=3 val SCE_P_CHARACTER=4 val SCE_P_WORD=5 val SCE_P_TRIPLE=6 val SCE_P_TRIPLEDOUBLE=7 val SCE_P_CLASSNAME=8 val SCE_P_DEFNAME=9 val SCE_P_OPERATOR=10 val SCE_P_IDENTIFIER=11 val SCE_P_COMMENTBLOCK=12 val SCE_P_STRINGEOL=13 val SCE_P_WORD2=14 val SCE_P_DECORATOR=15 val SCE_P_FSTRING=16 val SCE_P_FCHARACTER=17 val SCE_P_FTRIPLE=18 val SCE_P_FTRIPLEDOUBLE=19 # Lexical states for SCLEX_CPP, SCLEX_BULLANT, SCLEX_COBOL, SCLEX_TACL, SCLEX_TAL lex Cpp=SCLEX_CPP SCE_C_ lex BullAnt=SCLEX_BULLANT SCE_C_ lex COBOL=SCLEX_COBOL SCE_C_ lex TACL=SCLEX_TACL SCE_C_ lex TAL=SCLEX_TAL SCE_C_ val SCE_C_DEFAULT=0 val SCE_C_COMMENT=1 val SCE_C_COMMENTLINE=2 val SCE_C_COMMENTDOC=3 val SCE_C_NUMBER=4 val SCE_C_WORD=5 val SCE_C_STRING=6 val SCE_C_CHARACTER=7 val SCE_C_UUID=8 val SCE_C_PREPROCESSOR=9 val SCE_C_OPERATOR=10 val SCE_C_IDENTIFIER=11 val SCE_C_STRINGEOL=12 val SCE_C_VERBATIM=13 val SCE_C_REGEX=14 val SCE_C_COMMENTLINEDOC=15 val SCE_C_WORD2=16 val SCE_C_COMMENTDOCKEYWORD=17 val SCE_C_COMMENTDOCKEYWORDERROR=18 val SCE_C_GLOBALCLASS=19 val SCE_C_STRINGRAW=20 val SCE_C_TRIPLEVERBATIM=21 val SCE_C_HASHQUOTEDSTRING=22 val SCE_C_PREPROCESSORCOMMENT=23 val SCE_C_PREPROCESSORCOMMENTDOC=24 val SCE_C_USERLITERAL=25 val SCE_C_TASKMARKER=26 val SCE_C_ESCAPESEQUENCE=27 # Lexical states for SCLEX_D lex D=SCLEX_D SCE_D_ val SCE_D_DEFAULT=0 val SCE_D_COMMENT=1 val SCE_D_COMMENTLINE=2 val SCE_D_COMMENTDOC=3 val SCE_D_COMMENTNESTED=4 val SCE_D_NUMBER=5 val SCE_D_WORD=6 val SCE_D_WORD2=7 val SCE_D_WORD3=8 val SCE_D_TYPEDEF=9 val SCE_D_STRING=10 val SCE_D_STRINGEOL=11 val SCE_D_CHARACTER=12 val SCE_D_OPERATOR=13 val SCE_D_IDENTIFIER=14 val SCE_D_COMMENTLINEDOC=15 val SCE_D_COMMENTDOCKEYWORD=16 val SCE_D_COMMENTDOCKEYWORDERROR=17 val SCE_D_STRINGB=18 val SCE_D_STRINGR=19 val SCE_D_WORD5=20 val SCE_D_WORD6=21 val SCE_D_WORD7=22 # Lexical states for SCLEX_TCL lex TCL=SCLEX_TCL SCE_TCL_ val SCE_TCL_DEFAULT=0 val SCE_TCL_COMMENT=1 val SCE_TCL_COMMENTLINE=2 val SCE_TCL_NUMBER=3 val SCE_TCL_WORD_IN_QUOTE=4 val SCE_TCL_IN_QUOTE=5 val SCE_TCL_OPERATOR=6 val SCE_TCL_IDENTIFIER=7 val SCE_TCL_SUBSTITUTION=8 val SCE_TCL_SUB_BRACE=9 val SCE_TCL_MODIFIER=10 val SCE_TCL_EXPAND=11 val SCE_TCL_WORD=12 val SCE_TCL_WORD2=13 val SCE_TCL_WORD3=14 val SCE_TCL_WORD4=15 val SCE_TCL_WORD5=16 val SCE_TCL_WORD6=17 val SCE_TCL_WORD7=18 val SCE_TCL_WORD8=19 val SCE_TCL_COMMENT_BOX=20 val SCE_TCL_BLOCK_COMMENT=21 # Lexical states for SCLEX_HTML, SCLEX_XML lex HTML=SCLEX_HTML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ lex XML=SCLEX_XML SCE_H_ SCE_HJ_ SCE_HJA_ SCE_HB_ SCE_HBA_ SCE_HP_ SCE_HPHP_ SCE_HPA_ val SCE_H_DEFAULT=0 val SCE_H_TAG=1 val SCE_H_TAGUNKNOWN=2 val SCE_H_ATTRIBUTE=3 val SCE_H_ATTRIBUTEUNKNOWN=4 val SCE_H_NUMBER=5 val SCE_H_DOUBLESTRING=6 val SCE_H_SINGLESTRING=7 val SCE_H_OTHER=8 val SCE_H_COMMENT=9 val SCE_H_ENTITY=10 # XML and ASP val SCE_H_TAGEND=11 val SCE_H_XMLSTART=12 val SCE_H_XMLEND=13 val SCE_H_SCRIPT=14 val SCE_H_ASP=15 val SCE_H_ASPAT=16 val SCE_H_CDATA=17 val SCE_H_QUESTION=18 # More HTML val SCE_H_VALUE=19 # X-Code val SCE_H_XCCOMMENT=20 # SGML val SCE_H_SGML_DEFAULT=21 val SCE_H_SGML_COMMAND=22 val SCE_H_SGML_1ST_PARAM=23 val SCE_H_SGML_DOUBLESTRING=24 val SCE_H_SGML_SIMPLESTRING=25 val SCE_H_SGML_ERROR=26 val SCE_H_SGML_SPECIAL=27 val SCE_H_SGML_ENTITY=28 val SCE_H_SGML_COMMENT=29 val SCE_H_SGML_1ST_PARAM_COMMENT=30 val SCE_H_SGML_BLOCK_DEFAULT=31 # Embedded Javascript val SCE_HJ_START=40 val SCE_HJ_DEFAULT=41 val SCE_HJ_COMMENT=42 val SCE_HJ_COMMENTLINE=43 val SCE_HJ_COMMENTDOC=44 val SCE_HJ_NUMBER=45 val SCE_HJ_WORD=46 val SCE_HJ_KEYWORD=47 val SCE_HJ_DOUBLESTRING=48 val SCE_HJ_SINGLESTRING=49 val SCE_HJ_SYMBOLS=50 val SCE_HJ_STRINGEOL=51 val SCE_HJ_REGEX=52 # ASP Javascript val SCE_HJA_START=55 val SCE_HJA_DEFAULT=56 val SCE_HJA_COMMENT=57 val SCE_HJA_COMMENTLINE=58 val SCE_HJA_COMMENTDOC=59 val SCE_HJA_NUMBER=60 val SCE_HJA_WORD=61 val SCE_HJA_KEYWORD=62 val SCE_HJA_DOUBLESTRING=63 val SCE_HJA_SINGLESTRING=64 val SCE_HJA_SYMBOLS=65 val SCE_HJA_STRINGEOL=66 val SCE_HJA_REGEX=67 # Embedded VBScript val SCE_HB_START=70 val SCE_HB_DEFAULT=71 val SCE_HB_COMMENTLINE=72 val SCE_HB_NUMBER=73 val SCE_HB_WORD=74 val SCE_HB_STRING=75 val SCE_HB_IDENTIFIER=76 val SCE_HB_STRINGEOL=77 # ASP VBScript val SCE_HBA_START=80 val SCE_HBA_DEFAULT=81 val SCE_HBA_COMMENTLINE=82 val SCE_HBA_NUMBER=83 val SCE_HBA_WORD=84 val SCE_HBA_STRING=85 val SCE_HBA_IDENTIFIER=86 val SCE_HBA_STRINGEOL=87 # Embedded Python val SCE_HP_START=90 val SCE_HP_DEFAULT=91 val SCE_HP_COMMENTLINE=92 val SCE_HP_NUMBER=93 val SCE_HP_STRING=94 val SCE_HP_CHARACTER=95 val SCE_HP_WORD=96 val SCE_HP_TRIPLE=97 val SCE_HP_TRIPLEDOUBLE=98 val SCE_HP_CLASSNAME=99 val SCE_HP_DEFNAME=100 val SCE_HP_OPERATOR=101 val SCE_HP_IDENTIFIER=102 # PHP val SCE_HPHP_COMPLEX_VARIABLE=104 # ASP Python val SCE_HPA_START=105 val SCE_HPA_DEFAULT=106 val SCE_HPA_COMMENTLINE=107 val SCE_HPA_NUMBER=108 val SCE_HPA_STRING=109 val SCE_HPA_CHARACTER=110 val SCE_HPA_WORD=111 val SCE_HPA_TRIPLE=112 val SCE_HPA_TRIPLEDOUBLE=113 val SCE_HPA_CLASSNAME=114 val SCE_HPA_DEFNAME=115 val SCE_HPA_OPERATOR=116 val SCE_HPA_IDENTIFIER=117 # PHP val SCE_HPHP_DEFAULT=118 val SCE_HPHP_HSTRING=119 val SCE_HPHP_SIMPLESTRING=120 val SCE_HPHP_WORD=121 val SCE_HPHP_NUMBER=122 val SCE_HPHP_VARIABLE=123 val SCE_HPHP_COMMENT=124 val SCE_HPHP_COMMENTLINE=125 val SCE_HPHP_HSTRING_VARIABLE=126 val SCE_HPHP_OPERATOR=127 # Lexical states for SCLEX_PERL lex Perl=SCLEX_PERL SCE_PL_ val SCE_PL_DEFAULT=0 val SCE_PL_ERROR=1 val SCE_PL_COMMENTLINE=2 val SCE_PL_POD=3 val SCE_PL_NUMBER=4 val SCE_PL_WORD=5 val SCE_PL_STRING=6 val SCE_PL_CHARACTER=7 val SCE_PL_PUNCTUATION=8 val SCE_PL_PREPROCESSOR=9 val SCE_PL_OPERATOR=10 val SCE_PL_IDENTIFIER=11 val SCE_PL_SCALAR=12 val SCE_PL_ARRAY=13 val SCE_PL_HASH=14 val SCE_PL_SYMBOLTABLE=15 val SCE_PL_VARIABLE_INDEXER=16 val SCE_PL_REGEX=17 val SCE_PL_REGSUBST=18 val SCE_PL_LONGQUOTE=19 val SCE_PL_BACKTICKS=20 val SCE_PL_DATASECTION=21 val SCE_PL_HERE_DELIM=22 val SCE_PL_HERE_Q=23 val SCE_PL_HERE_QQ=24 val SCE_PL_HERE_QX=25 val SCE_PL_STRING_Q=26 val SCE_PL_STRING_QQ=27 val SCE_PL_STRING_QX=28 val SCE_PL_STRING_QR=29 val SCE_PL_STRING_QW=30 val SCE_PL_POD_VERB=31 val SCE_PL_SUB_PROTOTYPE=40 val SCE_PL_FORMAT_IDENT=41 val SCE_PL_FORMAT=42 val SCE_PL_STRING_VAR=43 val SCE_PL_XLAT=44 val SCE_PL_REGEX_VAR=54 val SCE_PL_REGSUBST_VAR=55 val SCE_PL_BACKTICKS_VAR=57 val SCE_PL_HERE_QQ_VAR=61 val SCE_PL_HERE_QX_VAR=62 val SCE_PL_STRING_QQ_VAR=64 val SCE_PL_STRING_QX_VAR=65 val SCE_PL_STRING_QR_VAR=66 # Lexical states for SCLEX_RUBY lex Ruby=SCLEX_RUBY SCE_RB_ val SCE_RB_DEFAULT=0 val SCE_RB_ERROR=1 val SCE_RB_COMMENTLINE=2 val SCE_RB_POD=3 val SCE_RB_NUMBER=4 val SCE_RB_WORD=5 val SCE_RB_STRING=6 val SCE_RB_CHARACTER=7 val SCE_RB_CLASSNAME=8 val SCE_RB_DEFNAME=9 val SCE_RB_OPERATOR=10 val SCE_RB_IDENTIFIER=11 val SCE_RB_REGEX=12 val SCE_RB_GLOBAL=13 val SCE_RB_SYMBOL=14 val SCE_RB_MODULE_NAME=15 val SCE_RB_INSTANCE_VAR=16 val SCE_RB_CLASS_VAR=17 val SCE_RB_BACKTICKS=18 val SCE_RB_DATASECTION=19 val SCE_RB_HERE_DELIM=20 val SCE_RB_HERE_Q=21 val SCE_RB_HERE_QQ=22 val SCE_RB_HERE_QX=23 val SCE_RB_STRING_Q=24 val SCE_RB_STRING_QQ=25 val SCE_RB_STRING_QX=26 val SCE_RB_STRING_QR=27 val SCE_RB_STRING_QW=28 val SCE_RB_WORD_DEMOTED=29 val SCE_RB_STDIN=30 val SCE_RB_STDOUT=31 val SCE_RB_STDERR=40 val SCE_RB_UPPER_BOUND=41 # Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC, SCLEX_BLITZBASIC, SCLEX_PUREBASIC, SCLEX_FREEBASIC lex VB=SCLEX_VB SCE_B_ lex VBScript=SCLEX_VBSCRIPT SCE_B_ lex PowerBasic=SCLEX_POWERBASIC SCE_B_ lex BlitzBasic=SCLEX_BLITZBASIC SCE_B_ lex PureBasic=SCLEX_PUREBASIC SCE_B_ lex FreeBasic=SCLEX_FREEBASIC SCE_B_ val SCE_B_DEFAULT=0 val SCE_B_COMMENT=1 val SCE_B_NUMBER=2 val SCE_B_KEYWORD=3 val SCE_B_STRING=4 val SCE_B_PREPROCESSOR=5 val SCE_B_OPERATOR=6 val SCE_B_IDENTIFIER=7 val SCE_B_DATE=8 val SCE_B_STRINGEOL=9 val SCE_B_KEYWORD2=10 val SCE_B_KEYWORD3=11 val SCE_B_KEYWORD4=12 val SCE_B_CONSTANT=13 val SCE_B_ASM=14 val SCE_B_LABEL=15 val SCE_B_ERROR=16 val SCE_B_HEXNUMBER=17 val SCE_B_BINNUMBER=18 val SCE_B_COMMENTBLOCK=19 val SCE_B_DOCLINE=20 val SCE_B_DOCBLOCK=21 val SCE_B_DOCKEYWORD=22 # Lexical states for SCLEX_PROPERTIES lex Properties=SCLEX_PROPERTIES SCE_PROPS_ val SCE_PROPS_DEFAULT=0 val SCE_PROPS_COMMENT=1 val SCE_PROPS_SECTION=2 val SCE_PROPS_ASSIGNMENT=3 val SCE_PROPS_DEFVAL=4 val SCE_PROPS_KEY=5 # Lexical states for SCLEX_LATEX lex LaTeX=SCLEX_LATEX SCE_L_ val SCE_L_DEFAULT=0 val SCE_L_COMMAND=1 val SCE_L_TAG=2 val SCE_L_MATH=3 val SCE_L_COMMENT=4 val SCE_L_TAG2=5 val SCE_L_MATH2=6 val SCE_L_COMMENT2=7 val SCE_L_VERBATIM=8 val SCE_L_SHORTCMD=9 val SCE_L_SPECIAL=10 val SCE_L_CMDOPT=11 val SCE_L_ERROR=12 # Lexical states for SCLEX_LUA lex Lua=SCLEX_LUA SCE_LUA_ val SCE_LUA_DEFAULT=0 val SCE_LUA_COMMENT=1 val SCE_LUA_COMMENTLINE=2 val SCE_LUA_COMMENTDOC=3 val SCE_LUA_NUMBER=4 val SCE_LUA_WORD=5 val SCE_LUA_STRING=6 val SCE_LUA_CHARACTER=7 val SCE_LUA_LITERALSTRING=8 val SCE_LUA_PREPROCESSOR=9 val SCE_LUA_OPERATOR=10 val SCE_LUA_IDENTIFIER=11 val SCE_LUA_STRINGEOL=12 val SCE_LUA_WORD2=13 val SCE_LUA_WORD3=14 val SCE_LUA_WORD4=15 val SCE_LUA_WORD5=16 val SCE_LUA_WORD6=17 val SCE_LUA_WORD7=18 val SCE_LUA_WORD8=19 val SCE_LUA_LABEL=20 # Lexical states for SCLEX_ERRORLIST lex ErrorList=SCLEX_ERRORLIST SCE_ERR_ val SCE_ERR_DEFAULT=0 val SCE_ERR_PYTHON=1 val SCE_ERR_GCC=2 val SCE_ERR_MS=3 val SCE_ERR_CMD=4 val SCE_ERR_BORLAND=5 val SCE_ERR_PERL=6 val SCE_ERR_NET=7 val SCE_ERR_LUA=8 val SCE_ERR_CTAG=9 val SCE_ERR_DIFF_CHANGED=10 val SCE_ERR_DIFF_ADDITION=11 val SCE_ERR_DIFF_DELETION=12 val SCE_ERR_DIFF_MESSAGE=13 val SCE_ERR_PHP=14 val SCE_ERR_ELF=15 val SCE_ERR_IFC=16 val SCE_ERR_IFORT=17 val SCE_ERR_ABSF=18 val SCE_ERR_TIDY=19 val SCE_ERR_JAVA_STACK=20 val SCE_ERR_VALUE=21 val SCE_ERR_GCC_INCLUDED_FROM=22 val SCE_ERR_ESCSEQ=23 val SCE_ERR_ESCSEQ_UNKNOWN=24 val SCE_ERR_ES_BLACK=40 val SCE_ERR_ES_RED=41 val SCE_ERR_ES_GREEN=42 val SCE_ERR_ES_BROWN=43 val SCE_ERR_ES_BLUE=44 val SCE_ERR_ES_MAGENTA=45 val SCE_ERR_ES_CYAN=46 val SCE_ERR_ES_GRAY=47 val SCE_ERR_ES_DARK_GRAY=48 val SCE_ERR_ES_BRIGHT_RED=49 val SCE_ERR_ES_BRIGHT_GREEN=50 val SCE_ERR_ES_YELLOW=51 val SCE_ERR_ES_BRIGHT_BLUE=52 val SCE_ERR_ES_BRIGHT_MAGENTA=53 val SCE_ERR_ES_BRIGHT_CYAN=54 val SCE_ERR_ES_WHITE=55 # Lexical states for SCLEX_BATCH lex Batch=SCLEX_BATCH SCE_BAT_ val SCE_BAT_DEFAULT=0 val SCE_BAT_COMMENT=1 val SCE_BAT_WORD=2 val SCE_BAT_LABEL=3 val SCE_BAT_HIDE=4 val SCE_BAT_COMMAND=5 val SCE_BAT_IDENTIFIER=6 val SCE_BAT_OPERATOR=7 # Lexical states for SCLEX_TCMD lex TCMD=SCLEX_TCMD SCE_TCMD_ val SCE_TCMD_DEFAULT=0 val SCE_TCMD_COMMENT=1 val SCE_TCMD_WORD=2 val SCE_TCMD_LABEL=3 val SCE_TCMD_HIDE=4 val SCE_TCMD_COMMAND=5 val SCE_TCMD_IDENTIFIER=6 val SCE_TCMD_OPERATOR=7 val SCE_TCMD_ENVIRONMENT=8 val SCE_TCMD_EXPANSION=9 val SCE_TCMD_CLABEL=10 # Lexical states for SCLEX_MAKEFILE lex MakeFile=SCLEX_MAKEFILE SCE_MAKE_ val SCE_MAKE_DEFAULT=0 val SCE_MAKE_COMMENT=1 val SCE_MAKE_PREPROCESSOR=2 val SCE_MAKE_IDENTIFIER=3 val SCE_MAKE_OPERATOR=4 val SCE_MAKE_TARGET=5 val SCE_MAKE_IDEOL=9 # Lexical states for SCLEX_DIFF lex Diff=SCLEX_DIFF SCE_DIFF_ val SCE_DIFF_DEFAULT=0 val SCE_DIFF_COMMENT=1 val SCE_DIFF_COMMAND=2 val SCE_DIFF_HEADER=3 val SCE_DIFF_POSITION=4 val SCE_DIFF_DELETED=5 val SCE_DIFF_ADDED=6 val SCE_DIFF_CHANGED=7 # Lexical states for SCLEX_CONF (Apache Configuration Files Lexer) lex Conf=SCLEX_CONF SCE_CONF_ val SCE_CONF_DEFAULT=0 val SCE_CONF_COMMENT=1 val SCE_CONF_NUMBER=2 val SCE_CONF_IDENTIFIER=3 val SCE_CONF_EXTENSION=4 val SCE_CONF_PARAMETER=5 val SCE_CONF_STRING=6 val SCE_CONF_OPERATOR=7 val SCE_CONF_IP=8 val SCE_CONF_DIRECTIVE=9 # Lexical states for SCLEX_AVE, Avenue lex Avenue=SCLEX_AVE SCE_AVE_ val SCE_AVE_DEFAULT=0 val SCE_AVE_COMMENT=1 val SCE_AVE_NUMBER=2 val SCE_AVE_WORD=3 val SCE_AVE_STRING=6 val SCE_AVE_ENUM=7 val SCE_AVE_STRINGEOL=8 val SCE_AVE_IDENTIFIER=9 val SCE_AVE_OPERATOR=10 val SCE_AVE_WORD1=11 val SCE_AVE_WORD2=12 val SCE_AVE_WORD3=13 val SCE_AVE_WORD4=14 val SCE_AVE_WORD5=15 val SCE_AVE_WORD6=16 # Lexical states for SCLEX_ADA lex Ada=SCLEX_ADA SCE_ADA_ val SCE_ADA_DEFAULT=0 val SCE_ADA_WORD=1 val SCE_ADA_IDENTIFIER=2 val SCE_ADA_NUMBER=3 val SCE_ADA_DELIMITER=4 val SCE_ADA_CHARACTER=5 val SCE_ADA_CHARACTEREOL=6 val SCE_ADA_STRING=7 val SCE_ADA_STRINGEOL=8 val SCE_ADA_LABEL=9 val SCE_ADA_COMMENTLINE=10 val SCE_ADA_ILLEGAL=11 # Lexical states for SCLEX_BAAN lex Baan=SCLEX_BAAN SCE_BAAN_ val SCE_BAAN_DEFAULT=0 val SCE_BAAN_COMMENT=1 val SCE_BAAN_COMMENTDOC=2 val SCE_BAAN_NUMBER=3 val SCE_BAAN_WORD=4 val SCE_BAAN_STRING=5 val SCE_BAAN_PREPROCESSOR=6 val SCE_BAAN_OPERATOR=7 val SCE_BAAN_IDENTIFIER=8 val SCE_BAAN_STRINGEOL=9 val SCE_BAAN_WORD2=10 val SCE_BAAN_WORD3=11 val SCE_BAAN_WORD4=12 val SCE_BAAN_WORD5=13 val SCE_BAAN_WORD6=14 val SCE_BAAN_WORD7=15 val SCE_BAAN_WORD8=16 val SCE_BAAN_WORD9=17 val SCE_BAAN_TABLEDEF=18 val SCE_BAAN_TABLESQL=19 val SCE_BAAN_FUNCTION=20 val SCE_BAAN_DOMDEF=21 val SCE_BAAN_FUNCDEF=22 val SCE_BAAN_OBJECTDEF=23 val SCE_BAAN_DEFINEDEF=24 # Lexical states for SCLEX_LISP lex Lisp=SCLEX_LISP SCE_LISP_ val SCE_LISP_DEFAULT=0 val SCE_LISP_COMMENT=1 val SCE_LISP_NUMBER=2 val SCE_LISP_KEYWORD=3 val SCE_LISP_KEYWORD_KW=4 val SCE_LISP_SYMBOL=5 val SCE_LISP_STRING=6 val SCE_LISP_STRINGEOL=8 val SCE_LISP_IDENTIFIER=9 val SCE_LISP_OPERATOR=10 val SCE_LISP_SPECIAL=11 val SCE_LISP_MULTI_COMMENT=12 # Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW lex Eiffel=SCLEX_EIFFEL SCE_EIFFEL_ lex EiffelKW=SCLEX_EIFFELKW SCE_EIFFEL_ val SCE_EIFFEL_DEFAULT=0 val SCE_EIFFEL_COMMENTLINE=1 val SCE_EIFFEL_NUMBER=2 val SCE_EIFFEL_WORD=3 val SCE_EIFFEL_STRING=4 val SCE_EIFFEL_CHARACTER=5 val SCE_EIFFEL_OPERATOR=6 val SCE_EIFFEL_IDENTIFIER=7 val SCE_EIFFEL_STRINGEOL=8 # Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer) lex NNCronTab=SCLEX_NNCRONTAB SCE_NNCRONTAB_ val SCE_NNCRONTAB_DEFAULT=0 val SCE_NNCRONTAB_COMMENT=1 val SCE_NNCRONTAB_TASK=2 val SCE_NNCRONTAB_SECTION=3 val SCE_NNCRONTAB_KEYWORD=4 val SCE_NNCRONTAB_MODIFIER=5 val SCE_NNCRONTAB_ASTERISK=6 val SCE_NNCRONTAB_NUMBER=7 val SCE_NNCRONTAB_STRING=8 val SCE_NNCRONTAB_ENVIRONMENT=9 val SCE_NNCRONTAB_IDENTIFIER=10 # Lexical states for SCLEX_FORTH (Forth Lexer) lex Forth=SCLEX_FORTH SCE_FORTH_ val SCE_FORTH_DEFAULT=0 val SCE_FORTH_COMMENT=1 val SCE_FORTH_COMMENT_ML=2 val SCE_FORTH_IDENTIFIER=3 val SCE_FORTH_CONTROL=4 val SCE_FORTH_KEYWORD=5 val SCE_FORTH_DEFWORD=6 val SCE_FORTH_PREWORD1=7 val SCE_FORTH_PREWORD2=8 val SCE_FORTH_NUMBER=9 val SCE_FORTH_STRING=10 val SCE_FORTH_LOCALE=11 # Lexical states for SCLEX_MATLAB lex MatLab=SCLEX_MATLAB SCE_MATLAB_ val SCE_MATLAB_DEFAULT=0 val SCE_MATLAB_COMMENT=1 val SCE_MATLAB_COMMAND=2 val SCE_MATLAB_NUMBER=3 val SCE_MATLAB_KEYWORD=4 # single quoted string val SCE_MATLAB_STRING=5 val SCE_MATLAB_OPERATOR=6 val SCE_MATLAB_IDENTIFIER=7 val SCE_MATLAB_DOUBLEQUOTESTRING=8 # Lexical states for SCLEX_SCRIPTOL lex Sol=SCLEX_SCRIPTOL SCE_SCRIPTOL_ val SCE_SCRIPTOL_DEFAULT=0 val SCE_SCRIPTOL_WHITE=1 val SCE_SCRIPTOL_COMMENTLINE=2 val SCE_SCRIPTOL_PERSISTENT=3 val SCE_SCRIPTOL_CSTYLE=4 val SCE_SCRIPTOL_COMMENTBLOCK=5 val SCE_SCRIPTOL_NUMBER=6 val SCE_SCRIPTOL_STRING=7 val SCE_SCRIPTOL_CHARACTER=8 val SCE_SCRIPTOL_STRINGEOL=9 val SCE_SCRIPTOL_KEYWORD=10 val SCE_SCRIPTOL_OPERATOR=11 val SCE_SCRIPTOL_IDENTIFIER=12 val SCE_SCRIPTOL_TRIPLE=13 val SCE_SCRIPTOL_CLASSNAME=14 val SCE_SCRIPTOL_PREPROCESSOR=15 # Lexical states for SCLEX_ASM, SCLEX_AS lex Asm=SCLEX_ASM SCE_ASM_ lex As=SCLEX_AS SCE_ASM_ val SCE_ASM_DEFAULT=0 val SCE_ASM_COMMENT=1 val SCE_ASM_NUMBER=2 val SCE_ASM_STRING=3 val SCE_ASM_OPERATOR=4 val SCE_ASM_IDENTIFIER=5 val SCE_ASM_CPUINSTRUCTION=6 val SCE_ASM_MATHINSTRUCTION=7 val SCE_ASM_REGISTER=8 val SCE_ASM_DIRECTIVE=9 val SCE_ASM_DIRECTIVEOPERAND=10 val SCE_ASM_COMMENTBLOCK=11 val SCE_ASM_CHARACTER=12 val SCE_ASM_STRINGEOL=13 val SCE_ASM_EXTINSTRUCTION=14 val SCE_ASM_COMMENTDIRECTIVE=15 # Lexical states for SCLEX_FORTRAN lex Fortran=SCLEX_FORTRAN SCE_F_ lex F77=SCLEX_F77 SCE_F_ val SCE_F_DEFAULT=0 val SCE_F_COMMENT=1 val SCE_F_NUMBER=2 val SCE_F_STRING1=3 val SCE_F_STRING2=4 val SCE_F_STRINGEOL=5 val SCE_F_OPERATOR=6 val SCE_F_IDENTIFIER=7 val SCE_F_WORD=8 val SCE_F_WORD2=9 val SCE_F_WORD3=10 val SCE_F_PREPROCESSOR=11 val SCE_F_OPERATOR2=12 val SCE_F_LABEL=13 val SCE_F_CONTINUATION=14 # Lexical states for SCLEX_CSS lex CSS=SCLEX_CSS SCE_CSS_ val SCE_CSS_DEFAULT=0 val SCE_CSS_TAG=1 val SCE_CSS_CLASS=2 val SCE_CSS_PSEUDOCLASS=3 val SCE_CSS_UNKNOWN_PSEUDOCLASS=4 val SCE_CSS_OPERATOR=5 val SCE_CSS_IDENTIFIER=6 val SCE_CSS_UNKNOWN_IDENTIFIER=7 val SCE_CSS_VALUE=8 val SCE_CSS_COMMENT=9 val SCE_CSS_ID=10 val SCE_CSS_IMPORTANT=11 val SCE_CSS_DIRECTIVE=12 val SCE_CSS_DOUBLESTRING=13 val SCE_CSS_SINGLESTRING=14 val SCE_CSS_IDENTIFIER2=15 val SCE_CSS_ATTRIBUTE=16 val SCE_CSS_IDENTIFIER3=17 val SCE_CSS_PSEUDOELEMENT=18 val SCE_CSS_EXTENDED_IDENTIFIER=19 val SCE_CSS_EXTENDED_PSEUDOCLASS=20 val SCE_CSS_EXTENDED_PSEUDOELEMENT=21 val SCE_CSS_MEDIA=22 val SCE_CSS_VARIABLE=23 # Lexical states for SCLEX_POV lex POV=SCLEX_POV SCE_POV_ val SCE_POV_DEFAULT=0 val SCE_POV_COMMENT=1 val SCE_POV_COMMENTLINE=2 val SCE_POV_NUMBER=3 val SCE_POV_OPERATOR=4 val SCE_POV_IDENTIFIER=5 val SCE_POV_STRING=6 val SCE_POV_STRINGEOL=7 val SCE_POV_DIRECTIVE=8 val SCE_POV_BADDIRECTIVE=9 val SCE_POV_WORD2=10 val SCE_POV_WORD3=11 val SCE_POV_WORD4=12 val SCE_POV_WORD5=13 val SCE_POV_WORD6=14 val SCE_POV_WORD7=15 val SCE_POV_WORD8=16 # Lexical states for SCLEX_LOUT lex LOUT=SCLEX_LOUT SCE_LOUT_ val SCE_LOUT_DEFAULT=0 val SCE_LOUT_COMMENT=1 val SCE_LOUT_NUMBER=2 val SCE_LOUT_WORD=3 val SCE_LOUT_WORD2=4 val SCE_LOUT_WORD3=5 val SCE_LOUT_WORD4=6 val SCE_LOUT_STRING=7 val SCE_LOUT_OPERATOR=8 val SCE_LOUT_IDENTIFIER=9 val SCE_LOUT_STRINGEOL=10 # Lexical states for SCLEX_ESCRIPT lex ESCRIPT=SCLEX_ESCRIPT SCE_ESCRIPT_ val SCE_ESCRIPT_DEFAULT=0 val SCE_ESCRIPT_COMMENT=1 val SCE_ESCRIPT_COMMENTLINE=2 val SCE_ESCRIPT_COMMENTDOC=3 val SCE_ESCRIPT_NUMBER=4 val SCE_ESCRIPT_WORD=5 val SCE_ESCRIPT_STRING=6 val SCE_ESCRIPT_OPERATOR=7 val SCE_ESCRIPT_IDENTIFIER=8 val SCE_ESCRIPT_BRACE=9 val SCE_ESCRIPT_WORD2=10 val SCE_ESCRIPT_WORD3=11 # Lexical states for SCLEX_PS lex PS=SCLEX_PS SCE_PS_ val SCE_PS_DEFAULT=0 val SCE_PS_COMMENT=1 val SCE_PS_DSC_COMMENT=2 val SCE_PS_DSC_VALUE=3 val SCE_PS_NUMBER=4 val SCE_PS_NAME=5 val SCE_PS_KEYWORD=6 val SCE_PS_LITERAL=7 val SCE_PS_IMMEVAL=8 val SCE_PS_PAREN_ARRAY=9 val SCE_PS_PAREN_DICT=10 val SCE_PS_PAREN_PROC=11 val SCE_PS_TEXT=12 val SCE_PS_HEXSTRING=13 val SCE_PS_BASE85STRING=14 val SCE_PS_BADSTRINGCHAR=15 # Lexical states for SCLEX_NSIS lex NSIS=SCLEX_NSIS SCE_NSIS_ val SCE_NSIS_DEFAULT=0 val SCE_NSIS_COMMENT=1 val SCE_NSIS_STRINGDQ=2 val SCE_NSIS_STRINGLQ=3 val SCE_NSIS_STRINGRQ=4 val SCE_NSIS_FUNCTION=5 val SCE_NSIS_VARIABLE=6 val SCE_NSIS_LABEL=7 val SCE_NSIS_USERDEFINED=8 val SCE_NSIS_SECTIONDEF=9 val SCE_NSIS_SUBSECTIONDEF=10 val SCE_NSIS_IFDEFINEDEF=11 val SCE_NSIS_MACRODEF=12 val SCE_NSIS_STRINGVAR=13 val SCE_NSIS_NUMBER=14 val SCE_NSIS_SECTIONGROUP=15 val SCE_NSIS_PAGEEX=16 val SCE_NSIS_FUNCTIONDEF=17 val SCE_NSIS_COMMENTBOX=18 # Lexical states for SCLEX_MMIXAL lex MMIXAL=SCLEX_MMIXAL SCE_MMIXAL_ val SCE_MMIXAL_LEADWS=0 val SCE_MMIXAL_COMMENT=1 val SCE_MMIXAL_LABEL=2 val SCE_MMIXAL_OPCODE=3 val SCE_MMIXAL_OPCODE_PRE=4 val SCE_MMIXAL_OPCODE_VALID=5 val SCE_MMIXAL_OPCODE_UNKNOWN=6 val SCE_MMIXAL_OPCODE_POST=7 val SCE_MMIXAL_OPERANDS=8 val SCE_MMIXAL_NUMBER=9 val SCE_MMIXAL_REF=10 val SCE_MMIXAL_CHAR=11 val SCE_MMIXAL_STRING=12 val SCE_MMIXAL_REGISTER=13 val SCE_MMIXAL_HEX=14 val SCE_MMIXAL_OPERATOR=15 val SCE_MMIXAL_SYMBOL=16 val SCE_MMIXAL_INCLUDE=17 # Lexical states for SCLEX_CLW lex Clarion=SCLEX_CLW SCE_CLW_ val SCE_CLW_DEFAULT=0 val SCE_CLW_LABEL=1 val SCE_CLW_COMMENT=2 val SCE_CLW_STRING=3 val SCE_CLW_USER_IDENTIFIER=4 val SCE_CLW_INTEGER_CONSTANT=5 val SCE_CLW_REAL_CONSTANT=6 val SCE_CLW_PICTURE_STRING=7 val SCE_CLW_KEYWORD=8 val SCE_CLW_COMPILER_DIRECTIVE=9 val SCE_CLW_RUNTIME_EXPRESSIONS=10 val SCE_CLW_BUILTIN_PROCEDURES_FUNCTION=11 val SCE_CLW_STRUCTURE_DATA_TYPE=12 val SCE_CLW_ATTRIBUTE=13 val SCE_CLW_STANDARD_EQUATE=14 val SCE_CLW_ERROR=15 val SCE_CLW_DEPRECATED=16 # Lexical states for SCLEX_LOT lex LOT=SCLEX_LOT SCE_LOT_ val SCE_LOT_DEFAULT=0 val SCE_LOT_HEADER=1 val SCE_LOT_BREAK=2 val SCE_LOT_SET=3 val SCE_LOT_PASS=4 val SCE_LOT_FAIL=5 val SCE_LOT_ABORT=6 # Lexical states for SCLEX_YAML lex YAML=SCLEX_YAML SCE_YAML_ val SCE_YAML_DEFAULT=0 val SCE_YAML_COMMENT=1 val SCE_YAML_IDENTIFIER=2 val SCE_YAML_KEYWORD=3 val SCE_YAML_NUMBER=4 val SCE_YAML_REFERENCE=5 val SCE_YAML_DOCUMENT=6 val SCE_YAML_TEXT=7 val SCE_YAML_ERROR=8 val SCE_YAML_OPERATOR=9 # Lexical states for SCLEX_TEX lex TeX=SCLEX_TEX SCE_TEX_ val SCE_TEX_DEFAULT=0 val SCE_TEX_SPECIAL=1 val SCE_TEX_GROUP=2 val SCE_TEX_SYMBOL=3 val SCE_TEX_COMMAND=4 val SCE_TEX_TEXT=5 lex Metapost=SCLEX_METAPOST SCE_METAPOST_ val SCE_METAPOST_DEFAULT=0 val SCE_METAPOST_SPECIAL=1 val SCE_METAPOST_GROUP=2 val SCE_METAPOST_SYMBOL=3 val SCE_METAPOST_COMMAND=4 val SCE_METAPOST_TEXT=5 val SCE_METAPOST_EXTRA=6 # Lexical states for SCLEX_ERLANG lex Erlang=SCLEX_ERLANG SCE_ERLANG_ val SCE_ERLANG_DEFAULT=0 val SCE_ERLANG_COMMENT=1 val SCE_ERLANG_VARIABLE=2 val SCE_ERLANG_NUMBER=3 val SCE_ERLANG_KEYWORD=4 val SCE_ERLANG_STRING=5 val SCE_ERLANG_OPERATOR=6 val SCE_ERLANG_ATOM=7 val SCE_ERLANG_FUNCTION_NAME=8 val SCE_ERLANG_CHARACTER=9 val SCE_ERLANG_MACRO=10 val SCE_ERLANG_RECORD=11 val SCE_ERLANG_PREPROC=12 val SCE_ERLANG_NODE_NAME=13 val SCE_ERLANG_COMMENT_FUNCTION=14 val SCE_ERLANG_COMMENT_MODULE=15 val SCE_ERLANG_COMMENT_DOC=16 val SCE_ERLANG_COMMENT_DOC_MACRO=17 val SCE_ERLANG_ATOM_QUOTED=18 val SCE_ERLANG_MACRO_QUOTED=19 val SCE_ERLANG_RECORD_QUOTED=20 val SCE_ERLANG_NODE_NAME_QUOTED=21 val SCE_ERLANG_BIFS=22 val SCE_ERLANG_MODULES=23 val SCE_ERLANG_MODULES_ATT=24 val SCE_ERLANG_UNKNOWN=31 # Lexical states for SCLEX_OCTAVE are identical to MatLab lex Octave=SCLEX_OCTAVE SCE_MATLAB_ # Lexical states for SCLEX_MSSQL lex MSSQL=SCLEX_MSSQL SCE_MSSQL_ val SCE_MSSQL_DEFAULT=0 val SCE_MSSQL_COMMENT=1 val SCE_MSSQL_LINE_COMMENT=2 val SCE_MSSQL_NUMBER=3 val SCE_MSSQL_STRING=4 val SCE_MSSQL_OPERATOR=5 val SCE_MSSQL_IDENTIFIER=6 val SCE_MSSQL_VARIABLE=7 val SCE_MSSQL_COLUMN_NAME=8 val SCE_MSSQL_STATEMENT=9 val SCE_MSSQL_DATATYPE=10 val SCE_MSSQL_SYSTABLE=11 val SCE_MSSQL_GLOBAL_VARIABLE=12 val SCE_MSSQL_FUNCTION=13 val SCE_MSSQL_STORED_PROCEDURE=14 val SCE_MSSQL_DEFAULT_PREF_DATATYPE=15 val SCE_MSSQL_COLUMN_NAME_2=16 # Lexical states for SCLEX_VERILOG lex Verilog=SCLEX_VERILOG SCE_V_ val SCE_V_DEFAULT=0 val SCE_V_COMMENT=1 val SCE_V_COMMENTLINE=2 val SCE_V_COMMENTLINEBANG=3 val SCE_V_NUMBER=4 val SCE_V_WORD=5 val SCE_V_STRING=6 val SCE_V_WORD2=7 val SCE_V_WORD3=8 val SCE_V_PREPROCESSOR=9 val SCE_V_OPERATOR=10 val SCE_V_IDENTIFIER=11 val SCE_V_STRINGEOL=12 val SCE_V_USER=19 val SCE_V_COMMENT_WORD=20 val SCE_V_INPUT=21 val SCE_V_OUTPUT=22 val SCE_V_INOUT=23 val SCE_V_PORT_CONNECT=24 # Lexical states for SCLEX_KIX lex Kix=SCLEX_KIX SCE_KIX_ val SCE_KIX_DEFAULT=0 val SCE_KIX_COMMENT=1 val SCE_KIX_STRING1=2 val SCE_KIX_STRING2=3 val SCE_KIX_NUMBER=4 val SCE_KIX_VAR=5 val SCE_KIX_MACRO=6 val SCE_KIX_KEYWORD=7 val SCE_KIX_FUNCTIONS=8 val SCE_KIX_OPERATOR=9 val SCE_KIX_COMMENTSTREAM=10 val SCE_KIX_IDENTIFIER=31 # Lexical states for SCLEX_GUI4CLI lex Gui4Cli=SCLEX_GUI4CLI SCE_GC_ val SCE_GC_DEFAULT=0 val SCE_GC_COMMENTLINE=1 val SCE_GC_COMMENTBLOCK=2 val SCE_GC_GLOBAL=3 val SCE_GC_EVENT=4 val SCE_GC_ATTRIBUTE=5 val SCE_GC_CONTROL=6 val SCE_GC_COMMAND=7 val SCE_GC_STRING=8 val SCE_GC_OPERATOR=9 # Lexical states for SCLEX_SPECMAN lex Specman=SCLEX_SPECMAN SCE_SN_ val SCE_SN_DEFAULT=0 val SCE_SN_CODE=1 val SCE_SN_COMMENTLINE=2 val SCE_SN_COMMENTLINEBANG=3 val SCE_SN_NUMBER=4 val SCE_SN_WORD=5 val SCE_SN_STRING=6 val SCE_SN_WORD2=7 val SCE_SN_WORD3=8 val SCE_SN_PREPROCESSOR=9 val SCE_SN_OPERATOR=10 val SCE_SN_IDENTIFIER=11 val SCE_SN_STRINGEOL=12 val SCE_SN_REGEXTAG=13 val SCE_SN_SIGNAL=14 val SCE_SN_USER=19 # Lexical states for SCLEX_AU3 lex Au3=SCLEX_AU3 SCE_AU3_ val SCE_AU3_DEFAULT=0 val SCE_AU3_COMMENT=1 val SCE_AU3_COMMENTBLOCK=2 val SCE_AU3_NUMBER=3 val SCE_AU3_FUNCTION=4 val SCE_AU3_KEYWORD=5 val SCE_AU3_MACRO=6 val SCE_AU3_STRING=7 val SCE_AU3_OPERATOR=8 val SCE_AU3_VARIABLE=9 val SCE_AU3_SENT=10 val SCE_AU3_PREPROCESSOR=11 val SCE_AU3_SPECIAL=12 val SCE_AU3_EXPAND=13 val SCE_AU3_COMOBJ=14 val SCE_AU3_UDF=15 # Lexical states for SCLEX_APDL lex APDL=SCLEX_APDL SCE_APDL_ val SCE_APDL_DEFAULT=0 val SCE_APDL_COMMENT=1 val SCE_APDL_COMMENTBLOCK=2 val SCE_APDL_NUMBER=3 val SCE_APDL_STRING=4 val SCE_APDL_OPERATOR=5 val SCE_APDL_WORD=6 val SCE_APDL_PROCESSOR=7 val SCE_APDL_COMMAND=8 val SCE_APDL_SLASHCOMMAND=9 val SCE_APDL_STARCOMMAND=10 val SCE_APDL_ARGUMENT=11 val SCE_APDL_FUNCTION=12 # Lexical states for SCLEX_BASH lex Bash=SCLEX_BASH SCE_SH_ val SCE_SH_DEFAULT=0 val SCE_SH_ERROR=1 val SCE_SH_COMMENTLINE=2 val SCE_SH_NUMBER=3 val SCE_SH_WORD=4 val SCE_SH_STRING=5 val SCE_SH_CHARACTER=6 val SCE_SH_OPERATOR=7 val SCE_SH_IDENTIFIER=8 val SCE_SH_SCALAR=9 val SCE_SH_PARAM=10 val SCE_SH_BACKTICKS=11 val SCE_SH_HERE_DELIM=12 val SCE_SH_HERE_Q=13 # Lexical states for SCLEX_ASN1 lex Asn1=SCLEX_ASN1 SCE_ASN1_ val SCE_ASN1_DEFAULT=0 val SCE_ASN1_COMMENT=1 val SCE_ASN1_IDENTIFIER=2 val SCE_ASN1_STRING=3 val SCE_ASN1_OID=4 val SCE_ASN1_SCALAR=5 val SCE_ASN1_KEYWORD=6 val SCE_ASN1_ATTRIBUTE=7 val SCE_ASN1_DESCRIPTOR=8 val SCE_ASN1_TYPE=9 val SCE_ASN1_OPERATOR=10 # Lexical states for SCLEX_VHDL lex VHDL=SCLEX_VHDL SCE_VHDL_ val SCE_VHDL_DEFAULT=0 val SCE_VHDL_COMMENT=1 val SCE_VHDL_COMMENTLINEBANG=2 val SCE_VHDL_NUMBER=3 val SCE_VHDL_STRING=4 val SCE_VHDL_OPERATOR=5 val SCE_VHDL_IDENTIFIER=6 val SCE_VHDL_STRINGEOL=7 val SCE_VHDL_KEYWORD=8 val SCE_VHDL_STDOPERATOR=9 val SCE_VHDL_ATTRIBUTE=10 val SCE_VHDL_STDFUNCTION=11 val SCE_VHDL_STDPACKAGE=12 val SCE_VHDL_STDTYPE=13 val SCE_VHDL_USERWORD=14 val SCE_VHDL_BLOCK_COMMENT=15 # Lexical states for SCLEX_CAML lex Caml=SCLEX_CAML SCE_CAML_ val SCE_CAML_DEFAULT=0 val SCE_CAML_IDENTIFIER=1 val SCE_CAML_TAGNAME=2 val SCE_CAML_KEYWORD=3 val SCE_CAML_KEYWORD2=4 val SCE_CAML_KEYWORD3=5 val SCE_CAML_LINENUM=6 val SCE_CAML_OPERATOR=7 val SCE_CAML_NUMBER=8 val SCE_CAML_CHAR=9 val SCE_CAML_WHITE=10 val SCE_CAML_STRING=11 val SCE_CAML_COMMENT=12 val SCE_CAML_COMMENT1=13 val SCE_CAML_COMMENT2=14 val SCE_CAML_COMMENT3=15 # Lexical states for SCLEX_HASKELL lex Haskell=SCLEX_HASKELL SCE_HA_ val SCE_HA_DEFAULT=0 val SCE_HA_IDENTIFIER=1 val SCE_HA_KEYWORD=2 val SCE_HA_NUMBER=3 val SCE_HA_STRING=4 val SCE_HA_CHARACTER=5 val SCE_HA_CLASS=6 val SCE_HA_MODULE=7 val SCE_HA_CAPITAL=8 val SCE_HA_DATA=9 val SCE_HA_IMPORT=10 val SCE_HA_OPERATOR=11 val SCE_HA_INSTANCE=12 val SCE_HA_COMMENTLINE=13 val SCE_HA_COMMENTBLOCK=14 val SCE_HA_COMMENTBLOCK2=15 val SCE_HA_COMMENTBLOCK3=16 val SCE_HA_PRAGMA=17 val SCE_HA_PREPROCESSOR=18 val SCE_HA_STRINGEOL=19 val SCE_HA_RESERVED_OPERATOR=20 val SCE_HA_LITERATE_COMMENT=21 val SCE_HA_LITERATE_CODEDELIM=22 # Lexical states of SCLEX_TADS3 lex TADS3=SCLEX_TADS3 SCE_T3_ val SCE_T3_DEFAULT=0 val SCE_T3_X_DEFAULT=1 val SCE_T3_PREPROCESSOR=2 val SCE_T3_BLOCK_COMMENT=3 val SCE_T3_LINE_COMMENT=4 val SCE_T3_OPERATOR=5 val SCE_T3_KEYWORD=6 val SCE_T3_NUMBER=7 val SCE_T3_IDENTIFIER=8 val SCE_T3_S_STRING=9 val SCE_T3_D_STRING=10 val SCE_T3_X_STRING=11 val SCE_T3_LIB_DIRECTIVE=12 val SCE_T3_MSG_PARAM=13 val SCE_T3_HTML_TAG=14 val SCE_T3_HTML_DEFAULT=15 val SCE_T3_HTML_STRING=16 val SCE_T3_USER1=17 val SCE_T3_USER2=18 val SCE_T3_USER3=19 val SCE_T3_BRACE=20 # Lexical states for SCLEX_REBOL lex Rebol=SCLEX_REBOL SCE_REBOL_ val SCE_REBOL_DEFAULT=0 val SCE_REBOL_COMMENTLINE=1 val SCE_REBOL_COMMENTBLOCK=2 val SCE_REBOL_PREFACE=3 val SCE_REBOL_OPERATOR=4 val SCE_REBOL_CHARACTER=5 val SCE_REBOL_QUOTEDSTRING=6 val SCE_REBOL_BRACEDSTRING=7 val SCE_REBOL_NUMBER=8 val SCE_REBOL_PAIR=9 val SCE_REBOL_TUPLE=10 val SCE_REBOL_BINARY=11 val SCE_REBOL_MONEY=12 val SCE_REBOL_ISSUE=13 val SCE_REBOL_TAG=14 val SCE_REBOL_FILE=15 val SCE_REBOL_EMAIL=16 val SCE_REBOL_URL=17 val SCE_REBOL_DATE=18 val SCE_REBOL_TIME=19 val SCE_REBOL_IDENTIFIER=20 val SCE_REBOL_WORD=21 val SCE_REBOL_WORD2=22 val SCE_REBOL_WORD3=23 val SCE_REBOL_WORD4=24 val SCE_REBOL_WORD5=25 val SCE_REBOL_WORD6=26 val SCE_REBOL_WORD7=27 val SCE_REBOL_WORD8=28 # Lexical states for SCLEX_SQL lex SQL=SCLEX_SQL SCE_SQL_ val SCE_SQL_DEFAULT=0 val SCE_SQL_COMMENT=1 val SCE_SQL_COMMENTLINE=2 val SCE_SQL_COMMENTDOC=3 val SCE_SQL_NUMBER=4 val SCE_SQL_WORD=5 val SCE_SQL_STRING=6 val SCE_SQL_CHARACTER=7 val SCE_SQL_SQLPLUS=8 val SCE_SQL_SQLPLUS_PROMPT=9 val SCE_SQL_OPERATOR=10 val SCE_SQL_IDENTIFIER=11 val SCE_SQL_SQLPLUS_COMMENT=13 val SCE_SQL_COMMENTLINEDOC=15 val SCE_SQL_WORD2=16 val SCE_SQL_COMMENTDOCKEYWORD=17 val SCE_SQL_COMMENTDOCKEYWORDERROR=18 val SCE_SQL_USER1=19 val SCE_SQL_USER2=20 val SCE_SQL_USER3=21 val SCE_SQL_USER4=22 val SCE_SQL_QUOTEDIDENTIFIER=23 val SCE_SQL_QOPERATOR=24 # Lexical states for SCLEX_SMALLTALK lex Smalltalk=SCLEX_SMALLTALK SCE_ST_ val SCE_ST_DEFAULT=0 val SCE_ST_STRING=1 val SCE_ST_NUMBER=2 val SCE_ST_COMMENT=3 val SCE_ST_SYMBOL=4 val SCE_ST_BINARY=5 val SCE_ST_BOOL=6 val SCE_ST_SELF=7 val SCE_ST_SUPER=8 val SCE_ST_NIL=9 val SCE_ST_GLOBAL=10 val SCE_ST_RETURN=11 val SCE_ST_SPECIAL=12 val SCE_ST_KWSEND=13 val SCE_ST_ASSIGN=14 val SCE_ST_CHARACTER=15 val SCE_ST_SPEC_SEL=16 # Lexical states for SCLEX_FLAGSHIP (clipper) lex FlagShip=SCLEX_FLAGSHIP SCE_FS_ val SCE_FS_DEFAULT=0 val SCE_FS_COMMENT=1 val SCE_FS_COMMENTLINE=2 val SCE_FS_COMMENTDOC=3 val SCE_FS_COMMENTLINEDOC=4 val SCE_FS_COMMENTDOCKEYWORD=5 val SCE_FS_COMMENTDOCKEYWORDERROR=6 val SCE_FS_KEYWORD=7 val SCE_FS_KEYWORD2=8 val SCE_FS_KEYWORD3=9 val SCE_FS_KEYWORD4=10 val SCE_FS_NUMBER=11 val SCE_FS_STRING=12 val SCE_FS_PREPROCESSOR=13 val SCE_FS_OPERATOR=14 val SCE_FS_IDENTIFIER=15 val SCE_FS_DATE=16 val SCE_FS_STRINGEOL=17 val SCE_FS_CONSTANT=18 val SCE_FS_WORDOPERATOR=19 val SCE_FS_DISABLEDCODE=20 val SCE_FS_DEFAULT_C=21 val SCE_FS_COMMENTDOC_C=22 val SCE_FS_COMMENTLINEDOC_C=23 val SCE_FS_KEYWORD_C=24 val SCE_FS_KEYWORD2_C=25 val SCE_FS_NUMBER_C=26 val SCE_FS_STRING_C=27 val SCE_FS_PREPROCESSOR_C=28 val SCE_FS_OPERATOR_C=29 val SCE_FS_IDENTIFIER_C=30 val SCE_FS_STRINGEOL_C=31 # Lexical states for SCLEX_CSOUND lex Csound=SCLEX_CSOUND SCE_CSOUND_ val SCE_CSOUND_DEFAULT=0 val SCE_CSOUND_COMMENT=1 val SCE_CSOUND_NUMBER=2 val SCE_CSOUND_OPERATOR=3 val SCE_CSOUND_INSTR=4 val SCE_CSOUND_IDENTIFIER=5 val SCE_CSOUND_OPCODE=6 val SCE_CSOUND_HEADERSTMT=7 val SCE_CSOUND_USERKEYWORD=8 val SCE_CSOUND_COMMENTBLOCK=9 val SCE_CSOUND_PARAM=10 val SCE_CSOUND_ARATE_VAR=11 val SCE_CSOUND_KRATE_VAR=12 val SCE_CSOUND_IRATE_VAR=13 val SCE_CSOUND_GLOBAL_VAR=14 val SCE_CSOUND_STRINGEOL=15 # Lexical states for SCLEX_INNOSETUP lex Inno=SCLEX_INNOSETUP SCE_INNO_ val SCE_INNO_DEFAULT=0 val SCE_INNO_COMMENT=1 val SCE_INNO_KEYWORD=2 val SCE_INNO_PARAMETER=3 val SCE_INNO_SECTION=4 val SCE_INNO_PREPROC=5 val SCE_INNO_INLINE_EXPANSION=6 val SCE_INNO_COMMENT_PASCAL=7 val SCE_INNO_KEYWORD_PASCAL=8 val SCE_INNO_KEYWORD_USER=9 val SCE_INNO_STRING_DOUBLE=10 val SCE_INNO_STRING_SINGLE=11 val SCE_INNO_IDENTIFIER=12 # Lexical states for SCLEX_OPAL lex Opal=SCLEX_OPAL SCE_OPAL_ val SCE_OPAL_SPACE=0 val SCE_OPAL_COMMENT_BLOCK=1 val SCE_OPAL_COMMENT_LINE=2 val SCE_OPAL_INTEGER=3 val SCE_OPAL_KEYWORD=4 val SCE_OPAL_SORT=5 val SCE_OPAL_STRING=6 val SCE_OPAL_PAR=7 val SCE_OPAL_BOOL_CONST=8 val SCE_OPAL_DEFAULT=32 # Lexical states for SCLEX_SPICE lex Spice=SCLEX_SPICE SCE_SPICE_ val SCE_SPICE_DEFAULT=0 val SCE_SPICE_IDENTIFIER=1 val SCE_SPICE_KEYWORD=2 val SCE_SPICE_KEYWORD2=3 val SCE_SPICE_KEYWORD3=4 val SCE_SPICE_NUMBER=5 val SCE_SPICE_DELIMITER=6 val SCE_SPICE_VALUE=7 val SCE_SPICE_COMMENTLINE=8 # Lexical states for SCLEX_CMAKE lex CMAKE=SCLEX_CMAKE SCE_CMAKE_ val SCE_CMAKE_DEFAULT=0 val SCE_CMAKE_COMMENT=1 val SCE_CMAKE_STRINGDQ=2 val SCE_CMAKE_STRINGLQ=3 val SCE_CMAKE_STRINGRQ=4 val SCE_CMAKE_COMMANDS=5 val SCE_CMAKE_PARAMETERS=6 val SCE_CMAKE_VARIABLE=7 val SCE_CMAKE_USERDEFINED=8 val SCE_CMAKE_WHILEDEF=9 val SCE_CMAKE_FOREACHDEF=10 val SCE_CMAKE_IFDEFINEDEF=11 val SCE_CMAKE_MACRODEF=12 val SCE_CMAKE_STRINGVAR=13 val SCE_CMAKE_NUMBER=14 # Lexical states for SCLEX_GAP lex Gap=SCLEX_GAP SCE_GAP_ val SCE_GAP_DEFAULT=0 val SCE_GAP_IDENTIFIER=1 val SCE_GAP_KEYWORD=2 val SCE_GAP_KEYWORD2=3 val SCE_GAP_KEYWORD3=4 val SCE_GAP_KEYWORD4=5 val SCE_GAP_STRING=6 val SCE_GAP_CHAR=7 val SCE_GAP_OPERATOR=8 val SCE_GAP_COMMENT=9 val SCE_GAP_NUMBER=10 val SCE_GAP_STRINGEOL=11 # Lexical state for SCLEX_PLM lex PLM=SCLEX_PLM SCE_PLM_ val SCE_PLM_DEFAULT=0 val SCE_PLM_COMMENT=1 val SCE_PLM_STRING=2 val SCE_PLM_NUMBER=3 val SCE_PLM_IDENTIFIER=4 val SCE_PLM_OPERATOR=5 val SCE_PLM_CONTROL=6 val SCE_PLM_KEYWORD=7 # Lexical state for SCLEX_PROGRESS lex Progress=SCLEX_PROGRESS SCE_ABL_ val SCE_ABL_DEFAULT=0 val SCE_ABL_NUMBER=1 val SCE_ABL_WORD=2 val SCE_ABL_STRING=3 val SCE_ABL_CHARACTER=4 val SCE_ABL_PREPROCESSOR=5 val SCE_ABL_OPERATOR=6 val SCE_ABL_IDENTIFIER=7 val SCE_ABL_BLOCK=8 val SCE_ABL_END=9 val SCE_ABL_COMMENT=10 val SCE_ABL_TASKMARKER=11 val SCE_ABL_LINECOMMENT=12 # Lexical states for SCLEX_ABAQUS lex ABAQUS=SCLEX_ABAQUS SCE_ABAQUS_ val SCE_ABAQUS_DEFAULT=0 val SCE_ABAQUS_COMMENT=1 val SCE_ABAQUS_COMMENTBLOCK=2 val SCE_ABAQUS_NUMBER=3 val SCE_ABAQUS_STRING=4 val SCE_ABAQUS_OPERATOR=5 val SCE_ABAQUS_WORD=6 val SCE_ABAQUS_PROCESSOR=7 val SCE_ABAQUS_COMMAND=8 val SCE_ABAQUS_SLASHCOMMAND=9 val SCE_ABAQUS_STARCOMMAND=10 val SCE_ABAQUS_ARGUMENT=11 val SCE_ABAQUS_FUNCTION=12 # Lexical states for SCLEX_ASYMPTOTE lex Asymptote=SCLEX_ASYMPTOTE SCE_ASY_ val SCE_ASY_DEFAULT=0 val SCE_ASY_COMMENT=1 val SCE_ASY_COMMENTLINE=2 val SCE_ASY_NUMBER=3 val SCE_ASY_WORD=4 val SCE_ASY_STRING=5 val SCE_ASY_CHARACTER=6 val SCE_ASY_OPERATOR=7 val SCE_ASY_IDENTIFIER=8 val SCE_ASY_STRINGEOL=9 val SCE_ASY_COMMENTLINEDOC=10 val SCE_ASY_WORD2=11 # Lexical states for SCLEX_R lex R=SCLEX_R SCE_R_ val SCE_R_DEFAULT=0 val SCE_R_COMMENT=1 val SCE_R_KWORD=2 val SCE_R_BASEKWORD=3 val SCE_R_OTHERKWORD=4 val SCE_R_NUMBER=5 val SCE_R_STRING=6 val SCE_R_STRING2=7 val SCE_R_OPERATOR=8 val SCE_R_IDENTIFIER=9 val SCE_R_INFIX=10 val SCE_R_INFIXEOL=11 # Lexical state for SCLEX_MAGIK lex MagikSF=SCLEX_MAGIK SCE_MAGIK_ val SCE_MAGIK_DEFAULT=0 val SCE_MAGIK_COMMENT=1 val SCE_MAGIK_HYPER_COMMENT=16 val SCE_MAGIK_STRING=2 val SCE_MAGIK_CHARACTER=3 val SCE_MAGIK_NUMBER=4 val SCE_MAGIK_IDENTIFIER=5 val SCE_MAGIK_OPERATOR=6 val SCE_MAGIK_FLOW=7 val SCE_MAGIK_CONTAINER=8 val SCE_MAGIK_BRACKET_BLOCK=9 val SCE_MAGIK_BRACE_BLOCK=10 val SCE_MAGIK_SQBRACKET_BLOCK=11 val SCE_MAGIK_UNKNOWN_KEYWORD=12 val SCE_MAGIK_KEYWORD=13 val SCE_MAGIK_PRAGMA=14 val SCE_MAGIK_SYMBOL=15 # Lexical state for SCLEX_POWERSHELL lex PowerShell=SCLEX_POWERSHELL SCE_POWERSHELL_ val SCE_POWERSHELL_DEFAULT=0 val SCE_POWERSHELL_COMMENT=1 val SCE_POWERSHELL_STRING=2 val SCE_POWERSHELL_CHARACTER=3 val SCE_POWERSHELL_NUMBER=4 val SCE_POWERSHELL_VARIABLE=5 val SCE_POWERSHELL_OPERATOR=6 val SCE_POWERSHELL_IDENTIFIER=7 val SCE_POWERSHELL_KEYWORD=8 val SCE_POWERSHELL_CMDLET=9 val SCE_POWERSHELL_ALIAS=10 val SCE_POWERSHELL_FUNCTION=11 val SCE_POWERSHELL_USER1=12 val SCE_POWERSHELL_COMMENTSTREAM=13 val SCE_POWERSHELL_HERE_STRING=14 val SCE_POWERSHELL_HERE_CHARACTER=15 val SCE_POWERSHELL_COMMENTDOCKEYWORD=16 # Lexical state for SCLEX_MYSQL lex MySQL=SCLEX_MYSQL SCE_MYSQL_ val SCE_MYSQL_DEFAULT=0 val SCE_MYSQL_COMMENT=1 val SCE_MYSQL_COMMENTLINE=2 val SCE_MYSQL_VARIABLE=3 val SCE_MYSQL_SYSTEMVARIABLE=4 val SCE_MYSQL_KNOWNSYSTEMVARIABLE=5 val SCE_MYSQL_NUMBER=6 val SCE_MYSQL_MAJORKEYWORD=7 val SCE_MYSQL_KEYWORD=8 val SCE_MYSQL_DATABASEOBJECT=9 val SCE_MYSQL_PROCEDUREKEYWORD=10 val SCE_MYSQL_STRING=11 val SCE_MYSQL_SQSTRING=12 val SCE_MYSQL_DQSTRING=13 val SCE_MYSQL_OPERATOR=14 val SCE_MYSQL_FUNCTION=15 val SCE_MYSQL_IDENTIFIER=16 val SCE_MYSQL_QUOTEDIDENTIFIER=17 val SCE_MYSQL_USER1=18 val SCE_MYSQL_USER2=19 val SCE_MYSQL_USER3=20 val SCE_MYSQL_HIDDENCOMMAND=21 val SCE_MYSQL_PLACEHOLDER=22 # Lexical state for SCLEX_PO lex Po=SCLEX_PO SCE_PO_ val SCE_PO_DEFAULT=0 val SCE_PO_COMMENT=1 val SCE_PO_MSGID=2 val SCE_PO_MSGID_TEXT=3 val SCE_PO_MSGSTR=4 val SCE_PO_MSGSTR_TEXT=5 val SCE_PO_MSGCTXT=6 val SCE_PO_MSGCTXT_TEXT=7 val SCE_PO_FUZZY=8 val SCE_PO_PROGRAMMER_COMMENT=9 val SCE_PO_REFERENCE=10 val SCE_PO_FLAGS=11 val SCE_PO_MSGID_TEXT_EOL=12 val SCE_PO_MSGSTR_TEXT_EOL=13 val SCE_PO_MSGCTXT_TEXT_EOL=14 val SCE_PO_ERROR=15 # Lexical states for SCLEX_PASCAL lex Pascal=SCLEX_PASCAL SCE_PAS_ val SCE_PAS_DEFAULT=0 val SCE_PAS_IDENTIFIER=1 val SCE_PAS_COMMENT=2 val SCE_PAS_COMMENT2=3 val SCE_PAS_COMMENTLINE=4 val SCE_PAS_PREPROCESSOR=5 val SCE_PAS_PREPROCESSOR2=6 val SCE_PAS_NUMBER=7 val SCE_PAS_HEXNUMBER=8 val SCE_PAS_WORD=9 val SCE_PAS_STRING=10 val SCE_PAS_STRINGEOL=11 val SCE_PAS_CHARACTER=12 val SCE_PAS_OPERATOR=13 val SCE_PAS_ASM=14 # Lexical state for SCLEX_SORCUS lex SORCUS=SCLEX_SORCUS SCE_SORCUS_ val SCE_SORCUS_DEFAULT=0 val SCE_SORCUS_COMMAND=1 val SCE_SORCUS_PARAMETER=2 val SCE_SORCUS_COMMENTLINE=3 val SCE_SORCUS_STRING=4 val SCE_SORCUS_STRINGEOL=5 val SCE_SORCUS_IDENTIFIER=6 val SCE_SORCUS_OPERATOR=7 val SCE_SORCUS_NUMBER=8 val SCE_SORCUS_CONSTANT=9 # Lexical state for SCLEX_POWERPRO lex PowerPro=SCLEX_POWERPRO SCE_POWERPRO_ val SCE_POWERPRO_DEFAULT=0 val SCE_POWERPRO_COMMENTBLOCK=1 val SCE_POWERPRO_COMMENTLINE=2 val SCE_POWERPRO_NUMBER=3 val SCE_POWERPRO_WORD=4 val SCE_POWERPRO_WORD2=5 val SCE_POWERPRO_WORD3=6 val SCE_POWERPRO_WORD4=7 val SCE_POWERPRO_DOUBLEQUOTEDSTRING=8 val SCE_POWERPRO_SINGLEQUOTEDSTRING=9 val SCE_POWERPRO_LINECONTINUE=10 val SCE_POWERPRO_OPERATOR=11 val SCE_POWERPRO_IDENTIFIER=12 val SCE_POWERPRO_STRINGEOL=13 val SCE_POWERPRO_VERBATIM=14 val SCE_POWERPRO_ALTQUOTE=15 val SCE_POWERPRO_FUNCTION=16 # Lexical states for SCLEX_SML lex SML=SCLEX_SML SCE_SML_ val SCE_SML_DEFAULT=0 val SCE_SML_IDENTIFIER=1 val SCE_SML_TAGNAME=2 val SCE_SML_KEYWORD=3 val SCE_SML_KEYWORD2=4 val SCE_SML_KEYWORD3=5 val SCE_SML_LINENUM=6 val SCE_SML_OPERATOR=7 val SCE_SML_NUMBER=8 val SCE_SML_CHAR=9 val SCE_SML_STRING=11 val SCE_SML_COMMENT=12 val SCE_SML_COMMENT1=13 val SCE_SML_COMMENT2=14 val SCE_SML_COMMENT3=15 # Lexical state for SCLEX_MARKDOWN lex Markdown=SCLEX_MARKDOWN SCE_MARKDOWN_ val SCE_MARKDOWN_DEFAULT=0 val SCE_MARKDOWN_LINE_BEGIN=1 val SCE_MARKDOWN_STRONG1=2 val SCE_MARKDOWN_STRONG2=3 val SCE_MARKDOWN_EM1=4 val SCE_MARKDOWN_EM2=5 val SCE_MARKDOWN_HEADER1=6 val SCE_MARKDOWN_HEADER2=7 val SCE_MARKDOWN_HEADER3=8 val SCE_MARKDOWN_HEADER4=9 val SCE_MARKDOWN_HEADER5=10 val SCE_MARKDOWN_HEADER6=11 val SCE_MARKDOWN_PRECHAR=12 val SCE_MARKDOWN_ULIST_ITEM=13 val SCE_MARKDOWN_OLIST_ITEM=14 val SCE_MARKDOWN_BLOCKQUOTE=15 val SCE_MARKDOWN_STRIKEOUT=16 val SCE_MARKDOWN_HRULE=17 val SCE_MARKDOWN_LINK=18 val SCE_MARKDOWN_CODE=19 val SCE_MARKDOWN_CODE2=20 val SCE_MARKDOWN_CODEBK=21 # Lexical state for SCLEX_TXT2TAGS lex Txt2tags=SCLEX_TXT2TAGS SCE_TXT2TAGS_ val SCE_TXT2TAGS_DEFAULT=0 val SCE_TXT2TAGS_LINE_BEGIN=1 val SCE_TXT2TAGS_STRONG1=2 val SCE_TXT2TAGS_STRONG2=3 val SCE_TXT2TAGS_EM1=4 val SCE_TXT2TAGS_EM2=5 val SCE_TXT2TAGS_HEADER1=6 val SCE_TXT2TAGS_HEADER2=7 val SCE_TXT2TAGS_HEADER3=8 val SCE_TXT2TAGS_HEADER4=9 val SCE_TXT2TAGS_HEADER5=10 val SCE_TXT2TAGS_HEADER6=11 val SCE_TXT2TAGS_PRECHAR=12 val SCE_TXT2TAGS_ULIST_ITEM=13 val SCE_TXT2TAGS_OLIST_ITEM=14 val SCE_TXT2TAGS_BLOCKQUOTE=15 val SCE_TXT2TAGS_STRIKEOUT=16 val SCE_TXT2TAGS_HRULE=17 val SCE_TXT2TAGS_LINK=18 val SCE_TXT2TAGS_CODE=19 val SCE_TXT2TAGS_CODE2=20 val SCE_TXT2TAGS_CODEBK=21 val SCE_TXT2TAGS_COMMENT=22 val SCE_TXT2TAGS_OPTION=23 val SCE_TXT2TAGS_PREPROC=24 val SCE_TXT2TAGS_POSTPROC=25 # Lexical states for SCLEX_A68K lex A68k=SCLEX_A68K SCE_A68K_ val SCE_A68K_DEFAULT=0 val SCE_A68K_COMMENT=1 val SCE_A68K_NUMBER_DEC=2 val SCE_A68K_NUMBER_BIN=3 val SCE_A68K_NUMBER_HEX=4 val SCE_A68K_STRING1=5 val SCE_A68K_OPERATOR=6 val SCE_A68K_CPUINSTRUCTION=7 val SCE_A68K_EXTINSTRUCTION=8 val SCE_A68K_REGISTER=9 val SCE_A68K_DIRECTIVE=10 val SCE_A68K_MACRO_ARG=11 val SCE_A68K_LABEL=12 val SCE_A68K_STRING2=13 val SCE_A68K_IDENTIFIER=14 val SCE_A68K_MACRO_DECLARATION=15 val SCE_A68K_COMMENT_WORD=16 val SCE_A68K_COMMENT_SPECIAL=17 val SCE_A68K_COMMENT_DOXYGEN=18 # Lexical states for SCLEX_MODULA lex Modula=SCLEX_MODULA SCE_MODULA_ val SCE_MODULA_DEFAULT=0 val SCE_MODULA_COMMENT=1 val SCE_MODULA_DOXYCOMM=2 val SCE_MODULA_DOXYKEY=3 val SCE_MODULA_KEYWORD=4 val SCE_MODULA_RESERVED=5 val SCE_MODULA_NUMBER=6 val SCE_MODULA_BASENUM=7 val SCE_MODULA_FLOAT=8 val SCE_MODULA_STRING=9 val SCE_MODULA_STRSPEC=10 val SCE_MODULA_CHAR=11 val SCE_MODULA_CHARSPEC=12 val SCE_MODULA_PROC=13 val SCE_MODULA_PRAGMA=14 val SCE_MODULA_PRGKEY=15 val SCE_MODULA_OPERATOR=16 val SCE_MODULA_BADSTR=17 # Lexical states for SCLEX_COFFEESCRIPT lex CoffeeScript=SCLEX_COFFEESCRIPT SCE_COFFEESCRIPT_ val SCE_COFFEESCRIPT_DEFAULT=0 val SCE_COFFEESCRIPT_COMMENT=1 val SCE_COFFEESCRIPT_COMMENTLINE=2 val SCE_COFFEESCRIPT_COMMENTDOC=3 val SCE_COFFEESCRIPT_NUMBER=4 val SCE_COFFEESCRIPT_WORD=5 val SCE_COFFEESCRIPT_STRING=6 val SCE_COFFEESCRIPT_CHARACTER=7 val SCE_COFFEESCRIPT_UUID=8 val SCE_COFFEESCRIPT_PREPROCESSOR=9 val SCE_COFFEESCRIPT_OPERATOR=10 val SCE_COFFEESCRIPT_IDENTIFIER=11 val SCE_COFFEESCRIPT_STRINGEOL=12 val SCE_COFFEESCRIPT_VERBATIM=13 val SCE_COFFEESCRIPT_REGEX=14 val SCE_COFFEESCRIPT_COMMENTLINEDOC=15 val SCE_COFFEESCRIPT_WORD2=16 val SCE_COFFEESCRIPT_COMMENTDOCKEYWORD=17 val SCE_COFFEESCRIPT_COMMENTDOCKEYWORDERROR=18 val SCE_COFFEESCRIPT_GLOBALCLASS=19 val SCE_COFFEESCRIPT_STRINGRAW=20 val SCE_COFFEESCRIPT_TRIPLEVERBATIM=21 val SCE_COFFEESCRIPT_COMMENTBLOCK=22 val SCE_COFFEESCRIPT_VERBOSE_REGEX=23 val SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT=24 val SCE_COFFEESCRIPT_INSTANCEPROPERTY=25 # Lexical states for SCLEX_AVS lex AVS=SCLEX_AVS SCE_AVS_ val SCE_AVS_DEFAULT=0 val SCE_AVS_COMMENTBLOCK=1 val SCE_AVS_COMMENTBLOCKN=2 val SCE_AVS_COMMENTLINE=3 val SCE_AVS_NUMBER=4 val SCE_AVS_OPERATOR=5 val SCE_AVS_IDENTIFIER=6 val SCE_AVS_STRING=7 val SCE_AVS_TRIPLESTRING=8 val SCE_AVS_KEYWORD=9 val SCE_AVS_FILTER=10 val SCE_AVS_PLUGIN=11 val SCE_AVS_FUNCTION=12 val SCE_AVS_CLIPPROP=13 val SCE_AVS_USERDFN=14 # Lexical states for SCLEX_ECL lex ECL=SCLEX_ECL SCE_ECL_ val SCE_ECL_DEFAULT=0 val SCE_ECL_COMMENT=1 val SCE_ECL_COMMENTLINE=2 val SCE_ECL_NUMBER=3 val SCE_ECL_STRING=4 val SCE_ECL_WORD0=5 val SCE_ECL_OPERATOR=6 val SCE_ECL_CHARACTER=7 val SCE_ECL_UUID=8 val SCE_ECL_PREPROCESSOR=9 val SCE_ECL_UNKNOWN=10 val SCE_ECL_IDENTIFIER=11 val SCE_ECL_STRINGEOL=12 val SCE_ECL_VERBATIM=13 val SCE_ECL_REGEX=14 val SCE_ECL_COMMENTLINEDOC=15 val SCE_ECL_WORD1=16 val SCE_ECL_COMMENTDOCKEYWORD=17 val SCE_ECL_COMMENTDOCKEYWORDERROR=18 val SCE_ECL_WORD2=19 val SCE_ECL_WORD3=20 val SCE_ECL_WORD4=21 val SCE_ECL_WORD5=22 val SCE_ECL_COMMENTDOC=23 val SCE_ECL_ADDED=24 val SCE_ECL_DELETED=25 val SCE_ECL_CHANGED=26 val SCE_ECL_MOVED=27 # Lexical states for SCLEX_OSCRIPT lex OScript=SCLEX_OSCRIPT SCE_OSCRIPT_ val SCE_OSCRIPT_DEFAULT=0 val SCE_OSCRIPT_LINE_COMMENT=1 val SCE_OSCRIPT_BLOCK_COMMENT=2 val SCE_OSCRIPT_DOC_COMMENT=3 val SCE_OSCRIPT_PREPROCESSOR=4 val SCE_OSCRIPT_NUMBER=5 val SCE_OSCRIPT_SINGLEQUOTE_STRING=6 val SCE_OSCRIPT_DOUBLEQUOTE_STRING=7 val SCE_OSCRIPT_CONSTANT=8 val SCE_OSCRIPT_IDENTIFIER=9 val SCE_OSCRIPT_GLOBAL=10 val SCE_OSCRIPT_KEYWORD=11 val SCE_OSCRIPT_OPERATOR=12 val SCE_OSCRIPT_LABEL=13 val SCE_OSCRIPT_TYPE=14 val SCE_OSCRIPT_FUNCTION=15 val SCE_OSCRIPT_OBJECT=16 val SCE_OSCRIPT_PROPERTY=17 val SCE_OSCRIPT_METHOD=18 # Lexical states for SCLEX_VISUALPROLOG lex VisualProlog=SCLEX_VISUALPROLOG SCE_VISUALPROLOG_ val SCE_VISUALPROLOG_DEFAULT=0 val SCE_VISUALPROLOG_KEY_MAJOR=1 val SCE_VISUALPROLOG_KEY_MINOR=2 val SCE_VISUALPROLOG_KEY_DIRECTIVE=3 val SCE_VISUALPROLOG_COMMENT_BLOCK=4 val SCE_VISUALPROLOG_COMMENT_LINE=5 val SCE_VISUALPROLOG_COMMENT_KEY=6 val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7 val SCE_VISUALPROLOG_IDENTIFIER=8 val SCE_VISUALPROLOG_VARIABLE=9 val SCE_VISUALPROLOG_ANONYMOUS=10 val SCE_VISUALPROLOG_NUMBER=11 val SCE_VISUALPROLOG_OPERATOR=12 val SCE_VISUALPROLOG_CHARACTER=13 val SCE_VISUALPROLOG_CHARACTER_TOO_MANY=14 val SCE_VISUALPROLOG_CHARACTER_ESCAPE_ERROR=15 val SCE_VISUALPROLOG_STRING=16 val SCE_VISUALPROLOG_STRING_ESCAPE=17 val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=18 val SCE_VISUALPROLOG_STRING_EOL_OPEN=19 val SCE_VISUALPROLOG_STRING_VERBATIM=20 val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=21 val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=22 # Lexical states for SCLEX_STTXT lex StructuredText=SCLEX_STTXT SCE_STTXT_ val SCE_STTXT_DEFAULT=0 val SCE_STTXT_COMMENT=1 val SCE_STTXT_COMMENTLINE=2 val SCE_STTXT_KEYWORD=3 val SCE_STTXT_TYPE=4 val SCE_STTXT_FUNCTION=5 val SCE_STTXT_FB=6 val SCE_STTXT_NUMBER=7 val SCE_STTXT_HEXNUMBER=8 val SCE_STTXT_PRAGMA=9 val SCE_STTXT_OPERATOR=10 val SCE_STTXT_CHARACTER=11 val SCE_STTXT_STRING1=12 val SCE_STTXT_STRING2=13 val SCE_STTXT_STRINGEOL=14 val SCE_STTXT_IDENTIFIER=15 val SCE_STTXT_DATETIME=16 val SCE_STTXT_VARS=17 val SCE_STTXT_PRAGMAS=18 # Lexical states for SCLEX_KVIRC lex KVIrc=SCLEX_KVIRC SCE_KVIRC_ val SCE_KVIRC_DEFAULT=0 val SCE_KVIRC_COMMENT=1 val SCE_KVIRC_COMMENTBLOCK=2 val SCE_KVIRC_STRING=3 val SCE_KVIRC_WORD=4 val SCE_KVIRC_KEYWORD=5 val SCE_KVIRC_FUNCTION_KEYWORD=6 val SCE_KVIRC_FUNCTION=7 val SCE_KVIRC_VARIABLE=8 val SCE_KVIRC_NUMBER=9 val SCE_KVIRC_OPERATOR=10 val SCE_KVIRC_STRING_FUNCTION=11 val SCE_KVIRC_STRING_VARIABLE=12 # Lexical states for SCLEX_RUST lex Rust=SCLEX_RUST SCE_RUST_ val SCE_RUST_DEFAULT=0 val SCE_RUST_COMMENTBLOCK=1 val SCE_RUST_COMMENTLINE=2 val SCE_RUST_COMMENTBLOCKDOC=3 val SCE_RUST_COMMENTLINEDOC=4 val SCE_RUST_NUMBER=5 val SCE_RUST_WORD=6 val SCE_RUST_WORD2=7 val SCE_RUST_WORD3=8 val SCE_RUST_WORD4=9 val SCE_RUST_WORD5=10 val SCE_RUST_WORD6=11 val SCE_RUST_WORD7=12 val SCE_RUST_STRING=13 val SCE_RUST_STRINGR=14 val SCE_RUST_CHARACTER=15 val SCE_RUST_OPERATOR=16 val SCE_RUST_IDENTIFIER=17 val SCE_RUST_LIFETIME=18 val SCE_RUST_MACRO=19 val SCE_RUST_LEXERROR=20 val SCE_RUST_BYTESTRING=21 val SCE_RUST_BYTESTRINGR=22 val SCE_RUST_BYTECHARACTER=23 # Lexical states for SCLEX_DMAP lex DMAP=SCLEX_DMAP SCE_DMAP_ val SCE_DMAP_DEFAULT=0 val SCE_DMAP_COMMENT=1 val SCE_DMAP_NUMBER=2 val SCE_DMAP_STRING1=3 val SCE_DMAP_STRING2=4 val SCE_DMAP_STRINGEOL=5 val SCE_DMAP_OPERATOR=6 val SCE_DMAP_IDENTIFIER=7 val SCE_DMAP_WORD=8 val SCE_DMAP_WORD2=9 val SCE_DMAP_WORD3=10 # Lexical states for SCLEX_DMIS lex DMIS=SCLEX_DMIS SCE_DMIS_ val SCE_DMIS_DEFAULT=0 val SCE_DMIS_COMMENT=1 val SCE_DMIS_STRING=2 val SCE_DMIS_NUMBER=3 val SCE_DMIS_KEYWORD=4 val SCE_DMIS_MAJORWORD=5 val SCE_DMIS_MINORWORD=6 val SCE_DMIS_UNSUPPORTED_MAJOR=7 val SCE_DMIS_UNSUPPORTED_MINOR=8 val SCE_DMIS_LABEL=9 # Lexical states for SCLEX_REGISTRY lex REG=SCLEX_REGISTRY SCE_REG_ val SCE_REG_DEFAULT=0 val SCE_REG_COMMENT=1 val SCE_REG_VALUENAME=2 val SCE_REG_STRING=3 val SCE_REG_HEXDIGIT=4 val SCE_REG_VALUETYPE=5 val SCE_REG_ADDEDKEY=6 val SCE_REG_DELETEDKEY=7 val SCE_REG_ESCAPED=8 val SCE_REG_KEYPATH_GUID=9 val SCE_REG_STRING_GUID=10 val SCE_REG_PARAMETER=11 val SCE_REG_OPERATOR=12 # Lexical state for SCLEX_BIBTEX lex BibTeX=SCLEX_BIBTEX SCE_BIBTEX_ val SCE_BIBTEX_DEFAULT=0 val SCE_BIBTEX_ENTRY=1 val SCE_BIBTEX_UNKNOWN_ENTRY=2 val SCE_BIBTEX_KEY=3 val SCE_BIBTEX_PARAMETER=4 val SCE_BIBTEX_VALUE=5 val SCE_BIBTEX_COMMENT=6 # Lexical state for SCLEX_SREC lex Srec=SCLEX_SREC SCE_HEX_ val SCE_HEX_DEFAULT=0 val SCE_HEX_RECSTART=1 val SCE_HEX_RECTYPE=2 val SCE_HEX_RECTYPE_UNKNOWN=3 val SCE_HEX_BYTECOUNT=4 val SCE_HEX_BYTECOUNT_WRONG=5 val SCE_HEX_NOADDRESS=6 val SCE_HEX_DATAADDRESS=7 val SCE_HEX_RECCOUNT=8 val SCE_HEX_STARTADDRESS=9 val SCE_HEX_ADDRESSFIELD_UNKNOWN=10 val SCE_HEX_EXTENDEDADDRESS=11 val SCE_HEX_DATA_ODD=12 val SCE_HEX_DATA_EVEN=13 val SCE_HEX_DATA_UNKNOWN=14 val SCE_HEX_DATA_EMPTY=15 val SCE_HEX_CHECKSUM=16 val SCE_HEX_CHECKSUM_WRONG=17 val SCE_HEX_GARBAGE=18 # Lexical state for SCLEX_IHEX (shared with Srec) lex IHex=SCLEX_IHEX SCE_HEX_ # Lexical state for SCLEX_TEHEX (shared with Srec) lex TEHex=SCLEX_TEHEX SCE_HEX_ # Lexical states for SCLEX_JSON lex JSON=SCLEX_JSON SCE_JSON_ val SCE_JSON_DEFAULT=0 val SCE_JSON_NUMBER=1 val SCE_JSON_STRING=2 val SCE_JSON_STRINGEOL=3 val SCE_JSON_PROPERTYNAME=4 val SCE_JSON_ESCAPESEQUENCE=5 val SCE_JSON_LINECOMMENT=6 val SCE_JSON_BLOCKCOMMENT=7 val SCE_JSON_OPERATOR=8 val SCE_JSON_URI=9 val SCE_JSON_COMPACTIRI=10 val SCE_JSON_KEYWORD=11 val SCE_JSON_LDKEYWORD=12 val SCE_JSON_ERROR=13 lex EDIFACT=SCLEX_EDIFACT SCE_EDI_ val SCE_EDI_DEFAULT=0 val SCE_EDI_SEGMENTSTART=1 val SCE_EDI_SEGMENTEND=2 val SCE_EDI_SEP_ELEMENT=3 val SCE_EDI_SEP_COMPOSITE=4 val SCE_EDI_SEP_RELEASE=5 val SCE_EDI_UNA=6 val SCE_EDI_UNH=7 val SCE_EDI_BADSEGMENT=8 # Events evt void StyleNeeded=2000(int position) evt void CharAdded=2001(int ch) evt void SavePointReached=2002(void) evt void SavePointLeft=2003(void) evt void ModifyAttemptRO=2004(void) # GTK+ Specific to work around focus and accelerator problems: evt void Key=2005(int ch, int modifiers) evt void DoubleClick=2006(int modifiers, int position, int line) evt void UpdateUI=2007(int updated) evt void Modified=2008(int position, int modificationType, string text, int length, int linesAdded, int line, int foldLevelNow, int foldLevelPrev, int token, int annotationLinesAdded) evt void MacroRecord=2009(int message, int wParam, int lParam) evt void MarginClick=2010(int modifiers, int position, int margin) evt void NeedShown=2011(int position, int length) evt void Painted=2013(void) evt void UserListSelection=2014(int listType, string text, int position, int ch, CompletionMethods listCompletionMethod) evt void URIDropped=2015(string text) evt void DwellStart=2016(int position, int x, int y) evt void DwellEnd=2017(int position, int x, int y) evt void Zoom=2018(void) evt void HotSpotClick=2019(int modifiers, int position) evt void HotSpotDoubleClick=2020(int modifiers, int position) evt void CallTipClick=2021(int position) evt void AutoCSelection=2022(string text, int position, int ch, CompletionMethods listCompletionMethod) evt void IndicatorClick=2023(int modifiers, int position) evt void IndicatorRelease=2024(int modifiers, int position) evt void AutoCCancelled=2025(void) evt void AutoCCharDeleted=2026(void) evt void HotSpotReleaseClick=2027(int modifiers, int position) evt void FocusIn=2028(void) evt void FocusOut=2029(void) evt void AutoCCompleted=2030(string text, int position, int ch, CompletionMethods listCompletionMethod) evt void MarginRightClick=2031(int modifiers, int position, int margin) # There are no provisional APIs currently, but some arguments to SCI_SETTECHNOLOGY are provisional. cat Provisional cat Deprecated # Deprecated in 3.5.5 # Always interpret keyboard input as Unicode set void SetKeysUnicode=2521(bool keysUnicode,) # Are keys always interpreted as Unicode? get bool GetKeysUnicode=2522(,) codequery-0.21.0/scintilla/include/ScintillaWidget.h000066400000000000000000000051261310136352400224400ustar00rootroot00000000000000/* Scintilla source code edit control */ /* @file ScintillaWidget.h * Definition of Scintilla widget for GTK+. * Only needed by GTK+ code but is harmless on other platforms. * This comment is not a doc-comment as that causes warnings from g-ir-scanner. */ /* Copyright 1998-2001 by Neil Hodgson * The License.txt file describes the conditions under which this software may be distributed. */ #ifndef SCINTILLAWIDGET_H #define SCINTILLAWIDGET_H #if defined(GTK) #ifdef __cplusplus extern "C" { #endif #define SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, scintilla_get_type (), ScintillaObject) #define SCINTILLA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass) #define IS_SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, scintilla_get_type ()) #define SCINTILLA_TYPE_OBJECT (scintilla_object_get_type()) #define SCINTILLA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SCINTILLA_TYPE_OBJECT, ScintillaObject)) #define SCINTILLA_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCINTILLA_TYPE_OBJECT)) #define SCINTILLA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SCINTILLA_TYPE_OBJECT, ScintillaObjectClass)) #define SCINTILLA_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SCINTILLA_TYPE_OBJECT)) #define SCINTILLA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SCINTILLA_TYPE_OBJECT, ScintillaObjectClass)) typedef struct _ScintillaObject ScintillaObject; typedef struct _ScintillaClass ScintillaObjectClass; struct _ScintillaObject { GtkContainer cont; void *pscin; }; struct _ScintillaClass { GtkContainerClass parent_class; void (* command) (ScintillaObject *sci, int cmd, GtkWidget *window); void (* notify) (ScintillaObject *sci, int id, SCNotification *scn); }; GType scintilla_object_get_type (void); GtkWidget* scintilla_object_new (void); gintptr scintilla_object_send_message (ScintillaObject *sci, unsigned int iMessage, guintptr wParam, gintptr lParam); GType scnotification_get_type (void); #define SCINTILLA_TYPE_NOTIFICATION (scnotification_get_type()) #ifndef G_IR_SCANNING /* The legacy names confuse the g-ir-scanner program */ typedef struct _ScintillaClass ScintillaClass; GType scintilla_get_type (void); GtkWidget* scintilla_new (void); void scintilla_set_id (ScintillaObject *sci, uptr_t id); sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam); void scintilla_release_resources(void); #endif #define SCINTILLA_NOTIFY "sci-notify" #ifdef __cplusplus } #endif #endif #endif codequery-0.21.0/scintilla/lexers/000077500000000000000000000000001310136352400170545ustar00rootroot00000000000000codequery-0.21.0/scintilla/lexers/LexA68k.cxx000066400000000000000000000303411310136352400207630ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexA68k.cxx ** Lexer for Assembler, just for the MASM syntax ** Written by Martial Demolins AKA Folco **/ // Copyright 2010 Martial Demolins // The License.txt file describes the conditions under which this software // may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Return values for GetOperatorType #define NO_OPERATOR 0 #define OPERATOR_1CHAR 1 #define OPERATOR_2CHAR 2 /** * IsIdentifierStart * * Return true if the given char is a valid identifier first char */ static inline bool IsIdentifierStart (const int ch) { return (isalpha(ch) || (ch == '_') || (ch == '\\')); } /** * IsIdentifierChar * * Return true if the given char is a valid identifier char */ static inline bool IsIdentifierChar (const int ch) { return (isalnum(ch) || (ch == '_') || (ch == '@') || (ch == ':') || (ch == '.')); } /** * GetOperatorType * * Return: * NO_OPERATOR if char is not an operator * OPERATOR_1CHAR if the operator is one char long * OPERATOR_2CHAR if the operator is two chars long */ static inline int GetOperatorType (const int ch1, const int ch2) { int OpType = NO_OPERATOR; if ((ch1 == '+') || (ch1 == '-') || (ch1 == '*') || (ch1 == '/') || (ch1 == '#') || (ch1 == '(') || (ch1 == ')') || (ch1 == '~') || (ch1 == '&') || (ch1 == '|') || (ch1 == ',')) OpType = OPERATOR_1CHAR; else if ((ch1 == ch2) && (ch1 == '<' || ch1 == '>')) OpType = OPERATOR_2CHAR; return OpType; } /** * IsBin * * Return true if the given char is 0 or 1 */ static inline bool IsBin (const int ch) { return (ch == '0') || (ch == '1'); } /** * IsDoxygenChar * * Return true if the char may be part of a Doxygen keyword */ static inline bool IsDoxygenChar (const int ch) { return isalpha(ch) || (ch == '$') || (ch == '[') || (ch == ']') || (ch == '{') || (ch == '}'); } /** * ColouriseA68kDoc * * Main function, which colourises a 68k source */ static void ColouriseA68kDoc (Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { // Used to buffer a string, to be able to compare it using built-in functions char Buffer[100]; // Used to know the length of an operator int OpType; // Get references to keywords lists WordList &cpuInstruction = *keywordlists[0]; WordList ®isters = *keywordlists[1]; WordList &directive = *keywordlists[2]; WordList &extInstruction = *keywordlists[3]; WordList &alert = *keywordlists[4]; WordList &doxygenKeyword = *keywordlists[5]; // Instanciate a context for our source StyleContext sc(startPos, length, initStyle, styler); /************************************************************ * * Parse the source * ************************************************************/ for ( ; sc.More(); sc.Forward()) { /************************************************************ * * A style always terminates at the end of a line, even for * comments (no multi-lines comments) * ************************************************************/ if (sc.atLineStart) { sc.SetState(SCE_A68K_DEFAULT); } /************************************************************ * * If we are not in "default style", check if the style continues * In this case, we just have to loop * ************************************************************/ if (sc.state != SCE_A68K_DEFAULT) { if ( ((sc.state == SCE_A68K_NUMBER_DEC) && isdigit(sc.ch)) // Decimal number || ((sc.state == SCE_A68K_NUMBER_BIN) && IsBin(sc.ch)) // Binary number || ((sc.state == SCE_A68K_NUMBER_HEX) && isxdigit(sc.ch)) // Hexa number || ((sc.state == SCE_A68K_MACRO_ARG) && isdigit(sc.ch)) // Macro argument || ((sc.state == SCE_A68K_STRING1) && (sc.ch != '\'')) // String single-quoted || ((sc.state == SCE_A68K_STRING2) && (sc.ch != '\"')) // String double-quoted || ((sc.state == SCE_A68K_MACRO_DECLARATION) && IsIdentifierChar(sc.ch)) // Macro declaration (or global label, we don't know at this point) || ((sc.state == SCE_A68K_IDENTIFIER) && IsIdentifierChar(sc.ch)) // Identifier || ((sc.state == SCE_A68K_LABEL) && IsIdentifierChar(sc.ch)) // Label (local) || ((sc.state == SCE_A68K_COMMENT_DOXYGEN) && IsDoxygenChar(sc.ch)) // Doxygen keyword || ((sc.state == SCE_A68K_COMMENT_SPECIAL) && isalpha(sc.ch)) // Alert || ((sc.state == SCE_A68K_COMMENT) && !isalpha(sc.ch) && (sc.ch != '\\'))) // Normal comment { continue; } /************************************************************ * * Check if current state terminates * ************************************************************/ // Strings: include terminal ' or " in the current string by skipping it if ((sc.state == SCE_A68K_STRING1) || (sc.state == SCE_A68K_STRING2)) { sc.Forward(); } // If a macro declaration was terminated with ':', it was a label else if ((sc.state == SCE_A68K_MACRO_DECLARATION) && (sc.chPrev == ':')) { sc.ChangeState(SCE_A68K_LABEL); } // If it wasn't a Doxygen keyword, change it to normal comment else if (sc.state == SCE_A68K_COMMENT_DOXYGEN) { sc.GetCurrent(Buffer, sizeof(Buffer)); if (!doxygenKeyword.InList(Buffer)) { sc.ChangeState(SCE_A68K_COMMENT); } sc.SetState(SCE_A68K_COMMENT); continue; } // If it wasn't an Alert, change it to normal comment else if (sc.state == SCE_A68K_COMMENT_SPECIAL) { sc.GetCurrent(Buffer, sizeof(Buffer)); if (!alert.InList(Buffer)) { sc.ChangeState(SCE_A68K_COMMENT); } // Reset style to normal comment, or to Doxygen keyword if it begins with '\' if (sc.ch == '\\') { sc.SetState(SCE_A68K_COMMENT_DOXYGEN); } else { sc.SetState(SCE_A68K_COMMENT); } continue; } // If we are in a comment, it's a Doxygen keyword or an Alert else if (sc.state == SCE_A68K_COMMENT) { if (sc.ch == '\\') { sc.SetState(SCE_A68K_COMMENT_DOXYGEN); } else { sc.SetState(SCE_A68K_COMMENT_SPECIAL); } continue; } // Check if we are at the end of an identifier // In this case, colourise it if was a keyword. else if ((sc.state == SCE_A68K_IDENTIFIER) && !IsIdentifierChar(sc.ch)) { sc.GetCurrentLowered(Buffer, sizeof(Buffer)); // Buffer the string of the current context if (cpuInstruction.InList(Buffer)) { // And check if it belongs to a keyword list sc.ChangeState(SCE_A68K_CPUINSTRUCTION); } else if (extInstruction.InList(Buffer)) { sc.ChangeState(SCE_A68K_EXTINSTRUCTION); } else if (registers.InList(Buffer)) { sc.ChangeState(SCE_A68K_REGISTER); } else if (directive.InList(Buffer)) { sc.ChangeState(SCE_A68K_DIRECTIVE); } } // All special contexts are now handled.Come back to default style sc.SetState(SCE_A68K_DEFAULT); } /************************************************************ * * Check if we must enter a new state * ************************************************************/ // Something which begins at the beginning of a line, and with // - '\' + an identifier start char, or // - '\\@' + an identifier start char // is a local label (second case is used for macro local labels). We set it already as a label, it can't be a macro/equ declaration if (sc.atLineStart && (sc.ch < 0x80) && IsIdentifierStart(sc.chNext) && (sc.ch == '\\')) { sc.SetState(SCE_A68K_LABEL); } if (sc.atLineStart && (sc.ch < 0x80) && (sc.ch == '\\') && (sc.chNext == '\\')) { sc.Forward(2); if ((sc.ch == '@') && IsIdentifierStart(sc.chNext)) { sc.ChangeState(SCE_A68K_LABEL); sc.SetState(SCE_A68K_LABEL); } } // Label and macro identifiers start at the beginning of a line // We set both as a macro id, but if it wasn't one (':' at the end), // it will be changed as a label. if (sc.atLineStart && (sc.ch < 0x80) && IsIdentifierStart(sc.ch)) { sc.SetState(SCE_A68K_MACRO_DECLARATION); } else if ((sc.ch < 0x80) && (sc.ch == ';')) { // Default: alert in a comment. If it doesn't match sc.SetState(SCE_A68K_COMMENT); // with an alert, it will be toggle to a normal comment } else if ((sc.ch < 0x80) && isdigit(sc.ch)) { // Decimal numbers haven't prefix sc.SetState(SCE_A68K_NUMBER_DEC); } else if ((sc.ch < 0x80) && (sc.ch == '%')) { // Binary numbers are prefixed with '%' sc.SetState(SCE_A68K_NUMBER_BIN); } else if ((sc.ch < 0x80) && (sc.ch == '$')) { // Hexadecimal numbers are prefixed with '$' sc.SetState(SCE_A68K_NUMBER_HEX); } else if ((sc.ch < 0x80) && (sc.ch == '\'')) { // String (single-quoted) sc.SetState(SCE_A68K_STRING1); } else if ((sc.ch < 0x80) && (sc.ch == '\"')) { // String (double-quoted) sc.SetState(SCE_A68K_STRING2); } else if ((sc.ch < 0x80) && (sc.ch == '\\') && (isdigit(sc.chNext))) { // Replacement symbols in macro are prefixed with '\' sc.SetState(SCE_A68K_MACRO_ARG); } else if ((sc.ch < 0x80) && IsIdentifierStart(sc.ch)) { // An identifier: constant, label, etc... sc.SetState(SCE_A68K_IDENTIFIER); } else { if (sc.ch < 0x80) { OpType = GetOperatorType(sc.ch, sc.chNext); // Check if current char is an operator if (OpType != NO_OPERATOR) { sc.SetState(SCE_A68K_OPERATOR); if (OpType == OPERATOR_2CHAR) { // Check if the operator is 2 bytes long sc.ForwardSetState(SCE_A68K_OPERATOR); // (>> or <<) } } } } } // End of for() sc.Complete(); } // Names of the keyword lists static const char * const a68kWordListDesc[] = { "CPU instructions", "Registers", "Directives", "Extended instructions", "Comment special words", "Doxygen keywords", 0 }; LexerModule lmA68k(SCLEX_A68K, ColouriseA68kDoc, "a68k", 0, a68kWordListDesc); codequery-0.21.0/scintilla/lexers/LexAPDL.cxx000066400000000000000000000170341310136352400207760ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexAPDL.cxx ** Lexer for APDL. Based on the lexer for Assembler by The Black Horus. ** By Hadar Raz. **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80 && (isalnum(ch) || ch == '_')); } static inline bool IsAnOperator(char ch) { // '.' left out as it is used to make up numbers if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '^' || ch == '[' || ch == ']' || ch == '<' || ch == '&' || ch == '>' || ch == ',' || ch == '|' || ch == '~' || ch == '$' || ch == ':' || ch == '%') return true; return false; } static void ColouriseAPDLDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { int stringStart = ' '; WordList &processors = *keywordlists[0]; WordList &commands = *keywordlists[1]; WordList &slashcommands = *keywordlists[2]; WordList &starcommands = *keywordlists[3]; WordList &arguments = *keywordlists[4]; WordList &functions = *keywordlists[5]; // Do not leak onto next line initStyle = SCE_APDL_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Determine if the current state should terminate. if (sc.state == SCE_APDL_NUMBER) { if (!(IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) { sc.SetState(SCE_APDL_DEFAULT); } } else if (sc.state == SCE_APDL_COMMENT) { if (sc.atLineEnd) { sc.SetState(SCE_APDL_DEFAULT); } } else if (sc.state == SCE_APDL_COMMENTBLOCK) { if (sc.atLineEnd) { if (sc.ch == '\r') { sc.Forward(); } sc.ForwardSetState(SCE_APDL_DEFAULT); } } else if (sc.state == SCE_APDL_STRING) { if (sc.atLineEnd) { sc.SetState(SCE_APDL_DEFAULT); } else if ((sc.ch == '\'' && stringStart == '\'') || (sc.ch == '\"' && stringStart == '\"')) { sc.ForwardSetState(SCE_APDL_DEFAULT); } } else if (sc.state == SCE_APDL_WORD) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (processors.InList(s)) { sc.ChangeState(SCE_APDL_PROCESSOR); } else if (slashcommands.InList(s)) { sc.ChangeState(SCE_APDL_SLASHCOMMAND); } else if (starcommands.InList(s)) { sc.ChangeState(SCE_APDL_STARCOMMAND); } else if (commands.InList(s)) { sc.ChangeState(SCE_APDL_COMMAND); } else if (arguments.InList(s)) { sc.ChangeState(SCE_APDL_ARGUMENT); } else if (functions.InList(s)) { sc.ChangeState(SCE_APDL_FUNCTION); } sc.SetState(SCE_APDL_DEFAULT); } } else if (sc.state == SCE_APDL_OPERATOR) { if (!IsAnOperator(static_cast(sc.ch))) { sc.SetState(SCE_APDL_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_APDL_DEFAULT) { if (sc.ch == '!' && sc.chNext == '!') { sc.SetState(SCE_APDL_COMMENTBLOCK); } else if (sc.ch == '!') { sc.SetState(SCE_APDL_COMMENT); } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_APDL_NUMBER); } else if (sc.ch == '\'' || sc.ch == '\"') { sc.SetState(SCE_APDL_STRING); stringStart = sc.ch; } else if (IsAWordChar(sc.ch) || ((sc.ch == '*' || sc.ch == '/') && !isgraph(sc.chPrev))) { sc.SetState(SCE_APDL_WORD); } else if (IsAnOperator(static_cast(sc.ch))) { sc.SetState(SCE_APDL_OPERATOR); } } } sc.Complete(); } //------------------------------------------------------------------------------ // 06-27-07 Sergio Lucato // - Included code folding for Ansys APDL lexer // - Copyied from LexBasic.cxx and modified for APDL //------------------------------------------------------------------------------ /* Bits: * 1 - whitespace * 2 - operator * 4 - identifier * 8 - decimal digit * 16 - hex digit * 32 - bin digit */ static int character_classification[128] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 10, 6, 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 0 }; static bool IsSpace(int c) { return c < 128 && (character_classification[c] & 1); } static bool IsIdentifier(int c) { return c < 128 && (character_classification[c] & 4); } static int LowerCase(int c) { if (c >= 'A' && c <= 'Z') return 'a' + c - 'A'; return c; } static int CheckAPDLFoldPoint(char const *token, int &level) { if (!strcmp(token, "*if") || !strcmp(token, "*do") || !strcmp(token, "*dowhile") ) { level |= SC_FOLDLEVELHEADERFLAG; return 1; } if (!strcmp(token, "*endif") || !strcmp(token, "*enddo") ) { return -1; } return 0; } static void FoldAPDLDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position line = styler.GetLine(startPos); int level = styler.LevelAt(line); int go = 0, done = 0; Sci_Position endPos = startPos + length; char word[256]; int wordlen = 0; Sci_Position i; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; // Scan for tokens at the start of the line (they may include // whitespace, for tokens like "End Function" for (i = startPos; i < endPos; i++) { int c = styler.SafeGetCharAt(i); if (!done && !go) { if (wordlen) { // are we scanning a token already? word[wordlen] = static_cast(LowerCase(c)); if (!IsIdentifier(c)) { // done with token word[wordlen] = '\0'; go = CheckAPDLFoldPoint(word, level); if (!go) { // Treat any whitespace as single blank, for // things like "End Function". if (IsSpace(c) && IsIdentifier(word[wordlen - 1])) { word[wordlen] = ' '; if (wordlen < 255) wordlen++; } else // done with this line done = 1; } } else if (wordlen < 255) { wordlen++; } } else { // start scanning at first non-whitespace character if (!IsSpace(c)) { if (IsIdentifier(c)) { word[0] = static_cast(LowerCase(c)); wordlen = 1; } else // done with this line done = 1; } } } if (c == '\n') { // line end if (!done && wordlen == 0 && foldCompact) // line was only space level |= SC_FOLDLEVELWHITEFLAG; if (level != styler.LevelAt(line)) styler.SetLevel(line, level); level += go; line++; // reset state wordlen = 0; level &= ~SC_FOLDLEVELHEADERFLAG; level &= ~SC_FOLDLEVELWHITEFLAG; go = 0; done = 0; } } } static const char * const apdlWordListDesc[] = { "processors", "commands", "slashommands", "starcommands", "arguments", "functions", 0 }; LexerModule lmAPDL(SCLEX_APDL, ColouriseAPDLDoc, "apdl", FoldAPDLDoc, apdlWordListDesc); codequery-0.21.0/scintilla/lexers/LexASY.cxx000066400000000000000000000163411310136352400207120ustar00rootroot00000000000000// Scintilla source code edit control //Author: instanton (email: soft_share126com) // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static void ColouriseAsyDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); CharacterSet setWord(CharacterSet::setAlphaNum, "._", 0x80, true); int visibleChars = 0; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.atLineStart) { if (sc.state == SCE_ASY_STRING) { sc.SetState(SCE_ASY_STRING); } visibleChars = 0; } if (sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } // continuationLine = true; continue; } } // Determine if the current state should terminate. switch (sc.state) { case SCE_ASY_OPERATOR: sc.SetState(SCE_ASY_DEFAULT); break; case SCE_ASY_NUMBER: if (!setWord.Contains(sc.ch)) { sc.SetState(SCE_ASY_DEFAULT); } break; case SCE_ASY_IDENTIFIER: if (!setWord.Contains(sc.ch) || (sc.ch == '.')) { char s[1000]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_ASY_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_ASY_WORD2); } sc.SetState(SCE_ASY_DEFAULT); } break; case SCE_ASY_COMMENT: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_ASY_DEFAULT); } break; case SCE_ASY_COMMENTLINE: if (sc.atLineStart) { sc.SetState(SCE_ASY_DEFAULT); } break; case SCE_ASY_STRING: if (sc.atLineEnd) { sc.ChangeState(SCE_ASY_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_ASY_DEFAULT); } break; case SCE_ASY_CHARACTER: if (sc.atLineEnd) { sc.ChangeState(SCE_ASY_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_ASY_DEFAULT); } break; } // Determine if a new state should be entered. if (sc.state == SCE_ASY_DEFAULT) { if (setWordStart.Contains(sc.ch) || (sc.ch == '@')) { sc.SetState(SCE_ASY_IDENTIFIER); } else if (sc.Match('/', '*')) { sc.SetState(SCE_ASY_COMMENT); sc.Forward(); // } else if (sc.Match('/', '/')) { sc.SetState(SCE_ASY_COMMENTLINE); } else if (sc.ch == '\"') { sc.SetState(SCE_ASY_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_ASY_CHARACTER); } else if (sc.ch == '#' && visibleChars == 0) { do { sc.Forward(); } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); if (sc.atLineEnd) { sc.SetState(SCE_ASY_DEFAULT); } } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_ASY_OPERATOR); } } } sc.Complete(); } static bool IsAsyCommentStyle(int style) { return style == SCE_ASY_COMMENT; } static inline bool isASYidentifier(int ch) { return ((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z')) ; } static int ParseASYWord(Sci_PositionU pos, Accessor &styler, char *word) { int length=0; char ch=styler.SafeGetCharAt(pos); *word=0; while(isASYidentifier(ch) && length<100){ word[length]=ch; length++; ch=styler.SafeGetCharAt(pos+length); } word[length]=0; return length; } static bool IsASYDrawingLine(Sci_Position line, Accessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; Sci_Position startpos = pos; char buffer[100]=""; while (startpos 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelMinCurrent = levelCurrent; int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (foldComment && IsAsyCommentStyle(style)) { if (!IsAsyCommentStyle(stylePrev) && (stylePrev != SCE_ASY_COMMENTLINEDOC)) { levelNext++; } else if (!IsAsyCommentStyle(styleNext) && (styleNext != SCE_ASY_COMMENTLINEDOC) && !atEOL) { levelNext--; } } if (style == SCE_ASY_OPERATOR) { if (ch == '{') { if (levelMinCurrent > levelNext) { levelMinCurrent = levelNext; } levelNext++; } else if (ch == '}') { levelNext--; } } if (atEOL && IsASYDrawingLine(lineCurrent, styler)){ if (lineCurrent==0 && IsASYDrawingLine(lineCurrent + 1, styler)) levelNext++; else if (lineCurrent!=0 && !IsASYDrawingLine(lineCurrent - 1, styler) && IsASYDrawingLine(lineCurrent + 1, styler) ) levelNext++; else if (lineCurrent!=0 && IsASYDrawingLine(lineCurrent - 1, styler) && !IsASYDrawingLine(lineCurrent+1, styler)) levelNext--; } if (atEOL) { int levelUse = levelCurrent; if (foldAtElse) { levelUse = levelMinCurrent; } int lev = levelUse | levelNext << 16; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelCurrent = levelNext; levelMinCurrent = levelCurrent; visibleChars = 0; } if (!IsASpace(ch)) visibleChars++; } } static const char * const asyWordLists[] = { "Primary keywords and identifiers", "Secondary keywords and identifiers", 0, }; LexerModule lmASY(SCLEX_ASYMPTOTE, ColouriseAsyDoc, "asy", FoldAsyDoc, asyWordLists); codequery-0.21.0/scintilla/lexers/LexAU3.cxx000066400000000000000000000715121310136352400206470ustar00rootroot00000000000000// Scintilla source code edit control // @file LexAU3.cxx // Lexer for AutoIt3 http://www.hiddensoft.com/autoit3 // by Jos van der Zande, jvdzande@yahoo.com // // Changes: // March 28, 2004 - Added the standard Folding code // April 21, 2004 - Added Preprosessor Table + Syntax Highlighting // Fixed Number highlighting // Changed default isoperator to IsAOperator to have a better match to AutoIt3 // Fixed "#comments_start" -> "#comments-start" // Fixed "#comments_end" -> "#comments-end" // Fixed Sendkeys in Strings when not terminated with } // Added support for Sendkey strings that have second parameter e.g. {UP 5} or {a down} // April 26, 2004 - Fixed # pre-processor statement inside of comment block would invalidly change the color. // Added logic for #include to treat the <> as string // Added underscore to IsAOperator. // May 17, 2004 - Changed the folding logic from indent to keyword folding. // Added Folding logic for blocks of single-commentlines or commentblock. // triggered by: fold.comment=1 // Added Folding logic for preprocessor blocks triggered by fold.preprocessor=1 // Added Special for #region - #endregion syntax highlight and folding. // May 30, 2004 - Fixed issue with continuation lines on If statements. // June 5, 2004 - Added comma to Operators for better readability. // Added fold.compact support set with fold.compact=1 // Changed folding inside of #cs-#ce. Default is no keyword folding inside comment blocks when fold.comment=1 // it will now only happen when fold.comment=2. // Sep 5, 2004 - Added logic to handle colourizing words on the last line. // Typed Characters now show as "default" till they match any table. // Oct 10, 2004 - Added logic to show Comments in "Special" directives. // Nov 1, 2004 - Added better testing for Numbers supporting x and e notation. // Nov 28, 2004 - Added logic to handle continuation lines for syntax highlighting. // Jan 10, 2005 - Added Abbreviations Keyword used for expansion // Mar 24, 2005 - Updated Abbreviations Keywords to fix when followed by Operator. // Apr 18, 2005 - Updated #CE/#Comment-End logic to take a linecomment ";" into account // - Added folding support for With...EndWith // - Added support for a DOT in variable names // - Fixed Underscore in CommentBlock // May 23, 2005 - Fixed the SentKey lexing in case of a missing } // Aug 11, 2005 - Fixed possible bug with s_save length > 100. // Aug 23, 2005 - Added Switch/endswitch support to the folding logic. // Sep 27, 2005 - Fixed the SentKey lexing logic in case of multiple sentkeys. // Mar 12, 2006 - Fixed issue with <> coloring as String in stead of Operator in rare occasions. // Apr 8, 2006 - Added support for AutoIt3 Standard UDF library (SCE_AU3_UDF) // Mar 9, 2007 - Fixed bug with + following a String getting the wrong Color. // Jun 20, 2007 - Fixed Commentblock issue when LF's are used as EOL. // Jul 26, 2007 - Fixed #endregion undetected bug. // // Copyright for Scintilla: 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. // Scintilla source code edit control #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsTypeCharacter(const int ch) { return ch == '$'; } static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '@' || ch == '#' || ch == '$' || ch == '.'); } static inline bool IsAOperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '&' || ch == '^' || ch == '=' || ch == '<' || ch == '>' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == ',' ) return true; return false; } /////////////////////////////////////////////////////////////////////////////// // GetSendKey() filters the portion before and after a/multiple space(s) // and return the first portion to be looked-up in the table // also check if the second portion is valid... (up,down.on.off,toggle or a number) /////////////////////////////////////////////////////////////////////////////// static int GetSendKey(const char *szLine, char *szKey) { int nFlag = 0; int nStartFound = 0; int nKeyPos = 0; int nSpecPos= 0; int nSpecNum= 1; int nPos = 0; char cTemp; char szSpecial[100]; // split the portion of the sendkey in the part before and after the spaces while ( ( (cTemp = szLine[nPos]) != '\0')) { // skip leading Ctrl/Shift/Alt state if (cTemp == '{') { nStartFound = 1; } // if (nStartFound == 1) { if ((cTemp == ' ') && (nFlag == 0) ) // get the stuff till first space { nFlag = 1; // Add } to the end of the first bit for table lookup later. szKey[nKeyPos++] = '}'; } else if (cTemp == ' ') { // skip other spaces } else if (nFlag == 0) { // save first portion into var till space or } is hit szKey[nKeyPos++] = cTemp; } else if ((nFlag == 1) && (cTemp != '}')) { // Save second portion into var... szSpecial[nSpecPos++] = cTemp; // check if Second portion is all numbers for repeat fuction if (isdigit(cTemp) == false) {nSpecNum = 0;} } } nPos++; // skip to next char } // End While // Check if the second portion is either a number or one of these keywords szKey[nKeyPos] = '\0'; szSpecial[nSpecPos] = '\0'; if (strcmp(szSpecial,"down")== 0 || strcmp(szSpecial,"up")== 0 || strcmp(szSpecial,"on")== 0 || strcmp(szSpecial,"off")== 0 || strcmp(szSpecial,"toggle")== 0 || nSpecNum == 1 ) { nFlag = 0; } else { nFlag = 1; } return nFlag; // 1 is bad, 0 is good } // GetSendKey() // // Routine to check the last "none comment" character on a line to see if its a continuation // static bool IsContinuationLine(Sci_PositionU szLine, Accessor &styler) { Sci_Position nsPos = styler.LineStart(szLine); Sci_Position nePos = styler.LineStart(szLine+1) - 2; //int stylech = styler.StyleAt(nsPos); while (nsPos < nePos) { //stylech = styler.StyleAt(nePos); int stylech = styler.StyleAt(nsPos); if (!(stylech == SCE_AU3_COMMENT)) { char ch = styler.SafeGetCharAt(nePos); if (!isspacechar(ch)) { if (ch == '_') return true; else return false; } } nePos--; // skip to next char } // End While return false; } // IsContinuationLine() // // syntax highlighting logic static void ColouriseAU3Doc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; WordList &keywords5 = *keywordlists[4]; WordList &keywords6 = *keywordlists[5]; WordList &keywords7 = *keywordlists[6]; WordList &keywords8 = *keywordlists[7]; // find the first previous line without continuation character at the end Sci_Position lineCurrent = styler.GetLine(startPos); Sci_Position s_startPos = startPos; // When not inside a Block comment: find First line without _ if (!(initStyle==SCE_AU3_COMMENTBLOCK)) { while ((lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) || (lineCurrent > 1 && IsContinuationLine(lineCurrent-1,styler))) { lineCurrent--; startPos = styler.LineStart(lineCurrent); // get start position initStyle = 0; // reset the start style to 0 } } // Set the new length to include it from the start and set the start position length = length + s_startPos - startPos; // correct the total length to process styler.StartAt(startPos); StyleContext sc(startPos, length, initStyle, styler); char si; // string indicator "=1 '=2 char ni; // Numeric indicator error=9 normal=0 normal+dec=1 hex=2 Enot=3 char ci; // comment indicator 0=not linecomment(;) char s_save[100] = ""; si=0; ni=0; ci=0; //$$$ for (; sc.More(); sc.Forward()) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); // ********************************************** // save the total current word for eof processing if (IsAWordChar(sc.ch) || sc.ch == '}') { strcpy(s_save,s); int tp = static_cast(strlen(s_save)); if (tp < 99) { s_save[tp] = static_cast(tolower(sc.ch)); s_save[tp+1] = '\0'; } } // ********************************************** // switch (sc.state) { case SCE_AU3_COMMENTBLOCK: { //Reset at line end if (sc.atLineEnd) { ci=0; if (strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0) { if (sc.atLineEnd) sc.SetState(SCE_AU3_DEFAULT); else sc.SetState(SCE_AU3_COMMENTBLOCK); } break; } //skip rest of line when a ; is encountered if (sc.chPrev == ';') { ci=2; sc.SetState(SCE_AU3_COMMENTBLOCK); } // skip rest of the line if (ci==2) break; // check when first character is detected on the line if (ci==0) { if (IsAWordStart(static_cast(sc.ch)) || IsAOperator(static_cast(sc.ch))) { ci=1; sc.SetState(SCE_AU3_COMMENTBLOCK); } break; } if (!(IsAWordChar(sc.ch) || (sc.ch == '-' && strcmp(s, "#comments") == 0))) { if ((strcmp(s, "#ce")== 0 || strcmp(s, "#comments-end")== 0)) sc.SetState(SCE_AU3_COMMENT); // set to comment line for the rest of the line else ci=2; // line doesn't begin with #CE so skip the rest of the line } break; } case SCE_AU3_COMMENT: { if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} break; } case SCE_AU3_OPERATOR: { // check if its a COMobject if (sc.chPrev == '.' && IsAWordChar(sc.ch)) { sc.SetState(SCE_AU3_COMOBJ); } else { sc.SetState(SCE_AU3_DEFAULT); } break; } case SCE_AU3_SPECIAL: { if (sc.ch == ';') {sc.SetState(SCE_AU3_COMMENT);} if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} break; } case SCE_AU3_KEYWORD: { if (!(IsAWordChar(sc.ch) || (sc.ch == '-' && (strcmp(s, "#comments") == 0 || strcmp(s, "#include") == 0)))) { if (!IsTypeCharacter(sc.ch)) { if (strcmp(s, "#cs")== 0 || strcmp(s, "#comments-start")== 0 ) { sc.ChangeState(SCE_AU3_COMMENTBLOCK); sc.SetState(SCE_AU3_COMMENTBLOCK); break; } else if (keywords.InList(s)) { sc.ChangeState(SCE_AU3_KEYWORD); sc.SetState(SCE_AU3_DEFAULT); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_AU3_FUNCTION); sc.SetState(SCE_AU3_DEFAULT); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_AU3_MACRO); sc.SetState(SCE_AU3_DEFAULT); } else if (keywords5.InList(s)) { sc.ChangeState(SCE_AU3_PREPROCESSOR); sc.SetState(SCE_AU3_DEFAULT); if (strcmp(s, "#include")== 0) { si = 3; // use to determine string start for #inlude <> } } else if (keywords6.InList(s)) { sc.ChangeState(SCE_AU3_SPECIAL); sc.SetState(SCE_AU3_SPECIAL); } else if ((keywords7.InList(s)) && (!IsAOperator(static_cast(sc.ch)))) { sc.ChangeState(SCE_AU3_EXPAND); sc.SetState(SCE_AU3_DEFAULT); } else if (keywords8.InList(s)) { sc.ChangeState(SCE_AU3_UDF); sc.SetState(SCE_AU3_DEFAULT); } else if (strcmp(s, "_") == 0) { sc.ChangeState(SCE_AU3_OPERATOR); sc.SetState(SCE_AU3_DEFAULT); } else if (!IsAWordChar(sc.ch)) { sc.ChangeState(SCE_AU3_DEFAULT); sc.SetState(SCE_AU3_DEFAULT); } } } if (sc.atLineEnd) { sc.SetState(SCE_AU3_DEFAULT);} break; } case SCE_AU3_NUMBER: { // Numeric indicator error=9 normal=0 normal+dec=1 hex=2 E-not=3 // // test for Hex notation if (strcmp(s, "0") == 0 && (sc.ch == 'x' || sc.ch == 'X') && ni == 0) { ni = 2; break; } // test for E notation if (IsADigit(sc.chPrev) && (sc.ch == 'e' || sc.ch == 'E') && ni <= 1) { ni = 3; break; } // Allow Hex characters inside hex numeric strings if ((ni == 2) && (sc.ch == 'a' || sc.ch == 'b' || sc.ch == 'c' || sc.ch == 'd' || sc.ch == 'e' || sc.ch == 'f' || sc.ch == 'A' || sc.ch == 'B' || sc.ch == 'C' || sc.ch == 'D' || sc.ch == 'E' || sc.ch == 'F' )) { break; } // test for 1 dec point only if (sc.ch == '.') { if (ni==0) { ni=1; } else { ni=9; } break; } // end of numeric string ? if (!(IsADigit(sc.ch))) { if (ni==9) { sc.ChangeState(SCE_AU3_DEFAULT); } sc.SetState(SCE_AU3_DEFAULT); } break; } case SCE_AU3_VARIABLE: { // Check if its a COMObject if (sc.ch == '.' && !IsADigit(sc.chNext)) { sc.SetState(SCE_AU3_OPERATOR); } else if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_AU3_DEFAULT); } break; } case SCE_AU3_COMOBJ: { if (!(IsAWordChar(sc.ch))) { sc.SetState(SCE_AU3_DEFAULT); } break; } case SCE_AU3_STRING: { // check for " to end a double qouted string or // check for ' to end a single qouted string if ((si == 1 && sc.ch == '\"') || (si == 2 && sc.ch == '\'') || (si == 3 && sc.ch == '>')) { sc.ForwardSetState(SCE_AU3_DEFAULT); si=0; break; } if (sc.atLineEnd) { si=0; // at line end and not found a continuation char then reset to default Sci_Position lineCurrent = styler.GetLine(sc.currentPos); if (!IsContinuationLine(lineCurrent,styler)) { sc.SetState(SCE_AU3_DEFAULT); break; } } // find Sendkeys in a STRING if (sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' ) { sc.SetState(SCE_AU3_SENT);} break; } case SCE_AU3_SENT: { // Send key string ended if (sc.chPrev == '}' && sc.ch != '}') { // set color to SENDKEY when valid sendkey .. else set back to regular string char sk[100]; // split {111 222} and return {111} and check if 222 is valid. // if return code = 1 then invalid 222 so must be string if (GetSendKey(s,sk)) { sc.ChangeState(SCE_AU3_STRING); } // if single char between {?} then its ok as sendkey for a single character else if (strlen(sk) == 3) { sc.ChangeState(SCE_AU3_SENT); } // if sendkey {111} is in table then ok as sendkey else if (keywords4.InList(sk)) { sc.ChangeState(SCE_AU3_SENT); } else { sc.ChangeState(SCE_AU3_STRING); } sc.SetState(SCE_AU3_STRING); } else { // check if the start is a valid SendKey start Sci_Position nPos = 0; int nState = 1; char cTemp; while (!(nState == 2) && ((cTemp = s[nPos]) != '\0')) { if (cTemp == '{' && nState == 1) { nState = 2; } if (nState == 1 && !(cTemp == '+' || cTemp == '!' || cTemp == '^' || cTemp == '#' )) { nState = 0; } nPos++; } //Verify characters infront of { ... if not assume regular string if (nState == 1 && (!(sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' ))) { sc.ChangeState(SCE_AU3_STRING); sc.SetState(SCE_AU3_STRING); } // If invalid character found then assume its a regular string if (nState == 0) { sc.ChangeState(SCE_AU3_STRING); sc.SetState(SCE_AU3_STRING); } } // check if next portion is again a sendkey if (sc.atLineEnd) { sc.ChangeState(SCE_AU3_STRING); sc.SetState(SCE_AU3_DEFAULT); si = 0; // reset string indicator } //* check in next characters following a sentkey are again a sent key // Need this test incase of 2 sentkeys like {F1}{ENTER} but not detect {{} if (sc.state == SCE_AU3_STRING && (sc.ch == '{' || sc.ch == '+' || sc.ch == '!' || sc.ch == '^' || sc.ch == '#' )) { sc.SetState(SCE_AU3_SENT);} // check to see if the string ended... // Sendkey string isn't complete but the string ended.... if ((si == 1 && sc.ch == '\"') || (si == 2 && sc.ch == '\'')) { sc.ChangeState(SCE_AU3_STRING); sc.ForwardSetState(SCE_AU3_DEFAULT); } break; } } //switch (sc.state) // Determine if a new state should be entered: if (sc.state == SCE_AU3_DEFAULT) { if (sc.ch == ';') {sc.SetState(SCE_AU3_COMMENT);} else if (sc.ch == '#') {sc.SetState(SCE_AU3_KEYWORD);} else if (sc.ch == '$') {sc.SetState(SCE_AU3_VARIABLE);} else if (sc.ch == '.' && !IsADigit(sc.chNext)) {sc.SetState(SCE_AU3_OPERATOR);} else if (sc.ch == '@') {sc.SetState(SCE_AU3_KEYWORD);} //else if (sc.ch == '_') {sc.SetState(SCE_AU3_KEYWORD);} else if (sc.ch == '<' && si==3) {sc.SetState(SCE_AU3_STRING);} // string after #include else if (sc.ch == '\"') { sc.SetState(SCE_AU3_STRING); si = 1; } else if (sc.ch == '\'') { sc.SetState(SCE_AU3_STRING); si = 2; } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_AU3_NUMBER); ni = 0; } else if (IsAWordStart(sc.ch)) {sc.SetState(SCE_AU3_KEYWORD);} else if (IsAOperator(static_cast(sc.ch))) {sc.SetState(SCE_AU3_OPERATOR);} else if (sc.atLineEnd) {sc.SetState(SCE_AU3_DEFAULT);} } } //for (; sc.More(); sc.Forward()) //************************************* // Colourize the last word correctly //************************************* if (sc.state == SCE_AU3_KEYWORD) { if (strcmp(s_save, "#cs")== 0 || strcmp(s_save, "#comments-start")== 0 ) { sc.ChangeState(SCE_AU3_COMMENTBLOCK); sc.SetState(SCE_AU3_COMMENTBLOCK); } else if (keywords.InList(s_save)) { sc.ChangeState(SCE_AU3_KEYWORD); sc.SetState(SCE_AU3_KEYWORD); } else if (keywords2.InList(s_save)) { sc.ChangeState(SCE_AU3_FUNCTION); sc.SetState(SCE_AU3_FUNCTION); } else if (keywords3.InList(s_save)) { sc.ChangeState(SCE_AU3_MACRO); sc.SetState(SCE_AU3_MACRO); } else if (keywords5.InList(s_save)) { sc.ChangeState(SCE_AU3_PREPROCESSOR); sc.SetState(SCE_AU3_PREPROCESSOR); } else if (keywords6.InList(s_save)) { sc.ChangeState(SCE_AU3_SPECIAL); sc.SetState(SCE_AU3_SPECIAL); } else if (keywords7.InList(s_save) && sc.atLineEnd) { sc.ChangeState(SCE_AU3_EXPAND); sc.SetState(SCE_AU3_EXPAND); } else if (keywords8.InList(s_save)) { sc.ChangeState(SCE_AU3_UDF); sc.SetState(SCE_AU3_UDF); } else { sc.ChangeState(SCE_AU3_DEFAULT); sc.SetState(SCE_AU3_DEFAULT); } } if (sc.state == SCE_AU3_SENT) { // Send key string ended if (sc.chPrev == '}' && sc.ch != '}') { // set color to SENDKEY when valid sendkey .. else set back to regular string char sk[100]; // split {111 222} and return {111} and check if 222 is valid. // if return code = 1 then invalid 222 so must be string if (GetSendKey(s_save,sk)) { sc.ChangeState(SCE_AU3_STRING); } // if single char between {?} then its ok as sendkey for a single character else if (strlen(sk) == 3) { sc.ChangeState(SCE_AU3_SENT); } // if sendkey {111} is in table then ok as sendkey else if (keywords4.InList(sk)) { sc.ChangeState(SCE_AU3_SENT); } else { sc.ChangeState(SCE_AU3_STRING); } sc.SetState(SCE_AU3_STRING); } // check if next portion is again a sendkey if (sc.atLineEnd) { sc.ChangeState(SCE_AU3_STRING); sc.SetState(SCE_AU3_DEFAULT); } } //************************************* sc.Complete(); } // static bool IsStreamCommentStyle(int style) { return style == SCE_AU3_COMMENT || style == SCE_AU3_COMMENTBLOCK; } // // Routine to find first none space on the current line and return its Style // needed for comment lines not starting on pos 1 static int GetStyleFirstWord(Sci_PositionU szLine, Accessor &styler) { Sci_Position nsPos = styler.LineStart(szLine); Sci_Position nePos = styler.LineStart(szLine+1) - 1; while (isspacechar(styler.SafeGetCharAt(nsPos)) && nsPos < nePos) { nsPos++; // skip to next char } // End While return styler.StyleAt(nsPos); } // GetStyleFirstWord() // static void FoldAU3Doc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position endPos = startPos + length; // get settings from the config files for folding comments and preprocessor lines bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldInComment = styler.GetPropertyInt("fold.comment") == 2; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; bool foldpreprocessor = styler.GetPropertyInt("fold.preprocessor") != 0; // Backtrack to previous line in case need to fix its fold status Sci_Position lineCurrent = styler.GetLine(startPos); if (startPos > 0) { if (lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); } } // vars for style of previous/current/next lines int style = GetStyleFirstWord(lineCurrent,styler); int stylePrev = 0; // find the first previous line without continuation character at the end while ((lineCurrent > 0 && IsContinuationLine(lineCurrent,styler)) || (lineCurrent > 1 && IsContinuationLine(lineCurrent-1,styler))) { lineCurrent--; startPos = styler.LineStart(lineCurrent); } if (lineCurrent > 0) { stylePrev = GetStyleFirstWord(lineCurrent-1,styler); } // vars for getting first word to check for keywords bool FirstWordStart = false; bool FirstWordEnd = false; char szKeyword[11]=""; int szKeywordlen = 0; char szThen[5]=""; int szThenlen = 0; bool ThenFoundLast = false; // var for indentlevel int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelNext = levelCurrent; // int visibleChars = 0; char chNext = styler.SafeGetCharAt(startPos); char chPrev = ' '; // for (Sci_Position i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if (IsAWordChar(ch)) { visibleChars++; } // get the syle for the current character neede to check in comment int stylech = styler.StyleAt(i); // get first word for the line for indent check max 9 characters if (FirstWordStart && (!(FirstWordEnd))) { if (!IsAWordChar(ch)) { FirstWordEnd = true; szKeyword[szKeywordlen] = '\0'; } else { if (szKeywordlen < 10) { szKeyword[szKeywordlen++] = static_cast(tolower(ch)); } } } // start the capture of the first word if (!(FirstWordStart)) { if (IsAWordChar(ch) || IsAWordStart(ch) || ch == ';') { FirstWordStart = true; szKeyword[szKeywordlen++] = static_cast(tolower(ch)); } } // only process this logic when not in comment section if (!(stylech == SCE_AU3_COMMENT)) { if (ThenFoundLast) { if (IsAWordChar(ch)) { ThenFoundLast = false; } } // find out if the word "then" is the last on a "if" line if (FirstWordEnd && strcmp(szKeyword,"if") == 0) { if (szThenlen == 4) { szThen[0] = szThen[1]; szThen[1] = szThen[2]; szThen[2] = szThen[3]; szThen[3] = static_cast(tolower(ch)); if (strcmp(szThen,"then") == 0 ) { ThenFoundLast = true; } } else { szThen[szThenlen++] = static_cast(tolower(ch)); if (szThenlen == 5) { szThen[4] = '\0'; } } } } // End of Line found so process the information if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == endPos)) { // ************************** // Folding logic for Keywords // ************************** // if a keyword is found on the current line and the line doesn't end with _ (continuation) // and we are not inside a commentblock. if (szKeywordlen > 0 && (!(chPrev == '_')) && ((!(IsStreamCommentStyle(style)) || foldInComment)) ) { szKeyword[szKeywordlen] = '\0'; // only fold "if" last keyword is "then" (else its a one line if) if (strcmp(szKeyword,"if") == 0 && ThenFoundLast) { levelNext++; } // create new fold for these words if (strcmp(szKeyword,"do") == 0 || strcmp(szKeyword,"for") == 0 || strcmp(szKeyword,"func") == 0 || strcmp(szKeyword,"while") == 0|| strcmp(szKeyword,"with") == 0 || strcmp(szKeyword,"#region") == 0 ) { levelNext++; } // create double Fold for select&switch because Case will subtract one of the current level if (strcmp(szKeyword,"select") == 0 || strcmp(szKeyword,"switch") == 0) { levelNext++; levelNext++; } // end the fold for these words before the current line if (strcmp(szKeyword,"endfunc") == 0 || strcmp(szKeyword,"endif") == 0 || strcmp(szKeyword,"next") == 0 || strcmp(szKeyword,"until") == 0 || strcmp(szKeyword,"endwith") == 0 ||strcmp(szKeyword,"wend") == 0){ levelNext--; levelCurrent--; } // end the fold for these words before the current line and Start new fold if (strcmp(szKeyword,"case") == 0 || strcmp(szKeyword,"else") == 0 || strcmp(szKeyword,"elseif") == 0 ) { levelCurrent--; } // end the double fold for this word before the current line if (strcmp(szKeyword,"endselect") == 0 || strcmp(szKeyword,"endswitch") == 0 ) { levelNext--; levelNext--; levelCurrent--; levelCurrent--; } // end the fold for these words on the current line if (strcmp(szKeyword,"#endregion") == 0 ) { levelNext--; } } // Preprocessor and Comment folding int styleNext = GetStyleFirstWord(lineCurrent + 1,styler); // ************************************* // Folding logic for preprocessor blocks // ************************************* // process preprosessor line if (foldpreprocessor && style == SCE_AU3_PREPROCESSOR) { if (!(stylePrev == SCE_AU3_PREPROCESSOR) && (styleNext == SCE_AU3_PREPROCESSOR)) { levelNext++; } // fold till the last line for normal comment lines else if (stylePrev == SCE_AU3_PREPROCESSOR && !(styleNext == SCE_AU3_PREPROCESSOR)) { levelNext--; } } // ********************************* // Folding logic for Comment blocks // ********************************* if (foldComment && IsStreamCommentStyle(style)) { // Start of a comment block if (!(stylePrev==style) && IsStreamCommentStyle(styleNext) && styleNext==style) { levelNext++; } // fold till the last line for normal comment lines else if (IsStreamCommentStyle(stylePrev) && !(styleNext == SCE_AU3_COMMENT) && stylePrev == SCE_AU3_COMMENT && style == SCE_AU3_COMMENT) { levelNext--; } // fold till the one but last line for Blockcomment lines else if (IsStreamCommentStyle(stylePrev) && !(styleNext == SCE_AU3_COMMENTBLOCK) && style == SCE_AU3_COMMENTBLOCK) { levelNext--; levelCurrent--; } } int levelUse = levelCurrent; int lev = levelUse | levelNext << 16; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) { lev |= SC_FOLDLEVELHEADERFLAG; } if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } // reset values for the next line lineCurrent++; stylePrev = style; style = styleNext; levelCurrent = levelNext; visibleChars = 0; // if the last character is an Underscore then don't reset since the line continues on the next line. if (!(chPrev == '_')) { szKeywordlen = 0; szThenlen = 0; FirstWordStart = false; FirstWordEnd = false; ThenFoundLast = false; } } // save the last processed character if (!isspacechar(ch)) { chPrev = ch; visibleChars++; } } } // static const char * const AU3WordLists[] = { "#autoit keywords", "#autoit functions", "#autoit macros", "#autoit Sent keys", "#autoit Pre-processors", "#autoit Special", "#autoit Expand", "#autoit UDF", 0 }; LexerModule lmAU3(SCLEX_AU3, ColouriseAU3Doc, "au3", FoldAU3Doc , AU3WordLists); codequery-0.21.0/scintilla/lexers/LexAVE.cxx000066400000000000000000000152061310136352400206700ustar00rootroot00000000000000// SciTE - Scintilla based Text Editor /** @file LexAVE.cxx ** Lexer for Avenue. ** ** Written by Alexey Yutkin . **/ // Copyright 1998-2002 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); } static inline bool IsEnumChar(const int ch) { return (ch < 0x80) && (isalnum(ch)|| ch == '_'); } static inline bool IsANumberChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' ); } inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } inline bool isAveOperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; // '.' left out as it is used to make up numbers if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '{' || ch == '}' || ch == '[' || ch == ']' || ch == ';' || ch == '<' || ch == '>' || ch == ',' || ch == '.' ) return true; return false; } static void ColouriseAveDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; WordList &keywords5 = *keywordlists[4]; WordList &keywords6 = *keywordlists[5]; // Do not leak onto next line if (initStyle == SCE_AVE_STRINGEOL) { initStyle = SCE_AVE_DEFAULT; } StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.atLineEnd) { // Update the line state, so it can be seen by next line Sci_Position currentLine = styler.GetLine(sc.currentPos); styler.SetLineState(currentLine, 0); } if (sc.atLineStart && (sc.state == SCE_AVE_STRING)) { // Prevent SCE_AVE_STRINGEOL from leaking back to previous line sc.SetState(SCE_AVE_STRING); } // Determine if the current state should terminate. if (sc.state == SCE_AVE_OPERATOR) { sc.SetState(SCE_AVE_DEFAULT); } else if (sc.state == SCE_AVE_NUMBER) { if (!IsANumberChar(sc.ch)) { sc.SetState(SCE_AVE_DEFAULT); } } else if (sc.state == SCE_AVE_ENUM) { if (!IsEnumChar(sc.ch)) { sc.SetState(SCE_AVE_DEFAULT); } } else if (sc.state == SCE_AVE_IDENTIFIER) { if (!IsAWordChar(sc.ch) || (sc.ch == '.')) { char s[100]; //sc.GetCurrent(s, sizeof(s)); sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_AVE_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_AVE_WORD2); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_AVE_WORD3); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_AVE_WORD4); } else if (keywords5.InList(s)) { sc.ChangeState(SCE_AVE_WORD5); } else if (keywords6.InList(s)) { sc.ChangeState(SCE_AVE_WORD6); } sc.SetState(SCE_AVE_DEFAULT); } } else if (sc.state == SCE_AVE_COMMENT) { if (sc.atLineEnd) { sc.SetState(SCE_AVE_DEFAULT); } } else if (sc.state == SCE_AVE_STRING) { if (sc.ch == '\"') { sc.ForwardSetState(SCE_AVE_DEFAULT); } else if (sc.atLineEnd) { sc.ChangeState(SCE_AVE_STRINGEOL); sc.ForwardSetState(SCE_AVE_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_AVE_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_AVE_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_AVE_IDENTIFIER); } else if (sc.Match('\"')) { sc.SetState(SCE_AVE_STRING); } else if (sc.Match('\'')) { sc.SetState(SCE_AVE_COMMENT); sc.Forward(); } else if (isAveOperator(static_cast(sc.ch))) { sc.SetState(SCE_AVE_OPERATOR); } else if (sc.Match('#')) { sc.SetState(SCE_AVE_ENUM); sc.Forward(); } } } sc.Complete(); } static void FoldAveDoc(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { Sci_PositionU lengthDoc = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = static_cast(tolower(styler[startPos])); bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; int styleNext = styler.StyleAt(startPos); char s[10] = ""; for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = static_cast(tolower(chNext)); chNext = static_cast(tolower(styler.SafeGetCharAt(i + 1))); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (style == SCE_AVE_WORD) { if (ch == 't' || ch == 'f' || ch == 'w' || ch == 'e') { for (unsigned int j = 0; j < 6; j++) { if (!iswordchar(styler[i + j])) { break; } s[j] = static_cast(tolower(styler[i + j])); s[j + 1] = '\0'; } if ((strcmp(s, "then") == 0) || (strcmp(s, "for") == 0) || (strcmp(s, "while") == 0)) { levelCurrent++; } if ((strcmp(s, "end") == 0) || (strcmp(s, "elseif") == 0)) { // Normally "elseif" and "then" will be on the same line and will cancel // each other out. // As implemented, this does not support fold.at.else. levelCurrent--; } } } else if (style == SCE_AVE_OPERATOR) { if (ch == '{' || ch == '(') { levelCurrent++; } else if (ch == '}' || ch == ')') { levelCurrent--; } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) { lev |= SC_FOLDLEVELWHITEFLAG; } if ((levelCurrent > levelPrev) && (visibleChars > 0)) { lev |= SC_FOLDLEVELHEADERFLAG; } if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) { visibleChars++; } } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } LexerModule lmAVE(SCLEX_AVE, ColouriseAveDoc, "ave", FoldAveDoc); codequery-0.21.0/scintilla/lexers/LexAVS.cxx000066400000000000000000000206271310136352400207110ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexAVS.cxx ** Lexer for AviSynth. **/ // Copyright 2012 by Bruno Barbieri // Heavily based on LexPOV by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } static inline bool IsAWordStart(int ch) { return isalpha(ch) || (ch != ' ' && ch != '\n' && ch != '(' && ch != '.' && ch != ','); } static inline bool IsANumberChar(int ch) { // Not exactly following number definition (several dots are seen as OK, etc.) // but probably enough in most cases. return (ch < 0x80) && (isdigit(ch) || ch == '.' || ch == '-' || ch == '+'); } static void ColouriseAvsDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &filters = *keywordlists[1]; WordList &plugins = *keywordlists[2]; WordList &functions = *keywordlists[3]; WordList &clipProperties = *keywordlists[4]; WordList &userDefined = *keywordlists[5]; Sci_Position currentLine = styler.GetLine(startPos); // Initialize the block comment nesting level, if we are inside such a comment. int blockCommentLevel = 0; if (initStyle == SCE_AVS_COMMENTBLOCK || initStyle == SCE_AVS_COMMENTBLOCKN) { blockCommentLevel = styler.GetLineState(currentLine - 1); } // Do not leak onto next line if (initStyle == SCE_AVS_COMMENTLINE) { initStyle = SCE_AVS_DEFAULT; } StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.atLineEnd) { // Update the line state, so it can be seen by next line currentLine = styler.GetLine(sc.currentPos); if (sc.state == SCE_AVS_COMMENTBLOCK || sc.state == SCE_AVS_COMMENTBLOCKN) { // Inside a block comment, we set the line state styler.SetLineState(currentLine, blockCommentLevel); } else { // Reset the line state styler.SetLineState(currentLine, 0); } } // Determine if the current state should terminate. if (sc.state == SCE_AVS_OPERATOR) { sc.SetState(SCE_AVS_DEFAULT); } else if (sc.state == SCE_AVS_NUMBER) { // We stop the number definition on non-numerical non-dot non-sign char if (!IsANumberChar(sc.ch)) { sc.SetState(SCE_AVS_DEFAULT); } } else if (sc.state == SCE_AVS_IDENTIFIER) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_AVS_KEYWORD); } else if (filters.InList(s)) { sc.ChangeState(SCE_AVS_FILTER); } else if (plugins.InList(s)) { sc.ChangeState(SCE_AVS_PLUGIN); } else if (functions.InList(s)) { sc.ChangeState(SCE_AVS_FUNCTION); } else if (clipProperties.InList(s)) { sc.ChangeState(SCE_AVS_CLIPPROP); } else if (userDefined.InList(s)) { sc.ChangeState(SCE_AVS_USERDFN); } sc.SetState(SCE_AVS_DEFAULT); } } else if (sc.state == SCE_AVS_COMMENTBLOCK) { if (sc.Match('/', '*')) { blockCommentLevel++; sc.Forward(); } else if (sc.Match('*', '/') && blockCommentLevel > 0) { blockCommentLevel--; sc.Forward(); if (blockCommentLevel == 0) { sc.ForwardSetState(SCE_AVS_DEFAULT); } } } else if (sc.state == SCE_AVS_COMMENTBLOCKN) { if (sc.Match('[', '*')) { blockCommentLevel++; sc.Forward(); } else if (sc.Match('*', ']') && blockCommentLevel > 0) { blockCommentLevel--; sc.Forward(); if (blockCommentLevel == 0) { sc.ForwardSetState(SCE_AVS_DEFAULT); } } } else if (sc.state == SCE_AVS_COMMENTLINE) { if (sc.atLineEnd) { sc.ForwardSetState(SCE_AVS_DEFAULT); } } else if (sc.state == SCE_AVS_STRING) { if (sc.ch == '\"') { sc.ForwardSetState(SCE_AVS_DEFAULT); } } else if (sc.state == SCE_AVS_TRIPLESTRING) { if (sc.Match("\"\"\"")) { sc.Forward(); sc.Forward(); sc.ForwardSetState(SCE_AVS_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_AVS_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_AVS_NUMBER); } else if (IsADigit(sc.ch) || (sc.ch == ',' && IsADigit(sc.chNext))) { sc.Forward(); sc.SetState(SCE_AVS_NUMBER); } else if (sc.Match('/', '*')) { blockCommentLevel = 1; sc.SetState(SCE_AVS_COMMENTBLOCK); sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('[', '*')) { blockCommentLevel = 1; sc.SetState(SCE_AVS_COMMENTBLOCKN); sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.ch == '#') { sc.SetState(SCE_AVS_COMMENTLINE); } else if (sc.ch == '\"') { if (sc.Match("\"\"\"")) { sc.SetState(SCE_AVS_TRIPLESTRING); } else { sc.SetState(SCE_AVS_STRING); } } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_AVS_OPERATOR); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_AVS_IDENTIFIER); } } } // End of file: complete any pending changeState if (sc.state == SCE_AVS_IDENTIFIER) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_AVS_KEYWORD); } else if (filters.InList(s)) { sc.ChangeState(SCE_AVS_FILTER); } else if (plugins.InList(s)) { sc.ChangeState(SCE_AVS_PLUGIN); } else if (functions.InList(s)) { sc.ChangeState(SCE_AVS_FUNCTION); } else if (clipProperties.InList(s)) { sc.ChangeState(SCE_AVS_CLIPPROP); } else if (userDefined.InList(s)) { sc.ChangeState(SCE_AVS_USERDFN); } sc.SetState(SCE_AVS_DEFAULT); } } sc.Complete(); } static void FoldAvsDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (foldComment && style == SCE_AVS_COMMENTBLOCK) { if (stylePrev != SCE_AVS_COMMENTBLOCK) { levelCurrent++; } else if ((styleNext != SCE_AVS_COMMENTBLOCK) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelCurrent--; } } if (foldComment && style == SCE_AVS_COMMENTBLOCKN) { if (stylePrev != SCE_AVS_COMMENTBLOCKN) { levelCurrent++; } else if ((styleNext != SCE_AVS_COMMENTBLOCKN) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelCurrent--; } } if (style == SCE_AVS_OPERATOR) { if (ch == '{') { levelCurrent++; } else if (ch == '}') { levelCurrent--; } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const avsWordLists[] = { "Keywords", "Filters", "Plugins", "Functions", "Clip properties", "User defined functions", 0, }; LexerModule lmAVS(SCLEX_AVS, ColouriseAvsDoc, "avs", FoldAvsDoc, avsWordLists); codequery-0.21.0/scintilla/lexers/LexAbaqus.cxx000066400000000000000000000463561310136352400215030ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexABAQUS.cxx ** Lexer for ABAQUS. Based on the lexer for APDL by Hadar Raz. ** By Sergio Lucato. ** Sort of completely rewritten by Gertjan Kloosterman **/ // The License.txt file describes the conditions under which this software may be distributed. // Code folding copyied and modified from LexBasic.cxx #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAKeywordChar(const int ch) { return (ch < 0x80 && (isalnum(ch) || (ch == '_') || (ch == ' '))); } static inline bool IsASetChar(const int ch) { return (ch < 0x80 && (isalnum(ch) || (ch == '_') || (ch == '.') || (ch == '-'))); } static void ColouriseABAQUSDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList*[] /* *keywordlists[] */, Accessor &styler) { enum localState { KW_LINE_KW, KW_LINE_COMMA, KW_LINE_PAR, KW_LINE_EQ, KW_LINE_VAL, \ DAT_LINE_VAL, DAT_LINE_COMMA,\ COMMENT_LINE,\ ST_ERROR, LINE_END } state ; // Do not leak onto next line state = LINE_END ; initStyle = SCE_ABAQUS_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); // Things are actually quite simple // we have commentlines // keywordlines and datalines // On a data line there will only be colouring of numbers // a keyword line is constructed as // *word,[ paramname[=paramvalue]]* // if the line ends with a , the keyword line continues onto the new line for (; sc.More(); sc.Forward()) { switch ( state ) { case KW_LINE_KW : if ( sc.atLineEnd ) { // finished the line in keyword state, switch to LINE_END sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } else if ( IsAKeywordChar(sc.ch) ) { // nothing changes state = KW_LINE_KW ; } else if ( sc.ch == ',' ) { // Well well we say a comma, arguments *MUST* follow sc.SetState(SCE_ABAQUS_OPERATOR) ; state = KW_LINE_COMMA ; } else { // Flag an error sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } // Done with processing break ; case KW_LINE_COMMA : // acomma on a keywordline was seen if ( IsAKeywordChar(sc.ch)) { sc.SetState(SCE_ABAQUS_ARGUMENT) ; state = KW_LINE_PAR ; } else if ( sc.atLineEnd || (sc.ch == ',') ) { // we remain in keyword mode state = KW_LINE_COMMA ; } else if ( sc.ch == ' ' ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = KW_LINE_COMMA ; } else { // Anything else constitutes an error sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case KW_LINE_PAR : if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } else if ( IsAKeywordChar(sc.ch) || (sc.ch == '-') ) { // remain in this state state = KW_LINE_PAR ; } else if ( sc.ch == ',' ) { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = KW_LINE_COMMA ; } else if ( sc.ch == '=' ) { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = KW_LINE_EQ ; } else { // Anything else constitutes an error sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case KW_LINE_EQ : if ( sc.ch == ' ' ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; // remain in this state state = KW_LINE_EQ ; } else if ( IsADigit(sc.ch) || (sc.ch == '-') || (sc.ch == '.' && IsADigit(sc.chNext)) ) { sc.SetState(SCE_ABAQUS_NUMBER) ; state = KW_LINE_VAL ; } else if ( IsAKeywordChar(sc.ch) ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = KW_LINE_VAL ; } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { sc.SetState(SCE_ABAQUS_STRING) ; state = KW_LINE_VAL ; } else { sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case KW_LINE_VAL : if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } else if ( IsASetChar(sc.ch) && (sc.state == SCE_ABAQUS_DEFAULT) ) { // nothing changes state = KW_LINE_VAL ; } else if (( (IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) && (sc.state == SCE_ABAQUS_NUMBER)) { // remain in number mode state = KW_LINE_VAL ; } else if (sc.state == SCE_ABAQUS_STRING) { // accept everything until a closing quote if ( sc.ch == '\'' || sc.ch == '\"' ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = KW_LINE_VAL ; } } else if ( sc.ch == ',' ) { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = KW_LINE_COMMA ; } else { // anything else is an error sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case DAT_LINE_VAL : if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } else if ( IsASetChar(sc.ch) && (sc.state == SCE_ABAQUS_DEFAULT) ) { // nothing changes state = DAT_LINE_VAL ; } else if (( (IsADigit(sc.ch) || sc.ch == '.' || (sc.ch == 'e' || sc.ch == 'E') || ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E')))) && (sc.state == SCE_ABAQUS_NUMBER)) { // remain in number mode state = DAT_LINE_VAL ; } else if (sc.state == SCE_ABAQUS_STRING) { // accept everything until a closing quote if ( sc.ch == '\'' || sc.ch == '\"' ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = DAT_LINE_VAL ; } } else if ( sc.ch == ',' ) { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = DAT_LINE_COMMA ; } else { // anything else is an error sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case DAT_LINE_COMMA : // a comma on a data line was seen if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } else if ( sc.ch == ' ' ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = DAT_LINE_COMMA ; } else if (sc.ch == ',') { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = DAT_LINE_COMMA ; } else if ( IsADigit(sc.ch) || (sc.ch == '-')|| (sc.ch == '.' && IsADigit(sc.chNext)) ) { sc.SetState(SCE_ABAQUS_NUMBER) ; state = DAT_LINE_VAL ; } else if ( IsAKeywordChar(sc.ch) ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = DAT_LINE_VAL ; } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { sc.SetState(SCE_ABAQUS_STRING) ; state = DAT_LINE_VAL ; } else { sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } break ; case COMMENT_LINE : if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } break ; case ST_ERROR : if ( sc.atLineEnd ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = LINE_END ; } break ; case LINE_END : if ( sc.atLineEnd || sc.ch == ' ' ) { // nothing changes state = LINE_END ; } else if ( sc.ch == '*' ) { if ( sc.chNext == '*' ) { state = COMMENT_LINE ; sc.SetState(SCE_ABAQUS_COMMENT) ; } else { state = KW_LINE_KW ; sc.SetState(SCE_ABAQUS_STARCOMMAND) ; } } else { // it must be a data line, things are as if we are in DAT_LINE_COMMA if ( sc.ch == ',' ) { sc.SetState(SCE_ABAQUS_OPERATOR) ; state = DAT_LINE_COMMA ; } else if ( IsADigit(sc.ch) || (sc.ch == '-')|| (sc.ch == '.' && IsADigit(sc.chNext)) ) { sc.SetState(SCE_ABAQUS_NUMBER) ; state = DAT_LINE_VAL ; } else if ( IsAKeywordChar(sc.ch) ) { sc.SetState(SCE_ABAQUS_DEFAULT) ; state = DAT_LINE_VAL ; } else if ( (sc.ch == '\'') || (sc.ch == '\"') ) { sc.SetState(SCE_ABAQUS_STRING) ; state = DAT_LINE_VAL ; } else { sc.SetState(SCE_ABAQUS_PROCESSOR) ; state = ST_ERROR ; } } break ; } } sc.Complete(); } //------------------------------------------------------------------------------ // This copyied and modified from LexBasic.cxx //------------------------------------------------------------------------------ /* Bits: * 1 - whitespace * 2 - operator * 4 - identifier * 8 - decimal digit * 16 - hex digit * 32 - bin digit */ static int character_classification[128] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 10, 6, 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, 2, 20, 20, 20, 20, 20, 20, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 0 }; static bool IsSpace(int c) { return c < 128 && (character_classification[c] & 1); } static bool IsIdentifier(int c) { return c < 128 && (character_classification[c] & 4); } static int LowerCase(int c) { if (c >= 'A' && c <= 'Z') return 'a' + c - 'A'; return c; } static Sci_Position LineEnd(Sci_Position line, Accessor &styler) { const Sci_Position docLines = styler.GetLine(styler.Length() - 1); // Available last line Sci_Position eol_pos ; // if the line is the last line, the eol_pos is styler.Length() // eol will contain a new line, or a virtual new line if ( docLines == line ) eol_pos = styler.Length() ; else eol_pos = styler.LineStart(line + 1) - 1; return eol_pos ; } static Sci_Position LineStart(Sci_Position line, Accessor &styler) { return styler.LineStart(line) ; } // LineType // // bits determines the line type // 1 : data line // 2 : only whitespace // 3 : data line with only whitespace // 4 : keyword line // 5 : block open keyword line // 6 : block close keyword line // 7 : keyword line in error // 8 : comment line static int LineType(Sci_Position line, Accessor &styler) { Sci_Position pos = LineStart(line, styler) ; Sci_Position eol_pos = LineEnd(line, styler) ; int c ; char ch = ' '; Sci_Position i = pos ; while ( i < eol_pos ) { c = styler.SafeGetCharAt(i); ch = static_cast(LowerCase(c)); // We can say something as soon as no whitespace // was encountered if ( !IsSpace(c) ) break ; i++ ; } if ( i >= eol_pos ) { // This is a whitespace line, currently // classifies as data line return 3 ; } if ( ch != '*' ) { // This is a data line return 1 ; } if ( i == eol_pos - 1 ) { // Only a single *, error but make keyword line return 4+3 ; } // This means we can have a second character // if that is also a * this means a comment // otherwise it is a keyword. c = styler.SafeGetCharAt(i+1); ch = static_cast(LowerCase(c)); if ( ch == '*' ) { return 8 ; } // At this point we know this is a keyword line // the character at position i is a * // it is not a comment line char word[256] ; int wlen = 0; word[wlen] = '*' ; wlen++ ; i++ ; while ( (i < eol_pos) && (wlen < 255) ) { c = styler.SafeGetCharAt(i); ch = static_cast(LowerCase(c)); if ( (!IsSpace(c)) && (!IsIdentifier(c)) ) break ; if ( IsIdentifier(c) ) { word[wlen] = ch ; wlen++ ; } i++ ; } word[wlen] = 0 ; // Make a comparison if ( !strcmp(word, "*step") || !strcmp(word, "*part") || !strcmp(word, "*instance") || !strcmp(word, "*assembly")) { return 4+1 ; } if ( !strcmp(word, "*endstep") || !strcmp(word, "*endpart") || !strcmp(word, "*endinstance") || !strcmp(word, "*endassembly")) { return 4+2 ; } return 4 ; } static void SafeSetLevel(Sci_Position line, int level, Accessor &styler) { if ( line < 0 ) return ; int mask = ((~SC_FOLDLEVELHEADERFLAG) | (~SC_FOLDLEVELWHITEFLAG)); if ( (level & mask) < 0 ) return ; if ( styler.LevelAt(line) != level ) styler.SetLevel(line, level) ; } static void FoldABAQUSDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position startLine = styler.GetLine(startPos) ; Sci_Position endLine = styler.GetLine(startPos+length-1) ; // bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; // We want to deal with all the cases // To know the correct indentlevel, we need to look back to the // previous command line indentation level // order of formatting keyline datalines commentlines Sci_Position beginData = -1 ; Sci_Position beginComment = -1 ; Sci_Position prvKeyLine = startLine ; Sci_Position prvKeyLineTp = 0 ; // Scan until we find the previous keyword line // this will give us the level reference that we need while ( prvKeyLine > 0 ) { prvKeyLine-- ; prvKeyLineTp = LineType(prvKeyLine, styler) ; if ( prvKeyLineTp & 4 ) break ; } // Determine the base line level of all lines following // the previous keyword // new keyword lines are placed on this level //if ( prvKeyLineTp & 4 ) { int level = styler.LevelAt(prvKeyLine) & ~SC_FOLDLEVELHEADERFLAG ; //} // uncomment line below if weird behaviour continues prvKeyLine = -1 ; // Now start scanning over the lines. for ( Sci_Position line = startLine; line <= endLine; line++ ) { int lineType = LineType(line, styler) ; // Check for comment line if ( lineType == 8 ) { if ( beginComment < 0 ) { beginComment = line ; } } // Check for data line if ( (lineType == 1) || (lineType == 3) ) { if ( beginData < 0 ) { if ( beginComment >= 0 ) { beginData = beginComment ; } else { beginData = line ; } } beginComment = -1 ; } // Check for keywordline. // As soon as a keyword line is encountered, we can set the // levels of everything from the previous keyword line to this one if ( lineType & 4 ) { // this is a keyword, we can now place the previous keyword // all its data lines and the remainder // Write comments and data line if ( beginComment < 0 ) { beginComment = line ; } if ( beginData < 0 ) { beginData = beginComment ; if ( prvKeyLineTp != 5 ) SafeSetLevel(prvKeyLine, level, styler) ; else SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; } else { SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; } int datLevel = level + 1 ; if ( !(prvKeyLineTp & 4) ) { datLevel = level ; } for ( Sci_Position ll = beginData; ll < beginComment; ll++ ) SafeSetLevel(ll, datLevel, styler) ; // The keyword we just found is going to be written at another level // if we have a type 5 and type 6 if ( prvKeyLineTp == 5 ) { level += 1 ; } if ( prvKeyLineTp == 6 ) { level -= 1 ; if ( level < 0 ) { level = 0 ; } } for ( Sci_Position lll = beginComment; lll < line; lll++ ) SafeSetLevel(lll, level, styler) ; // wrap and reset beginComment = -1 ; beginData = -1 ; prvKeyLine = line ; prvKeyLineTp = lineType ; } } if ( beginComment < 0 ) { beginComment = endLine + 1 ; } else { // We need to find out whether this comment block is followed by // a data line or a keyword line const Sci_Position docLines = styler.GetLine(styler.Length() - 1); for ( Sci_Position line = endLine + 1; line <= docLines; line++ ) { Sci_Position lineType = LineType(line, styler) ; if ( lineType != 8 ) { if ( !(lineType & 4) ) { beginComment = endLine + 1 ; } break ; } } } if ( beginData < 0 ) { beginData = beginComment ; if ( prvKeyLineTp != 5 ) SafeSetLevel(prvKeyLine, level, styler) ; else SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; } else { SafeSetLevel(prvKeyLine, level | SC_FOLDLEVELHEADERFLAG, styler) ; } int datLevel = level + 1 ; if ( !(prvKeyLineTp & 4) ) { datLevel = level ; } for ( Sci_Position ll = beginData; ll < beginComment; ll++ ) SafeSetLevel(ll, datLevel, styler) ; if ( prvKeyLineTp == 5 ) { level += 1 ; } if ( prvKeyLineTp == 6 ) { level -= 1 ; } for ( Sci_Position m = beginComment; m <= endLine; m++ ) SafeSetLevel(m, level, styler) ; } static const char * const abaqusWordListDesc[] = { "processors", "commands", "slashommands", "starcommands", "arguments", "functions", 0 }; LexerModule lmAbaqus(SCLEX_ABAQUS, ColouriseABAQUSDoc, "abaqus", FoldABAQUSDoc, abaqusWordListDesc); codequery-0.21.0/scintilla/lexers/LexAda.cxx000066400000000000000000000267401310136352400207470ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexAda.cxx ** Lexer for Ada 95 **/ // Copyright 2002 by Sergey Koshcheyev // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /* * Interface */ static void ColouriseDocument( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler); static const char * const adaWordListDesc[] = { "Keywords", 0 }; LexerModule lmAda(SCLEX_ADA, ColouriseDocument, "ada", NULL, adaWordListDesc); /* * Implementation */ // Functions that have apostropheStartsAttribute as a parameter set it according to whether // an apostrophe encountered after processing the current token will start an attribute or // a character literal. static void ColouriseCharacter(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseComment(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseContext(StyleContext& sc, char chEnd, int stateEOL); static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseLabel(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute); static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseString(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseWhiteSpace(StyleContext& sc, bool& apostropheStartsAttribute); static void ColouriseWord(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute); static inline bool IsDelimiterCharacter(int ch); static inline bool IsSeparatorOrDelimiterCharacter(int ch); static bool IsValidIdentifier(const std::string& identifier); static bool IsValidNumber(const std::string& number); static inline bool IsWordStartCharacter(int ch); static inline bool IsWordCharacter(int ch); static void ColouriseCharacter(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; sc.SetState(SCE_ADA_CHARACTER); // Skip the apostrophe and one more character (so that '' is shown as non-terminated and ''' // is handled correctly) sc.Forward(); sc.Forward(); ColouriseContext(sc, '\'', SCE_ADA_CHARACTEREOL); } static void ColouriseContext(StyleContext& sc, char chEnd, int stateEOL) { while (!sc.atLineEnd && !sc.Match(chEnd)) { sc.Forward(); } if (!sc.atLineEnd) { sc.ForwardSetState(SCE_ADA_DEFAULT); } else { sc.ChangeState(stateEOL); } } static void ColouriseComment(StyleContext& sc, bool& /*apostropheStartsAttribute*/) { // Apostrophe meaning is not changed, but the parameter is present for uniformity sc.SetState(SCE_ADA_COMMENTLINE); while (!sc.atLineEnd) { sc.Forward(); } } static void ColouriseDelimiter(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = sc.Match (')'); sc.SetState(SCE_ADA_DELIMITER); sc.ForwardSetState(SCE_ADA_DEFAULT); } static void ColouriseLabel(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute) { apostropheStartsAttribute = false; sc.SetState(SCE_ADA_LABEL); // Skip "<<" sc.Forward(); sc.Forward(); std::string identifier; while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { identifier += static_cast(tolower(sc.ch)); sc.Forward(); } // Skip ">>" if (sc.Match('>', '>')) { sc.Forward(); sc.Forward(); } else { sc.ChangeState(SCE_ADA_ILLEGAL); } // If the name is an invalid identifier or a keyword, then make it invalid label if (!IsValidIdentifier(identifier) || keywords.InList(identifier.c_str())) { sc.ChangeState(SCE_ADA_ILLEGAL); } sc.SetState(SCE_ADA_DEFAULT); } static void ColouriseNumber(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; std::string number; sc.SetState(SCE_ADA_NUMBER); // Get all characters up to a delimiter or a separator, including points, but excluding // double points (ranges). while (!IsSeparatorOrDelimiterCharacter(sc.ch) || (sc.ch == '.' && sc.chNext != '.')) { number += static_cast(sc.ch); sc.Forward(); } // Special case: exponent with sign if ((sc.chPrev == 'e' || sc.chPrev == 'E') && (sc.ch == '+' || sc.ch == '-')) { number += static_cast(sc.ch); sc.Forward (); while (!IsSeparatorOrDelimiterCharacter(sc.ch)) { number += static_cast(sc.ch); sc.Forward(); } } if (!IsValidNumber(number)) { sc.ChangeState(SCE_ADA_ILLEGAL); } sc.SetState(SCE_ADA_DEFAULT); } static void ColouriseString(StyleContext& sc, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; sc.SetState(SCE_ADA_STRING); sc.Forward(); ColouriseContext(sc, '"', SCE_ADA_STRINGEOL); } static void ColouriseWhiteSpace(StyleContext& sc, bool& /*apostropheStartsAttribute*/) { // Apostrophe meaning is not changed, but the parameter is present for uniformity sc.SetState(SCE_ADA_DEFAULT); sc.ForwardSetState(SCE_ADA_DEFAULT); } static void ColouriseWord(StyleContext& sc, WordList& keywords, bool& apostropheStartsAttribute) { apostropheStartsAttribute = true; sc.SetState(SCE_ADA_IDENTIFIER); std::string word; while (!sc.atLineEnd && !IsSeparatorOrDelimiterCharacter(sc.ch)) { word += static_cast(tolower(sc.ch)); sc.Forward(); } if (!IsValidIdentifier(word)) { sc.ChangeState(SCE_ADA_ILLEGAL); } else if (keywords.InList(word.c_str())) { sc.ChangeState(SCE_ADA_WORD); if (word != "all") { apostropheStartsAttribute = false; } } sc.SetState(SCE_ADA_DEFAULT); } // // ColouriseDocument // static void ColouriseDocument( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; StyleContext sc(startPos, length, initStyle, styler); Sci_Position lineCurrent = styler.GetLine(startPos); bool apostropheStartsAttribute = (styler.GetLineState(lineCurrent) & 1) != 0; while (sc.More()) { if (sc.atLineEnd) { // Go to the next line sc.Forward(); lineCurrent++; // Remember the line state for future incremental lexing styler.SetLineState(lineCurrent, apostropheStartsAttribute); // Don't continue any styles on the next line sc.SetState(SCE_ADA_DEFAULT); } // Comments if (sc.Match('-', '-')) { ColouriseComment(sc, apostropheStartsAttribute); // Strings } else if (sc.Match('"')) { ColouriseString(sc, apostropheStartsAttribute); // Characters } else if (sc.Match('\'') && !apostropheStartsAttribute) { ColouriseCharacter(sc, apostropheStartsAttribute); // Labels } else if (sc.Match('<', '<')) { ColouriseLabel(sc, keywords, apostropheStartsAttribute); // Whitespace } else if (IsASpace(sc.ch)) { ColouriseWhiteSpace(sc, apostropheStartsAttribute); // Delimiters } else if (IsDelimiterCharacter(sc.ch)) { ColouriseDelimiter(sc, apostropheStartsAttribute); // Numbers } else if (IsADigit(sc.ch) || sc.ch == '#') { ColouriseNumber(sc, apostropheStartsAttribute); // Keywords or identifiers } else { ColouriseWord(sc, keywords, apostropheStartsAttribute); } } sc.Complete(); } static inline bool IsDelimiterCharacter(int ch) { switch (ch) { case '&': case '\'': case '(': case ')': case '*': case '+': case ',': case '-': case '.': case '/': case ':': case ';': case '<': case '=': case '>': case '|': return true; default: return false; } } static inline bool IsSeparatorOrDelimiterCharacter(int ch) { return IsASpace(ch) || IsDelimiterCharacter(ch); } static bool IsValidIdentifier(const std::string& identifier) { // First character can't be '_', so initialize the flag to true bool lastWasUnderscore = true; size_t length = identifier.length(); // Zero-length identifiers are not valid (these can occur inside labels) if (length == 0) { return false; } // Check for valid character at the start if (!IsWordStartCharacter(identifier[0])) { return false; } // Check for only valid characters and no double underscores for (size_t i = 0; i < length; i++) { if (!IsWordCharacter(identifier[i]) || (identifier[i] == '_' && lastWasUnderscore)) { return false; } lastWasUnderscore = identifier[i] == '_'; } // Check for underscore at the end if (lastWasUnderscore == true) { return false; } // All checks passed return true; } static bool IsValidNumber(const std::string& number) { size_t hashPos = number.find("#"); bool seenDot = false; size_t i = 0; size_t length = number.length(); if (length == 0) return false; // Just in case // Decimal number if (hashPos == std::string::npos) { bool canBeSpecial = false; for (; i < length; i++) { if (number[i] == '_') { if (!canBeSpecial) { return false; } canBeSpecial = false; } else if (number[i] == '.') { if (!canBeSpecial || seenDot) { return false; } canBeSpecial = false; seenDot = true; } else if (IsADigit(number[i])) { canBeSpecial = true; } else { break; } } if (!canBeSpecial) return false; } else { // Based number bool canBeSpecial = false; int base = 0; // Parse base for (; i < length; i++) { int ch = number[i]; if (ch == '_') { if (!canBeSpecial) return false; canBeSpecial = false; } else if (IsADigit(ch)) { base = base * 10 + (ch - '0'); if (base > 16) return false; canBeSpecial = true; } else if (ch == '#' && canBeSpecial) { break; } else { return false; } } if (base < 2) return false; if (i == length) return false; i++; // Skip over '#' // Parse number canBeSpecial = false; for (; i < length; i++) { int ch = tolower(number[i]); if (ch == '_') { if (!canBeSpecial) { return false; } canBeSpecial = false; } else if (ch == '.') { if (!canBeSpecial || seenDot) { return false; } canBeSpecial = false; seenDot = true; } else if (IsADigit(ch)) { if (ch - '0' >= base) { return false; } canBeSpecial = true; } else if (ch >= 'a' && ch <= 'f') { if (ch - 'a' + 10 >= base) { return false; } canBeSpecial = true; } else if (ch == '#' && canBeSpecial) { break; } else { return false; } } if (i == length) { return false; } i++; } // Exponent (optional) if (i < length) { if (number[i] != 'e' && number[i] != 'E') return false; i++; // Move past 'E' if (i == length) { return false; } if (number[i] == '+') i++; else if (number[i] == '-') { if (seenDot) { i++; } else { return false; // Integer literals should not have negative exponents } } if (i == length) { return false; } bool canBeSpecial = false; for (; i < length; i++) { if (number[i] == '_') { if (!canBeSpecial) { return false; } canBeSpecial = false; } else if (IsADigit(number[i])) { canBeSpecial = true; } else { return false; } } if (!canBeSpecial) return false; } // if i == length, number was parsed successfully. return i == length; } static inline bool IsWordCharacter(int ch) { return IsWordStartCharacter(ch) || IsADigit(ch); } static inline bool IsWordStartCharacter(int ch) { return (IsASCII(ch) && isalpha(ch)) || ch == '_'; } codequery-0.21.0/scintilla/lexers/LexAsm.cxx000066400000000000000000000326231310136352400207770ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexAsm.cxx ** Lexer for Assembler, just for the MASM syntax ** Written by The Black Horus ** Enhancements and NASM stuff by Kein-Hong Man, 2003-10 ** SCE_ASM_COMMENTBLOCK and SCE_ASM_CHARACTER are for future GNU as colouring ** Converted to lexer object and added further folding features/properties by "Udo Lechner" **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '?'); } static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' || ch == '%' || ch == '@' || ch == '$' || ch == '?'); } static inline bool IsAsmOperator(const int ch) { if ((ch < 0x80) && (isalnum(ch))) return false; // '.' left out as it is used to make up numbers if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '^' || ch == '[' || ch == ']' || ch == '<' || ch == '&' || ch == '>' || ch == ',' || ch == '|' || ch == '~' || ch == '%' || ch == ':') return true; return false; } static bool IsStreamCommentStyle(int style) { return style == SCE_ASM_COMMENTDIRECTIVE || style == SCE_ASM_COMMENTBLOCK; } static inline int LowerCase(int c) { if (c >= 'A' && c <= 'Z') return 'a' + c - 'A'; return c; } // An individual named option for use in an OptionSet // Options used for LexerAsm struct OptionsAsm { std::string delimiter; bool fold; bool foldSyntaxBased; bool foldCommentMultiline; bool foldCommentExplicit; std::string foldExplicitStart; std::string foldExplicitEnd; bool foldExplicitAnywhere; bool foldCompact; OptionsAsm() { delimiter = ""; fold = false; foldSyntaxBased = true; foldCommentMultiline = false; foldCommentExplicit = false; foldExplicitStart = ""; foldExplicitEnd = ""; foldExplicitAnywhere = false; foldCompact = true; } }; static const char * const asmWordListDesc[] = { "CPU instructions", "FPU instructions", "Registers", "Directives", "Directive operands", "Extended instructions", "Directives4Foldstart", "Directives4Foldend", 0 }; struct OptionSetAsm : public OptionSet { OptionSetAsm() { DefineProperty("lexer.asm.comment.delimiter", &OptionsAsm::delimiter, "Character used for COMMENT directive's delimiter, replacing the standard \"~\"."); DefineProperty("fold", &OptionsAsm::fold); DefineProperty("fold.asm.syntax.based", &OptionsAsm::foldSyntaxBased, "Set this property to 0 to disable syntax based folding."); DefineProperty("fold.asm.comment.multiline", &OptionsAsm::foldCommentMultiline, "Set this property to 1 to enable folding multi-line comments."); DefineProperty("fold.asm.comment.explicit", &OptionsAsm::foldCommentExplicit, "This option enables folding explicit fold points when using the Asm lexer. " "Explicit fold points allows adding extra folding by placing a ;{ comment at the start and a ;} " "at the end of a section that should fold."); DefineProperty("fold.asm.explicit.start", &OptionsAsm::foldExplicitStart, "The string to use for explicit fold start points, replacing the standard ;{."); DefineProperty("fold.asm.explicit.end", &OptionsAsm::foldExplicitEnd, "The string to use for explicit fold end points, replacing the standard ;}."); DefineProperty("fold.asm.explicit.anywhere", &OptionsAsm::foldExplicitAnywhere, "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); DefineProperty("fold.compact", &OptionsAsm::foldCompact); DefineWordListSets(asmWordListDesc); } }; class LexerAsm : public ILexer { WordList cpuInstruction; WordList mathInstruction; WordList registers; WordList directive; WordList directiveOperand; WordList extInstruction; WordList directives4foldstart; WordList directives4foldend; OptionsAsm options; OptionSetAsm osAsm; int commentChar; public: LexerAsm(int commentChar_) { commentChar = commentChar_; } virtual ~LexerAsm() { } void SCI_METHOD Release() override { delete this; } int SCI_METHOD Version() const override { return lvOriginal; } const char * SCI_METHOD PropertyNames() override { return osAsm.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return osAsm.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char *name) override { return osAsm.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osAsm.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return 0; } static ILexer *LexerFactoryAsm() { return new LexerAsm(';'); } static ILexer *LexerFactoryAs() { return new LexerAsm('#'); } }; Sci_Position SCI_METHOD LexerAsm::PropertySet(const char *key, const char *val) { if (osAsm.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD LexerAsm::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: wordListN = &cpuInstruction; break; case 1: wordListN = &mathInstruction; break; case 2: wordListN = ®isters; break; case 3: wordListN = &directive; break; case 4: wordListN = &directiveOperand; break; case 5: wordListN = &extInstruction; break; case 6: wordListN = &directives4foldstart; break; case 7: wordListN = &directives4foldend; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; } } return firstModification; } void SCI_METHOD LexerAsm::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); // Do not leak onto next line if (initStyle == SCE_ASM_STRINGEOL) initStyle = SCE_ASM_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Prevent SCE_ASM_STRINGEOL from leaking back to previous line if (sc.atLineStart && (sc.state == SCE_ASM_STRING)) { sc.SetState(SCE_ASM_STRING); } else if (sc.atLineStart && (sc.state == SCE_ASM_CHARACTER)) { sc.SetState(SCE_ASM_CHARACTER); } // Handle line continuation generically. if (sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continue; } } // Determine if the current state should terminate. if (sc.state == SCE_ASM_OPERATOR) { if (!IsAsmOperator(sc.ch)) { sc.SetState(SCE_ASM_DEFAULT); } } else if (sc.state == SCE_ASM_NUMBER) { if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_ASM_DEFAULT); } } else if (sc.state == SCE_ASM_IDENTIFIER) { if (!IsAWordChar(sc.ch) ) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); bool IsDirective = false; if (cpuInstruction.InList(s)) { sc.ChangeState(SCE_ASM_CPUINSTRUCTION); } else if (mathInstruction.InList(s)) { sc.ChangeState(SCE_ASM_MATHINSTRUCTION); } else if (registers.InList(s)) { sc.ChangeState(SCE_ASM_REGISTER); } else if (directive.InList(s)) { sc.ChangeState(SCE_ASM_DIRECTIVE); IsDirective = true; } else if (directiveOperand.InList(s)) { sc.ChangeState(SCE_ASM_DIRECTIVEOPERAND); } else if (extInstruction.InList(s)) { sc.ChangeState(SCE_ASM_EXTINSTRUCTION); } sc.SetState(SCE_ASM_DEFAULT); if (IsDirective && !strcmp(s, "comment")) { char delimiter = options.delimiter.empty() ? '~' : options.delimiter.c_str()[0]; while (IsASpaceOrTab(sc.ch) && !sc.atLineEnd) { sc.ForwardSetState(SCE_ASM_DEFAULT); } if (sc.ch == delimiter) { sc.SetState(SCE_ASM_COMMENTDIRECTIVE); } } } } else if (sc.state == SCE_ASM_COMMENTDIRECTIVE) { char delimiter = options.delimiter.empty() ? '~' : options.delimiter.c_str()[0]; if (sc.ch == delimiter) { while (!sc.atLineEnd) { sc.Forward(); } sc.SetState(SCE_ASM_DEFAULT); } } else if (sc.state == SCE_ASM_COMMENT ) { if (sc.atLineEnd) { sc.SetState(SCE_ASM_DEFAULT); } } else if (sc.state == SCE_ASM_STRING) { if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_ASM_DEFAULT); } else if (sc.atLineEnd) { sc.ChangeState(SCE_ASM_STRINGEOL); sc.ForwardSetState(SCE_ASM_DEFAULT); } } else if (sc.state == SCE_ASM_CHARACTER) { if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_ASM_DEFAULT); } else if (sc.atLineEnd) { sc.ChangeState(SCE_ASM_STRINGEOL); sc.ForwardSetState(SCE_ASM_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_ASM_DEFAULT) { if (sc.ch == commentChar){ sc.SetState(SCE_ASM_COMMENT); } else if (IsASCII(sc.ch) && (isdigit(sc.ch) || (sc.ch == '.' && IsASCII(sc.chNext) && isdigit(sc.chNext)))) { sc.SetState(SCE_ASM_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_ASM_IDENTIFIER); } else if (sc.ch == '\"') { sc.SetState(SCE_ASM_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_ASM_CHARACTER); } else if (IsAsmOperator(sc.ch)) { sc.SetState(SCE_ASM_OPERATOR); } } } sc.Complete(); } // Store both the current line's fold level and the next lines in the // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "else". void SCI_METHOD LexerAsm::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (!options.fold) return; LexAccessor styler(pAccess); Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; char word[100]; int wordlen = 0; const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (options.foldCommentMultiline && IsStreamCommentStyle(style)) { if (!IsStreamCommentStyle(stylePrev)) { levelNext++; } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelNext--; } } if (options.foldCommentExplicit && ((style == SCE_ASM_COMMENT) || options.foldExplicitAnywhere)) { if (userDefinedFoldMarkers) { if (styler.Match(i, options.foldExplicitStart.c_str())) { levelNext++; } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { levelNext--; } } else { if (ch == ';') { if (chNext == '{') { levelNext++; } else if (chNext == '}') { levelNext--; } } } } if (options.foldSyntaxBased && (style == SCE_ASM_DIRECTIVE)) { word[wordlen++] = static_cast(LowerCase(ch)); if (wordlen == 100) { // prevent overflow word[0] = '\0'; wordlen = 1; } if (styleNext != SCE_ASM_DIRECTIVE) { // reading directive ready word[wordlen] = '\0'; wordlen = 0; if (directives4foldstart.InList(word)) { levelNext++; } else if (directives4foldend.InList(word)){ levelNext--; } } } if (!IsASpace(ch)) visibleChars++; if (atEOL || (i == endPos-1)) { int levelUse = levelCurrent; int lev = levelUse | levelNext << 16; if (visibleChars == 0 && options.foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelCurrent = levelNext; if (atEOL && (i == static_cast(styler.Length() - 1))) { // There is an empty line at end of file so give it same level and empty styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); } visibleChars = 0; } } } LexerModule lmAsm(SCLEX_ASM, LexerAsm::LexerFactoryAsm, "asm", asmWordListDesc); LexerModule lmAs(SCLEX_AS, LexerAsm::LexerFactoryAs, "as", asmWordListDesc); codequery-0.21.0/scintilla/lexers/LexAsn1.cxx000066400000000000000000000122671310136352400210630ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexAsn1.cxx ** Lexer for ASN.1 **/ // Copyright 2004 by Herr Pfarrer rpfarrer yahoo de // Last Updated: 20/07/2004 // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Some char test functions static bool isAsn1Number(int ch) { return (ch >= '0' && ch <= '9'); } static bool isAsn1Letter(int ch) { return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); } static bool isAsn1Char(int ch) { return (ch == '-' ) || isAsn1Number(ch) || isAsn1Letter (ch); } // // Function determining the color of a given code portion // Based on a "state" // static void ColouriseAsn1Doc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordLists[], Accessor &styler) { // The keywords WordList &Keywords = *keywordLists[0]; WordList &Attributes = *keywordLists[1]; WordList &Descriptors = *keywordLists[2]; WordList &Types = *keywordLists[3]; // Parse the whole buffer character by character using StyleContext StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // The state engine switch (sc.state) { case SCE_ASN1_DEFAULT: // Plain characters asn1_default: if (sc.ch == '-' && sc.chNext == '-') // A comment begins here sc.SetState(SCE_ASN1_COMMENT); else if (sc.ch == '"') // A string begins here sc.SetState(SCE_ASN1_STRING); else if (isAsn1Number (sc.ch)) // A number starts here (identifier should start with a letter in ASN.1) sc.SetState(SCE_ASN1_SCALAR); else if (isAsn1Char (sc.ch)) // An identifier starts here (identifier always start with a letter) sc.SetState(SCE_ASN1_IDENTIFIER); else if (sc.ch == ':') // A ::= operator starts here sc.SetState(SCE_ASN1_OPERATOR); break; case SCE_ASN1_COMMENT: // A comment if (sc.ch == '\r' || sc.ch == '\n') // A comment ends here sc.SetState(SCE_ASN1_DEFAULT); break; case SCE_ASN1_IDENTIFIER: // An identifier (keyword, attribute, descriptor or type) if (!isAsn1Char (sc.ch)) { // The end of identifier is here: we can look for it in lists by now and change its state char s[100]; sc.GetCurrent(s, sizeof(s)); if (Keywords.InList(s)) // It's a keyword, change its state sc.ChangeState(SCE_ASN1_KEYWORD); else if (Attributes.InList(s)) // It's an attribute, change its state sc.ChangeState(SCE_ASN1_ATTRIBUTE); else if (Descriptors.InList(s)) // It's a descriptor, change its state sc.ChangeState(SCE_ASN1_DESCRIPTOR); else if (Types.InList(s)) // It's a type, change its state sc.ChangeState(SCE_ASN1_TYPE); // Set to default now sc.SetState(SCE_ASN1_DEFAULT); } break; case SCE_ASN1_STRING: // A string delimited by "" if (sc.ch == '"') { // A string ends here sc.ForwardSetState(SCE_ASN1_DEFAULT); // To correctly manage a char sticking to the string quote goto asn1_default; } break; case SCE_ASN1_SCALAR: // A plain number if (!isAsn1Number (sc.ch)) // A number ends here sc.SetState(SCE_ASN1_DEFAULT); break; case SCE_ASN1_OPERATOR: // The affectation operator ::= and wath follows (eg: ::= { org 6 } OID or ::= 12 trap) if (sc.ch == '{') { // An OID definition starts here: enter the sub loop for (; sc.More(); sc.Forward()) { if (isAsn1Number (sc.ch) && (!isAsn1Char (sc.chPrev) || isAsn1Number (sc.chPrev))) // The OID number is highlighted sc.SetState(SCE_ASN1_OID); else if (isAsn1Char (sc.ch)) // The OID parent identifier is plain sc.SetState(SCE_ASN1_IDENTIFIER); else sc.SetState(SCE_ASN1_DEFAULT); if (sc.ch == '}') // Here ends the OID and the operator sub loop: go back to main loop break; } } else if (isAsn1Number (sc.ch)) { // A trap number definition starts here: enter the sub loop for (; sc.More(); sc.Forward()) { if (isAsn1Number (sc.ch)) // The trap number is highlighted sc.SetState(SCE_ASN1_OID); else { // The number ends here: go back to main loop sc.SetState(SCE_ASN1_DEFAULT); break; } } } else if (sc.ch != ':' && sc.ch != '=' && sc.ch != ' ') // The operator doesn't imply an OID definition nor a trap, back to main loop goto asn1_default; // To be sure to handle actually the state change break; } } sc.Complete(); } static void FoldAsn1Doc(Sci_PositionU, Sci_Position, int, WordList *[], Accessor &styler) { // No folding enabled, no reason to continue... if( styler.GetPropertyInt("fold") == 0 ) return; // No folding implemented: doesn't make sense for ASN.1 } static const char * const asn1WordLists[] = { "Keywords", "Attributes", "Descriptors", "Types", 0, }; LexerModule lmAsn1(SCLEX_ASN1, ColouriseAsn1Doc, "asn1", FoldAsn1Doc, asn1WordLists); codequery-0.21.0/scintilla/lexers/LexBaan.cxx000066400000000000000000000713521310136352400211220ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexBaan.cxx ** Lexer for Baan. ** Based heavily on LexCPP.cxx **/ // Copyright 2001- by Vamsi Potluru & Praveen Ambekar // The License.txt file describes the conditions under which this software may be distributed. // C standard library #include #include // C++ wrappers of C standard library #include // C++ standard library #include #include // Scintilla headers // Non-platform-specific headers // include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" // lexlib #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" # ifdef SCI_NAMESPACE using namespace Scintilla; # endif namespace { // Use an unnamed namespace to protect the functions and classes from name conflicts // Options used for LexerBaan struct OptionsBaan { bool fold; bool foldComment; bool foldPreprocessor; bool foldCompact; bool baanFoldSyntaxBased; bool baanFoldKeywordsBased; bool baanFoldSections; bool baanFoldInnerLevel; bool baanStylingWithinPreprocessor; OptionsBaan() { fold = false; foldComment = false; foldPreprocessor = false; foldCompact = false; baanFoldSyntaxBased = false; baanFoldKeywordsBased = false; baanFoldSections = false; baanFoldInnerLevel = false; baanStylingWithinPreprocessor = false; } }; const char *const baanWordLists[] = { "Baan & BaanSQL Reserved Keywords ", "Baan Standard functions", "Baan Functions Abridged", "Baan Main Sections ", "Baan Sub Sections", "PreDefined Variables", "PreDefined Attributes", "Enumerates", 0, }; struct OptionSetBaan : public OptionSet { OptionSetBaan() { DefineProperty("fold", &OptionsBaan::fold); DefineProperty("fold.comment", &OptionsBaan::foldComment); DefineProperty("fold.preprocessor", &OptionsBaan::foldPreprocessor); DefineProperty("fold.compact", &OptionsBaan::foldCompact); DefineProperty("fold.baan.syntax.based", &OptionsBaan::baanFoldSyntaxBased, "Set this property to 0 to disable syntax based folding, which is folding based on '{' & '('."); DefineProperty("fold.baan.keywords.based", &OptionsBaan::baanFoldKeywordsBased, "Set this property to 0 to disable keywords based folding, which is folding based on " " for, if, on (case), repeat, select, while and fold ends based on endfor, endif, endcase, until, endselect, endwhile respectively." "Also folds declarations which are grouped together."); DefineProperty("fold.baan.sections", &OptionsBaan::baanFoldSections, "Set this property to 0 to disable folding of Main Sections as well as Sub Sections."); DefineProperty("fold.baan.inner.level", &OptionsBaan::baanFoldInnerLevel, "Set this property to 1 to enable folding of inner levels of select statements." "Disabled by default. case and if statements are also eligible" ); DefineProperty("lexer.baan.styling.within.preprocessor", &OptionsBaan::baanStylingWithinPreprocessor, "For Baan code, determines whether all preprocessor code is styled in the " "preprocessor style (0, the default) or only from the initial # to the end " "of the command word(1)."); DefineWordListSets(baanWordLists); } }; static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '$'); } static inline bool IsAnOperator(int ch) { if (IsAlphaNumeric(ch)) return false; if (ch == '#' || ch == '^' || ch == '&' || ch == '*' || ch == '(' || ch == ')' || ch == '-' || ch == '+' || ch == '=' || ch == '|' || ch == '{' || ch == '}' || ch == '[' || ch == ']' || ch == ':' || ch == ';' || ch == '<' || ch == '>' || ch == ',' || ch == '/' || ch == '?' || ch == '!' || ch == '"' || ch == '~' || ch == '\\') return true; return false; } static inline int IsAnyOtherIdentifier(char *s, int sLength) { /* IsAnyOtherIdentifier uses standard templates used in baan. The matching template is shown as comments just above the return condition. ^ - refers to any character [a-z]. # - refers to any number [0-9]. Other characters shown are compared as is. Tried implementing with Regex... it was too complicated for me. Any other implementation suggestion welcome. */ switch (sLength) { case 8: if (isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { //^^^^^### return(SCE_BAAN_TABLEDEF); } break; case 9: if (s[0] == 't' && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && isalpha(s[5]) && IsADigit(s[6]) && IsADigit(s[7]) && IsADigit(s[8])) { //t^^^^^### return(SCE_BAAN_TABLEDEF); } else if (s[8] == '.' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { //^^^^^###. return(SCE_BAAN_TABLESQL); } break; case 13: if (s[8] == '.' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { //^^^^^###.**** return(SCE_BAAN_TABLESQL); } else if (s[0] == 'r' && s[1] == 'c' && s[2] == 'd' && s[3] == '.' && s[4] == 't' && isalpha(s[5]) && isalpha(s[6]) && isalpha(s[7]) && isalpha(s[8]) && isalpha(s[9]) && IsADigit(s[10]) && IsADigit(s[11]) && IsADigit(s[12])) { //rcd.t^^^^^### return(SCE_BAAN_TABLEDEF); } break; case 14: case 15: if (s[8] == '.' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { if (s[13] != ':') { //^^^^^###.****** return(SCE_BAAN_TABLESQL); } } break; case 16: case 17: if (s[8] == '.' && s[9] == '_' && s[10] == 'i' && s[11] == 'n' && s[12] == 'd' && s[13] == 'e' && s[14] == 'x' && IsADigit(s[15]) && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { //^^^^^###._index## return(SCE_BAAN_TABLEDEF); } else if (s[8] == '.' && s[9] == '_' && s[10] == 'c' && s[11] == 'o' && s[12] == 'm' && s[13] == 'p' && s[14] == 'n' && s[15] == 'r' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[5]) && IsADigit(s[6]) && IsADigit(s[7])) { //^^^^^###._compnr return(SCE_BAAN_TABLEDEF); } break; default: break; } if (sLength > 14 && s[5] == '.' && s[6] == 'd' && s[7] == 'l' && s[8] == 'l' && s[13] == '.' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && IsADigit(s[9]) && IsADigit(s[10]) && IsADigit(s[11]) && IsADigit(s[12])) { //^^^^^.dll####. return(SCE_BAAN_FUNCTION); } else if (sLength > 15 && s[2] == 'i' && s[3] == 'n' && s[4] == 't' && s[5] == '.' && s[6] == 'd' && s[7] == 'l' && s[8] == 'l' && isalpha(s[0]) && isalpha(s[1]) && isalpha(s[9]) && isalpha(s[10]) && isalpha(s[11]) && isalpha(s[12]) && isalpha(s[13])) { //^^int.dll^^^^^. return(SCE_BAAN_FUNCTION); } else if (sLength > 11 && s[0] == 'i' && s[10] == '.' && isalpha(s[1]) && isalpha(s[2]) && isalpha(s[3]) && isalpha(s[4]) && isalpha(s[5]) && IsADigit(s[6]) && IsADigit(s[7]) && IsADigit(s[8]) && IsADigit(s[9])) { //i^^^^^####. return(SCE_BAAN_FUNCTION); } return(SCE_BAAN_DEFAULT); } static bool IsCommentLine(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (ch == '|' && style == SCE_BAAN_COMMENT) return true; else if (!IsASpaceOrTab(ch)) return false; } return false; } static bool IsPreProcLine(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (ch == '#' && style == SCE_BAAN_PREPROCESSOR) { if (styler.Match(i, "#elif") || styler.Match(i, "#else") || styler.Match(i, "#endif") || styler.Match(i, "#if") || styler.Match(i, "#ifdef") || styler.Match(i, "#ifndef")) // Above PreProcessors has a seperate fold mechanism. return false; else return true; } else if (ch == '^') return true; else if (!IsASpaceOrTab(ch)) return false; } return false; } static int mainOrSubSectionLine(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (style == SCE_BAAN_WORD5 || style == SCE_BAAN_WORD4) return style; else if (IsASpaceOrTab(ch)) continue; else break; } return 0; } static bool priorSectionIsSubSection(Sci_Position line, LexAccessor &styler){ while (line > 0) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (style == SCE_BAAN_WORD4) return true; else if (style == SCE_BAAN_WORD5) return false; else if (IsASpaceOrTab(ch)) continue; else break; } line--; } return false; } static bool nextSectionIsSubSection(Sci_Position line, LexAccessor &styler) { while (line > 0) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (style == SCE_BAAN_WORD4) return true; else if (style == SCE_BAAN_WORD5) return false; else if (IsASpaceOrTab(ch)) continue; else break; } line++; } return false; } static bool IsDeclarationLine(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (style == SCE_BAAN_WORD) { if (styler.Match(i, "table") || styler.Match(i, "extern") || styler.Match(i, "long") || styler.Match(i, "double") || styler.Match(i, "boolean") || styler.Match(i, "string") || styler.Match(i, "domain")) { for (Sci_Position j = eol_pos; j > pos; j--) { int styleFromEnd = styler.StyleAt(j); if (styleFromEnd == SCE_BAAN_COMMENT) continue; else if (IsASpace(styler[j])) continue; else if (styler[j] != ',') //Above conditions ensures, Declaration is not part of any function parameters. return true; else return false; } } else return false; } else if (!IsASpaceOrTab(ch)) return false; } return false; } static bool IsInnerLevelFold(Sci_Position line, LexAccessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; int style = styler.StyleAt(i); if (style == SCE_BAAN_WORD && (styler.Match(i, "else" ) || styler.Match(i, "case") || styler.Match(i, "default") || styler.Match(i, "selectdo") || styler.Match(i, "selecteos") || styler.Match(i, "selectempty") || styler.Match(i, "selecterror"))) return true; else if (IsASpaceOrTab(ch)) continue; else return false; } return false; } static inline bool wordInArray(const std::string& value, std::string *array, int length) { for (int i = 0; i < length; i++) { if (value == array[i]) { return true; } } return false; } class WordListAbridged : public WordList { public: WordListAbridged() { kwAbridged = false; kwHasSection = false; }; ~WordListAbridged() { Clear(); }; bool kwAbridged; bool kwHasSection; bool Contains(const char *s) { return kwAbridged ? InListAbridged(s, '~') : InList(s); }; }; } class LexerBaan : public ILexer { WordListAbridged keywords; WordListAbridged keywords2; WordListAbridged keywords3; WordListAbridged keywords4; WordListAbridged keywords5; WordListAbridged keywords6; WordListAbridged keywords7; WordListAbridged keywords8; WordListAbridged keywords9; OptionsBaan options; OptionSetBaan osBaan; public: LexerBaan() { } virtual ~LexerBaan() { } int SCI_METHOD Version() const override { return lvOriginal; } void SCI_METHOD Release() override { delete this; } const char * SCI_METHOD PropertyNames() override { return osBaan.PropertyNames(); } int SCI_METHOD PropertyType(const char * name) override { return osBaan.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char * name) override { return osBaan.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osBaan.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return NULL; } static ILexer * LexerFactoryBaan() { return new LexerBaan(); } }; Sci_Position SCI_METHOD LexerBaan::PropertySet(const char *key, const char *val) { if (osBaan.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD LexerBaan::WordListSet(int n, const char *wl) { WordListAbridged *WordListAbridgedN = 0; switch (n) { case 0: WordListAbridgedN = &keywords; break; case 1: WordListAbridgedN = &keywords2; break; case 2: WordListAbridgedN = &keywords3; break; case 3: WordListAbridgedN = &keywords4; break; case 4: WordListAbridgedN = &keywords5; break; case 5: WordListAbridgedN = &keywords6; break; case 6: WordListAbridgedN = &keywords7; break; case 7: WordListAbridgedN = &keywords8; break; case 8: WordListAbridgedN = &keywords9; break; } Sci_Position firstModification = -1; if (WordListAbridgedN) { WordListAbridged wlNew; wlNew.Set(wl); if (*WordListAbridgedN != wlNew) { WordListAbridgedN->Set(wl); WordListAbridgedN->kwAbridged = strchr(wl, '~') != NULL; WordListAbridgedN->kwHasSection = strchr(wl, ':') != NULL; firstModification = 0; } } return firstModification; } void SCI_METHOD LexerBaan::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (initStyle == SCE_BAAN_STRINGEOL) // Does not leak onto next line initStyle = SCE_BAAN_DEFAULT; int visibleChars = 0; bool lineHasDomain = false; bool lineHasFunction = false; bool lineHasPreProc = false; bool lineIgnoreString = false; bool lineHasDefines = false; char word[1000]; int wordlen = 0; std::string preProcessorTags[11] = { "#define", "#elif", "#else", "#endif", "#ident", "#if", "#ifdef", "#ifndef", "#include", "#pragma", "#undef" }; LexAccessor styler(pAccess); StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Determine if the current state should terminate. switch (sc.state) { case SCE_BAAN_OPERATOR: sc.SetState(SCE_BAAN_DEFAULT); break; case SCE_BAAN_NUMBER: if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_BAAN_DEFAULT); } break; case SCE_BAAN_IDENTIFIER: if (!IsAWordChar(sc.ch)) { char s[1000]; char s1[1000]; sc.GetCurrentLowered(s, sizeof(s)); if (sc.ch == ':') { memcpy(s1, s, sizeof(s)); s1[sc.LengthCurrent()] = sc.ch; s1[sc.LengthCurrent() + 1] = '\0'; } if ((keywords.kwHasSection && (sc.ch == ':')) ? keywords.Contains(s1) : keywords.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD); if (0 == strcmp(s, "domain")) { lineHasDomain = true; } else if (0 == strcmp(s, "function")) { lineHasFunction = true; } } else if (lineHasDomain) { sc.ChangeState(SCE_BAAN_DOMDEF); lineHasDomain = false; } else if (lineHasFunction) { sc.ChangeState(SCE_BAAN_FUNCDEF); lineHasFunction = false; } else if ((keywords2.kwHasSection && (sc.ch == ':')) ? keywords2.Contains(s1) : keywords2.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD2); } else if ((keywords3.kwHasSection && (sc.ch == ':')) ? keywords3.Contains(s1) : keywords3.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD3); } else if ((keywords4.kwHasSection && (sc.ch == ':')) ? keywords4.Contains(s1) : keywords4.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD4); } else if ((keywords5.kwHasSection && (sc.ch == ':')) ? keywords5.Contains(s1) : keywords5.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD5); } else if ((keywords6.kwHasSection && (sc.ch == ':')) ? keywords6.Contains(s1) : keywords6.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD6); } else if ((keywords7.kwHasSection && (sc.ch == ':')) ? keywords7.Contains(s1) : keywords7.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD7); } else if ((keywords8.kwHasSection && (sc.ch == ':')) ? keywords8.Contains(s1) : keywords8.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD8); } else if ((keywords9.kwHasSection && (sc.ch == ':')) ? keywords9.Contains(s1) : keywords9.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD9); } else if (lineHasPreProc) { sc.ChangeState(SCE_BAAN_OBJECTDEF); lineHasPreProc = false; } else if (lineHasDefines) { sc.ChangeState(SCE_BAAN_DEFINEDEF); lineHasDefines = false; } else { int state = IsAnyOtherIdentifier(s, sc.LengthCurrent()); if (state > 0) { sc.ChangeState(state); } } sc.SetState(SCE_BAAN_DEFAULT); } break; case SCE_BAAN_PREPROCESSOR: if (options.baanStylingWithinPreprocessor) { if (IsASpace(sc.ch) || IsAnOperator(sc.ch)) { sc.SetState(SCE_BAAN_DEFAULT); } } else { if (sc.atLineEnd && (sc.chNext != '^')) { sc.SetState(SCE_BAAN_DEFAULT); } } break; case SCE_BAAN_COMMENT: if (sc.atLineEnd) { sc.SetState(SCE_BAAN_DEFAULT); } break; case SCE_BAAN_COMMENTDOC: if (sc.MatchIgnoreCase("enddllusage")) { for (unsigned int i = 0; i < 10; i++) { sc.Forward(); } sc.ForwardSetState(SCE_BAAN_DEFAULT); } else if (sc.MatchIgnoreCase("endfunctionusage")) { for (unsigned int i = 0; i < 15; i++) { sc.Forward(); } sc.ForwardSetState(SCE_BAAN_DEFAULT); } break; case SCE_BAAN_STRING: if (sc.ch == '\"') { sc.ForwardSetState(SCE_BAAN_DEFAULT); } else if ((sc.atLineEnd) && (sc.chNext != '^')) { sc.ChangeState(SCE_BAAN_STRINGEOL); sc.ForwardSetState(SCE_BAAN_DEFAULT); visibleChars = 0; } break; } // Determine if a new state should be entered. if (sc.state == SCE_BAAN_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_BAAN_NUMBER); } else if (sc.MatchIgnoreCase("dllusage") || sc.MatchIgnoreCase("functionusage")) { sc.SetState(SCE_BAAN_COMMENTDOC); do { sc.Forward(); } while ((!sc.atLineEnd) && sc.More()); } else if (iswordstart(sc.ch)) { sc.SetState(SCE_BAAN_IDENTIFIER); } else if (sc.Match('|')) { sc.SetState(SCE_BAAN_COMMENT); } else if (sc.ch == '\"' && !(lineIgnoreString)) { sc.SetState(SCE_BAAN_STRING); } else if (sc.ch == '#' && visibleChars == 0) { // Preprocessor commands are alone on their line sc.SetState(SCE_BAAN_PREPROCESSOR); word[0] = '\0'; wordlen = 0; while (sc.More() && !(IsASpace(sc.chNext) || IsAnOperator(sc.chNext))) { sc.Forward(); wordlen++; } sc.GetCurrentLowered(word, sizeof(word)); if (!sc.atLineEnd) { word[wordlen++] = sc.ch; word[wordlen++] = '\0'; } if (!wordInArray(word, preProcessorTags, 11)) // Colorise only preprocessor built in Baan. sc.ChangeState(SCE_BAAN_IDENTIFIER); if (strcmp(word, "#pragma") == 0 || strcmp(word, "#include") == 0) { lineHasPreProc = true; lineIgnoreString = true; } else if (strcmp(word, "#define") == 0 || strcmp(word, "#undef") == 0 || strcmp(word, "#ifdef") == 0 || strcmp(word, "#if") == 0 || strcmp(word, "#ifndef") == 0) { lineHasDefines = true; lineIgnoreString = false; } } else if (IsAnOperator(static_cast(sc.ch))) { sc.SetState(SCE_BAAN_OPERATOR); } } if (sc.atLineEnd) { // Reset states to begining of colourise so no surprises // if different sets of lines lexed. visibleChars = 0; lineHasDomain = false; lineHasFunction = false; lineHasPreProc = false; lineIgnoreString = false; lineHasDefines = false; } if (!IsASpace(sc.ch)) { visibleChars++; } } sc.Complete(); } void SCI_METHOD LexerBaan::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (!options.fold) return; char word[100]; int wordlen = 0; bool foldStart = true; bool foldNextSelect = true; bool afterFunctionSection = false; bool beforeDeclarationSection = false; int currLineStyle = 0; int nextLineStyle = 0; std::string startTags[6] = { "for", "if", "on", "repeat", "select", "while" }; std::string endTags[6] = { "endcase", "endfor", "endif", "endselect", "endwhile", "until" }; std::string selectCloseTags[5] = { "selectdo", "selecteos", "selectempty", "selecterror", "endselect" }; LexAccessor styler(pAccess); Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); // Backtrack to previous line in case need to fix its fold status if (startPos > 0) { if (lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); } } int levelPrev = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelPrev = styler.LevelAt(lineCurrent - 1) >> 16; int levelCurrent = levelPrev; char chNext = styler[startPos]; int style = initStyle; int styleNext = styler.StyleAt(startPos); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); style = styleNext; styleNext = styler.StyleAt(i + 1); int stylePrev = (i) ? styler.StyleAt(i - 1) : SCE_BAAN_DEFAULT; bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); // Comment folding if (options.foldComment && style == SCE_BAAN_COMMENTDOC) { if (style != stylePrev) { levelCurrent++; } else if (style != styleNext) { levelCurrent--; } } if (options.foldComment && atEOL && IsCommentLine(lineCurrent, styler)) { if (!IsCommentLine(lineCurrent - 1, styler) && IsCommentLine(lineCurrent + 1, styler)) levelCurrent++; else if (IsCommentLine(lineCurrent - 1, styler) && !IsCommentLine(lineCurrent + 1, styler)) levelCurrent--; } // PreProcessor Folding if (options.foldPreprocessor) { if (atEOL && IsPreProcLine(lineCurrent, styler)) { if (!IsPreProcLine(lineCurrent - 1, styler) && IsPreProcLine(lineCurrent + 1, styler)) levelCurrent++; else if (IsPreProcLine(lineCurrent - 1, styler) && !IsPreProcLine(lineCurrent + 1, styler)) levelCurrent--; } else if (style == SCE_BAAN_PREPROCESSOR) { // folds #ifdef/#if/#ifndef - they are not part of the IsPreProcLine folding. if (ch == '#') { if (styler.Match(i, "#ifdef") || styler.Match(i, "#if") || styler.Match(i, "#ifndef")) levelCurrent++; else if (styler.Match(i, "#endif")) levelCurrent--; } } } //Syntax Folding if (options.baanFoldSyntaxBased && (style == SCE_BAAN_OPERATOR)) { if (ch == '{' || ch == '(') { levelCurrent++; } else if (ch == '}' || ch == ')') { levelCurrent--; } } //Keywords Folding if (options.baanFoldKeywordsBased) { if (atEOL && IsDeclarationLine(lineCurrent, styler)) { if (!IsDeclarationLine(lineCurrent - 1, styler) && IsDeclarationLine(lineCurrent + 1, styler)) levelCurrent++; else if (IsDeclarationLine(lineCurrent - 1, styler) && !IsDeclarationLine(lineCurrent + 1, styler)) levelCurrent--; } else if (style == SCE_BAAN_WORD) { word[wordlen++] = static_cast(MakeLowerCase(ch)); if (wordlen == 100) { // prevent overflow word[0] = '\0'; wordlen = 1; } if (styleNext != SCE_BAAN_WORD) { word[wordlen] = '\0'; wordlen = 0; if (strcmp(word, "for") == 0) { Sci_PositionU j = i + 1; while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { j++; } if (styler.Match(j, "update")) { // Means this is a "for update" used by Select which is already folded. foldStart = false; } } else if (strcmp(word, "on") == 0) { Sci_PositionU j = i + 1; while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { j++; } if (!styler.Match(j, "case")) { // Means this is not a "on Case" statement... could be "on" used by index. foldStart = false; } } else if (strcmp(word, "select") == 0) { if (foldNextSelect) { // Next Selects are sub-clause till reach of selectCloseTags[] array. foldNextSelect = false; foldStart = true; } else { foldNextSelect = false; foldStart = false; } } else if (wordInArray(word, selectCloseTags, 5)) { // select clause ends, next select clause can be folded. foldNextSelect = true; foldStart = true; } else { foldStart = true; } if (foldStart) { if (wordInArray(word, startTags, 6)) { levelCurrent++; } else if (wordInArray(word, endTags, 6)) { levelCurrent--; } } } } } // Fold inner level of if/select/case statements if (options.baanFoldInnerLevel && atEOL) { bool currLineInnerLevel = IsInnerLevelFold(lineCurrent, styler); bool nextLineInnerLevel = IsInnerLevelFold(lineCurrent + 1, styler); if (currLineInnerLevel && currLineInnerLevel != nextLineInnerLevel) { levelCurrent++; } else if (nextLineInnerLevel && nextLineInnerLevel != currLineInnerLevel) { levelCurrent--; } } // Section Foldings. // One way of implementing Section Foldings, as there is no END markings of sections. // first section ends on the previous line of next section. // Re-written whole folding to accomodate this. if (options.baanFoldSections && atEOL) { currLineStyle = mainOrSubSectionLine(lineCurrent, styler); nextLineStyle = mainOrSubSectionLine(lineCurrent + 1, styler); if (currLineStyle != 0 && currLineStyle != nextLineStyle) { if (levelCurrent < levelPrev) --levelPrev; for (Sci_Position j = styler.LineStart(lineCurrent); j < styler.LineStart(lineCurrent + 1) - 1; j++) { if (IsASpaceOrTab(styler[j])) continue; else if (styler.StyleAt(j) == SCE_BAAN_WORD5) { if (styler.Match(j, "functions:")) { // Means functions: is the end of MainSections. // Nothing to fold after this. afterFunctionSection = true; break; } else { afterFunctionSection = false; break; } } else { afterFunctionSection = false; break; } } if (!afterFunctionSection) levelCurrent++; } else if (nextLineStyle != 0 && currLineStyle != nextLineStyle && (priorSectionIsSubSection(lineCurrent -1 ,styler) || !nextSectionIsSubSection(lineCurrent + 1, styler))) { for (Sci_Position j = styler.LineStart(lineCurrent + 1); j < styler.LineStart(lineCurrent + 1 + 1) - 1; j++) { if (IsASpaceOrTab(styler[j])) continue; else if (styler.StyleAt(j) == SCE_BAAN_WORD5) { if (styler.Match(j, "declaration:")) { // Means declaration: is the start of MainSections. // Nothing to fold before this. beforeDeclarationSection = true; break; } else { beforeDeclarationSection = false; break; } } else { beforeDeclarationSection = false; break; } } if (!beforeDeclarationSection) { levelCurrent--; if (nextLineStyle == SCE_BAAN_WORD5 && priorSectionIsSubSection(lineCurrent-1, styler)) // next levelCurrent--; is to unfold previous subsection fold. // On reaching the next main section, the previous main as well sub section ends. levelCurrent--; } } } if (atEOL) { int lev = levelPrev; lev |= levelCurrent << 16; if (visibleChars == 0 && options.foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } LexerModule lmBaan(SCLEX_BAAN, LexerBaan::LexerFactoryBaan, "baan", baanWordLists); codequery-0.21.0/scintilla/lexers/LexBash.cxx000066400000000000000000000642151310136352400211360ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexBash.cxx ** Lexer for Bash. **/ // Copyright 2004-2012 by Neil Hodgson // Adapted from LexPerl by Kein-Hong Man 2004 // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #define HERE_DELIM_MAX 256 // define this if you want 'invalid octals' to be marked as errors // usually, this is not a good idea, permissive lexing is better #undef PEDANTIC_OCTAL #define BASH_BASE_ERROR 65 #define BASH_BASE_DECIMAL 66 #define BASH_BASE_HEX 67 #ifdef PEDANTIC_OCTAL #define BASH_BASE_OCTAL 68 #define BASH_BASE_OCTAL_ERROR 69 #endif // state constants for parts of a bash command segment #define BASH_CMD_BODY 0 #define BASH_CMD_START 1 #define BASH_CMD_WORD 2 #define BASH_CMD_TEST 3 #define BASH_CMD_ARITH 4 #define BASH_CMD_DELIM 5 // state constants for nested delimiter pairs, used by // SCE_SH_STRING and SCE_SH_BACKTICKS processing #define BASH_DELIM_LITERAL 0 #define BASH_DELIM_STRING 1 #define BASH_DELIM_CSTRING 2 #define BASH_DELIM_LSTRING 3 #define BASH_DELIM_COMMAND 4 #define BASH_DELIM_BACKTICK 5 #define BASH_DELIM_STACK_MAX 7 static inline int translateBashDigit(int ch) { if (ch >= '0' && ch <= '9') { return ch - '0'; } else if (ch >= 'a' && ch <= 'z') { return ch - 'a' + 10; } else if (ch >= 'A' && ch <= 'Z') { return ch - 'A' + 36; } else if (ch == '@') { return 62; } else if (ch == '_') { return 63; } return BASH_BASE_ERROR; } static inline int getBashNumberBase(char *s) { int i = 0; int base = 0; while (*s) { base = base * 10 + (*s++ - '0'); i++; } if (base > 64 || i > 2) { return BASH_BASE_ERROR; } return base; } static int opposite(int ch) { if (ch == '(') return ')'; if (ch == '[') return ']'; if (ch == '{') return '}'; if (ch == '<') return '>'; return ch; } static int GlobScan(StyleContext &sc) { // forward scan for a glob-like (...), no whitespace allowed int c, sLen = 0; while ((c = sc.GetRelativeCharacter(++sLen)) != 0) { if (IsASpace(c)) { return 0; } else if (c == ')') { return sLen; } } return 0; } static void ColouriseBashDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList cmdDelimiter, bashStruct, bashStruct_in; cmdDelimiter.Set("| || |& & && ; ;; ( ) { }"); bashStruct.Set("if elif fi while until else then do done esac eval"); bashStruct_in.Set("for case select"); CharacterSet setWordStart(CharacterSet::setAlpha, "_"); // note that [+-] are often parts of identifiers in shell scripts CharacterSet setWord(CharacterSet::setAlphaNum, "._+-"); CharacterSet setMetaCharacter(CharacterSet::setNone, "|&;()<> \t\r\n"); setMetaCharacter.Add(0); CharacterSet setBashOperator(CharacterSet::setNone, "^&%()-+=|{}[]:;>,*/(ch); Delimiter[DelimiterLength] = '\0'; } ~HereDocCls() { } }; HereDocCls HereDoc; class QuoteCls { // Class to manage quote pairs (simplified vs LexPerl) public: int Count; int Up, Down; QuoteCls() { Count = 0; Up = '\0'; Down = '\0'; } void Open(int u) { Count++; Up = u; Down = opposite(Up); } void Start(int u) { Count = 0; Open(u); } }; QuoteCls Quote; class QuoteStackCls { // Class to manage quote pairs that nest public: int Count; int Up, Down; int Style; int Depth; // levels pushed int CountStack[BASH_DELIM_STACK_MAX]; int UpStack [BASH_DELIM_STACK_MAX]; int StyleStack[BASH_DELIM_STACK_MAX]; QuoteStackCls() { Count = 0; Up = '\0'; Down = '\0'; Style = 0; Depth = 0; } void Start(int u, int s) { Count = 1; Up = u; Down = opposite(Up); Style = s; } void Push(int u, int s) { if (Depth >= BASH_DELIM_STACK_MAX) return; CountStack[Depth] = Count; UpStack [Depth] = Up; StyleStack[Depth] = Style; Depth++; Count = 1; Up = u; Down = opposite(Up); Style = s; } void Pop(void) { if (Depth <= 0) return; Depth--; Count = CountStack[Depth]; Up = UpStack [Depth]; Style = StyleStack[Depth]; Down = opposite(Up); } ~QuoteStackCls() { } }; QuoteStackCls QuoteStack; int numBase = 0; int digit; Sci_PositionU endPos = startPos + length; int cmdState = BASH_CMD_START; int testExprType = 0; // Always backtracks to the start of a line that is not a continuation // of the previous line (i.e. start of a bash command segment) Sci_Position ln = styler.GetLine(startPos); if (ln > 0 && startPos == static_cast(styler.LineStart(ln))) ln--; for (;;) { startPos = styler.LineStart(ln); if (ln == 0 || styler.GetLineState(ln) == BASH_CMD_START) break; ln--; } initStyle = SCE_SH_DEFAULT; StyleContext sc(startPos, endPos - startPos, initStyle, styler); for (; sc.More(); sc.Forward()) { // handle line continuation, updates per-line stored state if (sc.atLineStart) { ln = styler.GetLine(sc.currentPos); if (sc.state == SCE_SH_STRING || sc.state == SCE_SH_BACKTICKS || sc.state == SCE_SH_CHARACTER || sc.state == SCE_SH_HERE_Q || sc.state == SCE_SH_COMMENTLINE || sc.state == SCE_SH_PARAM) { // force backtrack while retaining cmdState styler.SetLineState(ln, BASH_CMD_BODY); } else { if (ln > 0) { if ((sc.GetRelative(-3) == '\\' && sc.GetRelative(-2) == '\r' && sc.chPrev == '\n') || sc.GetRelative(-2) == '\\') { // handle '\' line continuation // retain last line's state } else cmdState = BASH_CMD_START; } styler.SetLineState(ln, cmdState); } } // controls change of cmdState at the end of a non-whitespace element // states BODY|TEST|ARITH persist until the end of a command segment // state WORD persist, but ends with 'in' or 'do' construct keywords int cmdStateNew = BASH_CMD_BODY; if (cmdState == BASH_CMD_TEST || cmdState == BASH_CMD_ARITH || cmdState == BASH_CMD_WORD) cmdStateNew = cmdState; int stylePrev = sc.state; // Determine if the current state should terminate. switch (sc.state) { case SCE_SH_OPERATOR: sc.SetState(SCE_SH_DEFAULT); if (cmdState == BASH_CMD_DELIM) // if command delimiter, start new command cmdStateNew = BASH_CMD_START; else if (sc.chPrev == '\\') // propagate command state if line continued cmdStateNew = cmdState; break; case SCE_SH_WORD: // "." never used in Bash variable names but used in file names if (!setWord.Contains(sc.ch)) { char s[500]; char s2[10]; sc.GetCurrent(s, sizeof(s)); // allow keywords ending in a whitespace or command delimiter s2[0] = static_cast(sc.ch); s2[1] = '\0'; bool keywordEnds = IsASpace(sc.ch) || cmdDelimiter.InList(s2); // 'in' or 'do' may be construct keywords if (cmdState == BASH_CMD_WORD) { if (strcmp(s, "in") == 0 && keywordEnds) cmdStateNew = BASH_CMD_BODY; else if (strcmp(s, "do") == 0 && keywordEnds) cmdStateNew = BASH_CMD_START; else sc.ChangeState(SCE_SH_IDENTIFIER); sc.SetState(SCE_SH_DEFAULT); break; } // a 'test' keyword starts a test expression if (strcmp(s, "test") == 0) { if (cmdState == BASH_CMD_START && keywordEnds) { cmdStateNew = BASH_CMD_TEST; testExprType = 0; } else sc.ChangeState(SCE_SH_IDENTIFIER); } // detect bash construct keywords else if (bashStruct.InList(s)) { if (cmdState == BASH_CMD_START && keywordEnds) cmdStateNew = BASH_CMD_START; else sc.ChangeState(SCE_SH_IDENTIFIER); } // 'for'|'case'|'select' needs 'in'|'do' to be highlighted later else if (bashStruct_in.InList(s)) { if (cmdState == BASH_CMD_START && keywordEnds) cmdStateNew = BASH_CMD_WORD; else sc.ChangeState(SCE_SH_IDENTIFIER); } // disambiguate option items and file test operators else if (s[0] == '-') { if (cmdState != BASH_CMD_TEST) sc.ChangeState(SCE_SH_IDENTIFIER); } // disambiguate keywords and identifiers else if (cmdState != BASH_CMD_START || !(keywords.InList(s) && keywordEnds)) { sc.ChangeState(SCE_SH_IDENTIFIER); } sc.SetState(SCE_SH_DEFAULT); } break; case SCE_SH_IDENTIFIER: if (sc.chPrev == '\\') { // for escaped chars sc.ForwardSetState(SCE_SH_DEFAULT); } else if (!setWord.Contains(sc.ch)) { sc.SetState(SCE_SH_DEFAULT); } else if (cmdState == BASH_CMD_ARITH && !setWordStart.Contains(sc.ch)) { sc.SetState(SCE_SH_DEFAULT); } break; case SCE_SH_NUMBER: digit = translateBashDigit(sc.ch); if (numBase == BASH_BASE_DECIMAL) { if (sc.ch == '#') { char s[10]; sc.GetCurrent(s, sizeof(s)); numBase = getBashNumberBase(s); if (numBase != BASH_BASE_ERROR) break; } else if (IsADigit(sc.ch)) break; } else if (numBase == BASH_BASE_HEX) { if (IsADigit(sc.ch, 16)) break; #ifdef PEDANTIC_OCTAL } else if (numBase == BASH_BASE_OCTAL || numBase == BASH_BASE_OCTAL_ERROR) { if (digit <= 7) break; if (digit <= 9) { numBase = BASH_BASE_OCTAL_ERROR; break; } #endif } else if (numBase == BASH_BASE_ERROR) { if (digit <= 9) break; } else { // DD#DDDD number style handling if (digit != BASH_BASE_ERROR) { if (numBase <= 36) { // case-insensitive if base<=36 if (digit >= 36) digit -= 26; } if (digit < numBase) break; if (digit <= 9) { numBase = BASH_BASE_ERROR; break; } } } // fallthrough when number is at an end or error if (numBase == BASH_BASE_ERROR #ifdef PEDANTIC_OCTAL || numBase == BASH_BASE_OCTAL_ERROR #endif ) { sc.ChangeState(SCE_SH_ERROR); } sc.SetState(SCE_SH_DEFAULT); break; case SCE_SH_COMMENTLINE: if (sc.atLineEnd && sc.chPrev != '\\') { sc.SetState(SCE_SH_DEFAULT); } break; case SCE_SH_HERE_DELIM: // From Bash info: // --------------- // Specifier format is: <<[-]WORD // Optional '-' is for removal of leading tabs from here-doc. // Whitespace acceptable after <<[-] operator // if (HereDoc.State == 0) { // '<<' encountered HereDoc.Quote = sc.chNext; HereDoc.Quoted = false; HereDoc.DelimiterLength = 0; HereDoc.Delimiter[HereDoc.DelimiterLength] = '\0'; if (sc.chNext == '\'' || sc.chNext == '\"') { // a quoted here-doc delimiter (' or ") sc.Forward(); HereDoc.Quoted = true; HereDoc.State = 1; } else if (setHereDoc.Contains(sc.chNext) || (sc.chNext == '=' && cmdState != BASH_CMD_ARITH)) { // an unquoted here-doc delimiter, no special handling HereDoc.State = 1; } else if (sc.chNext == '<') { // HERE string <<< sc.Forward(); sc.ForwardSetState(SCE_SH_DEFAULT); } else if (IsASpace(sc.chNext)) { // eat whitespace } else if (setLeftShift.Contains(sc.chNext) || (sc.chNext == '=' && cmdState == BASH_CMD_ARITH)) { // left shift <<$var or <<= cases sc.ChangeState(SCE_SH_OPERATOR); sc.ForwardSetState(SCE_SH_DEFAULT); } else { // symbols terminates; deprecated zero-length delimiter HereDoc.State = 1; } } else if (HereDoc.State == 1) { // collect the delimiter // * if single quoted, there's no escape // * if double quoted, there are \\ and \" escapes if ((HereDoc.Quote == '\'' && sc.ch != HereDoc.Quote) || (HereDoc.Quoted && sc.ch != HereDoc.Quote && sc.ch != '\\') || (HereDoc.Quote != '\'' && sc.chPrev == '\\') || (setHereDoc2.Contains(sc.ch))) { HereDoc.Append(sc.ch); } else if (HereDoc.Quoted && sc.ch == HereDoc.Quote) { // closing quote => end of delimiter sc.ForwardSetState(SCE_SH_DEFAULT); } else if (sc.ch == '\\') { if (HereDoc.Quoted && sc.chNext != HereDoc.Quote && sc.chNext != '\\') { // in quoted prefixes only \ and the quote eat the escape HereDoc.Append(sc.ch); } else { // skip escape prefix } } else if (!HereDoc.Quoted) { sc.SetState(SCE_SH_DEFAULT); } if (HereDoc.DelimiterLength >= HERE_DELIM_MAX - 1) { // force blowup sc.SetState(SCE_SH_ERROR); HereDoc.State = 0; } } break; case SCE_SH_HERE_Q: // HereDoc.State == 2 if (sc.atLineStart) { sc.SetState(SCE_SH_HERE_Q); int prefixws = 0; while (sc.ch == '\t' && !sc.atLineEnd) { // tabulation prefix sc.Forward(); prefixws++; } if (prefixws > 0) sc.SetState(SCE_SH_HERE_Q); while (!sc.atLineEnd) { sc.Forward(); } char s[HERE_DELIM_MAX]; sc.GetCurrent(s, sizeof(s)); if (sc.LengthCurrent() == 0) { // '' or "" delimiters if ((prefixws == 0 || HereDoc.Indent) && HereDoc.Quoted && HereDoc.DelimiterLength == 0) sc.SetState(SCE_SH_DEFAULT); break; } if (s[strlen(s) - 1] == '\r') s[strlen(s) - 1] = '\0'; if (strcmp(HereDoc.Delimiter, s) == 0) { if ((prefixws == 0) || // indentation rule (prefixws > 0 && HereDoc.Indent)) { sc.SetState(SCE_SH_DEFAULT); break; } } } break; case SCE_SH_SCALAR: // variable names if (!setParam.Contains(sc.ch)) { if (sc.LengthCurrent() == 1) { // Special variable: $(, $_ etc. sc.ForwardSetState(SCE_SH_DEFAULT); } else { sc.SetState(SCE_SH_DEFAULT); } } break; case SCE_SH_STRING: // delimited styles, can nest case SCE_SH_BACKTICKS: if (sc.ch == '\\' && QuoteStack.Up != '\\') { if (QuoteStack.Style != BASH_DELIM_LITERAL) sc.Forward(); } else if (sc.ch == QuoteStack.Down) { QuoteStack.Count--; if (QuoteStack.Count == 0) { if (QuoteStack.Depth > 0) { QuoteStack.Pop(); } else sc.ForwardSetState(SCE_SH_DEFAULT); } } else if (sc.ch == QuoteStack.Up) { QuoteStack.Count++; } else { if (QuoteStack.Style == BASH_DELIM_STRING || QuoteStack.Style == BASH_DELIM_LSTRING ) { // do nesting for "string", $"locale-string" if (sc.ch == '`') { QuoteStack.Push(sc.ch, BASH_DELIM_BACKTICK); } else if (sc.ch == '$' && sc.chNext == '(') { sc.Forward(); QuoteStack.Push(sc.ch, BASH_DELIM_COMMAND); } } else if (QuoteStack.Style == BASH_DELIM_COMMAND || QuoteStack.Style == BASH_DELIM_BACKTICK ) { // do nesting for $(command), `command` if (sc.ch == '\'') { QuoteStack.Push(sc.ch, BASH_DELIM_LITERAL); } else if (sc.ch == '\"') { QuoteStack.Push(sc.ch, BASH_DELIM_STRING); } else if (sc.ch == '`') { QuoteStack.Push(sc.ch, BASH_DELIM_BACKTICK); } else if (sc.ch == '$') { if (sc.chNext == '\'') { sc.Forward(); QuoteStack.Push(sc.ch, BASH_DELIM_CSTRING); } else if (sc.chNext == '\"') { sc.Forward(); QuoteStack.Push(sc.ch, BASH_DELIM_LSTRING); } else if (sc.chNext == '(') { sc.Forward(); QuoteStack.Push(sc.ch, BASH_DELIM_COMMAND); } } } } break; case SCE_SH_PARAM: // ${parameter} if (sc.ch == '\\' && Quote.Up != '\\') { sc.Forward(); } else if (sc.ch == Quote.Down) { Quote.Count--; if (Quote.Count == 0) { sc.ForwardSetState(SCE_SH_DEFAULT); } } else if (sc.ch == Quote.Up) { Quote.Count++; } break; case SCE_SH_CHARACTER: // singly-quoted strings if (sc.ch == Quote.Down) { Quote.Count--; if (Quote.Count == 0) { sc.ForwardSetState(SCE_SH_DEFAULT); } } break; } // Must check end of HereDoc state 1 before default state is handled if (HereDoc.State == 1 && sc.atLineEnd) { // Begin of here-doc (the line after the here-doc delimiter): // Lexically, the here-doc starts from the next line after the >>, but the // first line of here-doc seem to follow the style of the last EOL sequence HereDoc.State = 2; if (HereDoc.Quoted) { if (sc.state == SCE_SH_HERE_DELIM) { // Missing quote at end of string! Syntax error in bash 4.3 // Mark this bit as an error, do not colour any here-doc sc.ChangeState(SCE_SH_ERROR); sc.SetState(SCE_SH_DEFAULT); } else { // HereDoc.Quote always == '\'' sc.SetState(SCE_SH_HERE_Q); } } else if (HereDoc.DelimiterLength == 0) { // no delimiter, illegal (but '' and "" are legal) sc.ChangeState(SCE_SH_ERROR); sc.SetState(SCE_SH_DEFAULT); } else { sc.SetState(SCE_SH_HERE_Q); } } // update cmdState about the current command segment if (stylePrev != SCE_SH_DEFAULT && sc.state == SCE_SH_DEFAULT) { cmdState = cmdStateNew; } // Determine if a new state should be entered. if (sc.state == SCE_SH_DEFAULT) { if (sc.ch == '\\') { // Bash can escape any non-newline as a literal sc.SetState(SCE_SH_IDENTIFIER); if (sc.chNext == '\r' || sc.chNext == '\n') sc.SetState(SCE_SH_OPERATOR); } else if (IsADigit(sc.ch)) { sc.SetState(SCE_SH_NUMBER); numBase = BASH_BASE_DECIMAL; if (sc.ch == '0') { // hex,octal if (sc.chNext == 'x' || sc.chNext == 'X') { numBase = BASH_BASE_HEX; sc.Forward(); } else if (IsADigit(sc.chNext)) { #ifdef PEDANTIC_OCTAL numBase = BASH_BASE_OCTAL; #else numBase = BASH_BASE_HEX; #endif } } } else if (setWordStart.Contains(sc.ch)) { sc.SetState(SCE_SH_WORD); } else if (sc.ch == '#') { if (stylePrev != SCE_SH_WORD && stylePrev != SCE_SH_IDENTIFIER && (sc.currentPos == 0 || setMetaCharacter.Contains(sc.chPrev))) { sc.SetState(SCE_SH_COMMENTLINE); } else { sc.SetState(SCE_SH_WORD); } // handle some zsh features within arithmetic expressions only if (cmdState == BASH_CMD_ARITH) { if (sc.chPrev == '[') { // [#8] [##8] output digit setting sc.SetState(SCE_SH_WORD); if (sc.chNext == '#') { sc.Forward(); } } else if (sc.Match("##^") && IsUpperCase(sc.GetRelative(3))) { // ##^A sc.SetState(SCE_SH_IDENTIFIER); sc.Forward(3); } else if (sc.chNext == '#' && !IsASpace(sc.GetRelative(2))) { // ##a sc.SetState(SCE_SH_IDENTIFIER); sc.Forward(2); } else if (setWordStart.Contains(sc.chNext)) { // #name sc.SetState(SCE_SH_IDENTIFIER); } } } else if (sc.ch == '\"') { sc.SetState(SCE_SH_STRING); QuoteStack.Start(sc.ch, BASH_DELIM_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_SH_CHARACTER); Quote.Start(sc.ch); } else if (sc.ch == '`') { sc.SetState(SCE_SH_BACKTICKS); QuoteStack.Start(sc.ch, BASH_DELIM_BACKTICK); } else if (sc.ch == '$') { if (sc.Match("$((")) { sc.SetState(SCE_SH_OPERATOR); // handle '((' later continue; } sc.SetState(SCE_SH_SCALAR); sc.Forward(); if (sc.ch == '{') { sc.ChangeState(SCE_SH_PARAM); Quote.Start(sc.ch); } else if (sc.ch == '\'') { sc.ChangeState(SCE_SH_STRING); QuoteStack.Start(sc.ch, BASH_DELIM_CSTRING); } else if (sc.ch == '"') { sc.ChangeState(SCE_SH_STRING); QuoteStack.Start(sc.ch, BASH_DELIM_LSTRING); } else if (sc.ch == '(') { sc.ChangeState(SCE_SH_BACKTICKS); QuoteStack.Start(sc.ch, BASH_DELIM_COMMAND); } else if (sc.ch == '`') { // $` seen in a configure script, valid? sc.ChangeState(SCE_SH_BACKTICKS); QuoteStack.Start(sc.ch, BASH_DELIM_BACKTICK); } else { continue; // scalar has no delimiter pair } } else if (sc.Match('<', '<')) { sc.SetState(SCE_SH_HERE_DELIM); HereDoc.State = 0; if (sc.GetRelative(2) == '-') { // <<- indent case HereDoc.Indent = true; sc.Forward(); } else { HereDoc.Indent = false; } } else if (sc.ch == '-' && // one-char file test operators setSingleCharOp.Contains(sc.chNext) && !setWord.Contains(sc.GetRelative(2)) && IsASpace(sc.chPrev)) { sc.SetState(SCE_SH_WORD); sc.Forward(); } else if (setBashOperator.Contains(sc.ch)) { char s[10]; bool isCmdDelim = false; sc.SetState(SCE_SH_OPERATOR); // globs have no whitespace, do not appear in arithmetic expressions if (cmdState != BASH_CMD_ARITH && sc.ch == '(' && sc.chNext != '(') { int i = GlobScan(sc); if (i > 1) { sc.SetState(SCE_SH_IDENTIFIER); sc.Forward(i); continue; } } // handle opening delimiters for test/arithmetic expressions - ((,[[,[ if (cmdState == BASH_CMD_START || cmdState == BASH_CMD_BODY) { if (sc.Match('(', '(')) { cmdState = BASH_CMD_ARITH; sc.Forward(); } else if (sc.Match('[', '[') && IsASpace(sc.GetRelative(2))) { cmdState = BASH_CMD_TEST; testExprType = 1; sc.Forward(); } else if (sc.ch == '[' && IsASpace(sc.chNext)) { cmdState = BASH_CMD_TEST; testExprType = 2; } } // special state -- for ((x;y;z)) in ... looping if (cmdState == BASH_CMD_WORD && sc.Match('(', '(')) { cmdState = BASH_CMD_ARITH; sc.Forward(); continue; } // handle command delimiters in command START|BODY|WORD state, also TEST if 'test' if (cmdState == BASH_CMD_START || cmdState == BASH_CMD_BODY || cmdState == BASH_CMD_WORD || (cmdState == BASH_CMD_TEST && testExprType == 0)) { s[0] = static_cast(sc.ch); if (setBashOperator.Contains(sc.chNext)) { s[1] = static_cast(sc.chNext); s[2] = '\0'; isCmdDelim = cmdDelimiter.InList(s); if (isCmdDelim) sc.Forward(); } if (!isCmdDelim) { s[1] = '\0'; isCmdDelim = cmdDelimiter.InList(s); } if (isCmdDelim) { cmdState = BASH_CMD_DELIM; continue; } } // handle closing delimiters for test/arithmetic expressions - )),]],] if (cmdState == BASH_CMD_ARITH && sc.Match(')', ')')) { cmdState = BASH_CMD_BODY; sc.Forward(); } else if (cmdState == BASH_CMD_TEST && IsASpace(sc.chPrev)) { if (sc.Match(']', ']') && testExprType == 1) { sc.Forward(); cmdState = BASH_CMD_BODY; } else if (sc.ch == ']' && testExprType == 2) { cmdState = BASH_CMD_BODY; } } } }// sc.state } sc.Complete(); if (sc.state == SCE_SH_HERE_Q) { styler.ChangeLexerState(sc.currentPos, styler.Length()); } sc.Complete(); } static bool IsCommentLine(Sci_Position line, Accessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; if (ch == '#') return true; else if (ch != ' ' && ch != '\t') return false; } return false; } static void FoldBashDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; int skipHereCh = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); // Comment folding if (foldComment && atEOL && IsCommentLine(lineCurrent, styler)) { if (!IsCommentLine(lineCurrent - 1, styler) && IsCommentLine(lineCurrent + 1, styler)) levelCurrent++; else if (IsCommentLine(lineCurrent - 1, styler) && !IsCommentLine(lineCurrent + 1, styler)) levelCurrent--; } if (style == SCE_SH_OPERATOR) { if (ch == '{') { levelCurrent++; } else if (ch == '}') { levelCurrent--; } } // Here Document folding if (style == SCE_SH_HERE_DELIM) { if (ch == '<' && chNext == '<') { if (styler.SafeGetCharAt(i + 2) == '<') { skipHereCh = 1; } else { if (skipHereCh == 0) { levelCurrent++; } else { skipHereCh = 0; } } } } else if (style == SCE_SH_HERE_Q && styler.StyleAt(i+1) == SCE_SH_DEFAULT) { levelCurrent--; } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const bashWordListDesc[] = { "Keywords", 0 }; LexerModule lmBash(SCLEX_BASH, ColouriseBashDoc, "bash", FoldBashDoc, bashWordListDesc); codequery-0.21.0/scintilla/lexers/LexBasic.cxx000066400000000000000000000403131310136352400212730ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexBasic.cxx ** Lexer for BlitzBasic and PureBasic. ** Converted to lexer object and added further folding features/properties by "Udo Lechner" **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. // This tries to be a unified Lexer/Folder for all the BlitzBasic/BlitzMax/PurBasic basics // and derivatives. Once they diverge enough, might want to split it into multiple // lexers for more code clearity. // // Mail me (elias users sf net) for any bugs. // Folding only works for simple things like functions or types. // You may want to have a look at my ctags lexer as well, if you additionally to coloring // and folding need to extract things like label tags in your editor. #include #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /* Bits: * 1 - whitespace * 2 - operator * 4 - identifier * 8 - decimal digit * 16 - hex digit * 32 - bin digit * 64 - letter */ static int character_classification[128] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, 60, 60, 28, 28, 28, 28, 28, 28, 28, 28, 2, 2, 2, 2, 2, 2, 2, 84, 84, 84, 84, 84, 84, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 2, 2, 2, 2, 68, 2, 84, 84, 84, 84, 84, 84, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 2, 2, 2, 2, 0 }; static bool IsSpace(int c) { return c < 128 && (character_classification[c] & 1); } static bool IsOperator(int c) { return c < 128 && (character_classification[c] & 2); } static bool IsIdentifier(int c) { return c < 128 && (character_classification[c] & 4); } static bool IsDigit(int c) { return c < 128 && (character_classification[c] & 8); } static bool IsHexDigit(int c) { return c < 128 && (character_classification[c] & 16); } static bool IsBinDigit(int c) { return c < 128 && (character_classification[c] & 32); } static bool IsLetter(int c) { return c < 128 && (character_classification[c] & 64); } static int LowerCase(int c) { if (c >= 'A' && c <= 'Z') return 'a' + c - 'A'; return c; } static int CheckBlitzFoldPoint(char const *token, int &level) { if (!strcmp(token, "function") || !strcmp(token, "type")) { level |= SC_FOLDLEVELHEADERFLAG; return 1; } if (!strcmp(token, "end function") || !strcmp(token, "end type")) { return -1; } return 0; } static int CheckPureFoldPoint(char const *token, int &level) { if (!strcmp(token, "procedure") || !strcmp(token, "enumeration") || !strcmp(token, "interface") || !strcmp(token, "structure")) { level |= SC_FOLDLEVELHEADERFLAG; return 1; } if (!strcmp(token, "endprocedure") || !strcmp(token, "endenumeration") || !strcmp(token, "endinterface") || !strcmp(token, "endstructure")) { return -1; } return 0; } static int CheckFreeFoldPoint(char const *token, int &level) { if (!strcmp(token, "function") || !strcmp(token, "sub") || !strcmp(token, "enum") || !strcmp(token, "type") || !strcmp(token, "union") || !strcmp(token, "property") || !strcmp(token, "destructor") || !strcmp(token, "constructor")) { level |= SC_FOLDLEVELHEADERFLAG; return 1; } if (!strcmp(token, "end function") || !strcmp(token, "end sub") || !strcmp(token, "end enum") || !strcmp(token, "end type") || !strcmp(token, "end union") || !strcmp(token, "end property") || !strcmp(token, "end destructor") || !strcmp(token, "end constructor")) { return -1; } return 0; } // An individual named option for use in an OptionSet // Options used for LexerBasic struct OptionsBasic { bool fold; bool foldSyntaxBased; bool foldCommentExplicit; std::string foldExplicitStart; std::string foldExplicitEnd; bool foldExplicitAnywhere; bool foldCompact; OptionsBasic() { fold = false; foldSyntaxBased = true; foldCommentExplicit = false; foldExplicitStart = ""; foldExplicitEnd = ""; foldExplicitAnywhere = false; foldCompact = true; } }; static const char * const blitzbasicWordListDesc[] = { "BlitzBasic Keywords", "user1", "user2", "user3", 0 }; static const char * const purebasicWordListDesc[] = { "PureBasic Keywords", "PureBasic PreProcessor Keywords", "user defined 1", "user defined 2", 0 }; static const char * const freebasicWordListDesc[] = { "FreeBasic Keywords", "FreeBasic PreProcessor Keywords", "user defined 1", "user defined 2", 0 }; struct OptionSetBasic : public OptionSet { OptionSetBasic(const char * const wordListDescriptions[]) { DefineProperty("fold", &OptionsBasic::fold); DefineProperty("fold.basic.syntax.based", &OptionsBasic::foldSyntaxBased, "Set this property to 0 to disable syntax based folding."); DefineProperty("fold.basic.comment.explicit", &OptionsBasic::foldCommentExplicit, "This option enables folding explicit fold points when using the Basic lexer. " "Explicit fold points allows adding extra folding by placing a ;{ (BB/PB) or '{ (FB) comment at the start " "and a ;} (BB/PB) or '} (FB) at the end of a section that should be folded."); DefineProperty("fold.basic.explicit.start", &OptionsBasic::foldExplicitStart, "The string to use for explicit fold start points, replacing the standard ;{ (BB/PB) or '{ (FB)."); DefineProperty("fold.basic.explicit.end", &OptionsBasic::foldExplicitEnd, "The string to use for explicit fold end points, replacing the standard ;} (BB/PB) or '} (FB)."); DefineProperty("fold.basic.explicit.anywhere", &OptionsBasic::foldExplicitAnywhere, "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); DefineProperty("fold.compact", &OptionsBasic::foldCompact); DefineWordListSets(wordListDescriptions); } }; class LexerBasic : public ILexer { char comment_char; int (*CheckFoldPoint)(char const *, int &); WordList keywordlists[4]; OptionsBasic options; OptionSetBasic osBasic; public: LexerBasic(char comment_char_, int (*CheckFoldPoint_)(char const *, int &), const char * const wordListDescriptions[]) : comment_char(comment_char_), CheckFoldPoint(CheckFoldPoint_), osBasic(wordListDescriptions) { } virtual ~LexerBasic() { } void SCI_METHOD Release() override { delete this; } int SCI_METHOD Version() const override { return lvOriginal; } const char * SCI_METHOD PropertyNames() override { return osBasic.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return osBasic.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char *name) override { return osBasic.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osBasic.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return 0; } static ILexer *LexerFactoryBlitzBasic() { return new LexerBasic(';', CheckBlitzFoldPoint, blitzbasicWordListDesc); } static ILexer *LexerFactoryPureBasic() { return new LexerBasic(';', CheckPureFoldPoint, purebasicWordListDesc); } static ILexer *LexerFactoryFreeBasic() { return new LexerBasic('\'', CheckFreeFoldPoint, freebasicWordListDesc ); } }; Sci_Position SCI_METHOD LexerBasic::PropertySet(const char *key, const char *val) { if (osBasic.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD LexerBasic::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: wordListN = &keywordlists[0]; break; case 1: wordListN = &keywordlists[1]; break; case 2: wordListN = &keywordlists[2]; break; case 3: wordListN = &keywordlists[3]; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; } } return firstModification; } void SCI_METHOD LexerBasic::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); bool wasfirst = true, isfirst = true; // true if first token in a line styler.StartAt(startPos); int styleBeforeKeyword = SCE_B_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); // Can't use sc.More() here else we miss the last character for (; ; sc.Forward()) { if (sc.state == SCE_B_IDENTIFIER) { if (!IsIdentifier(sc.ch)) { // Labels if (wasfirst && sc.Match(':')) { sc.ChangeState(SCE_B_LABEL); sc.ForwardSetState(SCE_B_DEFAULT); } else { char s[100]; int kstates[4] = { SCE_B_KEYWORD, SCE_B_KEYWORD2, SCE_B_KEYWORD3, SCE_B_KEYWORD4, }; sc.GetCurrentLowered(s, sizeof(s)); for (int i = 0; i < 4; i++) { if (keywordlists[i].InList(s)) { sc.ChangeState(kstates[i]); } } // Types, must set them as operator else they will be // matched as number/constant if (sc.Match('.') || sc.Match('$') || sc.Match('%') || sc.Match('#')) { sc.SetState(SCE_B_OPERATOR); } else { sc.SetState(SCE_B_DEFAULT); } } } } else if (sc.state == SCE_B_OPERATOR) { if (!IsOperator(sc.ch) || sc.Match('#')) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_LABEL) { if (!IsIdentifier(sc.ch)) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_CONSTANT) { if (!IsIdentifier(sc.ch)) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_NUMBER) { if (!IsDigit(sc.ch)) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_HEXNUMBER) { if (!IsHexDigit(sc.ch)) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_BINNUMBER) { if (!IsBinDigit(sc.ch)) sc.SetState(SCE_B_DEFAULT); } else if (sc.state == SCE_B_STRING) { if (sc.ch == '"') { sc.ForwardSetState(SCE_B_DEFAULT); } if (sc.atLineEnd) { sc.ChangeState(SCE_B_ERROR); sc.SetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_COMMENT || sc.state == SCE_B_PREPROCESSOR) { if (sc.atLineEnd) { sc.SetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_DOCLINE) { if (sc.atLineEnd) { sc.SetState(SCE_B_DEFAULT); } else if (sc.ch == '\\' || sc.ch == '@') { if (IsLetter(sc.chNext) && sc.chPrev != '\\') { styleBeforeKeyword = sc.state; sc.SetState(SCE_B_DOCKEYWORD); }; } } else if (sc.state == SCE_B_DOCKEYWORD) { if (IsSpace(sc.ch)) { sc.SetState(styleBeforeKeyword); } else if (sc.atLineEnd && styleBeforeKeyword == SCE_B_DOCLINE) { sc.SetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_COMMENTBLOCK) { if (sc.Match("\'/")) { sc.Forward(); sc.ForwardSetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_DOCBLOCK) { if (sc.Match("\'/")) { sc.Forward(); sc.ForwardSetState(SCE_B_DEFAULT); } else if (sc.ch == '\\' || sc.ch == '@') { if (IsLetter(sc.chNext) && sc.chPrev != '\\') { styleBeforeKeyword = sc.state; sc.SetState(SCE_B_DOCKEYWORD); }; } } if (sc.atLineStart) isfirst = true; if (sc.state == SCE_B_DEFAULT || sc.state == SCE_B_ERROR) { if (isfirst && sc.Match('.') && comment_char != '\'') { sc.SetState(SCE_B_LABEL); } else if (isfirst && sc.Match('#')) { wasfirst = isfirst; sc.SetState(SCE_B_IDENTIFIER); } else if (sc.Match(comment_char)) { // Hack to make deprecated QBASIC '$Include show // up in freebasic with SCE_B_PREPROCESSOR. if (comment_char == '\'' && sc.Match(comment_char, '$')) sc.SetState(SCE_B_PREPROCESSOR); else if (sc.Match("\'*") || sc.Match("\'!")) { sc.SetState(SCE_B_DOCLINE); } else { sc.SetState(SCE_B_COMMENT); } } else if (sc.Match("/\'")) { if (sc.Match("/\'*") || sc.Match("/\'!")) { // Support of gtk-doc/Doxygen doc. style sc.SetState(SCE_B_DOCBLOCK); } else { sc.SetState(SCE_B_COMMENTBLOCK); } sc.Forward(); // Eat the ' so it isn't used for the end of the comment } else if (sc.Match('"')) { sc.SetState(SCE_B_STRING); } else if (IsDigit(sc.ch)) { sc.SetState(SCE_B_NUMBER); } else if (sc.Match('$') || sc.Match("&h") || sc.Match("&H") || sc.Match("&o") || sc.Match("&O")) { sc.SetState(SCE_B_HEXNUMBER); } else if (sc.Match('%') || sc.Match("&b") || sc.Match("&B")) { sc.SetState(SCE_B_BINNUMBER); } else if (sc.Match('#')) { sc.SetState(SCE_B_CONSTANT); } else if (IsOperator(sc.ch)) { sc.SetState(SCE_B_OPERATOR); } else if (IsIdentifier(sc.ch)) { wasfirst = isfirst; sc.SetState(SCE_B_IDENTIFIER); } else if (!IsSpace(sc.ch)) { sc.SetState(SCE_B_ERROR); } } if (!IsSpace(sc.ch)) isfirst = false; if (!sc.More()) break; } sc.Complete(); } void SCI_METHOD LexerBasic::Fold(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, IDocument *pAccess) { if (!options.fold) return; LexAccessor styler(pAccess); Sci_Position line = styler.GetLine(startPos); int level = styler.LevelAt(line); int go = 0, done = 0; Sci_Position endPos = startPos + length; char word[256]; int wordlen = 0; const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); int cNext = styler[startPos]; // Scan for tokens at the start of the line (they may include // whitespace, for tokens like "End Function" for (Sci_Position i = startPos; i < endPos; i++) { int c = cNext; cNext = styler.SafeGetCharAt(i + 1); bool atEOL = (c == '\r' && cNext != '\n') || (c == '\n'); if (options.foldSyntaxBased && !done && !go) { if (wordlen) { // are we scanning a token already? word[wordlen] = static_cast(LowerCase(c)); if (!IsIdentifier(c)) { // done with token word[wordlen] = '\0'; go = CheckFoldPoint(word, level); if (!go) { // Treat any whitespace as single blank, for // things like "End Function". if (IsSpace(c) && IsIdentifier(word[wordlen - 1])) { word[wordlen] = ' '; if (wordlen < 255) wordlen++; } else // done with this line done = 1; } } else if (wordlen < 255) { wordlen++; } } else { // start scanning at first non-whitespace character if (!IsSpace(c)) { if (IsIdentifier(c)) { word[0] = static_cast(LowerCase(c)); wordlen = 1; } else // done with this line done = 1; } } } if (options.foldCommentExplicit && ((styler.StyleAt(i) == SCE_B_COMMENT) || options.foldExplicitAnywhere)) { if (userDefinedFoldMarkers) { if (styler.Match(i, options.foldExplicitStart.c_str())) { level |= SC_FOLDLEVELHEADERFLAG; go = 1; } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { go = -1; } } else { if (c == comment_char) { if (cNext == '{') { level |= SC_FOLDLEVELHEADERFLAG; go = 1; } else if (cNext == '}') { go = -1; } } } } if (atEOL) { // line end if (!done && wordlen == 0 && options.foldCompact) // line was only space level |= SC_FOLDLEVELWHITEFLAG; if (level != styler.LevelAt(line)) styler.SetLevel(line, level); level += go; line++; // reset state wordlen = 0; level &= ~SC_FOLDLEVELHEADERFLAG; level &= ~SC_FOLDLEVELWHITEFLAG; go = 0; done = 0; } } } LexerModule lmBlitzBasic(SCLEX_BLITZBASIC, LexerBasic::LexerFactoryBlitzBasic, "blitzbasic", blitzbasicWordListDesc); LexerModule lmPureBasic(SCLEX_PUREBASIC, LexerBasic::LexerFactoryPureBasic, "purebasic", purebasicWordListDesc); LexerModule lmFreeBasic(SCLEX_FREEBASIC, LexerBasic::LexerFactoryFreeBasic, "freebasic", freebasicWordListDesc); codequery-0.21.0/scintilla/lexers/LexBatch.cxx000066400000000000000000000417441310136352400213040ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexBatch.cxx ** Lexer for batch files. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static bool Is0To9(char ch) { return (ch >= '0') && (ch <= '9'); } static bool IsAlphabetic(int ch) { return IsASCII(ch) && isalpha(ch); } static inline bool AtEOL(Accessor &styler, Sci_PositionU i) { return (styler[i] == '\n') || ((styler[i] == '\r') && (styler.SafeGetCharAt(i + 1) != '\n')); } // Tests for BATCH Operators static bool IsBOperator(char ch) { return (ch == '=') || (ch == '+') || (ch == '>') || (ch == '<') || (ch == '|') || (ch == '?') || (ch == '*'); } // Tests for BATCH Separators static bool IsBSeparator(char ch) { return (ch == '\\') || (ch == '.') || (ch == ';') || (ch == '\"') || (ch == '\'') || (ch == '/'); } static void ColouriseBatchLine( char *lineBuffer, Sci_PositionU lengthLine, Sci_PositionU startLine, Sci_PositionU endPos, WordList *keywordlists[], Accessor &styler) { Sci_PositionU offset = 0; // Line Buffer Offset Sci_PositionU cmdLoc; // External Command / Program Location char wordBuffer[81]; // Word Buffer - large to catch long paths Sci_PositionU wbl; // Word Buffer Length Sci_PositionU wbo; // Word Buffer Offset - also Special Keyword Buffer Length WordList &keywords = *keywordlists[0]; // Internal Commands WordList &keywords2 = *keywordlists[1]; // External Commands (optional) // CHOICE, ECHO, GOTO, PROMPT and SET have Default Text that may contain Regular Keywords // Toggling Regular Keyword Checking off improves readability // Other Regular Keywords and External Commands / Programs might also benefit from toggling // Need a more robust algorithm to properly toggle Regular Keyword Checking bool continueProcessing = true; // Used to toggle Regular Keyword Checking // Special Keywords are those that allow certain characters without whitespace after the command // Examples are: cd. cd\ md. rd. dir| dir> echo: echo. path= // Special Keyword Buffer used to determine if the first n characters is a Keyword char sKeywordBuffer[10]; // Special Keyword Buffer bool sKeywordFound; // Exit Special Keyword for-loop if found // Skip initial spaces while ((offset < lengthLine) && (isspacechar(lineBuffer[offset]))) { offset++; } // Colorize Default Text styler.ColourTo(startLine + offset - 1, SCE_BAT_DEFAULT); // Set External Command / Program Location cmdLoc = offset; // Check for Fake Label (Comment) or Real Label - return if found if (lineBuffer[offset] == ':') { if (lineBuffer[offset + 1] == ':') { // Colorize Fake Label (Comment) - :: is similar to REM, see http://content.techweb.com/winmag/columns/explorer/2000/21.htm styler.ColourTo(endPos, SCE_BAT_COMMENT); } else { // Colorize Real Label styler.ColourTo(endPos, SCE_BAT_LABEL); } return; // Check for Drive Change (Drive Change is internal command) - return if found } else if ((IsAlphabetic(lineBuffer[offset])) && (lineBuffer[offset + 1] == ':') && ((isspacechar(lineBuffer[offset + 2])) || (((lineBuffer[offset + 2] == '\\')) && (isspacechar(lineBuffer[offset + 3]))))) { // Colorize Regular Keyword styler.ColourTo(endPos, SCE_BAT_WORD); return; } // Check for Hide Command (@ECHO OFF/ON) if (lineBuffer[offset] == '@') { styler.ColourTo(startLine + offset, SCE_BAT_HIDE); offset++; } // Skip next spaces while ((offset < lengthLine) && (isspacechar(lineBuffer[offset]))) { offset++; } // Read remainder of line word-at-a-time or remainder-of-word-at-a-time while (offset < lengthLine) { if (offset > startLine) { // Colorize Default Text styler.ColourTo(startLine + offset - 1, SCE_BAT_DEFAULT); } // Copy word from Line Buffer into Word Buffer wbl = 0; for (; offset < lengthLine && wbl < 80 && !isspacechar(lineBuffer[offset]); wbl++, offset++) { wordBuffer[wbl] = static_cast(tolower(lineBuffer[offset])); } wordBuffer[wbl] = '\0'; wbo = 0; // Check for Comment - return if found if (CompareCaseInsensitive(wordBuffer, "rem") == 0) { styler.ColourTo(endPos, SCE_BAT_COMMENT); return; } // Check for Separator if (IsBSeparator(wordBuffer[0])) { // Check for External Command / Program if ((cmdLoc == offset - wbl) && ((wordBuffer[0] == ':') || (wordBuffer[0] == '\\') || (wordBuffer[0] == '.'))) { // Reset Offset to re-process remainder of word offset -= (wbl - 1); // Colorize External Command / Program if (!keywords2) { styler.ColourTo(startLine + offset - 1, SCE_BAT_COMMAND); } else if (keywords2.InList(wordBuffer)) { styler.ColourTo(startLine + offset - 1, SCE_BAT_COMMAND); } else { styler.ColourTo(startLine + offset - 1, SCE_BAT_DEFAULT); } // Reset External Command / Program Location cmdLoc = offset; } else { // Reset Offset to re-process remainder of word offset -= (wbl - 1); // Colorize Default Text styler.ColourTo(startLine + offset - 1, SCE_BAT_DEFAULT); } // Check for Regular Keyword in list } else if ((keywords.InList(wordBuffer)) && (continueProcessing)) { // ECHO, GOTO, PROMPT and SET require no further Regular Keyword Checking if ((CompareCaseInsensitive(wordBuffer, "echo") == 0) || (CompareCaseInsensitive(wordBuffer, "goto") == 0) || (CompareCaseInsensitive(wordBuffer, "prompt") == 0) || (CompareCaseInsensitive(wordBuffer, "set") == 0)) { continueProcessing = false; } // Identify External Command / Program Location for ERRORLEVEL, and EXIST if ((CompareCaseInsensitive(wordBuffer, "errorlevel") == 0) || (CompareCaseInsensitive(wordBuffer, "exist") == 0)) { // Reset External Command / Program Location cmdLoc = offset; // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Skip comparison while ((cmdLoc < lengthLine) && (!isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Identify External Command / Program Location for CALL, DO, LOADHIGH and LH } else if ((CompareCaseInsensitive(wordBuffer, "call") == 0) || (CompareCaseInsensitive(wordBuffer, "do") == 0) || (CompareCaseInsensitive(wordBuffer, "loadhigh") == 0) || (CompareCaseInsensitive(wordBuffer, "lh") == 0)) { // Reset External Command / Program Location cmdLoc = offset; // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } } // Colorize Regular keyword styler.ColourTo(startLine + offset - 1, SCE_BAT_WORD); // No need to Reset Offset // Check for Special Keyword in list, External Command / Program, or Default Text } else if ((wordBuffer[0] != '%') && (wordBuffer[0] != '!') && (!IsBOperator(wordBuffer[0])) && (continueProcessing)) { // Check for Special Keyword // Affected Commands are in Length range 2-6 // Good that ERRORLEVEL, EXIST, CALL, DO, LOADHIGH, and LH are unaffected sKeywordFound = false; for (Sci_PositionU keywordLength = 2; keywordLength < wbl && keywordLength < 7 && !sKeywordFound; keywordLength++) { wbo = 0; // Copy Keyword Length from Word Buffer into Special Keyword Buffer for (; wbo < keywordLength; wbo++) { sKeywordBuffer[wbo] = static_cast(wordBuffer[wbo]); } sKeywordBuffer[wbo] = '\0'; // Check for Special Keyword in list if ((keywords.InList(sKeywordBuffer)) && ((IsBOperator(wordBuffer[wbo])) || (IsBSeparator(wordBuffer[wbo])))) { sKeywordFound = true; // ECHO requires no further Regular Keyword Checking if (CompareCaseInsensitive(sKeywordBuffer, "echo") == 0) { continueProcessing = false; } // Colorize Special Keyword as Regular Keyword styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_WORD); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); } } // Check for External Command / Program or Default Text if (!sKeywordFound) { wbo = 0; // Check for External Command / Program if (cmdLoc == offset - wbl) { // Read up to %, Operator or Separator while ((wbo < wbl) && (wordBuffer[wbo] != '%') && (wordBuffer[wbo] != '!') && (!IsBOperator(wordBuffer[wbo])) && (!IsBSeparator(wordBuffer[wbo]))) { wbo++; } // Reset External Command / Program Location cmdLoc = offset - (wbl - wbo); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); // CHOICE requires no further Regular Keyword Checking if (CompareCaseInsensitive(wordBuffer, "choice") == 0) { continueProcessing = false; } // Check for START (and its switches) - What follows is External Command \ Program if (CompareCaseInsensitive(wordBuffer, "start") == 0) { // Reset External Command / Program Location cmdLoc = offset; // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Reset External Command / Program Location if command switch detected if (lineBuffer[cmdLoc] == '/') { // Skip command switch while ((cmdLoc < lengthLine) && (!isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } } } // Colorize External Command / Program if (!keywords2) { styler.ColourTo(startLine + offset - 1, SCE_BAT_COMMAND); } else if (keywords2.InList(wordBuffer)) { styler.ColourTo(startLine + offset - 1, SCE_BAT_COMMAND); } else { styler.ColourTo(startLine + offset - 1, SCE_BAT_DEFAULT); } // No need to Reset Offset // Check for Default Text } else { // Read up to %, Operator or Separator while ((wbo < wbl) && (wordBuffer[wbo] != '%') && (wordBuffer[wbo] != '!') && (!IsBOperator(wordBuffer[wbo])) && (!IsBSeparator(wordBuffer[wbo]))) { wbo++; } // Colorize Default Text styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_DEFAULT); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); } } // Check for Argument (%n), Environment Variable (%x...%) or Local Variable (%%a) } else if (wordBuffer[0] == '%') { // Colorize Default Text styler.ColourTo(startLine + offset - 1 - wbl, SCE_BAT_DEFAULT); wbo++; // Search to end of word for second % (can be a long path) while ((wbo < wbl) && (wordBuffer[wbo] != '%') && (!IsBOperator(wordBuffer[wbo])) && (!IsBSeparator(wordBuffer[wbo]))) { wbo++; } // Check for Argument (%n) or (%*) if (((Is0To9(wordBuffer[1])) || (wordBuffer[1] == '*')) && (wordBuffer[wbo] != '%')) { // Check for External Command / Program if (cmdLoc == offset - wbl) { cmdLoc = offset - (wbl - 2); } // Colorize Argument styler.ColourTo(startLine + offset - 1 - (wbl - 2), SCE_BAT_IDENTIFIER); // Reset Offset to re-process remainder of word offset -= (wbl - 2); // Check for Expanded Argument (%~...) / Variable (%%~...) } else if (((wbl > 1) && (wordBuffer[1] == '~')) || ((wbl > 2) && (wordBuffer[1] == '%') && (wordBuffer[2] == '~'))) { // Check for External Command / Program if (cmdLoc == offset - wbl) { cmdLoc = offset - (wbl - wbo); } // Colorize Expanded Argument / Variable styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_IDENTIFIER); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); // Check for Environment Variable (%x...%) } else if ((wordBuffer[1] != '%') && (wordBuffer[wbo] == '%')) { wbo++; // Check for External Command / Program if (cmdLoc == offset - wbl) { cmdLoc = offset - (wbl - wbo); } // Colorize Environment Variable styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_IDENTIFIER); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); // Check for Local Variable (%%a) } else if ( (wbl > 2) && (wordBuffer[1] == '%') && (wordBuffer[2] != '%') && (!IsBOperator(wordBuffer[2])) && (!IsBSeparator(wordBuffer[2]))) { // Check for External Command / Program if (cmdLoc == offset - wbl) { cmdLoc = offset - (wbl - 3); } // Colorize Local Variable styler.ColourTo(startLine + offset - 1 - (wbl - 3), SCE_BAT_IDENTIFIER); // Reset Offset to re-process remainder of word offset -= (wbl - 3); } // Check for Environment Variable (!x...!) } else if (wordBuffer[0] == '!') { // Colorize Default Text styler.ColourTo(startLine + offset - 1 - wbl, SCE_BAT_DEFAULT); wbo++; // Search to end of word for second ! (can be a long path) while ((wbo < wbl) && (wordBuffer[wbo] != '!') && (!IsBOperator(wordBuffer[wbo])) && (!IsBSeparator(wordBuffer[wbo]))) { wbo++; } if (wordBuffer[wbo] == '!') { wbo++; // Check for External Command / Program if (cmdLoc == offset - wbl) { cmdLoc = offset - (wbl - wbo); } // Colorize Environment Variable styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_IDENTIFIER); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); } // Check for Operator } else if (IsBOperator(wordBuffer[0])) { // Colorize Default Text styler.ColourTo(startLine + offset - 1 - wbl, SCE_BAT_DEFAULT); // Check for Comparison Operator if ((wordBuffer[0] == '=') && (wordBuffer[1] == '=')) { // Identify External Command / Program Location for IF cmdLoc = offset; // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Colorize Comparison Operator styler.ColourTo(startLine + offset - 1 - (wbl - 2), SCE_BAT_OPERATOR); // Reset Offset to re-process remainder of word offset -= (wbl - 2); // Check for Pipe Operator } else if (wordBuffer[0] == '|') { // Reset External Command / Program Location cmdLoc = offset - wbl + 1; // Skip next spaces while ((cmdLoc < lengthLine) && (isspacechar(lineBuffer[cmdLoc]))) { cmdLoc++; } // Colorize Pipe Operator styler.ColourTo(startLine + offset - 1 - (wbl - 1), SCE_BAT_OPERATOR); // Reset Offset to re-process remainder of word offset -= (wbl - 1); // Check for Other Operator } else { // Check for > Operator if (wordBuffer[0] == '>') { // Turn Keyword and External Command / Program checking back on continueProcessing = true; } // Colorize Other Operator styler.ColourTo(startLine + offset - 1 - (wbl - 1), SCE_BAT_OPERATOR); // Reset Offset to re-process remainder of word offset -= (wbl - 1); } // Check for Default Text } else { // Read up to %, Operator or Separator while ((wbo < wbl) && (wordBuffer[wbo] != '%') && (wordBuffer[wbo] != '!') && (!IsBOperator(wordBuffer[wbo])) && (!IsBSeparator(wordBuffer[wbo]))) { wbo++; } // Colorize Default Text styler.ColourTo(startLine + offset - 1 - (wbl - wbo), SCE_BAT_DEFAULT); // Reset Offset to re-process remainder of word offset -= (wbl - wbo); } // Skip next spaces - nothing happens if Offset was Reset while ((offset < lengthLine) && (isspacechar(lineBuffer[offset]))) { offset++; } } // Colorize Default Text for remainder of line - currently not lexed styler.ColourTo(endPos, SCE_BAT_DEFAULT); } static void ColouriseBatchDoc( Sci_PositionU startPos, Sci_Position length, int /*initStyle*/, WordList *keywordlists[], Accessor &styler) { char lineBuffer[1024]; styler.StartAt(startPos); styler.StartSegment(startPos); Sci_PositionU linePos = 0; Sci_PositionU startLine = startPos; for (Sci_PositionU i = startPos; i < startPos + length; i++) { lineBuffer[linePos++] = styler[i]; if (AtEOL(styler, i) || (linePos >= sizeof(lineBuffer) - 1)) { // End of line (or of line buffer) met, colourise it lineBuffer[linePos] = '\0'; ColouriseBatchLine(lineBuffer, linePos, startLine, i, keywordlists, styler); linePos = 0; startLine = i + 1; } } if (linePos > 0) { // Last line does not have ending characters lineBuffer[linePos] = '\0'; ColouriseBatchLine(lineBuffer, linePos, startLine, startPos + length - 1, keywordlists, styler); } } static const char *const batchWordListDesc[] = { "Internal Commands", "External Commands", 0 }; LexerModule lmBatch(SCLEX_BATCH, ColouriseBatchDoc, "batch", 0, batchWordListDesc); codequery-0.21.0/scintilla/lexers/LexBibTeX.cxx000066400000000000000000000210751310136352400213730ustar00rootroot00000000000000// Copyright 2008-2010 Sergiu Dotenco. The License.txt file describes the // conditions under which this software may be distributed. /** * @file LexBibTeX.cxx * @brief General BibTeX coloring scheme. * @author Sergiu Dotenco * @date April 18, 2009 */ #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "PropSetSimple.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif namespace { bool IsAlphabetic(unsigned int ch) { return IsASCII(ch) && std::isalpha(ch) != 0; } bool IsAlphaNumeric(char ch) { return IsASCII(ch) && std::isalnum(ch); } bool EqualCaseInsensitive(const char* a, const char* b) { return CompareCaseInsensitive(a, b) == 0; } bool EntryWithoutKey(const char* name) { return EqualCaseInsensitive(name,"string"); } char GetClosingBrace(char openbrace) { char result = openbrace; switch (openbrace) { case '(': result = ')'; break; case '{': result = '}'; break; } return result; } bool IsEntryStart(char prev, char ch) { return prev != '\\' && ch == '@'; } bool IsEntryStart(const StyleContext& sc) { return IsEntryStart(sc.chPrev, sc.ch); } void ColorizeBibTeX(Sci_PositionU start_pos, Sci_Position length, int /*init_style*/, WordList* keywordlists[], Accessor& styler) { WordList &EntryNames = *keywordlists[0]; bool fold_compact = styler.GetPropertyInt("fold.compact", 1) != 0; std::string buffer; buffer.reserve(25); // We always colorize a section from the beginning, so let's // search for the @ character which isn't escaped, i.e. \@ while (start_pos > 0 && !IsEntryStart(styler.SafeGetCharAt(start_pos - 1), styler.SafeGetCharAt(start_pos))) { --start_pos; ++length; } styler.StartAt(start_pos); styler.StartSegment(start_pos); Sci_Position current_line = styler.GetLine(start_pos); int prev_level = styler.LevelAt(current_line) & SC_FOLDLEVELNUMBERMASK; int current_level = prev_level; int visible_chars = 0; bool in_comment = false ; StyleContext sc(start_pos, length, SCE_BIBTEX_DEFAULT, styler); bool going = sc.More(); // needed because of a fuzzy end of file state char closing_brace = 0; bool collect_entry_name = false; for (; going; sc.Forward()) { if (!sc.More()) going = false; // we need to go one behind the end of text if (in_comment) { if (sc.atLineEnd) { sc.SetState(SCE_BIBTEX_DEFAULT); in_comment = false; } } else { // Found @entry if (IsEntryStart(sc)) { sc.SetState(SCE_BIBTEX_UNKNOWN_ENTRY); sc.Forward(); ++current_level; buffer.clear(); collect_entry_name = true; } else if ((sc.state == SCE_BIBTEX_ENTRY || sc.state == SCE_BIBTEX_UNKNOWN_ENTRY) && (sc.ch == '{' || sc.ch == '(')) { // Entry name colorization done // Found either a { or a ( after entry's name, e.g. @entry(...) @entry{...} // Closing counterpart needs to be stored. closing_brace = GetClosingBrace(sc.ch); sc.SetState(SCE_BIBTEX_DEFAULT); // Don't colorize { ( // @string doesn't have any key if (EntryWithoutKey(buffer.c_str())) sc.ForwardSetState(SCE_BIBTEX_PARAMETER); else sc.ForwardSetState(SCE_BIBTEX_KEY); // Key/label colorization } // Need to handle the case where entry's key is empty // e.g. @book{,...} if (sc.state == SCE_BIBTEX_KEY && sc.ch == ',') { // Key/label colorization done sc.SetState(SCE_BIBTEX_DEFAULT); // Don't colorize the , sc.ForwardSetState(SCE_BIBTEX_PARAMETER); // Parameter colorization } else if (sc.state == SCE_BIBTEX_PARAMETER && sc.ch == '=') { sc.SetState(SCE_BIBTEX_DEFAULT); // Don't colorize the = sc.ForwardSetState(SCE_BIBTEX_VALUE); // Parameter value colorization Sci_Position start = sc.currentPos; // We need to handle multiple situations: // 1. name"one two {three}" // 2. name={one {one two {two}} three} // 3. year=2005 // Skip ", { until we encounter the first alphanumerical character while (sc.More() && !(IsAlphaNumeric(sc.ch) || sc.ch == '"' || sc.ch == '{')) sc.Forward(); if (sc.More()) { // Store " or { char ch = sc.ch; // Not interested in alphanumerical characters if (IsAlphaNumeric(ch)) ch = 0; int skipped = 0; if (ch) { // Skip preceding " or { such as in name={{test}}. // Remember how many characters have been skipped // Make sure that empty values, i.e. "" are also handled correctly while (sc.More() && (sc.ch == ch && (ch != '"' || skipped < 1))) { sc.Forward(); ++skipped; } } // Closing counterpart for " is the same character if (ch == '{') ch = '}'; // We have reached the parameter value // In case the open character was a alnum char, skip until , is found // otherwise until skipped == 0 while (sc.More() && (skipped > 0 || (!ch && !(sc.ch == ',' || sc.ch == closing_brace)))) { // Make sure the character isn't escaped if (sc.chPrev != '\\') { // Parameter value contains a { which is the 2nd case described above if (sc.ch == '{') ++skipped; // Remember it else if (sc.ch == '}') --skipped; else if (skipped == 1 && sc.ch == ch && ch == '"') // Don't ignore cases like {"o} skipped = 0; } sc.Forward(); } } // Don't colorize the , sc.SetState(SCE_BIBTEX_DEFAULT); // Skip until the , or entry's closing closing_brace is found // since this parameter might be the last one while (sc.More() && !(sc.ch == ',' || sc.ch == closing_brace)) sc.Forward(); int state = SCE_BIBTEX_PARAMETER; // The might be more parameters // We've reached the closing closing_brace for the bib entry // in case no " or {} has been used to enclose the value, // as in 3rd case described above if (sc.ch == closing_brace) { --current_level; // Make sure the text between entries is not colored // using parameter's style state = SCE_BIBTEX_DEFAULT; } Sci_Position end = sc.currentPos; current_line = styler.GetLine(end); // We have possibly skipped some lines, so the folding levels // have to be adjusted separately for (Sci_Position i = styler.GetLine(start); i <= styler.GetLine(end); ++i) styler.SetLevel(i, prev_level); sc.ForwardSetState(state); } if (sc.state == SCE_BIBTEX_PARAMETER && sc.ch == closing_brace) { sc.SetState(SCE_BIBTEX_DEFAULT); --current_level; } // Non escaped % found which represents a comment until the end of the line if (sc.chPrev != '\\' && sc.ch == '%') { in_comment = true; sc.SetState(SCE_BIBTEX_COMMENT); } } if (sc.state == SCE_BIBTEX_UNKNOWN_ENTRY || sc.state == SCE_BIBTEX_ENTRY) { if (!IsAlphabetic(sc.ch) && collect_entry_name) collect_entry_name = false; if (collect_entry_name) { buffer += static_cast(tolower(sc.ch)); if (EntryNames.InList(buffer.c_str())) sc.ChangeState(SCE_BIBTEX_ENTRY); else sc.ChangeState(SCE_BIBTEX_UNKNOWN_ENTRY); } } if (sc.atLineEnd) { int level = prev_level; if (visible_chars == 0 && fold_compact) level |= SC_FOLDLEVELWHITEFLAG; if ((current_level > prev_level)) level |= SC_FOLDLEVELHEADERFLAG; // else if (current_level < prev_level) // level |= SC_FOLDLEVELBOXFOOTERFLAG; // Deprecated if (level != styler.LevelAt(current_line)) { styler.SetLevel(current_line, level); } ++current_line; prev_level = current_level; visible_chars = 0; } if (!isspacechar(sc.ch)) ++visible_chars; } sc.Complete(); // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(current_line) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(current_line, prev_level | flagsNext); } } static const char * const BibTeXWordLists[] = { "Entry Names", 0, }; LexerModule lmBibTeX(SCLEX_BIBTEX, ColorizeBibTeX, "bib", 0, BibTeXWordLists); // Entry Names // article, book, booklet, conference, inbook, // incollection, inproceedings, manual, mastersthesis, // misc, phdthesis, proceedings, techreport, unpublished, // string, url codequery-0.21.0/scintilla/lexers/LexBullant.cxx000066400000000000000000000145461310136352400216640ustar00rootroot00000000000000// SciTE - Scintilla based Text Editor // LexBullant.cxx - lexer for Bullant #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static int classifyWordBullant(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler) { char s[100]; s[0] = '\0'; for (Sci_PositionU i = 0; i < end - start + 1 && i < 30; i++) { s[i] = static_cast(tolower(styler[start + i])); s[i + 1] = '\0'; } int lev= 0; char chAttr = SCE_C_IDENTIFIER; if (isdigit(s[0]) || (s[0] == '.')){ chAttr = SCE_C_NUMBER; } else { if (keywords.InList(s)) { chAttr = SCE_C_WORD; if (strcmp(s, "end") == 0) lev = -1; else if (strcmp(s, "method") == 0 || strcmp(s, "case") == 0 || strcmp(s, "class") == 0 || strcmp(s, "debug") == 0 || strcmp(s, "test") == 0 || strcmp(s, "if") == 0 || strcmp(s, "lock") == 0 || strcmp(s, "transaction") == 0 || strcmp(s, "trap") == 0 || strcmp(s, "until") == 0 || strcmp(s, "while") == 0) lev = 1; } } styler.ColourTo(end, chAttr); return lev; } static void ColouriseBullantDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; styler.StartAt(startPos); bool fold = styler.GetPropertyInt("fold") != 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; int state = initStyle; if (state == SCE_C_STRINGEOL) // Does not leak onto next line state = SCE_C_DEFAULT; char chPrev = ' '; char chNext = styler[startPos]; Sci_PositionU lengthDoc = startPos + length; int visibleChars = 0; styler.StartSegment(startPos); int endFoundThisLine = 0; for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) // Avoid triggering two times on Dos/Win // End of line endFoundThisLine = 0; if (state == SCE_C_STRINGEOL) { styler.ColourTo(i, state); state = SCE_C_DEFAULT; } if (fold) { int lev = levelPrev; if (visibleChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; styler.SetLevel(lineCurrent, lev); lineCurrent++; levelPrev = levelCurrent; } visibleChars = 0; /* int indentBlock = GetLineIndentation(lineCurrent); if (blockChange==1){ lineCurrent++; int pos=SetLineIndentation(lineCurrent, indentBlock + indentSize); } else if (blockChange==-1) { indentBlock -= indentSize; if (indentBlock < 0) indentBlock = 0; SetLineIndentation(lineCurrent, indentBlock); lineCurrent++; } blockChange=0; */ } if (!(IsASCII(ch) && isspace(ch))) visibleChars++; if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); chPrev = ' '; i += 1; continue; } if (state == SCE_C_DEFAULT) { if (iswordstart(ch)) { styler.ColourTo(i-1, state); state = SCE_C_IDENTIFIER; } else if (ch == '@' && chNext == 'o') { if ((styler.SafeGetCharAt(i+2) =='f') && (styler.SafeGetCharAt(i+3) == 'f')) { styler.ColourTo(i-1, state); state = SCE_C_COMMENT; } } else if (ch == '#') { styler.ColourTo(i-1, state); state = SCE_C_COMMENTLINE; } else if (ch == '\"') { styler.ColourTo(i-1, state); state = SCE_C_STRING; } else if (ch == '\'') { styler.ColourTo(i-1, state); state = SCE_C_CHARACTER; } else if (isoperator(ch)) { styler.ColourTo(i-1, state); styler.ColourTo(i, SCE_C_OPERATOR); } } else if (state == SCE_C_IDENTIFIER) { if (!iswordchar(ch)) { int levelChange = classifyWordBullant(styler.GetStartSegment(), i - 1, keywords, styler); state = SCE_C_DEFAULT; chNext = styler.SafeGetCharAt(i + 1); if (ch == '#') { state = SCE_C_COMMENTLINE; } else if (ch == '\"') { state = SCE_C_STRING; } else if (ch == '\'') { state = SCE_C_CHARACTER; } else if (isoperator(ch)) { styler.ColourTo(i, SCE_C_OPERATOR); } if (endFoundThisLine == 0) levelCurrent+=levelChange; if (levelChange == -1) endFoundThisLine=1; } } else if (state == SCE_C_COMMENT) { if (ch == '@' && chNext == 'o') { if (styler.SafeGetCharAt(i+2) == 'n') { styler.ColourTo(i+2, state); state = SCE_C_DEFAULT; i+=2; } } } else if (state == SCE_C_COMMENTLINE) { if (ch == '\r' || ch == '\n') { endFoundThisLine = 0; styler.ColourTo(i-1, state); state = SCE_C_DEFAULT; } } else if (state == SCE_C_STRING) { if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; ch = chNext; chNext = styler.SafeGetCharAt(i + 1); } } else if (ch == '\"') { styler.ColourTo(i, state); state = SCE_C_DEFAULT; } else if (chNext == '\r' || chNext == '\n') { endFoundThisLine = 0; styler.ColourTo(i-1, SCE_C_STRINGEOL); state = SCE_C_STRINGEOL; } } else if (state == SCE_C_CHARACTER) { if ((ch == '\r' || ch == '\n') && (chPrev != '\\')) { endFoundThisLine = 0; styler.ColourTo(i-1, SCE_C_STRINGEOL); state = SCE_C_STRINGEOL; } else if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; ch = chNext; chNext = styler.SafeGetCharAt(i + 1); } } else if (ch == '\'') { styler.ColourTo(i, state); state = SCE_C_DEFAULT; } } chPrev = ch; } styler.ColourTo(lengthDoc - 1, state); // Fill in the real level of the next line, keeping the current flags as they will be filled in later if (fold) { int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; //styler.SetLevel(lineCurrent, levelCurrent | flagsNext); styler.SetLevel(lineCurrent, levelPrev | flagsNext); } } static const char * const bullantWordListDesc[] = { "Keywords", 0 }; LexerModule lmBullant(SCLEX_BULLANT, ColouriseBullantDoc, "bullant", 0, bullantWordListDesc); codequery-0.21.0/scintilla/lexers/LexCLW.cxx000066400000000000000000000531701310136352400207040ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexClw.cxx ** Lexer for Clarion. ** 2004/12/17 Updated Lexer **/ // Copyright 2003-2004 by Ron Schofield // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Is an end of line character inline bool IsEOL(const int ch) { return(ch == '\n'); } // Convert character to uppercase static char CharacterUpper(char chChar) { if (chChar < 'a' || chChar > 'z') { return(chChar); } else { return(static_cast(chChar - 'a' + 'A')); } } // Convert string to uppercase static void StringUpper(char *szString) { while (*szString) { *szString = CharacterUpper(*szString); szString++; } } // Is a label start character inline bool IsALabelStart(const int iChar) { return(isalpha(iChar) || iChar == '_'); } // Is a label character inline bool IsALabelCharacter(const int iChar) { return(isalnum(iChar) || iChar == '_' || iChar == ':'); } // Is the character is a ! and the the next character is not a ! inline bool IsACommentStart(const int iChar) { return(iChar == '!'); } // Is the character a Clarion hex character (ABCDEF) inline bool IsAHexCharacter(const int iChar, bool bCaseSensitive) { // Case insensitive. if (!bCaseSensitive) { if (strchr("ABCDEFabcdef", iChar) != NULL) { return(true); } } // Case sensitive else { if (strchr("ABCDEF", iChar) != NULL) { return(true); } } return(false); } // Is the character a Clarion base character (B=Binary, O=Octal, H=Hex) inline bool IsANumericBaseCharacter(const int iChar, bool bCaseSensitive) { // Case insensitive. if (!bCaseSensitive) { // If character is a numeric base character if (strchr("BOHboh", iChar) != NULL) { return(true); } } // Case sensitive else { // If character is a numeric base character if (strchr("BOH", iChar) != NULL) { return(true); } } return(false); } // Set the correct numeric constant state inline bool SetNumericConstantState(StyleContext &scDoc) { int iPoints = 0; // Point counter char cNumericString[512]; // Numeric string buffer // Buffer the current numberic string scDoc.GetCurrent(cNumericString, sizeof(cNumericString)); // Loop through the string until end of string (NULL termination) for (int iIndex = 0; cNumericString[iIndex] != '\0'; iIndex++) { // Depending on the character switch (cNumericString[iIndex]) { // Is a . (point) case '.' : // Increment point counter iPoints++; break; default : break; } } // If points found (can be more than one for improper formatted number if (iPoints > 0) { return(true); } // Else no points found else { return(false); } } // Get the next word in uppercase from the current position (keyword lookahead) inline bool GetNextWordUpper(Accessor &styler, Sci_PositionU uiStartPos, Sci_Position iLength, char *cWord) { Sci_PositionU iIndex = 0; // Buffer Index // Loop through the remaining string from the current position for (Sci_Position iOffset = uiStartPos; iOffset < iLength; iOffset++) { // Get the character from the buffer using the offset char cCharacter = styler[iOffset]; if (IsEOL(cCharacter)) { break; } // If the character is alphabet character if (isalpha(cCharacter)) { // Add UPPERCASE character to the word buffer cWord[iIndex++] = CharacterUpper(cCharacter); } } // Add null termination cWord[iIndex] = '\0'; // If no word was found if (iIndex == 0) { // Return failure return(false); } // Else word was found else { // Return success return(true); } } // Clarion Language Colouring Procedure static void ColouriseClarionDoc(Sci_PositionU uiStartPos, Sci_Position iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler, bool bCaseSensitive) { int iParenthesesLevel = 0; // Parenthese Level int iColumn1Label = false; // Label starts in Column 1 WordList &wlClarionKeywords = *wlKeywords[0]; // Clarion Keywords WordList &wlCompilerDirectives = *wlKeywords[1]; // Compiler Directives WordList &wlRuntimeExpressions = *wlKeywords[2]; // Runtime Expressions WordList &wlBuiltInProcsFuncs = *wlKeywords[3]; // Builtin Procedures and Functions WordList &wlStructsDataTypes = *wlKeywords[4]; // Structures and Data Types WordList &wlAttributes = *wlKeywords[5]; // Procedure Attributes WordList &wlStandardEquates = *wlKeywords[6]; // Standard Equates WordList &wlLabelReservedWords = *wlKeywords[7]; // Clarion Reserved Keywords (Labels) WordList &wlProcLabelReservedWords = *wlKeywords[8]; // Clarion Reserved Keywords (Procedure Labels) const char wlProcReservedKeywordList[] = "PROCEDURE FUNCTION"; WordList wlProcReservedKeywords; wlProcReservedKeywords.Set(wlProcReservedKeywordList); const char wlCompilerKeywordList[] = "COMPILE OMIT"; WordList wlCompilerKeywords; wlCompilerKeywords.Set(wlCompilerKeywordList); const char wlLegacyStatementsList[] = "BOF EOF FUNCTION POINTER SHARE"; WordList wlLegacyStatements; wlLegacyStatements.Set(wlLegacyStatementsList); StyleContext scDoc(uiStartPos, iLength, iInitStyle, accStyler); // lex source code for (; scDoc.More(); scDoc.Forward()) { // // Determine if the current state should terminate. // // Label State Handling if (scDoc.state == SCE_CLW_LABEL) { // If the character is not a valid label if (!IsALabelCharacter(scDoc.ch)) { // If the character is a . (dot syntax) if (scDoc.ch == '.') { // Turn off column 1 label flag as label now cannot be reserved work iColumn1Label = false; // Uncolour the . (dot) to default state, move forward one character, // and change back to the label state. scDoc.SetState(SCE_CLW_DEFAULT); scDoc.Forward(); scDoc.SetState(SCE_CLW_LABEL); } // Else check label else { char cLabel[512]; // Label buffer // Buffer the current label string scDoc.GetCurrent(cLabel,sizeof(cLabel)); // If case insensitive, convert string to UPPERCASE to match passed keywords. if (!bCaseSensitive) { StringUpper(cLabel); } // Else if UPPERCASE label string is in the Clarion compiler keyword list if (wlCompilerKeywords.InList(cLabel) && iColumn1Label){ // change the label to error state scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); } // Else if UPPERCASE label string is in the Clarion reserved keyword list else if (wlLabelReservedWords.InList(cLabel) && iColumn1Label){ // change the label to error state scDoc.ChangeState(SCE_CLW_ERROR); } // Else if UPPERCASE label string is else if (wlProcLabelReservedWords.InList(cLabel) && iColumn1Label) { char cWord[512]; // Word buffer // Get the next word from the current position if (GetNextWordUpper(accStyler,scDoc.currentPos,uiStartPos+iLength,cWord)) { // If the next word is a procedure reserved word if (wlProcReservedKeywords.InList(cWord)) { // Change the label to error state scDoc.ChangeState(SCE_CLW_ERROR); } } } // Else if label string is in the compiler directive keyword list else if (wlCompilerDirectives.InList(cLabel)) { // change the state to compiler directive state scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); } // Terminate the label state and set to default state scDoc.SetState(SCE_CLW_DEFAULT); } } } // Keyword State Handling else if (scDoc.state == SCE_CLW_KEYWORD) { // If character is : (colon) if (scDoc.ch == ':') { char cEquate[512]; // Equate buffer // Move forward to include : (colon) in buffer scDoc.Forward(); // Buffer the equate string scDoc.GetCurrent(cEquate,sizeof(cEquate)); // If case insensitive, convert string to UPPERCASE to match passed keywords. if (!bCaseSensitive) { StringUpper(cEquate); } // If statement string is in the equate list if (wlStandardEquates.InList(cEquate)) { // Change to equate state scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE); } } // If the character is not a valid label character else if (!IsALabelCharacter(scDoc.ch)) { char cStatement[512]; // Statement buffer // Buffer the statement string scDoc.GetCurrent(cStatement,sizeof(cStatement)); // If case insensitive, convert string to UPPERCASE to match passed keywords. if (!bCaseSensitive) { StringUpper(cStatement); } // If statement string is in the Clarion keyword list if (wlClarionKeywords.InList(cStatement)) { // Change the statement string to the Clarion keyword state scDoc.ChangeState(SCE_CLW_KEYWORD); } // Else if statement string is in the compiler directive keyword list else if (wlCompilerDirectives.InList(cStatement)) { // Change the statement string to the compiler directive state scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); } // Else if statement string is in the runtime expressions keyword list else if (wlRuntimeExpressions.InList(cStatement)) { // Change the statement string to the runtime expressions state scDoc.ChangeState(SCE_CLW_RUNTIME_EXPRESSIONS); } // Else if statement string is in the builtin procedures and functions keyword list else if (wlBuiltInProcsFuncs.InList(cStatement)) { // Change the statement string to the builtin procedures and functions state scDoc.ChangeState(SCE_CLW_BUILTIN_PROCEDURES_FUNCTION); } // Else if statement string is in the tructures and data types keyword list else if (wlStructsDataTypes.InList(cStatement)) { // Change the statement string to the structures and data types state scDoc.ChangeState(SCE_CLW_STRUCTURE_DATA_TYPE); } // Else if statement string is in the procedure attribute keyword list else if (wlAttributes.InList(cStatement)) { // Change the statement string to the procedure attribute state scDoc.ChangeState(SCE_CLW_ATTRIBUTE); } // Else if statement string is in the standard equate keyword list else if (wlStandardEquates.InList(cStatement)) { // Change the statement string to the standard equate state scDoc.ChangeState(SCE_CLW_STANDARD_EQUATE); } // Else if statement string is in the deprecated or legacy keyword list else if (wlLegacyStatements.InList(cStatement)) { // Change the statement string to the standard equate state scDoc.ChangeState(SCE_CLW_DEPRECATED); } // Else the statement string doesn't match any work list else { // Change the statement string to the default state scDoc.ChangeState(SCE_CLW_DEFAULT); } // Terminate the keyword state and set to default state scDoc.SetState(SCE_CLW_DEFAULT); } } // String State Handling else if (scDoc.state == SCE_CLW_STRING) { // If the character is an ' (single quote) if (scDoc.ch == '\'') { // Set the state to default and move forward colouring // the ' (single quote) as default state // terminating the string state scDoc.SetState(SCE_CLW_DEFAULT); scDoc.Forward(); } // If the next character is an ' (single quote) if (scDoc.chNext == '\'') { // Move forward one character and set to default state // colouring the next ' (single quote) as default state // terminating the string state scDoc.ForwardSetState(SCE_CLW_DEFAULT); scDoc.Forward(); } } // Picture String State Handling else if (scDoc.state == SCE_CLW_PICTURE_STRING) { // If the character is an ( (open parenthese) if (scDoc.ch == '(') { // Increment the parenthese level iParenthesesLevel++; } // Else if the character is a ) (close parenthese) else if (scDoc.ch == ')') { // If the parenthese level is set to zero // parentheses matched if (!iParenthesesLevel) { scDoc.SetState(SCE_CLW_DEFAULT); } // Else parenthese level is greater than zero // still looking for matching parentheses else { // Decrement the parenthese level iParenthesesLevel--; } } } // Standard Equate State Handling else if (scDoc.state == SCE_CLW_STANDARD_EQUATE) { if (!isalnum(scDoc.ch)) { scDoc.SetState(SCE_CLW_DEFAULT); } } // Integer Constant State Handling else if (scDoc.state == SCE_CLW_INTEGER_CONSTANT) { // If the character is not a digit (0-9) // or character is not a hexidecimal character (A-F) // or character is not a . (point) // or character is not a numberic base character (B,O,H) if (!(isdigit(scDoc.ch) || IsAHexCharacter(scDoc.ch, bCaseSensitive) || scDoc.ch == '.' || IsANumericBaseCharacter(scDoc.ch, bCaseSensitive))) { // If the number was a real if (SetNumericConstantState(scDoc)) { // Colour the matched string to the real constant state scDoc.ChangeState(SCE_CLW_REAL_CONSTANT); } // Else the number was an integer else { // Colour the matched string to an integer constant state scDoc.ChangeState(SCE_CLW_INTEGER_CONSTANT); } // Terminate the integer constant state and set to default state scDoc.SetState(SCE_CLW_DEFAULT); } } // // Determine if a new state should be entered. // // Beginning of Line Handling if (scDoc.atLineStart) { // Reset the column 1 label flag iColumn1Label = false; // If column 1 character is a label start character if (IsALabelStart(scDoc.ch)) { // Label character is found in column 1 // so set column 1 label flag and clear last column 1 label iColumn1Label = true; // Set the state to label scDoc.SetState(SCE_CLW_LABEL); } // else if character is a space or tab else if (IsASpace(scDoc.ch)){ // Set to default state scDoc.SetState(SCE_CLW_DEFAULT); } // else if comment start (!) or is an * (asterisk) else if (IsACommentStart(scDoc.ch) || scDoc.ch == '*' ) { // then set the state to comment. scDoc.SetState(SCE_CLW_COMMENT); } // else the character is a ? (question mark) else if (scDoc.ch == '?') { // Change to the compiler directive state, move forward, // colouring the ? (question mark), change back to default state. scDoc.ChangeState(SCE_CLW_COMPILER_DIRECTIVE); scDoc.Forward(); scDoc.SetState(SCE_CLW_DEFAULT); } // else an invalid character in column 1 else { // Set to error state scDoc.SetState(SCE_CLW_ERROR); } } // End of Line Handling else if (scDoc.atLineEnd) { // Reset to the default state at the end of each line. scDoc.SetState(SCE_CLW_DEFAULT); } // Default Handling else { // If in default state if (scDoc.state == SCE_CLW_DEFAULT) { // If is a letter could be a possible statement if (isalpha(scDoc.ch)) { // Set the state to Clarion Keyword and verify later scDoc.SetState(SCE_CLW_KEYWORD); } // else is a number else if (isdigit(scDoc.ch)) { // Set the state to Integer Constant and verify later scDoc.SetState(SCE_CLW_INTEGER_CONSTANT); } // else if the start of a comment or a | (line continuation) else if (IsACommentStart(scDoc.ch) || scDoc.ch == '|') { // then set the state to comment. scDoc.SetState(SCE_CLW_COMMENT); } // else if the character is a ' (single quote) else if (scDoc.ch == '\'') { // If the character is also a ' (single quote) // Embedded Apostrophe if (scDoc.chNext == '\'') { // Move forward colouring it as default state scDoc.ForwardSetState(SCE_CLW_DEFAULT); } else { // move to the next character and then set the state to comment. scDoc.ForwardSetState(SCE_CLW_STRING); } } // else the character is an @ (ampersand) else if (scDoc.ch == '@') { // Case insensitive. if (!bCaseSensitive) { // If character is a valid picture token character if (strchr("DEKNPSTdeknpst", scDoc.chNext) != NULL) { // Set to the picture string state scDoc.SetState(SCE_CLW_PICTURE_STRING); } } // Case sensitive else { // If character is a valid picture token character if (strchr("DEKNPST", scDoc.chNext) != NULL) { // Set the picture string state scDoc.SetState(SCE_CLW_PICTURE_STRING); } } } } } } // lexing complete scDoc.Complete(); } // Clarion Language Case Sensitive Colouring Procedure static void ColouriseClarionDocSensitive(Sci_PositionU uiStartPos, Sci_Position iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler) { ColouriseClarionDoc(uiStartPos, iLength, iInitStyle, wlKeywords, accStyler, true); } // Clarion Language Case Insensitive Colouring Procedure static void ColouriseClarionDocInsensitive(Sci_PositionU uiStartPos, Sci_Position iLength, int iInitStyle, WordList *wlKeywords[], Accessor &accStyler) { ColouriseClarionDoc(uiStartPos, iLength, iInitStyle, wlKeywords, accStyler, false); } // Fill Buffer static void FillBuffer(Sci_PositionU uiStart, Sci_PositionU uiEnd, Accessor &accStyler, char *szBuffer, Sci_PositionU uiLength) { Sci_PositionU uiPos = 0; while ((uiPos < uiEnd - uiStart + 1) && (uiPos < uiLength-1)) { szBuffer[uiPos] = static_cast(toupper(accStyler[uiStart + uiPos])); uiPos++; } szBuffer[uiPos] = '\0'; } // Classify Clarion Fold Point static int ClassifyClarionFoldPoint(int iLevel, const char* szString) { if (!(isdigit(szString[0]) || (szString[0] == '.'))) { if (strcmp(szString, "PROCEDURE") == 0) { // iLevel = SC_FOLDLEVELBASE + 1; } else if (strcmp(szString, "MAP") == 0 || strcmp(szString,"ACCEPT") == 0 || strcmp(szString,"BEGIN") == 0 || strcmp(szString,"CASE") == 0 || strcmp(szString,"EXECUTE") == 0 || strcmp(szString,"IF") == 0 || strcmp(szString,"ITEMIZE") == 0 || strcmp(szString,"INTERFACE") == 0 || strcmp(szString,"JOIN") == 0 || strcmp(szString,"LOOP") == 0 || strcmp(szString,"MODULE") == 0 || strcmp(szString,"RECORD") == 0) { iLevel++; } else if (strcmp(szString, "APPLICATION") == 0 || strcmp(szString, "CLASS") == 0 || strcmp(szString, "DETAIL") == 0 || strcmp(szString, "FILE") == 0 || strcmp(szString, "FOOTER") == 0 || strcmp(szString, "FORM") == 0 || strcmp(szString, "GROUP") == 0 || strcmp(szString, "HEADER") == 0 || strcmp(szString, "INTERFACE") == 0 || strcmp(szString, "MENU") == 0 || strcmp(szString, "MENUBAR") == 0 || strcmp(szString, "OLE") == 0 || strcmp(szString, "OPTION") == 0 || strcmp(szString, "QUEUE") == 0 || strcmp(szString, "REPORT") == 0 || strcmp(szString, "SHEET") == 0 || strcmp(szString, "TAB") == 0 || strcmp(szString, "TOOLBAR") == 0 || strcmp(szString, "VIEW") == 0 || strcmp(szString, "WINDOW") == 0) { iLevel++; } else if (strcmp(szString, "END") == 0 || strcmp(szString, "UNTIL") == 0 || strcmp(szString, "WHILE") == 0) { iLevel--; } } return(iLevel); } // Clarion Language Folding Procedure static void FoldClarionDoc(Sci_PositionU uiStartPos, Sci_Position iLength, int iInitStyle, WordList *[], Accessor &accStyler) { Sci_PositionU uiEndPos = uiStartPos + iLength; Sci_Position iLineCurrent = accStyler.GetLine(uiStartPos); int iLevelPrev = accStyler.LevelAt(iLineCurrent) & SC_FOLDLEVELNUMBERMASK; int iLevelCurrent = iLevelPrev; char chNext = accStyler[uiStartPos]; int iStyle = iInitStyle; int iStyleNext = accStyler.StyleAt(uiStartPos); int iVisibleChars = 0; Sci_Position iLastStart = 0; for (Sci_PositionU uiPos = uiStartPos; uiPos < uiEndPos; uiPos++) { char chChar = chNext; chNext = accStyler.SafeGetCharAt(uiPos + 1); int iStylePrev = iStyle; iStyle = iStyleNext; iStyleNext = accStyler.StyleAt(uiPos + 1); bool bEOL = (chChar == '\r' && chNext != '\n') || (chChar == '\n'); if (iStylePrev == SCE_CLW_DEFAULT) { if (iStyle == SCE_CLW_KEYWORD || iStyle == SCE_CLW_STRUCTURE_DATA_TYPE) { // Store last word start point. iLastStart = uiPos; } } if (iStylePrev == SCE_CLW_KEYWORD || iStylePrev == SCE_CLW_STRUCTURE_DATA_TYPE) { if(iswordchar(chChar) && !iswordchar(chNext)) { char chBuffer[100]; FillBuffer(iLastStart, uiPos, accStyler, chBuffer, sizeof(chBuffer)); iLevelCurrent = ClassifyClarionFoldPoint(iLevelCurrent,chBuffer); // if ((iLevelCurrent == SC_FOLDLEVELBASE + 1) && iLineCurrent > 1) { // accStyler.SetLevel(iLineCurrent-1,SC_FOLDLEVELBASE); // iLevelPrev = SC_FOLDLEVELBASE; // } } } if (bEOL) { int iLevel = iLevelPrev; if ((iLevelCurrent > iLevelPrev) && (iVisibleChars > 0)) iLevel |= SC_FOLDLEVELHEADERFLAG; if (iLevel != accStyler.LevelAt(iLineCurrent)) { accStyler.SetLevel(iLineCurrent,iLevel); } iLineCurrent++; iLevelPrev = iLevelCurrent; iVisibleChars = 0; } if (!isspacechar(chChar)) iVisibleChars++; } // Fill in the real level of the next line, keeping the current flags // as they will be filled in later. int iFlagsNext = accStyler.LevelAt(iLineCurrent) & ~SC_FOLDLEVELNUMBERMASK; accStyler.SetLevel(iLineCurrent, iLevelPrev | iFlagsNext); } // Word List Descriptions static const char * const rgWordListDescriptions[] = { "Clarion Keywords", "Compiler Directives", "Built-in Procedures and Functions", "Runtime Expressions", "Structure and Data Types", "Attributes", "Standard Equates", "Reserved Words (Labels)", "Reserved Words (Procedure Labels)", 0, }; // Case Sensitive Clarion Language Lexer LexerModule lmClw(SCLEX_CLW, ColouriseClarionDocSensitive, "clarion", FoldClarionDoc, rgWordListDescriptions); // Case Insensitive Clarion Language Lexer LexerModule lmClwNoCase(SCLEX_CLWNOCASE, ColouriseClarionDocInsensitive, "clarionnocase", FoldClarionDoc, rgWordListDescriptions); codequery-0.21.0/scintilla/lexers/LexCOBOL.cxx000066400000000000000000000303161310136352400211120ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCOBOL.cxx ** Lexer for COBOL ** Based on LexPascal.cxx ** Written by Laurent le Tynevez ** Updated by Simon Steele September 2002 ** Updated by Mathias Rauen May 2003 (Delphi adjustments) ** Updated by Rod Falck, Aug 2006 Converted to COBOL **/ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #define IN_DIVISION 0x01 #define IN_DECLARATIVES 0x02 #define IN_SECTION 0x04 #define IN_PARAGRAPH 0x08 #define IN_FLAGS 0xF #define NOT_HEADER 0x10 inline bool isCOBOLoperator(char ch) { return isoperator(ch); } inline bool isCOBOLwordchar(char ch) { return IsASCII(ch) && (isalnum(ch) || ch == '-'); } inline bool isCOBOLwordstart(char ch) { return IsASCII(ch) && isalnum(ch); } static int CountBits(int nBits) { int count = 0; for (int i = 0; i < 32; ++i) { count += nBits & 1; nBits >>= 1; } return count; } static void getRange(Sci_PositionU start, Sci_PositionU end, Accessor &styler, char *s, Sci_PositionU len) { Sci_PositionU i = 0; while ((i < end - start + 1) && (i < len-1)) { s[i] = static_cast(tolower(styler[start + i])); i++; } s[i] = '\0'; } static void ColourTo(Accessor &styler, Sci_PositionU end, unsigned int attr) { styler.ColourTo(end, attr); } static int classifyWordCOBOL(Sci_PositionU start, Sci_PositionU end, /*WordList &keywords*/WordList *keywordlists[], Accessor &styler, int nContainment, bool *bAarea) { int ret = 0; WordList& a_keywords = *keywordlists[0]; WordList& b_keywords = *keywordlists[1]; WordList& c_keywords = *keywordlists[2]; char s[100]; s[0] = '\0'; s[1] = '\0'; getRange(start, end, styler, s, sizeof(s)); char chAttr = SCE_C_IDENTIFIER; if (isdigit(s[0]) || (s[0] == '.') || (s[0] == 'v')) { chAttr = SCE_C_NUMBER; char *p = s + 1; while (*p) { if ((!isdigit(*p) && (*p) != 'v') && isCOBOLwordchar(*p)) { chAttr = SCE_C_IDENTIFIER; break; } ++p; } } else { if (a_keywords.InList(s)) { chAttr = SCE_C_WORD; } else if (b_keywords.InList(s)) { chAttr = SCE_C_WORD2; } else if (c_keywords.InList(s)) { chAttr = SCE_C_UUID; } } if (*bAarea) { if (strcmp(s, "division") == 0) { ret = IN_DIVISION; // we've determined the containment, anything else is just ignored for those purposes *bAarea = false; } else if (strcmp(s, "declaratives") == 0) { ret = IN_DIVISION | IN_DECLARATIVES; if (nContainment & IN_DECLARATIVES) ret |= NOT_HEADER | IN_SECTION; // we've determined the containment, anything else is just ignored for those purposes *bAarea = false; } else if (strcmp(s, "section") == 0) { ret = (nContainment &~ IN_PARAGRAPH) | IN_SECTION; // we've determined the containment, anything else is just ignored for those purposes *bAarea = false; } else if (strcmp(s, "end") == 0 && (nContainment & IN_DECLARATIVES)) { ret = IN_DIVISION | IN_DECLARATIVES | IN_SECTION | NOT_HEADER; } else { ret = nContainment | IN_PARAGRAPH; } } ColourTo(styler, end, chAttr); return ret; } static void ColouriseCOBOLDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { styler.StartAt(startPos); int state = initStyle; if (state == SCE_C_CHARACTER) // Does not leak onto next line state = SCE_C_DEFAULT; char chPrev = ' '; char chNext = styler[startPos]; Sci_PositionU lengthDoc = startPos + length; int nContainment; Sci_Position currentLine = styler.GetLine(startPos); if (currentLine > 0) { styler.SetLineState(currentLine, styler.GetLineState(currentLine-1)); nContainment = styler.GetLineState(currentLine); nContainment &= ~NOT_HEADER; } else { styler.SetLineState(currentLine, 0); nContainment = 0; } styler.StartSegment(startPos); bool bNewLine = true; bool bAarea = !isspacechar(chNext); int column = 0; for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); ++column; if (bNewLine) { column = 0; } if (column <= 1 && !bAarea) { bAarea = !isspacechar(ch); } bool bSetNewLine = false; if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) // Avoid triggering two times on Dos/Win // End of line if (state == SCE_C_CHARACTER) { ColourTo(styler, i, state); state = SCE_C_DEFAULT; } styler.SetLineState(currentLine, nContainment); currentLine++; bSetNewLine = true; if (nContainment & NOT_HEADER) nContainment &= ~(NOT_HEADER | IN_DECLARATIVES | IN_SECTION); } if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); chPrev = ' '; i += 1; continue; } if (state == SCE_C_DEFAULT) { if (isCOBOLwordstart(ch) || (ch == '$' && IsASCII(chNext) && isalpha(chNext))) { ColourTo(styler, i-1, state); state = SCE_C_IDENTIFIER; } else if (column == 6 && ch == '*') { // Cobol comment line: asterisk in column 7. ColourTo(styler, i-1, state); state = SCE_C_COMMENTLINE; } else if (ch == '*' && chNext == '>') { // Cobol inline comment: asterisk, followed by greater than. ColourTo(styler, i-1, state); state = SCE_C_COMMENTLINE; } else if (column == 0 && ch == '*' && chNext != '*') { ColourTo(styler, i-1, state); state = SCE_C_COMMENTLINE; } else if (column == 0 && ch == '/' && chNext != '*') { ColourTo(styler, i-1, state); state = SCE_C_COMMENTLINE; } else if (column == 0 && ch == '*' && chNext == '*') { ColourTo(styler, i-1, state); state = SCE_C_COMMENTDOC; } else if (column == 0 && ch == '/' && chNext == '*') { ColourTo(styler, i-1, state); state = SCE_C_COMMENTDOC; } else if (ch == '"') { ColourTo(styler, i-1, state); state = SCE_C_STRING; } else if (ch == '\'') { ColourTo(styler, i-1, state); state = SCE_C_CHARACTER; } else if (ch == '?' && column == 0) { ColourTo(styler, i-1, state); state = SCE_C_PREPROCESSOR; } else if (isCOBOLoperator(ch)) { ColourTo(styler, i-1, state); ColourTo(styler, i, SCE_C_OPERATOR); } } else if (state == SCE_C_IDENTIFIER) { if (!isCOBOLwordchar(ch)) { int lStateChange = classifyWordCOBOL(styler.GetStartSegment(), i - 1, keywordlists, styler, nContainment, &bAarea); if(lStateChange != 0) { styler.SetLineState(currentLine, lStateChange); nContainment = lStateChange; } state = SCE_C_DEFAULT; chNext = styler.SafeGetCharAt(i + 1); if (ch == '"') { state = SCE_C_STRING; } else if (ch == '\'') { state = SCE_C_CHARACTER; } else if (isCOBOLoperator(ch)) { ColourTo(styler, i, SCE_C_OPERATOR); } } } else { if (state == SCE_C_PREPROCESSOR) { if ((ch == '\r' || ch == '\n') && !(chPrev == '\\' || chPrev == '\r')) { ColourTo(styler, i-1, state); state = SCE_C_DEFAULT; } } else if (state == SCE_C_COMMENT) { if (ch == '\r' || ch == '\n') { ColourTo(styler, i, state); state = SCE_C_DEFAULT; } } else if (state == SCE_C_COMMENTDOC) { if (ch == '\r' || ch == '\n') { if (((i > styler.GetStartSegment() + 2) || ( (initStyle == SCE_C_COMMENTDOC) && (styler.GetStartSegment() == static_cast(startPos))))) { ColourTo(styler, i, state); state = SCE_C_DEFAULT; } } } else if (state == SCE_C_COMMENTLINE) { if (ch == '\r' || ch == '\n') { ColourTo(styler, i-1, state); state = SCE_C_DEFAULT; } } else if (state == SCE_C_STRING) { if (ch == '"') { ColourTo(styler, i, state); state = SCE_C_DEFAULT; } } else if (state == SCE_C_CHARACTER) { if (ch == '\'') { ColourTo(styler, i, state); state = SCE_C_DEFAULT; } } } chPrev = ch; bNewLine = bSetNewLine; if (bNewLine) { bAarea = false; } } ColourTo(styler, lengthDoc - 1, state); } static void FoldCOBOLDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = lineCurrent > 0 ? styler.LevelAt(lineCurrent - 1) & SC_FOLDLEVELNUMBERMASK : 0xFFF; char chNext = styler[startPos]; bool bNewLine = true; bool bAarea = !isspacechar(chNext); int column = 0; bool bComment = false; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); ++column; if (bNewLine) { column = 0; bComment = (ch == '*' || ch == '/' || ch == '?'); } if (column <= 1 && !bAarea) { bAarea = !isspacechar(ch); } bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (atEOL) { int nContainment = styler.GetLineState(lineCurrent); int lev = CountBits(nContainment & IN_FLAGS) | SC_FOLDLEVELBASE; if (bAarea && !bComment) --lev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((bAarea) && (visibleChars > 0) && !(nContainment & NOT_HEADER) && !bComment) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } if ((lev & SC_FOLDLEVELNUMBERMASK) <= (levelPrev & SC_FOLDLEVELNUMBERMASK)) { // this level is at the same level or less than the previous line // therefore these is nothing for the previous header to collapse, so remove the header styler.SetLevel(lineCurrent - 1, levelPrev & ~SC_FOLDLEVELHEADERFLAG); } levelPrev = lev; visibleChars = 0; bAarea = false; bNewLine = true; lineCurrent++; } else { bNewLine = false; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const COBOLWordListDesc[] = { "A Keywords", "B Keywords", "Extended Keywords", 0 }; LexerModule lmCOBOL(SCLEX_COBOL, ColouriseCOBOLDoc, "COBOL", FoldCOBOLDoc, COBOLWordListDesc); codequery-0.21.0/scintilla/lexers/LexCPP.cxx000066400000000000000000001513701310136352400207020ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCPP.cxx ** Lexer for C++, C, Java, and JavaScript. ** Further folding features and configuration properties added by "Udo Lechner" **/ // Copyright 1998-2005 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #include "SparseState.h" #include "SubStyles.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif namespace { // Use an unnamed namespace to protect the functions and classes from name conflicts bool IsSpaceEquiv(int state) { return (state <= SCE_C_COMMENTDOC) || // including SCE_C_DEFAULT, SCE_C_COMMENT, SCE_C_COMMENTLINE (state == SCE_C_COMMENTLINEDOC) || (state == SCE_C_COMMENTDOCKEYWORD) || (state == SCE_C_COMMENTDOCKEYWORDERROR); } // Preconditions: sc.currentPos points to a character after '+' or '-'. // The test for pos reaching 0 should be redundant, // and is in only for safety measures. // Limitation: this code will give the incorrect answer for code like // a = b+++/ptn/... // Putting a space between the '++' post-inc operator and the '+' binary op // fixes this, and is highly recommended for readability anyway. bool FollowsPostfixOperator(StyleContext &sc, LexAccessor &styler) { Sci_Position pos = (Sci_Position) sc.currentPos; while (--pos > 0) { char ch = styler[pos]; if (ch == '+' || ch == '-') { return styler[pos - 1] == ch; } } return false; } bool followsReturnKeyword(StyleContext &sc, LexAccessor &styler) { // Don't look at styles, so no need to flush. Sci_Position pos = (Sci_Position) sc.currentPos; Sci_Position currentLine = styler.GetLine(pos); Sci_Position lineStartPos = styler.LineStart(currentLine); while (--pos > lineStartPos) { char ch = styler.SafeGetCharAt(pos); if (ch != ' ' && ch != '\t') { break; } } const char *retBack = "nruter"; const char *s = retBack; while (*s && pos >= lineStartPos && styler.SafeGetCharAt(pos) == *s) { s++; pos--; } return !*s; } bool IsSpaceOrTab(int ch) { return ch == ' ' || ch == '\t'; } bool OnlySpaceOrTab(const std::string &s) { for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) { if (!IsSpaceOrTab(*it)) return false; } return true; } std::vector StringSplit(const std::string &text, int separator) { std::vector vs(text.empty() ? 0 : 1); for (std::string::const_iterator it = text.begin(); it != text.end(); ++it) { if (*it == separator) { vs.push_back(std::string()); } else { vs.back() += *it; } } return vs; } struct BracketPair { std::vector::iterator itBracket; std::vector::iterator itEndBracket; }; BracketPair FindBracketPair(std::vector &tokens) { BracketPair bp; std::vector::iterator itTok = std::find(tokens.begin(), tokens.end(), "("); bp.itBracket = tokens.end(); bp.itEndBracket = tokens.end(); if (itTok != tokens.end()) { bp.itBracket = itTok; size_t nest = 0; while (itTok != tokens.end()) { if (*itTok == "(") { nest++; } else if (*itTok == ")") { nest--; if (nest == 0) { bp.itEndBracket = itTok; return bp; } } ++itTok; } } bp.itBracket = tokens.end(); return bp; } void highlightTaskMarker(StyleContext &sc, LexAccessor &styler, int activity, WordList &markerList, bool caseSensitive){ if ((isoperator(sc.chPrev) || IsASpace(sc.chPrev)) && markerList.Length()) { const int lengthMarker = 50; char marker[lengthMarker+1]; Sci_Position currPos = (Sci_Position) sc.currentPos; int i = 0; while (i < lengthMarker) { char ch = styler.SafeGetCharAt(currPos + i); if (IsASpace(ch) || isoperator(ch)) { break; } if (caseSensitive) marker[i] = ch; else marker[i] = static_cast(tolower(ch)); i++; } marker[i] = '\0'; if (markerList.InList(marker)) { sc.SetState(SCE_C_TASKMARKER|activity); } } } struct EscapeSequence { int digitsLeft; CharacterSet setHexDigits; CharacterSet setOctDigits; CharacterSet setNoneNumeric; CharacterSet *escapeSetValid; EscapeSequence() { digitsLeft = 0; escapeSetValid = 0; setHexDigits = CharacterSet(CharacterSet::setDigits, "ABCDEFabcdef"); setOctDigits = CharacterSet(CharacterSet::setNone, "01234567"); } void resetEscapeState(int nextChar) { digitsLeft = 0; escapeSetValid = &setNoneNumeric; if (nextChar == 'U') { digitsLeft = 9; escapeSetValid = &setHexDigits; } else if (nextChar == 'u') { digitsLeft = 5; escapeSetValid = &setHexDigits; } else if (nextChar == 'x') { digitsLeft = 5; escapeSetValid = &setHexDigits; } else if (setOctDigits.Contains(nextChar)) { digitsLeft = 3; escapeSetValid = &setOctDigits; } } bool atEscapeEnd(int currChar) const { return (digitsLeft <= 0) || !escapeSetValid->Contains(currChar); } }; std::string GetRestOfLine(LexAccessor &styler, Sci_Position start, bool allowSpace) { std::string restOfLine; Sci_Position i =0; char ch = styler.SafeGetCharAt(start, '\n'); Sci_Position endLine = styler.LineEnd(styler.GetLine(start)); while (((start+i) < endLine) && (ch != '\r')) { char chNext = styler.SafeGetCharAt(start + i + 1, '\n'); if (ch == '/' && (chNext == '/' || chNext == '*')) break; if (allowSpace || (ch != ' ')) restOfLine += ch; i++; ch = chNext; } return restOfLine; } bool IsStreamCommentStyle(int style) { return style == SCE_C_COMMENT || style == SCE_C_COMMENTDOC || style == SCE_C_COMMENTDOCKEYWORD || style == SCE_C_COMMENTDOCKEYWORDERROR; } struct PPDefinition { Sci_Position line; std::string key; std::string value; bool isUndef; std::string arguments; PPDefinition(Sci_Position line_, const std::string &key_, const std::string &value_, bool isUndef_ = false, const std::string &arguments_="") : line(line_), key(key_), value(value_), isUndef(isUndef_), arguments(arguments_) { } }; class LinePPState { int state; int ifTaken; int level; bool ValidLevel() const { return level >= 0 && level < 32; } int maskLevel() const { return 1 << level; } public: LinePPState() : state(0), ifTaken(0), level(-1) { } bool IsInactive() const { return state != 0; } bool CurrentIfTaken() const { return (ifTaken & maskLevel()) != 0; } void StartSection(bool on) { level++; if (ValidLevel()) { if (on) { state &= ~maskLevel(); ifTaken |= maskLevel(); } else { state |= maskLevel(); ifTaken &= ~maskLevel(); } } } void EndSection() { if (ValidLevel()) { state &= ~maskLevel(); ifTaken &= ~maskLevel(); } level--; } void InvertCurrentLevel() { if (ValidLevel()) { state ^= maskLevel(); ifTaken |= maskLevel(); } } }; // Hold the preprocessor state for each line seen. // Currently one entry per line but could become sparse with just one entry per preprocessor line. class PPStates { std::vector vlls; public: LinePPState ForLine(Sci_Position line) const { if ((line > 0) && (vlls.size() > static_cast(line))) { return vlls[line]; } else { return LinePPState(); } } void Add(Sci_Position line, LinePPState lls) { vlls.resize(line+1); vlls[line] = lls; } }; // An individual named option for use in an OptionSet // Options used for LexerCPP struct OptionsCPP { bool stylingWithinPreprocessor; bool identifiersAllowDollars; bool trackPreprocessor; bool updatePreprocessor; bool verbatimStringsAllowEscapes; bool triplequotedStrings; bool hashquotedStrings; bool backQuotedStrings; bool escapeSequence; bool fold; bool foldSyntaxBased; bool foldComment; bool foldCommentMultiline; bool foldCommentExplicit; std::string foldExplicitStart; std::string foldExplicitEnd; bool foldExplicitAnywhere; bool foldPreprocessor; bool foldPreprocessorAtElse; bool foldCompact; bool foldAtElse; OptionsCPP() { stylingWithinPreprocessor = false; identifiersAllowDollars = true; trackPreprocessor = true; updatePreprocessor = true; verbatimStringsAllowEscapes = false; triplequotedStrings = false; hashquotedStrings = false; backQuotedStrings = false; escapeSequence = false; fold = false; foldSyntaxBased = true; foldComment = false; foldCommentMultiline = true; foldCommentExplicit = true; foldExplicitStart = ""; foldExplicitEnd = ""; foldExplicitAnywhere = false; foldPreprocessor = false; foldPreprocessorAtElse = false; foldCompact = false; foldAtElse = false; } }; const char *const cppWordLists[] = { "Primary keywords and identifiers", "Secondary keywords and identifiers", "Documentation comment keywords", "Global classes and typedefs", "Preprocessor definitions", "Task marker and error marker keywords", 0, }; struct OptionSetCPP : public OptionSet { OptionSetCPP() { DefineProperty("styling.within.preprocessor", &OptionsCPP::stylingWithinPreprocessor, "For C++ code, determines whether all preprocessor code is styled in the " "preprocessor style (0, the default) or only from the initial # to the end " "of the command word(1)."); DefineProperty("lexer.cpp.allow.dollars", &OptionsCPP::identifiersAllowDollars, "Set to 0 to disallow the '$' character in identifiers with the cpp lexer."); DefineProperty("lexer.cpp.track.preprocessor", &OptionsCPP::trackPreprocessor, "Set to 1 to interpret #if/#else/#endif to grey out code that is not active."); DefineProperty("lexer.cpp.update.preprocessor", &OptionsCPP::updatePreprocessor, "Set to 1 to update preprocessor definitions when #define found."); DefineProperty("lexer.cpp.verbatim.strings.allow.escapes", &OptionsCPP::verbatimStringsAllowEscapes, "Set to 1 to allow verbatim strings to contain escape sequences."); DefineProperty("lexer.cpp.triplequoted.strings", &OptionsCPP::triplequotedStrings, "Set to 1 to enable highlighting of triple-quoted strings."); DefineProperty("lexer.cpp.hashquoted.strings", &OptionsCPP::hashquotedStrings, "Set to 1 to enable highlighting of hash-quoted strings."); DefineProperty("lexer.cpp.backquoted.strings", &OptionsCPP::backQuotedStrings, "Set to 1 to enable highlighting of back-quoted raw strings ."); DefineProperty("lexer.cpp.escape.sequence", &OptionsCPP::escapeSequence, "Set to 1 to enable highlighting of escape sequences in strings"); DefineProperty("fold", &OptionsCPP::fold); DefineProperty("fold.cpp.syntax.based", &OptionsCPP::foldSyntaxBased, "Set this property to 0 to disable syntax based folding."); DefineProperty("fold.comment", &OptionsCPP::foldComment, "This option enables folding multi-line comments and explicit fold points when using the C++ lexer. " "Explicit fold points allows adding extra folding by placing a //{ comment at the start and a //} " "at the end of a section that should fold."); DefineProperty("fold.cpp.comment.multiline", &OptionsCPP::foldCommentMultiline, "Set this property to 0 to disable folding multi-line comments when fold.comment=1."); DefineProperty("fold.cpp.comment.explicit", &OptionsCPP::foldCommentExplicit, "Set this property to 0 to disable folding explicit fold points when fold.comment=1."); DefineProperty("fold.cpp.explicit.start", &OptionsCPP::foldExplicitStart, "The string to use for explicit fold start points, replacing the standard //{."); DefineProperty("fold.cpp.explicit.end", &OptionsCPP::foldExplicitEnd, "The string to use for explicit fold end points, replacing the standard //}."); DefineProperty("fold.cpp.explicit.anywhere", &OptionsCPP::foldExplicitAnywhere, "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); DefineProperty("fold.cpp.preprocessor.at.else", &OptionsCPP::foldPreprocessorAtElse, "This option enables folding on a preprocessor #else or #endif line of an #if statement."); DefineProperty("fold.preprocessor", &OptionsCPP::foldPreprocessor, "This option enables folding preprocessor directives when using the C++ lexer. " "Includes C#'s explicit #region and #endregion folding directives."); DefineProperty("fold.compact", &OptionsCPP::foldCompact); DefineProperty("fold.at.else", &OptionsCPP::foldAtElse, "This option enables C++ folding on a \"} else {\" line of an if statement."); DefineWordListSets(cppWordLists); } }; const char styleSubable[] = {SCE_C_IDENTIFIER, SCE_C_COMMENTDOCKEYWORD, 0}; } class LexerCPP : public ILexerWithSubStyles { bool caseSensitive; CharacterSet setWord; CharacterSet setNegationOp; CharacterSet setArithmethicOp; CharacterSet setRelOp; CharacterSet setLogicalOp; CharacterSet setWordStart; PPStates vlls; std::vector ppDefineHistory; WordList keywords; WordList keywords2; WordList keywords3; WordList keywords4; WordList ppDefinitions; WordList markerList; struct SymbolValue { std::string value; std::string arguments; SymbolValue(const std::string &value_="", const std::string &arguments_="") : value(value_), arguments(arguments_) { } SymbolValue &operator = (const std::string &value_) { value = value_; arguments.clear(); return *this; } bool IsMacro() const { return !arguments.empty(); } }; typedef std::map SymbolTable; SymbolTable preprocessorDefinitionsStart; OptionsCPP options; OptionSetCPP osCPP; EscapeSequence escapeSeq; SparseState rawStringTerminators; enum { activeFlag = 0x40 }; enum { ssIdentifier, ssDocKeyword }; SubStyles subStyles; public: explicit LexerCPP(bool caseSensitive_) : caseSensitive(caseSensitive_), setWord(CharacterSet::setAlphaNum, "._", 0x80, true), setNegationOp(CharacterSet::setNone, "!"), setArithmethicOp(CharacterSet::setNone, "+-/*%"), setRelOp(CharacterSet::setNone, "=!<>"), setLogicalOp(CharacterSet::setNone, "|&"), subStyles(styleSubable, 0x80, 0x40, activeFlag) { } virtual ~LexerCPP() { } void SCI_METHOD Release() override { delete this; } int SCI_METHOD Version() const override { return lvSubStyles; } const char * SCI_METHOD PropertyNames() override { return osCPP.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return osCPP.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char *name) override { return osCPP.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osCPP.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return 0; } int SCI_METHOD LineEndTypesSupported() override { return SC_LINE_END_TYPE_UNICODE; } int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) override { return subStyles.Allocate(styleBase, numberStyles); } int SCI_METHOD SubStylesStart(int styleBase) override { return subStyles.Start(styleBase); } int SCI_METHOD SubStylesLength(int styleBase) override { return subStyles.Length(styleBase); } int SCI_METHOD StyleFromSubStyle(int subStyle) override { int styleBase = subStyles.BaseStyle(MaskActive(subStyle)); int active = subStyle & activeFlag; return styleBase | active; } int SCI_METHOD PrimaryStyleFromStyle(int style) override { return MaskActive(style); } void SCI_METHOD FreeSubStyles() override { subStyles.Free(); } void SCI_METHOD SetIdentifiers(int style, const char *identifiers) override { subStyles.SetIdentifiers(style, identifiers); } int SCI_METHOD DistanceToSecondaryStyles() override { return activeFlag; } const char * SCI_METHOD GetSubStyleBases() override { return styleSubable; } static ILexer *LexerFactoryCPP() { return new LexerCPP(true); } static ILexer *LexerFactoryCPPInsensitive() { return new LexerCPP(false); } static int MaskActive(int style) { return style & ~activeFlag; } void EvaluateTokens(std::vector &tokens, const SymbolTable &preprocessorDefinitions); std::vector Tokenize(const std::string &expr) const; bool EvaluateExpression(const std::string &expr, const SymbolTable &preprocessorDefinitions); }; Sci_Position SCI_METHOD LexerCPP::PropertySet(const char *key, const char *val) { if (osCPP.PropertySet(&options, key, val)) { if (strcmp(key, "lexer.cpp.allow.dollars") == 0) { setWord = CharacterSet(CharacterSet::setAlphaNum, "._", 0x80, true); if (options.identifiersAllowDollars) { setWord.Add('$'); } } return 0; } return -1; } Sci_Position SCI_METHOD LexerCPP::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: wordListN = &keywords; break; case 1: wordListN = &keywords2; break; case 2: wordListN = &keywords3; break; case 3: wordListN = &keywords4; break; case 4: wordListN = &ppDefinitions; break; case 5: wordListN = &markerList; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; if (n == 4) { // Rebuild preprocessorDefinitions preprocessorDefinitionsStart.clear(); for (int nDefinition = 0; nDefinition < ppDefinitions.Length(); nDefinition++) { const char *cpDefinition = ppDefinitions.WordAt(nDefinition); const char *cpEquals = strchr(cpDefinition, '='); if (cpEquals) { std::string name(cpDefinition, cpEquals - cpDefinition); std::string val(cpEquals+1); size_t bracket = name.find('('); size_t bracketEnd = name.find(')'); if ((bracket != std::string::npos) && (bracketEnd != std::string::npos)) { // Macro std::string args = name.substr(bracket + 1, bracketEnd - bracket - 1); name = name.substr(0, bracket); preprocessorDefinitionsStart[name] = SymbolValue(val, args); } else { preprocessorDefinitionsStart[name] = val; } } else { std::string name(cpDefinition); std::string val("1"); preprocessorDefinitionsStart[name] = val; } } } } } return firstModification; } // Functor used to truncate history struct After { Sci_Position line; explicit After(Sci_Position line_) : line(line_) {} bool operator()(PPDefinition &p) const { return p.line > line; } }; void SCI_METHOD LexerCPP::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); CharacterSet setOKBeforeRE(CharacterSet::setNone, "([{=,:;!%^&*|?~+-"); CharacterSet setCouldBePostOp(CharacterSet::setNone, "+-"); CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]"); setWordStart = CharacterSet(CharacterSet::setAlpha, "_", 0x80, true); CharacterSet setInvalidRawFirst(CharacterSet::setNone, " )\\\t\v\f\n"); if (options.identifiersAllowDollars) { setWordStart.Add('$'); } int chPrevNonWhite = ' '; int visibleChars = 0; bool lastWordWasUUID = false; int styleBeforeDCKeyword = SCE_C_DEFAULT; int styleBeforeTaskMarker = SCE_C_DEFAULT; bool continuationLine = false; bool isIncludePreprocessor = false; bool isStringInPreprocessor = false; bool inRERange = false; bool seenDocKeyBrace = false; Sci_Position lineCurrent = styler.GetLine(startPos); if ((MaskActive(initStyle) == SCE_C_PREPROCESSOR) || (MaskActive(initStyle) == SCE_C_COMMENTLINE) || (MaskActive(initStyle) == SCE_C_COMMENTLINEDOC)) { // Set continuationLine if last character of previous line is '\' if (lineCurrent > 0) { Sci_Position endLinePrevious = styler.LineEnd(lineCurrent - 1); if (endLinePrevious > 0) { continuationLine = styler.SafeGetCharAt(endLinePrevious-1) == '\\'; } } } // look back to set chPrevNonWhite properly for better regex colouring if (startPos > 0) { Sci_Position back = startPos; while (--back && IsSpaceEquiv(MaskActive(styler.StyleAt(back)))) ; if (MaskActive(styler.StyleAt(back)) == SCE_C_OPERATOR) { chPrevNonWhite = styler.SafeGetCharAt(back); } } StyleContext sc(startPos, length, initStyle, styler); LinePPState preproc = vlls.ForLine(lineCurrent); bool definitionsChanged = false; // Truncate ppDefineHistory before current line if (!options.updatePreprocessor) ppDefineHistory.clear(); std::vector::iterator itInvalid = std::find_if(ppDefineHistory.begin(), ppDefineHistory.end(), After(lineCurrent-1)); if (itInvalid != ppDefineHistory.end()) { ppDefineHistory.erase(itInvalid, ppDefineHistory.end()); definitionsChanged = true; } SymbolTable preprocessorDefinitions = preprocessorDefinitionsStart; for (std::vector::iterator itDef = ppDefineHistory.begin(); itDef != ppDefineHistory.end(); ++itDef) { if (itDef->isUndef) preprocessorDefinitions.erase(itDef->key); else preprocessorDefinitions[itDef->key] = SymbolValue(itDef->value, itDef->arguments); } std::string rawStringTerminator = rawStringTerminators.ValueAt(lineCurrent-1); SparseState rawSTNew(lineCurrent); int activitySet = preproc.IsInactive() ? activeFlag : 0; const WordClassifier &classifierIdentifiers = subStyles.Classifier(SCE_C_IDENTIFIER); const WordClassifier &classifierDocKeyWords = subStyles.Classifier(SCE_C_COMMENTDOCKEYWORD); Sci_Position lineEndNext = styler.LineEnd(lineCurrent); for (; sc.More();) { if (sc.atLineStart) { // Using MaskActive() is not needed in the following statement. // Inside inactive preprocessor declaration, state will be reset anyway at the end of this block. if ((sc.state == SCE_C_STRING) || (sc.state == SCE_C_CHARACTER)) { // Prevent SCE_C_STRINGEOL from leaking back to previous line which // ends with a line continuation by locking in the state up to this position. sc.SetState(sc.state); } if ((MaskActive(sc.state) == SCE_C_PREPROCESSOR) && (!continuationLine)) { sc.SetState(SCE_C_DEFAULT|activitySet); } // Reset states to beginning of colourise so no surprises // if different sets of lines lexed. visibleChars = 0; lastWordWasUUID = false; isIncludePreprocessor = false; inRERange = false; if (preproc.IsInactive()) { activitySet = activeFlag; sc.SetState(sc.state | activitySet); } } if (sc.atLineEnd) { lineCurrent++; lineEndNext = styler.LineEnd(lineCurrent); vlls.Add(lineCurrent, preproc); if (rawStringTerminator != "") { rawSTNew.Set(lineCurrent-1, rawStringTerminator); } } // Handle line continuation generically. if (sc.ch == '\\') { if (static_cast((sc.currentPos+1)) >= lineEndNext) { lineCurrent++; lineEndNext = styler.LineEnd(lineCurrent); vlls.Add(lineCurrent, preproc); if (rawStringTerminator != "") { rawSTNew.Set(lineCurrent-1, rawStringTerminator); } sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { // Even in UTF-8, \r and \n are separate sc.Forward(); } continuationLine = true; sc.Forward(); continue; } } const bool atLineEndBeforeSwitch = sc.atLineEnd; // Determine if the current state should terminate. switch (MaskActive(sc.state)) { case SCE_C_OPERATOR: sc.SetState(SCE_C_DEFAULT|activitySet); break; case SCE_C_NUMBER: // We accept almost anything because of hex. and number suffixes if (sc.ch == '_') { sc.ChangeState(SCE_C_USERLITERAL|activitySet); } else if (!(setWord.Contains(sc.ch) || (sc.ch == '\'') || ((sc.ch == '+' || sc.ch == '-') && (sc.chPrev == 'e' || sc.chPrev == 'E' || sc.chPrev == 'p' || sc.chPrev == 'P')))) { sc.SetState(SCE_C_DEFAULT|activitySet); } break; case SCE_C_USERLITERAL: if (!(setWord.Contains(sc.ch))) sc.SetState(SCE_C_DEFAULT|activitySet); break; case SCE_C_IDENTIFIER: if (sc.atLineStart || sc.atLineEnd || !setWord.Contains(sc.ch) || (sc.ch == '.')) { char s[1000]; if (caseSensitive) { sc.GetCurrent(s, sizeof(s)); } else { sc.GetCurrentLowered(s, sizeof(s)); } if (keywords.InList(s)) { lastWordWasUUID = strcmp(s, "uuid") == 0; sc.ChangeState(SCE_C_WORD|activitySet); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_C_WORD2|activitySet); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_C_GLOBALCLASS|activitySet); } else { int subStyle = classifierIdentifiers.ValueFor(s); if (subStyle >= 0) { sc.ChangeState(subStyle|activitySet); } } const bool literalString = sc.ch == '\"'; if (literalString || sc.ch == '\'') { size_t lenS = strlen(s); const bool raw = literalString && sc.chPrev == 'R' && !setInvalidRawFirst.Contains(sc.chNext); if (raw) s[lenS--] = '\0'; bool valid = (lenS == 0) || ((lenS == 1) && ((s[0] == 'L') || (s[0] == 'u') || (s[0] == 'U'))) || ((lenS == 2) && literalString && (s[0] == 'u') && (s[1] == '8')); if (valid) { if (literalString) { if (raw) { // Set the style of the string prefix to SCE_C_STRINGRAW but then change to // SCE_C_DEFAULT as that allows the raw string start code to run. sc.ChangeState(SCE_C_STRINGRAW|activitySet); sc.SetState(SCE_C_DEFAULT|activitySet); } else { sc.ChangeState(SCE_C_STRING|activitySet); } } else { sc.ChangeState(SCE_C_CHARACTER|activitySet); } } else { sc.SetState(SCE_C_DEFAULT | activitySet); } } else { sc.SetState(SCE_C_DEFAULT|activitySet); } } break; case SCE_C_PREPROCESSOR: if (options.stylingWithinPreprocessor) { if (IsASpace(sc.ch)) { sc.SetState(SCE_C_DEFAULT|activitySet); } } else if (isStringInPreprocessor && (sc.Match('>') || sc.Match('\"') || sc.atLineEnd)) { isStringInPreprocessor = false; } else if (!isStringInPreprocessor) { if ((isIncludePreprocessor && sc.Match('<')) || sc.Match('\"')) { isStringInPreprocessor = true; } else if (sc.Match('/', '*')) { if (sc.Match("/**") || sc.Match("/*!")) { sc.SetState(SCE_C_PREPROCESSORCOMMENTDOC|activitySet); } else { sc.SetState(SCE_C_PREPROCESSORCOMMENT|activitySet); } sc.Forward(); // Eat the * } else if (sc.Match('/', '/')) { sc.SetState(SCE_C_DEFAULT|activitySet); } } break; case SCE_C_PREPROCESSORCOMMENT: case SCE_C_PREPROCESSORCOMMENTDOC: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_C_PREPROCESSOR|activitySet); continue; // Without advancing in case of '\'. } break; case SCE_C_COMMENT: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } else { styleBeforeTaskMarker = SCE_C_COMMENT; highlightTaskMarker(sc, styler, activitySet, markerList, caseSensitive); } break; case SCE_C_COMMENTDOC: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_C_COMMENTDOC; sc.SetState(SCE_C_COMMENTDOCKEYWORD|activitySet); } } break; case SCE_C_COMMENTLINE: if (sc.atLineStart && !continuationLine) { sc.SetState(SCE_C_DEFAULT|activitySet); } else { styleBeforeTaskMarker = SCE_C_COMMENTLINE; highlightTaskMarker(sc, styler, activitySet, markerList, caseSensitive); } break; case SCE_C_COMMENTLINEDOC: if (sc.atLineStart && !continuationLine) { sc.SetState(SCE_C_DEFAULT|activitySet); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_C_COMMENTLINEDOC; sc.SetState(SCE_C_COMMENTDOCKEYWORD|activitySet); } } break; case SCE_C_COMMENTDOCKEYWORD: if ((styleBeforeDCKeyword == SCE_C_COMMENTDOC) && sc.Match('*', '/')) { sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR); sc.Forward(); sc.ForwardSetState(SCE_C_DEFAULT|activitySet); seenDocKeyBrace = false; } else if (sc.ch == '[' || sc.ch == '{') { seenDocKeyBrace = true; } else if (!setDoxygen.Contains(sc.ch) && !(seenDocKeyBrace && (sc.ch == ',' || sc.ch == '.'))) { char s[100]; if (caseSensitive) { sc.GetCurrent(s, sizeof(s)); } else { sc.GetCurrentLowered(s, sizeof(s)); } if (!(IsASpace(sc.ch) || (sc.ch == 0))) { sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR|activitySet); } else if (!keywords3.InList(s + 1)) { int subStyleCDKW = classifierDocKeyWords.ValueFor(s+1); if (subStyleCDKW >= 0) { sc.ChangeState(subStyleCDKW|activitySet); } else { sc.ChangeState(SCE_C_COMMENTDOCKEYWORDERROR|activitySet); } } sc.SetState(styleBeforeDCKeyword|activitySet); seenDocKeyBrace = false; } break; case SCE_C_STRING: if (sc.atLineEnd) { sc.ChangeState(SCE_C_STRINGEOL|activitySet); } else if (isIncludePreprocessor) { if (sc.ch == '>') { sc.ForwardSetState(SCE_C_DEFAULT|activitySet); isIncludePreprocessor = false; } } else if (sc.ch == '\\') { if (options.escapeSequence) { sc.SetState(SCE_C_ESCAPESEQUENCE|activitySet); escapeSeq.resetEscapeState(sc.chNext); } sc.Forward(); // Skip all characters after the backslash } else if (sc.ch == '\"') { if (sc.chNext == '_') { sc.ChangeState(SCE_C_USERLITERAL|activitySet); } else { sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } } break; case SCE_C_ESCAPESEQUENCE: escapeSeq.digitsLeft--; if (!escapeSeq.atEscapeEnd(sc.ch)) { break; } if (sc.ch == '"') { sc.SetState(SCE_C_STRING|activitySet); sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } else if (sc.ch == '\\') { escapeSeq.resetEscapeState(sc.chNext); sc.Forward(); } else { sc.SetState(SCE_C_STRING|activitySet); if (sc.atLineEnd) { sc.ChangeState(SCE_C_STRINGEOL|activitySet); } } break; case SCE_C_HASHQUOTEDSTRING: if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } break; case SCE_C_STRINGRAW: if (sc.Match(rawStringTerminator.c_str())) { for (size_t termPos=rawStringTerminator.size(); termPos; termPos--) sc.Forward(); sc.SetState(SCE_C_DEFAULT|activitySet); rawStringTerminator = ""; } break; case SCE_C_CHARACTER: if (sc.atLineEnd) { sc.ChangeState(SCE_C_STRINGEOL|activitySet); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { if (sc.chNext == '_') { sc.ChangeState(SCE_C_USERLITERAL|activitySet); } else { sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } } break; case SCE_C_REGEX: if (sc.atLineStart) { sc.SetState(SCE_C_DEFAULT|activitySet); } else if (! inRERange && sc.ch == '/') { sc.Forward(); while ((sc.ch < 0x80) && islower(sc.ch)) sc.Forward(); // gobble regex flags sc.SetState(SCE_C_DEFAULT|activitySet); } else if (sc.ch == '\\' && (static_cast(sc.currentPos+1) < lineEndNext)) { // Gobble up the escaped character sc.Forward(); } else if (sc.ch == '[') { inRERange = true; } else if (sc.ch == ']') { inRERange = false; } break; case SCE_C_STRINGEOL: if (sc.atLineStart) { sc.SetState(SCE_C_DEFAULT|activitySet); } break; case SCE_C_VERBATIM: if (options.verbatimStringsAllowEscapes && (sc.ch == '\\')) { sc.Forward(); // Skip all characters after the backslash } else if (sc.ch == '\"') { if (sc.chNext == '\"') { sc.Forward(); } else { sc.ForwardSetState(SCE_C_DEFAULT|activitySet); } } break; case SCE_C_TRIPLEVERBATIM: if (sc.Match("\"\"\"")) { while (sc.Match('"')) { sc.Forward(); } sc.SetState(SCE_C_DEFAULT|activitySet); } break; case SCE_C_UUID: if (sc.atLineEnd || sc.ch == ')') { sc.SetState(SCE_C_DEFAULT|activitySet); } break; case SCE_C_TASKMARKER: if (isoperator(sc.ch) || IsASpace(sc.ch)) { sc.SetState(styleBeforeTaskMarker|activitySet); styleBeforeTaskMarker = SCE_C_DEFAULT; } } if (sc.atLineEnd && !atLineEndBeforeSwitch) { // State exit processing consumed characters up to end of line. lineCurrent++; lineEndNext = styler.LineEnd(lineCurrent); vlls.Add(lineCurrent, preproc); } // Determine if a new state should be entered. if (MaskActive(sc.state) == SCE_C_DEFAULT) { if (sc.Match('@', '\"')) { sc.SetState(SCE_C_VERBATIM|activitySet); sc.Forward(); } else if (options.triplequotedStrings && sc.Match("\"\"\"")) { sc.SetState(SCE_C_TRIPLEVERBATIM|activitySet); sc.Forward(2); } else if (options.hashquotedStrings && sc.Match('#', '\"')) { sc.SetState(SCE_C_HASHQUOTEDSTRING|activitySet); sc.Forward(); } else if (options.backQuotedStrings && sc.Match('`')) { sc.SetState(SCE_C_STRINGRAW|activitySet); rawStringTerminator = "`"; } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { if (lastWordWasUUID) { sc.SetState(SCE_C_UUID|activitySet); lastWordWasUUID = false; } else { sc.SetState(SCE_C_NUMBER|activitySet); } } else if (!sc.atLineEnd && (setWordStart.Contains(sc.ch) || (sc.ch == '@'))) { if (lastWordWasUUID) { sc.SetState(SCE_C_UUID|activitySet); lastWordWasUUID = false; } else { sc.SetState(SCE_C_IDENTIFIER|activitySet); } } else if (sc.Match('/', '*')) { if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style sc.SetState(SCE_C_COMMENTDOC|activitySet); } else { sc.SetState(SCE_C_COMMENT|activitySet); } sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('/', '/')) { if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) // Support of Qt/Doxygen doc. style sc.SetState(SCE_C_COMMENTLINEDOC|activitySet); else sc.SetState(SCE_C_COMMENTLINE|activitySet); } else if (sc.ch == '/' && (setOKBeforeRE.Contains(chPrevNonWhite) || followsReturnKeyword(sc, styler)) && (!setCouldBePostOp.Contains(chPrevNonWhite) || !FollowsPostfixOperator(sc, styler))) { sc.SetState(SCE_C_REGEX|activitySet); // JavaScript's RegEx inRERange = false; } else if (sc.ch == '\"') { if (sc.chPrev == 'R') { styler.Flush(); if (MaskActive(styler.StyleAt(sc.currentPos - 1)) == SCE_C_STRINGRAW) { sc.SetState(SCE_C_STRINGRAW|activitySet); rawStringTerminator = ")"; for (Sci_Position termPos = sc.currentPos + 1;; termPos++) { char chTerminator = styler.SafeGetCharAt(termPos, '('); if (chTerminator == '(') break; rawStringTerminator += chTerminator; } rawStringTerminator += '\"'; } else { sc.SetState(SCE_C_STRING|activitySet); } } else { sc.SetState(SCE_C_STRING|activitySet); } isIncludePreprocessor = false; // ensure that '>' won't end the string } else if (isIncludePreprocessor && sc.ch == '<') { sc.SetState(SCE_C_STRING|activitySet); } else if (sc.ch == '\'') { sc.SetState(SCE_C_CHARACTER|activitySet); } else if (sc.ch == '#' && visibleChars == 0) { // Preprocessor commands are alone on their line sc.SetState(SCE_C_PREPROCESSOR|activitySet); // Skip whitespace between # and preprocessor word do { sc.Forward(); } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); if (sc.atLineEnd) { sc.SetState(SCE_C_DEFAULT|activitySet); } else if (sc.Match("include")) { isIncludePreprocessor = true; } else { if (options.trackPreprocessor) { if (sc.Match("ifdef") || sc.Match("ifndef")) { bool isIfDef = sc.Match("ifdef"); int i = isIfDef ? 5 : 6; std::string restOfLine = GetRestOfLine(styler, sc.currentPos + i + 1, false); bool foundDef = preprocessorDefinitions.find(restOfLine) != preprocessorDefinitions.end(); preproc.StartSection(isIfDef == foundDef); } else if (sc.Match("if")) { std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 2, true); bool ifGood = EvaluateExpression(restOfLine, preprocessorDefinitions); preproc.StartSection(ifGood); } else if (sc.Match("else")) { if (!preproc.CurrentIfTaken()) { preproc.InvertCurrentLevel(); activitySet = preproc.IsInactive() ? activeFlag : 0; if (!activitySet) sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); } else if (!preproc.IsInactive()) { preproc.InvertCurrentLevel(); activitySet = preproc.IsInactive() ? activeFlag : 0; if (!activitySet) sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); } } else if (sc.Match("elif")) { // Ensure only one chosen out of #if .. #elif .. #elif .. #else .. #endif if (!preproc.CurrentIfTaken()) { // Similar to #if std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 2, true); bool ifGood = EvaluateExpression(restOfLine, preprocessorDefinitions); if (ifGood) { preproc.InvertCurrentLevel(); activitySet = preproc.IsInactive() ? activeFlag : 0; if (!activitySet) sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); } } else if (!preproc.IsInactive()) { preproc.InvertCurrentLevel(); activitySet = preproc.IsInactive() ? activeFlag : 0; if (!activitySet) sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); } } else if (sc.Match("endif")) { preproc.EndSection(); activitySet = preproc.IsInactive() ? activeFlag : 0; sc.ChangeState(SCE_C_PREPROCESSOR|activitySet); } else if (sc.Match("define")) { if (options.updatePreprocessor && !preproc.IsInactive()) { std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 6, true); size_t startName = 0; while ((startName < restOfLine.length()) && IsSpaceOrTab(restOfLine[startName])) startName++; size_t endName = startName; while ((endName < restOfLine.length()) && setWord.Contains(static_cast(restOfLine[endName]))) endName++; std::string key = restOfLine.substr(startName, endName-startName); if ((endName < restOfLine.length()) && (restOfLine.at(endName) == '(')) { // Macro size_t endArgs = endName; while ((endArgs < restOfLine.length()) && (restOfLine[endArgs] != ')')) endArgs++; std::string args = restOfLine.substr(endName + 1, endArgs - endName - 1); size_t startValue = endArgs+1; while ((startValue < restOfLine.length()) && IsSpaceOrTab(restOfLine[startValue])) startValue++; std::string value; if (startValue < restOfLine.length()) value = restOfLine.substr(startValue); preprocessorDefinitions[key] = SymbolValue(value, args); ppDefineHistory.push_back(PPDefinition(lineCurrent, key, value, false, args)); definitionsChanged = true; } else { // Value size_t startValue = endName; while ((startValue < restOfLine.length()) && IsSpaceOrTab(restOfLine[startValue])) startValue++; std::string value = restOfLine.substr(startValue); preprocessorDefinitions[key] = value; ppDefineHistory.push_back(PPDefinition(lineCurrent, key, value)); definitionsChanged = true; } } } else if (sc.Match("undef")) { if (options.updatePreprocessor && !preproc.IsInactive()) { const std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 5, false); std::vector tokens = Tokenize(restOfLine); if (tokens.size() >= 1) { const std::string key = tokens[0]; preprocessorDefinitions.erase(key); ppDefineHistory.push_back(PPDefinition(lineCurrent, key, "", true)); definitionsChanged = true; } } } } } } else if (isoperator(sc.ch)) { sc.SetState(SCE_C_OPERATOR|activitySet); } } if (!IsASpace(sc.ch) && !IsSpaceEquiv(MaskActive(sc.state))) { chPrevNonWhite = sc.ch; visibleChars++; } continuationLine = false; sc.Forward(); } const bool rawStringsChanged = rawStringTerminators.Merge(rawSTNew, lineCurrent); if (definitionsChanged || rawStringsChanged) styler.ChangeLexerState(startPos, startPos + length); sc.Complete(); } // Store both the current line's fold level and the next lines in the // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". void SCI_METHOD LexerCPP::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (!options.fold) return; LexAccessor styler(pAccess); Sci_PositionU endPos = startPos + length; int visibleChars = 0; bool inLineComment = false; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; Sci_PositionU lineStartNext = styler.LineStart(lineCurrent+1); int levelMinCurrent = levelCurrent; int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = MaskActive(styler.StyleAt(startPos)); int style = MaskActive(initStyle); const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = MaskActive(styler.StyleAt(i + 1)); bool atEOL = i == (lineStartNext-1); if ((style == SCE_C_COMMENTLINE) || (style == SCE_C_COMMENTLINEDOC)) inLineComment = true; if (options.foldComment && options.foldCommentMultiline && IsStreamCommentStyle(style) && !inLineComment) { if (!IsStreamCommentStyle(stylePrev)) { levelNext++; } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelNext--; } } if (options.foldComment && options.foldCommentExplicit && ((style == SCE_C_COMMENTLINE) || options.foldExplicitAnywhere)) { if (userDefinedFoldMarkers) { if (styler.Match(i, options.foldExplicitStart.c_str())) { levelNext++; } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { levelNext--; } } else { if ((ch == '/') && (chNext == '/')) { char chNext2 = styler.SafeGetCharAt(i + 2); if (chNext2 == '{') { levelNext++; } else if (chNext2 == '}') { levelNext--; } } } } if (options.foldPreprocessor && (style == SCE_C_PREPROCESSOR)) { if (ch == '#') { Sci_PositionU j = i + 1; while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { j++; } if (styler.Match(j, "region") || styler.Match(j, "if")) { levelNext++; } else if (styler.Match(j, "end")) { levelNext--; } if (options.foldPreprocessorAtElse && (styler.Match(j, "else") || styler.Match(j, "elif"))) { levelMinCurrent--; } } } if (options.foldSyntaxBased && (style == SCE_C_OPERATOR)) { if (ch == '{' || ch == '[' || ch == '(') { // Measure the minimum before a '{' to allow // folding on "} else {" if (options.foldAtElse && levelMinCurrent > levelNext) { levelMinCurrent = levelNext; } levelNext++; } else if (ch == '}' || ch == ']' || ch == ')') { levelNext--; } } if (!IsASpace(ch)) visibleChars++; if (atEOL || (i == endPos-1)) { int levelUse = levelCurrent; if ((options.foldSyntaxBased && options.foldAtElse) || (options.foldPreprocessor && options.foldPreprocessorAtElse) ) { levelUse = levelMinCurrent; } int lev = levelUse | levelNext << 16; if (visibleChars == 0 && options.foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; lineStartNext = styler.LineStart(lineCurrent+1); levelCurrent = levelNext; levelMinCurrent = levelCurrent; if (atEOL && (i == static_cast(styler.Length()-1))) { // There is an empty line at end of file so give it same level and empty styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); } visibleChars = 0; inLineComment = false; } } } void LexerCPP::EvaluateTokens(std::vector &tokens, const SymbolTable &preprocessorDefinitions) { // Remove whitespace tokens tokens.erase(std::remove_if(tokens.begin(), tokens.end(), OnlySpaceOrTab), tokens.end()); // Evaluate defined statements to either 0 or 1 for (size_t i=0; (i+1)) SymbolTable::const_iterator it = preprocessorDefinitions.find(tokens[i+2]); if (it != preprocessorDefinitions.end()) { val = "1"; } tokens.erase(tokens.begin() + i + 1, tokens.begin() + i + 4); } else { // Spurious '(' so erase as more likely to result in false tokens.erase(tokens.begin() + i + 1, tokens.begin() + i + 2); } } else { // defined SymbolTable::const_iterator it = preprocessorDefinitions.find(tokens[i+1]); if (it != preprocessorDefinitions.end()) { val = "1"; } } tokens[i] = val; } else { i++; } } // Evaluate identifiers const size_t maxIterations = 100; size_t iterations = 0; // Limit number of iterations in case there is a recursive macro. for (size_t i = 0; (i(tokens[i][0]))) { SymbolTable::const_iterator it = preprocessorDefinitions.find(tokens[i]); if (it != preprocessorDefinitions.end()) { // Tokenize value std::vector macroTokens = Tokenize(it->second.value); if (it->second.IsMacro()) { if ((i + 1 < tokens.size()) && (tokens.at(i + 1) == "(")) { // Create map of argument name to value std::vector argumentNames = StringSplit(it->second.arguments, ','); std::map arguments; size_t arg = 0; size_t tok = i+2; while ((tok < tokens.size()) && (arg < argumentNames.size()) && (tokens.at(tok) != ")")) { if (tokens.at(tok) != ",") { arguments[argumentNames.at(arg)] = tokens.at(tok); arg++; } tok++; } // Remove invocation tokens.erase(tokens.begin() + i, tokens.begin() + tok + 1); // Substitute values into macro macroTokens.erase(std::remove_if(macroTokens.begin(), macroTokens.end(), OnlySpaceOrTab), macroTokens.end()); for (size_t iMacro = 0; iMacro < macroTokens.size();) { if (setWordStart.Contains(static_cast(macroTokens[iMacro][0]))) { std::map::const_iterator itFind = arguments.find(macroTokens[iMacro]); if (itFind != arguments.end()) { // TODO: Possible that value will be expression so should insert tokenized form macroTokens[iMacro] = itFind->second; } } iMacro++; } // Insert results back into tokens tokens.insert(tokens.begin() + i, macroTokens.begin(), macroTokens.end()); } else { i++; } } else { // Remove invocation tokens.erase(tokens.begin() + i); // Insert results back into tokens tokens.insert(tokens.begin() + i, macroTokens.begin(), macroTokens.end()); } } else { // Identifier not found tokens.erase(tokens.begin() + i); } } else { i++; } } // Find bracketed subexpressions and recurse on them BracketPair bracketPair = FindBracketPair(tokens); while (bracketPair.itBracket != tokens.end()) { std::vector inBracket(bracketPair.itBracket + 1, bracketPair.itEndBracket); EvaluateTokens(inBracket, preprocessorDefinitions); // The insertion is done before the removal because there were failures with the opposite approach tokens.insert(bracketPair.itBracket, inBracket.begin(), inBracket.end()); bracketPair = FindBracketPair(tokens); tokens.erase(bracketPair.itBracket, bracketPair.itEndBracket + 1); bracketPair = FindBracketPair(tokens); } // Evaluate logical negations for (size_t j=0; (j+1)::iterator itInsert = tokens.erase(tokens.begin() + j, tokens.begin() + j + 2); tokens.insert(itInsert, isTrue ? "1" : "0"); } else { j++; } } // Evaluate expressions in precedence order enum precedence { precArithmetic, precRelative, precLogical }; for (int prec=precArithmetic; prec <= precLogical; prec++) { // Looking at 3 tokens at a time so end at 2 before end for (size_t k=0; (k+2)") result = valA > valB; else if (tokens[k+1] == ">=") result = valA >= valB; else if (tokens[k+1] == "==") result = valA == valB; else if (tokens[k+1] == "!=") result = valA != valB; else if (tokens[k+1] == "||") result = valA || valB; else if (tokens[k+1] == "&&") result = valA && valB; char sResult[30]; sprintf(sResult, "%d", result); std::vector::iterator itInsert = tokens.erase(tokens.begin() + k, tokens.begin() + k + 3); tokens.insert(itInsert, sResult); } else { k++; } } } } std::vector LexerCPP::Tokenize(const std::string &expr) const { // Break into tokens std::vector tokens; const char *cp = expr.c_str(); while (*cp) { std::string word; if (setWord.Contains(static_cast(*cp))) { // Identifiers and numbers while (setWord.Contains(static_cast(*cp))) { word += *cp; cp++; } } else if (IsSpaceOrTab(*cp)) { while (IsSpaceOrTab(*cp)) { word += *cp; cp++; } } else if (setRelOp.Contains(static_cast(*cp))) { word += *cp; cp++; if (setRelOp.Contains(static_cast(*cp))) { word += *cp; cp++; } } else if (setLogicalOp.Contains(static_cast(*cp))) { word += *cp; cp++; if (setLogicalOp.Contains(static_cast(*cp))) { word += *cp; cp++; } } else { // Should handle strings, characters, and comments here word += *cp; cp++; } tokens.push_back(word); } return tokens; } bool LexerCPP::EvaluateExpression(const std::string &expr, const SymbolTable &preprocessorDefinitions) { std::vector tokens = Tokenize(expr); EvaluateTokens(tokens, preprocessorDefinitions); // "0" or "" -> false else true bool isFalse = tokens.empty() || ((tokens.size() == 1) && ((tokens[0] == "") || tokens[0] == "0")); return !isFalse; } LexerModule lmCPP(SCLEX_CPP, LexerCPP::LexerFactoryCPP, "cpp", cppWordLists); LexerModule lmCPPNoCase(SCLEX_CPPNOCASE, LexerCPP::LexerFactoryCPPInsensitive, "cppnocase", cppWordLists); codequery-0.21.0/scintilla/lexers/LexCSS.cxx000066400000000000000000000440601310136352400207050ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCSS.cxx ** Lexer for Cascading Style Sheets ** Written by Jakub Vrána ** Improved by Philippe Lhoste (CSS2) ** Improved by Ross McKay (SCSS mode; see http://sass-lang.com/ ) **/ // Copyright 1998-2002 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. // TODO: handle SCSS nested properties like font: { weight: bold; size: 1em; } // TODO: handle SCSS interpolation: #{} // TODO: add features for Less if somebody feels like contributing; http://lesscss.org/ // TODO: refactor this monster so that the next poor slob can read it! #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const unsigned int ch) { /* FIXME: * The CSS spec allows "ISO 10646 characters U+00A1 and higher" to be treated as word chars. * Unfortunately, we are only getting string bytes here, and not full unicode characters. We cannot guarantee * that our byte is between U+0080 - U+00A0 (to return false), so we have to allow all characters U+0080 and higher */ return ch >= 0x80 || isalnum(ch) || ch == '-' || ch == '_'; } inline bool IsCssOperator(const int ch) { if (!((ch < 0x80) && isalnum(ch)) && (ch == '{' || ch == '}' || ch == ':' || ch == ',' || ch == ';' || ch == '.' || ch == '#' || ch == '!' || ch == '@' || /* CSS2 */ ch == '*' || ch == '>' || ch == '+' || ch == '=' || ch == '~' || ch == '|' || ch == '[' || ch == ']' || ch == '(' || ch == ')')) { return true; } return false; } // look behind (from start of document to our start position) to determine current nesting level inline int NestingLevelLookBehind(Sci_PositionU startPos, Accessor &styler) { int ch; int nestingLevel = 0; for (Sci_PositionU i = 0; i < startPos; i++) { ch = styler.SafeGetCharAt(i); if (ch == '{') nestingLevel++; else if (ch == '}') nestingLevel--; } return nestingLevel; } static void ColouriseCssDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &css1Props = *keywordlists[0]; WordList &pseudoClasses = *keywordlists[1]; WordList &css2Props = *keywordlists[2]; WordList &css3Props = *keywordlists[3]; WordList &pseudoElements = *keywordlists[4]; WordList &exProps = *keywordlists[5]; WordList &exPseudoClasses = *keywordlists[6]; WordList &exPseudoElements = *keywordlists[7]; StyleContext sc(startPos, length, initStyle, styler); int lastState = -1; // before operator int lastStateC = -1; // before comment int lastStateS = -1; // before single-quoted/double-quoted string int lastStateVar = -1; // before variable (SCSS) int lastStateVal = -1; // before value (SCSS) int op = ' '; // last operator int opPrev = ' '; // last operator bool insideParentheses = false; // true if currently in a CSS url() or similar construct // property lexer.css.scss.language // Set to 1 for Sassy CSS (.scss) bool isScssDocument = styler.GetPropertyInt("lexer.css.scss.language") != 0; // property lexer.css.less.language // Set to 1 for Less CSS (.less) bool isLessDocument = styler.GetPropertyInt("lexer.css.less.language") != 0; // property lexer.css.hss.language // Set to 1 for HSS (.hss) bool isHssDocument = styler.GetPropertyInt("lexer.css.hss.language") != 0; // SCSS/LESS/HSS have the concept of variable bool hasVariables = isScssDocument || isLessDocument || isHssDocument; char varPrefix = 0; if (hasVariables) varPrefix = isLessDocument ? '@' : '$'; // SCSS/LESS/HSS support single-line comments typedef enum _CommentModes { eCommentBlock = 0, eCommentLine = 1} CommentMode; CommentMode comment_mode = eCommentBlock; bool hasSingleLineComments = isScssDocument || isLessDocument || isHssDocument; // must keep track of nesting level in document types that support it (SCSS/LESS/HSS) bool hasNesting = false; int nestingLevel = 0; if (isScssDocument || isLessDocument || isHssDocument) { hasNesting = true; nestingLevel = NestingLevelLookBehind(startPos, styler); } // "the loop" for (; sc.More(); sc.Forward()) { if (sc.state == SCE_CSS_COMMENT && ((comment_mode == eCommentBlock && sc.Match('*', '/')) || (comment_mode == eCommentLine && sc.atLineEnd))) { if (lastStateC == -1) { // backtrack to get last state: // comments are like whitespace, so we must return to the previous state Sci_PositionU i = startPos; for (; i > 0; i--) { if ((lastStateC = styler.StyleAt(i-1)) != SCE_CSS_COMMENT) { if (lastStateC == SCE_CSS_OPERATOR) { op = styler.SafeGetCharAt(i-1); opPrev = styler.SafeGetCharAt(i-2); while (--i) { lastState = styler.StyleAt(i-1); if (lastState != SCE_CSS_OPERATOR && lastState != SCE_CSS_COMMENT) break; } if (i == 0) lastState = SCE_CSS_DEFAULT; } break; } } if (i == 0) lastStateC = SCE_CSS_DEFAULT; } if (comment_mode == eCommentBlock) { sc.Forward(); sc.ForwardSetState(lastStateC); } else /* eCommentLine */ { sc.SetState(lastStateC); } } if (sc.state == SCE_CSS_COMMENT) continue; if (sc.state == SCE_CSS_DOUBLESTRING || sc.state == SCE_CSS_SINGLESTRING) { if (sc.ch != (sc.state == SCE_CSS_DOUBLESTRING ? '\"' : '\'')) continue; Sci_PositionU i = sc.currentPos; while (i && styler[i-1] == '\\') i--; if ((sc.currentPos - i) % 2 == 1) continue; sc.ForwardSetState(lastStateS); } if (sc.state == SCE_CSS_OPERATOR) { if (op == ' ') { Sci_PositionU i = startPos; op = styler.SafeGetCharAt(i-1); opPrev = styler.SafeGetCharAt(i-2); while (--i) { lastState = styler.StyleAt(i-1); if (lastState != SCE_CSS_OPERATOR && lastState != SCE_CSS_COMMENT) break; } } switch (op) { case '@': if (lastState == SCE_CSS_DEFAULT || hasNesting) sc.SetState(SCE_CSS_DIRECTIVE); break; case '>': case '+': if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) sc.SetState(SCE_CSS_DEFAULT); break; case '[': if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) sc.SetState(SCE_CSS_ATTRIBUTE); break; case ']': if (lastState == SCE_CSS_ATTRIBUTE) sc.SetState(SCE_CSS_TAG); break; case '{': nestingLevel++; switch (lastState) { case SCE_CSS_MEDIA: sc.SetState(SCE_CSS_DEFAULT); break; case SCE_CSS_TAG: case SCE_CSS_DIRECTIVE: sc.SetState(SCE_CSS_IDENTIFIER); break; } break; case '}': if (--nestingLevel < 0) nestingLevel = 0; switch (lastState) { case SCE_CSS_DEFAULT: case SCE_CSS_VALUE: case SCE_CSS_IMPORTANT: case SCE_CSS_IDENTIFIER: case SCE_CSS_IDENTIFIER2: case SCE_CSS_IDENTIFIER3: if (hasNesting) sc.SetState(nestingLevel > 0 ? SCE_CSS_IDENTIFIER : SCE_CSS_DEFAULT); else sc.SetState(SCE_CSS_DEFAULT); break; } break; case '(': if (lastState == SCE_CSS_PSEUDOCLASS) sc.SetState(SCE_CSS_TAG); else if (lastState == SCE_CSS_EXTENDED_PSEUDOCLASS) sc.SetState(SCE_CSS_EXTENDED_PSEUDOCLASS); break; case ')': if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS || lastState == SCE_CSS_PSEUDOELEMENT || lastState == SCE_CSS_EXTENDED_PSEUDOELEMENT) sc.SetState(SCE_CSS_TAG); break; case ':': switch (lastState) { case SCE_CSS_TAG: case SCE_CSS_DEFAULT: case SCE_CSS_CLASS: case SCE_CSS_ID: case SCE_CSS_PSEUDOCLASS: case SCE_CSS_EXTENDED_PSEUDOCLASS: case SCE_CSS_UNKNOWN_PSEUDOCLASS: case SCE_CSS_PSEUDOELEMENT: case SCE_CSS_EXTENDED_PSEUDOELEMENT: sc.SetState(SCE_CSS_PSEUDOCLASS); break; case SCE_CSS_IDENTIFIER: case SCE_CSS_IDENTIFIER2: case SCE_CSS_IDENTIFIER3: case SCE_CSS_EXTENDED_IDENTIFIER: case SCE_CSS_UNKNOWN_IDENTIFIER: case SCE_CSS_VARIABLE: sc.SetState(SCE_CSS_VALUE); lastStateVal = lastState; break; } break; case '.': if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) sc.SetState(SCE_CSS_CLASS); break; case '#': if (lastState == SCE_CSS_TAG || lastState == SCE_CSS_DEFAULT || lastState == SCE_CSS_CLASS || lastState == SCE_CSS_ID || lastState == SCE_CSS_PSEUDOCLASS || lastState == SCE_CSS_EXTENDED_PSEUDOCLASS || lastState == SCE_CSS_UNKNOWN_PSEUDOCLASS) sc.SetState(SCE_CSS_ID); break; case ',': case '|': case '~': if (lastState == SCE_CSS_TAG) sc.SetState(SCE_CSS_DEFAULT); break; case ';': switch (lastState) { case SCE_CSS_DIRECTIVE: if (hasNesting) { sc.SetState(nestingLevel > 0 ? SCE_CSS_IDENTIFIER : SCE_CSS_DEFAULT); } else { sc.SetState(SCE_CSS_DEFAULT); } break; case SCE_CSS_VALUE: case SCE_CSS_IMPORTANT: // data URLs can have semicolons; simplistically check for wrapping parentheses and move along if (insideParentheses) { sc.SetState(lastState); } else { if (lastStateVal == SCE_CSS_VARIABLE) { sc.SetState(SCE_CSS_DEFAULT); } else { sc.SetState(SCE_CSS_IDENTIFIER); } } break; case SCE_CSS_VARIABLE: if (lastStateVar == SCE_CSS_VALUE) { // data URLs can have semicolons; simplistically check for wrapping parentheses and move along if (insideParentheses) { sc.SetState(SCE_CSS_VALUE); } else { sc.SetState(SCE_CSS_IDENTIFIER); } } else { sc.SetState(SCE_CSS_DEFAULT); } break; } break; case '!': if (lastState == SCE_CSS_VALUE) sc.SetState(SCE_CSS_IMPORTANT); break; } } if (sc.ch == '*' && sc.state == SCE_CSS_DEFAULT) { sc.SetState(SCE_CSS_TAG); continue; } // check for inside parentheses (whether part of an "operator" or not) if (sc.ch == '(') insideParentheses = true; else if (sc.ch == ')') insideParentheses = false; // SCSS special modes if (hasVariables) { // variable name if (sc.ch == varPrefix) { switch (sc.state) { case SCE_CSS_DEFAULT: if (isLessDocument) // give priority to pseudo elements break; case SCE_CSS_VALUE: lastStateVar = sc.state; sc.SetState(SCE_CSS_VARIABLE); continue; } } if (sc.state == SCE_CSS_VARIABLE) { if (IsAWordChar(sc.ch)) { // still looking at the variable name continue; } if (lastStateVar == SCE_CSS_VALUE) { // not looking at the variable name any more, and it was part of a value sc.SetState(SCE_CSS_VALUE); } } // nested rule parent selector if (sc.ch == '&') { switch (sc.state) { case SCE_CSS_DEFAULT: case SCE_CSS_IDENTIFIER: sc.SetState(SCE_CSS_TAG); continue; } } } // nesting rules that apply to SCSS and Less if (hasNesting) { // check for nested rule selector if (sc.state == SCE_CSS_IDENTIFIER && (IsAWordChar(sc.ch) || sc.ch == ':' || sc.ch == '.' || sc.ch == '#')) { // look ahead to see whether { comes before next ; and } Sci_PositionU endPos = startPos + length; int ch; for (Sci_PositionU i = sc.currentPos; i < endPos; i++) { ch = styler.SafeGetCharAt(i); if (ch == ';' || ch == '}') break; if (ch == '{') { sc.SetState(SCE_CSS_DEFAULT); continue; } } } } if (IsAWordChar(sc.ch)) { if (sc.state == SCE_CSS_DEFAULT) sc.SetState(SCE_CSS_TAG); continue; } if (IsAWordChar(sc.chPrev) && ( sc.state == SCE_CSS_IDENTIFIER || sc.state == SCE_CSS_IDENTIFIER2 || sc.state == SCE_CSS_IDENTIFIER3 || sc.state == SCE_CSS_EXTENDED_IDENTIFIER || sc.state == SCE_CSS_UNKNOWN_IDENTIFIER || sc.state == SCE_CSS_PSEUDOCLASS || sc.state == SCE_CSS_PSEUDOELEMENT || sc.state == SCE_CSS_EXTENDED_PSEUDOCLASS || sc.state == SCE_CSS_EXTENDED_PSEUDOELEMENT || sc.state == SCE_CSS_UNKNOWN_PSEUDOCLASS || sc.state == SCE_CSS_IMPORTANT || sc.state == SCE_CSS_DIRECTIVE )) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); char *s2 = s; while (*s2 && !IsAWordChar(*s2)) s2++; switch (sc.state) { case SCE_CSS_IDENTIFIER: case SCE_CSS_IDENTIFIER2: case SCE_CSS_IDENTIFIER3: case SCE_CSS_EXTENDED_IDENTIFIER: case SCE_CSS_UNKNOWN_IDENTIFIER: if (css1Props.InList(s2)) sc.ChangeState(SCE_CSS_IDENTIFIER); else if (css2Props.InList(s2)) sc.ChangeState(SCE_CSS_IDENTIFIER2); else if (css3Props.InList(s2)) sc.ChangeState(SCE_CSS_IDENTIFIER3); else if (exProps.InList(s2)) sc.ChangeState(SCE_CSS_EXTENDED_IDENTIFIER); else sc.ChangeState(SCE_CSS_UNKNOWN_IDENTIFIER); break; case SCE_CSS_PSEUDOCLASS: case SCE_CSS_PSEUDOELEMENT: case SCE_CSS_EXTENDED_PSEUDOCLASS: case SCE_CSS_EXTENDED_PSEUDOELEMENT: case SCE_CSS_UNKNOWN_PSEUDOCLASS: if (op == ':' && opPrev != ':' && pseudoClasses.InList(s2)) sc.ChangeState(SCE_CSS_PSEUDOCLASS); else if (opPrev == ':' && pseudoElements.InList(s2)) sc.ChangeState(SCE_CSS_PSEUDOELEMENT); else if ((op == ':' || (op == '(' && lastState == SCE_CSS_EXTENDED_PSEUDOCLASS)) && opPrev != ':' && exPseudoClasses.InList(s2)) sc.ChangeState(SCE_CSS_EXTENDED_PSEUDOCLASS); else if (opPrev == ':' && exPseudoElements.InList(s2)) sc.ChangeState(SCE_CSS_EXTENDED_PSEUDOELEMENT); else sc.ChangeState(SCE_CSS_UNKNOWN_PSEUDOCLASS); break; case SCE_CSS_IMPORTANT: if (strcmp(s2, "important") != 0) sc.ChangeState(SCE_CSS_VALUE); break; case SCE_CSS_DIRECTIVE: if (op == '@' && strcmp(s2, "media") == 0) sc.ChangeState(SCE_CSS_MEDIA); break; } } if (sc.ch != '.' && sc.ch != ':' && sc.ch != '#' && ( sc.state == SCE_CSS_CLASS || sc.state == SCE_CSS_ID || (sc.ch != '(' && sc.ch != ')' && ( /* This line of the condition makes it possible to extend pseudo-classes with parentheses */ sc.state == SCE_CSS_PSEUDOCLASS || sc.state == SCE_CSS_PSEUDOELEMENT || sc.state == SCE_CSS_EXTENDED_PSEUDOCLASS || sc.state == SCE_CSS_EXTENDED_PSEUDOELEMENT || sc.state == SCE_CSS_UNKNOWN_PSEUDOCLASS )) )) sc.SetState(SCE_CSS_TAG); if (sc.Match('/', '*')) { lastStateC = sc.state; comment_mode = eCommentBlock; sc.SetState(SCE_CSS_COMMENT); sc.Forward(); } else if (hasSingleLineComments && sc.Match('/', '/') && !insideParentheses) { // note that we've had to treat ([...]// as the start of a URL not a comment, e.g. url(http://example.com), url(//example.com) lastStateC = sc.state; comment_mode = eCommentLine; sc.SetState(SCE_CSS_COMMENT); sc.Forward(); } else if ((sc.state == SCE_CSS_VALUE || sc.state == SCE_CSS_ATTRIBUTE) && (sc.ch == '\"' || sc.ch == '\'')) { lastStateS = sc.state; sc.SetState((sc.ch == '\"' ? SCE_CSS_DOUBLESTRING : SCE_CSS_SINGLESTRING)); } else if (IsCssOperator(sc.ch) && (sc.state != SCE_CSS_ATTRIBUTE || sc.ch == ']') && (sc.state != SCE_CSS_VALUE || sc.ch == ';' || sc.ch == '}' || sc.ch == '!') && ((sc.state != SCE_CSS_DIRECTIVE && sc.state != SCE_CSS_MEDIA) || sc.ch == ';' || sc.ch == '{') ) { if (sc.state != SCE_CSS_OPERATOR) lastState = sc.state; sc.SetState(SCE_CSS_OPERATOR); op = sc.ch; opPrev = sc.chPrev; } } sc.Complete(); } static void FoldCSSDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; bool inComment = (styler.StyleAt(startPos-1) == SCE_CSS_COMMENT); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styler.StyleAt(i); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (foldComment) { if (!inComment && (style == SCE_CSS_COMMENT)) levelCurrent++; else if (inComment && (style != SCE_CSS_COMMENT)) levelCurrent--; inComment = (style == SCE_CSS_COMMENT); } if (style == SCE_CSS_OPERATOR) { if (ch == '{') { levelCurrent++; } else if (ch == '}') { levelCurrent--; } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const cssWordListDesc[] = { "CSS1 Properties", "Pseudo-classes", "CSS2 Properties", "CSS3 Properties", "Pseudo-elements", "Browser-Specific CSS Properties", "Browser-Specific Pseudo-classes", "Browser-Specific Pseudo-elements", 0 }; LexerModule lmCss(SCLEX_CSS, ColouriseCssDoc, "css", FoldCSSDoc, cssWordListDesc); codequery-0.21.0/scintilla/lexers/LexCaml.cxx000066400000000000000000000341531310136352400211330ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCaml.cxx ** Lexer for Objective Caml. **/ // Copyright 2005-2009 by Robert Roessler // The License.txt file describes the conditions under which this software may be distributed. /* Release History 20050204 Initial release. 20050205 Quick compiler standards/"cleanliness" adjustment. 20050206 Added cast for IsLeadByte(). 20050209 Changes to "external" build support. 20050306 Fix for 1st-char-in-doc "corner" case. 20050502 Fix for [harmless] one-past-the-end coloring. 20050515 Refined numeric token recognition logic. 20051125 Added 2nd "optional" keywords class. 20051129 Support "magic" (read-only) comments for RCaml. 20051204 Swtich to using StyleContext infrastructure. 20090629 Add full Standard ML '97 support. */ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "PropSetSimple.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" // Since the Microsoft __iscsym[f] funcs are not ANSI... inline int iscaml(int c) {return isalnum(c) || c == '_';} inline int iscamlf(int c) {return isalpha(c) || c == '_';} static const int baseT[24] = { 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* A - L */ 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0,16 /* M - X */ }; #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #ifdef BUILD_AS_EXTERNAL_LEXER /* (actually seems to work!) */ #include #include "WindowAccessor.h" #include "ExternalLexer.h" #undef EXT_LEXER_DECL #define EXT_LEXER_DECL __declspec( dllexport ) __stdcall #if PLAT_WIN #include #endif static void ColouriseCamlDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler); static void FoldCamlDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler); static void InternalLexOrFold(int lexOrFold, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props); static const char* LexerName = "caml"; #ifdef TRACE void Platform::DebugPrintf(const char *format, ...) { char buffer[2000]; va_list pArguments; va_start(pArguments, format); vsprintf(buffer,format,pArguments); va_end(pArguments); Platform::DebugDisplay(buffer); } #else void Platform::DebugPrintf(const char *, ...) { } #endif bool Platform::IsDBCSLeadByte(int codePage, char ch) { return ::IsDBCSLeadByteEx(codePage, ch) != 0; } long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam, long lParam) { return ::SendMessage(reinterpret_cast(w), msg, wParam, lParam); } long Platform::SendScintillaPointer(WindowID w, unsigned int msg, unsigned long wParam, void *lParam) { return ::SendMessage(reinterpret_cast(w), msg, wParam, reinterpret_cast(lParam)); } void EXT_LEXER_DECL Fold(unsigned int lexer, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // below useless evaluation(s) to supress "not used" warnings lexer; // build expected data structures and do the Fold InternalLexOrFold(1, startPos, length, initStyle, words, window, props); } int EXT_LEXER_DECL GetLexerCount() { return 1; // just us [Objective] Caml lexers here! } void EXT_LEXER_DECL GetLexerName(unsigned int Index, char *name, int buflength) { // below useless evaluation(s) to supress "not used" warnings Index; // return as much of our lexer name as will fit (what's up with Index?) if (buflength > 0) { buflength--; int n = strlen(LexerName); if (n > buflength) n = buflength; memcpy(name, LexerName, n), name[n] = '\0'; } } void EXT_LEXER_DECL Lex(unsigned int lexer, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // below useless evaluation(s) to supress "not used" warnings lexer; // build expected data structures and do the Lex InternalLexOrFold(0, startPos, length, initStyle, words, window, props); } static void InternalLexOrFold(int foldOrLex, Sci_PositionU startPos, Sci_Position length, int initStyle, char *words[], WindowID window, char *props) { // create and initialize a WindowAccessor (including contained PropSet) PropSetSimple ps; ps.SetMultiple(props); WindowAccessor wa(window, ps); // create and initialize WordList(s) int nWL = 0; for (; words[nWL]; nWL++) ; // count # of WordList PTRs needed WordList** wl = new WordList* [nWL + 1];// alloc WordList PTRs int i = 0; for (; i < nWL; i++) { wl[i] = new WordList(); // (works or THROWS bad_alloc EXCEPTION) wl[i]->Set(words[i]); } wl[i] = 0; // call our "internal" folder/lexer (... then do Flush!) if (foldOrLex) FoldCamlDoc(startPos, length, initStyle, wl, wa); else ColouriseCamlDoc(startPos, length, initStyle, wl, wa); wa.Flush(); // clean up before leaving for (i = nWL - 1; i >= 0; i--) delete wl[i]; delete [] wl; } static #endif /* BUILD_AS_EXTERNAL_LEXER */ void ColouriseCamlDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { // initialize styler StyleContext sc(startPos, length, initStyle, styler); Sci_PositionU chToken = 0; int chBase = 0, chLit = 0; WordList& keywords = *keywordlists[0]; WordList& keywords2 = *keywordlists[1]; WordList& keywords3 = *keywordlists[2]; const bool isSML = keywords.InList("andalso"); const int useMagic = styler.GetPropertyInt("lexer.caml.magic", 0); // set up [initial] state info (terminating states that shouldn't "bleed") const int state_ = sc.state & 0x0f; if (state_ <= SCE_CAML_CHAR || (isSML && state_ == SCE_CAML_STRING)) sc.state = SCE_CAML_DEFAULT; int nesting = (state_ >= SCE_CAML_COMMENT)? (state_ - SCE_CAML_COMMENT): 0; // foreach char in range... while (sc.More()) { // set up [per-char] state info int state2 = -1; // (ASSUME no state change) Sci_Position chColor = sc.currentPos - 1;// (ASSUME standard coloring range) bool advance = true; // (ASSUME scanner "eats" 1 char) // step state machine switch (sc.state & 0x0f) { case SCE_CAML_DEFAULT: chToken = sc.currentPos; // save [possible] token start (JIC) // it's wide open; what do we have? if (iscamlf(sc.ch)) state2 = SCE_CAML_IDENTIFIER; else if (!isSML && sc.Match('`') && iscamlf(sc.chNext)) state2 = SCE_CAML_TAGNAME; else if (!isSML && sc.Match('#') && isdigit(sc.chNext)) state2 = SCE_CAML_LINENUM; else if (isdigit(sc.ch)) { // it's a number, assume base 10 state2 = SCE_CAML_NUMBER, chBase = 10; if (sc.Match('0')) { // there MAY be a base specified... const char* baseC = "bBoOxX"; if (isSML) { if (sc.chNext == 'w') sc.Forward(); // (consume SML "word" indicator) baseC = "x"; } // ... change to specified base AS REQUIRED if (strchr(baseC, sc.chNext)) chBase = baseT[tolower(sc.chNext) - 'a'], sc.Forward(); } } else if (!isSML && sc.Match('\'')) // (Caml char literal?) state2 = SCE_CAML_CHAR, chLit = 0; else if (isSML && sc.Match('#', '"')) // (SML char literal?) state2 = SCE_CAML_CHAR, sc.Forward(); else if (sc.Match('"')) state2 = SCE_CAML_STRING; else if (sc.Match('(', '*')) state2 = SCE_CAML_COMMENT, sc.Forward(), sc.ch = ' '; // (*)... else if (strchr("!?~" /* Caml "prefix-symbol" */ "=<>@^|&+-*/$%" /* Caml "infix-symbol" */ "()[]{};,:.#", sc.ch) // Caml "bracket" or ;,:.# // SML "extra" ident chars || (isSML && (sc.Match('\\') || sc.Match('`')))) state2 = SCE_CAML_OPERATOR; break; case SCE_CAML_IDENTIFIER: // [try to] interpret as [additional] identifier char if (!(iscaml(sc.ch) || sc.Match('\''))) { const Sci_Position n = sc.currentPos - chToken; if (n < 24) { // length is believable as keyword, [re-]construct token char t[24]; for (Sci_Position i = -n; i < 0; i++) t[n + i] = static_cast(sc.GetRelative(i)); t[n] = '\0'; // special-case "_" token as KEYWORD if ((n == 1 && sc.chPrev == '_') || keywords.InList(t)) sc.ChangeState(SCE_CAML_KEYWORD); else if (keywords2.InList(t)) sc.ChangeState(SCE_CAML_KEYWORD2); else if (keywords3.InList(t)) sc.ChangeState(SCE_CAML_KEYWORD3); } state2 = SCE_CAML_DEFAULT, advance = false; } break; case SCE_CAML_TAGNAME: // [try to] interpret as [additional] tagname char if (!(iscaml(sc.ch) || sc.Match('\''))) state2 = SCE_CAML_DEFAULT, advance = false; break; /*case SCE_CAML_KEYWORD: case SCE_CAML_KEYWORD2: case SCE_CAML_KEYWORD3: // [try to] interpret as [additional] keyword char if (!iscaml(ch)) state2 = SCE_CAML_DEFAULT, advance = false; break;*/ case SCE_CAML_LINENUM: // [try to] interpret as [additional] linenum directive char if (!isdigit(sc.ch)) state2 = SCE_CAML_DEFAULT, advance = false; break; case SCE_CAML_OPERATOR: { // [try to] interpret as [additional] operator char const char* o = 0; if (iscaml(sc.ch) || isspace(sc.ch) // ident or whitespace || (o = strchr(")]};,\'\"#", sc.ch),o) // "termination" chars || (!isSML && sc.Match('`')) // Caml extra term char || (!strchr("!$%&*+-./:<=>?@^|~", sc.ch)// "operator" chars // SML extra ident chars && !(isSML && (sc.Match('\\') || sc.Match('`'))))) { // check for INCLUSIVE termination if (o && strchr(")]};,", sc.ch)) { if ((sc.Match(')') && sc.chPrev == '(') || (sc.Match(']') && sc.chPrev == '[')) // special-case "()" and "[]" tokens as KEYWORDS sc.ChangeState(SCE_CAML_KEYWORD); chColor++; } else advance = false; state2 = SCE_CAML_DEFAULT; } break; } case SCE_CAML_NUMBER: // [try to] interpret as [additional] numeric literal char if ((!isSML && sc.Match('_')) || IsADigit(sc.ch, chBase)) break; // how about an integer suffix? if (!isSML && (sc.Match('l') || sc.Match('L') || sc.Match('n')) && (sc.chPrev == '_' || IsADigit(sc.chPrev, chBase))) break; // or a floating-point literal? if (chBase == 10) { // with a decimal point? if (sc.Match('.') && ((!isSML && sc.chPrev == '_') || IsADigit(sc.chPrev, chBase))) break; // with an exponent? (I) if ((sc.Match('e') || sc.Match('E')) && ((!isSML && (sc.chPrev == '.' || sc.chPrev == '_')) || IsADigit(sc.chPrev, chBase))) break; // with an exponent? (II) if (((!isSML && (sc.Match('+') || sc.Match('-'))) || (isSML && sc.Match('~'))) && (sc.chPrev == 'e' || sc.chPrev == 'E')) break; } // it looks like we have run out of number state2 = SCE_CAML_DEFAULT, advance = false; break; case SCE_CAML_CHAR: if (!isSML) { // [try to] interpret as [additional] char literal char if (sc.Match('\\')) { chLit = 1; // (definitely IS a char literal) if (sc.chPrev == '\\') sc.ch = ' '; // (...\\') // should we be terminating - one way or another? } else if ((sc.Match('\'') && sc.chPrev != '\\') || sc.atLineEnd) { state2 = SCE_CAML_DEFAULT; if (sc.Match('\'')) chColor++; else sc.ChangeState(SCE_CAML_IDENTIFIER); // ... maybe a char literal, maybe not } else if (chLit < 1 && sc.currentPos - chToken >= 2) sc.ChangeState(SCE_CAML_IDENTIFIER), advance = false; break; }/* else // fall through for SML char literal (handle like string) */ case SCE_CAML_STRING: // [try to] interpret as [additional] [SML char/] string literal char if (isSML && sc.Match('\\') && sc.chPrev != '\\' && isspace(sc.chNext)) state2 = SCE_CAML_WHITE; else if (sc.Match('\\') && sc.chPrev == '\\') sc.ch = ' '; // (...\\") // should we be terminating - one way or another? else if ((sc.Match('"') && sc.chPrev != '\\') || (isSML && sc.atLineEnd)) { state2 = SCE_CAML_DEFAULT; if (sc.Match('"')) chColor++; } break; case SCE_CAML_WHITE: // [try to] interpret as [additional] SML embedded whitespace char if (sc.Match('\\')) { // style this puppy NOW... state2 = SCE_CAML_STRING, sc.ch = ' ' /* (...\") */, chColor++, styler.ColourTo(chColor, SCE_CAML_WHITE), styler.Flush(); // ... then backtrack to determine original SML literal type Sci_Position p = chColor - 2; for (; p >= 0 && styler.StyleAt(p) == SCE_CAML_WHITE; p--) ; if (p >= 0) state2 = static_cast(styler.StyleAt(p)); // take care of state change NOW sc.ChangeState(state2), state2 = -1; } break; case SCE_CAML_COMMENT: case SCE_CAML_COMMENT1: case SCE_CAML_COMMENT2: case SCE_CAML_COMMENT3: // we're IN a comment - does this start a NESTED comment? if (sc.Match('(', '*')) state2 = sc.state + 1, chToken = sc.currentPos, sc.Forward(), sc.ch = ' ' /* (*)... */, nesting++; // [try to] interpret as [additional] comment char else if (sc.Match(')') && sc.chPrev == '*') { if (nesting) state2 = (sc.state & 0x0f) - 1, chToken = 0, nesting--; else state2 = SCE_CAML_DEFAULT; chColor++; // enable "magic" (read-only) comment AS REQUIRED } else if (useMagic && sc.currentPos - chToken == 4 && sc.Match('c') && sc.chPrev == 'r' && sc.GetRelative(-2) == '@') sc.state |= 0x10; // (switch to read-only comment style) break; } // handle state change and char coloring AS REQUIRED if (state2 >= 0) styler.ColourTo(chColor, sc.state), sc.ChangeState(state2); // move to next char UNLESS re-scanning current char if (advance) sc.Forward(); } // do any required terminal char coloring (JIC) sc.Complete(); } #ifdef BUILD_AS_EXTERNAL_LEXER static #endif /* BUILD_AS_EXTERNAL_LEXER */ void FoldCamlDoc( Sci_PositionU, Sci_Position, int, WordList *[], Accessor &) { } static const char * const camlWordListDesc[] = { "Keywords", // primary Objective Caml keywords "Keywords2", // "optional" keywords (typically from Pervasives) "Keywords3", // "optional" keywords (typically typenames) 0 }; #ifndef BUILD_AS_EXTERNAL_LEXER LexerModule lmCaml(SCLEX_CAML, ColouriseCamlDoc, "caml", FoldCamlDoc, camlWordListDesc); #endif /* BUILD_AS_EXTERNAL_LEXER */ codequery-0.21.0/scintilla/lexers/LexCmake.cxx000066400000000000000000000365731310136352400213070ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCmake.cxx ** Lexer for Cmake **/ // Copyright 2007 by Cristian Adam // based on the NSIS lexer // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static bool isCmakeNumber(char ch) { return(ch >= '0' && ch <= '9'); } static bool isCmakeChar(char ch) { return(ch == '.' ) || (ch == '_' ) || isCmakeNumber(ch) || (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); } static bool isCmakeLetter(char ch) { return(ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); } static bool CmakeNextLineHasElse(Sci_PositionU start, Sci_PositionU end, Accessor &styler) { Sci_Position nNextLine = -1; for ( Sci_PositionU i = start; i < end; i++ ) { char cNext = styler.SafeGetCharAt( i ); if ( cNext == '\n' ) { nNextLine = i+1; break; } } if ( nNextLine == -1 ) // We never foudn the next line... return false; for ( Sci_PositionU firstChar = nNextLine; firstChar < end; firstChar++ ) { char cNext = styler.SafeGetCharAt( firstChar ); if ( cNext == ' ' ) continue; if ( cNext == '\t' ) continue; if ( styler.Match(firstChar, "ELSE") || styler.Match(firstChar, "else")) return true; break; } return false; } static int calculateFoldCmake(Sci_PositionU start, Sci_PositionU end, int foldlevel, Accessor &styler, bool bElse) { // If the word is too long, it is not what we are looking for if ( end - start > 20 ) return foldlevel; int newFoldlevel = foldlevel; char s[20]; // The key word we are looking for has atmost 13 characters for (unsigned int i = 0; i < end - start + 1 && i < 19; i++) { s[i] = static_cast( styler[ start + i ] ); s[i + 1] = '\0'; } if ( CompareCaseInsensitive(s, "IF") == 0 || CompareCaseInsensitive(s, "WHILE") == 0 || CompareCaseInsensitive(s, "MACRO") == 0 || CompareCaseInsensitive(s, "FOREACH") == 0 || CompareCaseInsensitive(s, "ELSEIF") == 0 ) newFoldlevel++; else if ( CompareCaseInsensitive(s, "ENDIF") == 0 || CompareCaseInsensitive(s, "ENDWHILE") == 0 || CompareCaseInsensitive(s, "ENDMACRO") == 0 || CompareCaseInsensitive(s, "ENDFOREACH") == 0) newFoldlevel--; else if ( bElse && CompareCaseInsensitive(s, "ELSEIF") == 0 ) newFoldlevel++; else if ( bElse && CompareCaseInsensitive(s, "ELSE") == 0 ) newFoldlevel++; return newFoldlevel; } static int classifyWordCmake(Sci_PositionU start, Sci_PositionU end, WordList *keywordLists[], Accessor &styler ) { char word[100] = {0}; char lowercaseWord[100] = {0}; WordList &Commands = *keywordLists[0]; WordList &Parameters = *keywordLists[1]; WordList &UserDefined = *keywordLists[2]; for (Sci_PositionU i = 0; i < end - start + 1 && i < 99; i++) { word[i] = static_cast( styler[ start + i ] ); lowercaseWord[i] = static_cast(tolower(word[i])); } // Check for special words... if ( CompareCaseInsensitive(word, "MACRO") == 0 || CompareCaseInsensitive(word, "ENDMACRO") == 0 ) return SCE_CMAKE_MACRODEF; if ( CompareCaseInsensitive(word, "IF") == 0 || CompareCaseInsensitive(word, "ENDIF") == 0 ) return SCE_CMAKE_IFDEFINEDEF; if ( CompareCaseInsensitive(word, "ELSEIF") == 0 || CompareCaseInsensitive(word, "ELSE") == 0 ) return SCE_CMAKE_IFDEFINEDEF; if ( CompareCaseInsensitive(word, "WHILE") == 0 || CompareCaseInsensitive(word, "ENDWHILE") == 0) return SCE_CMAKE_WHILEDEF; if ( CompareCaseInsensitive(word, "FOREACH") == 0 || CompareCaseInsensitive(word, "ENDFOREACH") == 0) return SCE_CMAKE_FOREACHDEF; if ( Commands.InList(lowercaseWord) ) return SCE_CMAKE_COMMANDS; if ( Parameters.InList(word) ) return SCE_CMAKE_PARAMETERS; if ( UserDefined.InList(word) ) return SCE_CMAKE_USERDEFINED; if ( strlen(word) > 3 ) { if ( word[1] == '{' && word[strlen(word)-1] == '}' ) return SCE_CMAKE_VARIABLE; } // To check for numbers if ( isCmakeNumber( word[0] ) ) { bool bHasSimpleCmakeNumber = true; for (unsigned int j = 1; j < end - start + 1 && j < 99; j++) { if ( !isCmakeNumber( word[j] ) ) { bHasSimpleCmakeNumber = false; break; } } if ( bHasSimpleCmakeNumber ) return SCE_CMAKE_NUMBER; } return SCE_CMAKE_DEFAULT; } static void ColouriseCmakeDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *keywordLists[], Accessor &styler) { int state = SCE_CMAKE_DEFAULT; if ( startPos > 0 ) state = styler.StyleAt(startPos-1); // Use the style from the previous line, usually default, but could be commentbox styler.StartAt( startPos ); styler.GetLine( startPos ); Sci_PositionU nLengthDoc = startPos + length; styler.StartSegment( startPos ); char cCurrChar; bool bVarInString = false; bool bClassicVarInString = false; Sci_PositionU i; for ( i = startPos; i < nLengthDoc; i++ ) { cCurrChar = styler.SafeGetCharAt( i ); char cNextChar = styler.SafeGetCharAt(i+1); switch (state) { case SCE_CMAKE_DEFAULT: if ( cCurrChar == '#' ) { // we have a comment line styler.ColourTo(i-1, state ); state = SCE_CMAKE_COMMENT; break; } if ( cCurrChar == '"' ) { styler.ColourTo(i-1, state ); state = SCE_CMAKE_STRINGDQ; bVarInString = false; bClassicVarInString = false; break; } if ( cCurrChar == '\'' ) { styler.ColourTo(i-1, state ); state = SCE_CMAKE_STRINGRQ; bVarInString = false; bClassicVarInString = false; break; } if ( cCurrChar == '`' ) { styler.ColourTo(i-1, state ); state = SCE_CMAKE_STRINGLQ; bVarInString = false; bClassicVarInString = false; break; } // CMake Variable if ( cCurrChar == '$' || isCmakeChar(cCurrChar)) { styler.ColourTo(i-1,state); state = SCE_CMAKE_VARIABLE; // If it is a number, we must check and set style here first... if ( isCmakeNumber(cCurrChar) && (cNextChar == '\t' || cNextChar == ' ' || cNextChar == '\r' || cNextChar == '\n' ) ) styler.ColourTo( i, SCE_CMAKE_NUMBER); break; } break; case SCE_CMAKE_COMMENT: if ( cCurrChar == '\n' || cCurrChar == '\r' ) { if ( styler.SafeGetCharAt(i-1) == '\\' ) { styler.ColourTo(i-2,state); styler.ColourTo(i-1,SCE_CMAKE_DEFAULT); } else { styler.ColourTo(i-1,state); state = SCE_CMAKE_DEFAULT; } } break; case SCE_CMAKE_STRINGDQ: case SCE_CMAKE_STRINGLQ: case SCE_CMAKE_STRINGRQ: if ( styler.SafeGetCharAt(i-1) == '\\' && styler.SafeGetCharAt(i-2) == '$' ) break; // Ignore the next character, even if it is a quote of some sort if ( cCurrChar == '"' && state == SCE_CMAKE_STRINGDQ ) { styler.ColourTo(i,state); state = SCE_CMAKE_DEFAULT; break; } if ( cCurrChar == '`' && state == SCE_CMAKE_STRINGLQ ) { styler.ColourTo(i,state); state = SCE_CMAKE_DEFAULT; break; } if ( cCurrChar == '\'' && state == SCE_CMAKE_STRINGRQ ) { styler.ColourTo(i,state); state = SCE_CMAKE_DEFAULT; break; } if ( cNextChar == '\r' || cNextChar == '\n' ) { Sci_Position nCurLine = styler.GetLine(i+1); Sci_Position nBack = i; // We need to check if the previous line has a \ in it... bool bNextLine = false; while ( nBack > 0 ) { if ( styler.GetLine(nBack) != nCurLine ) break; char cTemp = styler.SafeGetCharAt(nBack, 'a'); // Letter 'a' is safe here if ( cTemp == '\\' ) { bNextLine = true; break; } if ( cTemp != '\r' && cTemp != '\n' && cTemp != '\t' && cTemp != ' ' ) break; nBack--; } if ( bNextLine ) { styler.ColourTo(i+1,state); } if ( bNextLine == false ) { styler.ColourTo(i,state); state = SCE_CMAKE_DEFAULT; } } break; case SCE_CMAKE_VARIABLE: // CMake Variable: if ( cCurrChar == '$' ) state = SCE_CMAKE_DEFAULT; else if ( cCurrChar == '\\' && (cNextChar == 'n' || cNextChar == 'r' || cNextChar == 't' ) ) state = SCE_CMAKE_DEFAULT; else if ( (isCmakeChar(cCurrChar) && !isCmakeChar( cNextChar) && cNextChar != '}') || cCurrChar == '}' ) { state = classifyWordCmake( styler.GetStartSegment(), i, keywordLists, styler ); styler.ColourTo( i, state); state = SCE_CMAKE_DEFAULT; } else if ( !isCmakeChar( cCurrChar ) && cCurrChar != '{' && cCurrChar != '}' ) { if ( classifyWordCmake( styler.GetStartSegment(), i-1, keywordLists, styler) == SCE_CMAKE_NUMBER ) styler.ColourTo( i-1, SCE_CMAKE_NUMBER ); state = SCE_CMAKE_DEFAULT; if ( cCurrChar == '"' ) { state = SCE_CMAKE_STRINGDQ; bVarInString = false; bClassicVarInString = false; } else if ( cCurrChar == '`' ) { state = SCE_CMAKE_STRINGLQ; bVarInString = false; bClassicVarInString = false; } else if ( cCurrChar == '\'' ) { state = SCE_CMAKE_STRINGRQ; bVarInString = false; bClassicVarInString = false; } else if ( cCurrChar == '#' ) { state = SCE_CMAKE_COMMENT; } } break; } if ( state == SCE_CMAKE_STRINGDQ || state == SCE_CMAKE_STRINGLQ || state == SCE_CMAKE_STRINGRQ ) { bool bIngoreNextDollarSign = false; if ( bVarInString && cCurrChar == '$' ) { bVarInString = false; bIngoreNextDollarSign = true; } else if ( bVarInString && cCurrChar == '\\' && (cNextChar == 'n' || cNextChar == 'r' || cNextChar == 't' || cNextChar == '"' || cNextChar == '`' || cNextChar == '\'' ) ) { styler.ColourTo( i+1, SCE_CMAKE_STRINGVAR); bVarInString = false; bIngoreNextDollarSign = false; } else if ( bVarInString && !isCmakeChar(cNextChar) ) { int nWordState = classifyWordCmake( styler.GetStartSegment(), i, keywordLists, styler); if ( nWordState == SCE_CMAKE_VARIABLE ) styler.ColourTo( i, SCE_CMAKE_STRINGVAR); bVarInString = false; } // Covers "${TEST}..." else if ( bClassicVarInString && cNextChar == '}' ) { styler.ColourTo( i+1, SCE_CMAKE_STRINGVAR); bClassicVarInString = false; } // Start of var in string if ( !bIngoreNextDollarSign && cCurrChar == '$' && cNextChar == '{' ) { styler.ColourTo( i-1, state); bClassicVarInString = true; bVarInString = false; } else if ( !bIngoreNextDollarSign && cCurrChar == '$' ) { styler.ColourTo( i-1, state); bVarInString = true; bClassicVarInString = false; } } } // Colourise remaining document styler.ColourTo(nLengthDoc-1,state); } static void FoldCmakeDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { // No folding enabled, no reason to continue... if ( styler.GetPropertyInt("fold") == 0 ) return; bool foldAtElse = styler.GetPropertyInt("fold.at.else", 0) == 1; Sci_Position lineCurrent = styler.GetLine(startPos); Sci_PositionU safeStartPos = styler.LineStart( lineCurrent ); bool bArg1 = true; Sci_Position nWordStart = -1; int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelNext = levelCurrent; for (Sci_PositionU i = safeStartPos; i < startPos + length; i++) { char chCurr = styler.SafeGetCharAt(i); if ( bArg1 ) { if ( nWordStart == -1 && (isCmakeLetter(chCurr)) ) { nWordStart = i; } else if ( isCmakeLetter(chCurr) == false && nWordStart > -1 ) { int newLevel = calculateFoldCmake( nWordStart, i-1, levelNext, styler, foldAtElse); if ( newLevel == levelNext ) { if ( foldAtElse ) { if ( CmakeNextLineHasElse(i, startPos + length, styler) ) levelNext--; } } else levelNext = newLevel; bArg1 = false; } } if ( chCurr == '\n' ) { if ( bArg1 && foldAtElse) { if ( CmakeNextLineHasElse(i, startPos + length, styler) ) levelNext--; } // If we are on a new line... int levelUse = levelCurrent; int lev = levelUse | levelNext << 16; if (levelUse < levelNext ) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) styler.SetLevel(lineCurrent, lev); lineCurrent++; levelCurrent = levelNext; bArg1 = true; // New line, lets look at first argument again nWordStart = -1; } } int levelUse = levelCurrent; int lev = levelUse | levelNext << 16; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) styler.SetLevel(lineCurrent, lev); } static const char * const cmakeWordLists[] = { "Commands", "Parameters", "UserDefined", 0, 0,}; LexerModule lmCmake(SCLEX_CMAKE, ColouriseCmakeDoc, "cmake", FoldCmakeDoc, cmakeWordLists); codequery-0.21.0/scintilla/lexers/LexCoffeeScript.cxx000066400000000000000000000406611310136352400226340ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCoffeeScript.cxx ** Lexer for CoffeeScript. **/ // Copyright 1998-2011 by Neil Hodgson // Based on the Scintilla C++ Lexer // Written by Eric Promislow in 2011 for the Komodo IDE // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "Platform.h" #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static bool IsSpaceEquiv(int state) { return (state == SCE_COFFEESCRIPT_DEFAULT || state == SCE_COFFEESCRIPT_COMMENTLINE || state == SCE_COFFEESCRIPT_COMMENTBLOCK || state == SCE_COFFEESCRIPT_VERBOSE_REGEX || state == SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT || state == SCE_COFFEESCRIPT_WORD || state == SCE_COFFEESCRIPT_REGEX); } // Store the current lexer state and brace count prior to starting a new // `#{}` interpolation level. // Based on LexRuby.cxx. static void enterInnerExpression(int *p_inner_string_types, int *p_inner_expn_brace_counts, int& inner_string_count, int state, int& brace_counts ) { p_inner_string_types[inner_string_count] = state; p_inner_expn_brace_counts[inner_string_count] = brace_counts; brace_counts = 0; ++inner_string_count; } // Restore the lexer state and brace count for the previous `#{}` interpolation // level upon returning to it. // Note the previous lexer state is the return value and needs to be restored // manually by the StyleContext. // Based on LexRuby.cxx. static int exitInnerExpression(int *p_inner_string_types, int *p_inner_expn_brace_counts, int& inner_string_count, int& brace_counts ) { --inner_string_count; brace_counts = p_inner_expn_brace_counts[inner_string_count]; return p_inner_string_types[inner_string_count]; } // Preconditions: sc.currentPos points to a character after '+' or '-'. // The test for pos reaching 0 should be redundant, // and is in only for safety measures. // Limitation: this code will give the incorrect answer for code like // a = b+++/ptn/... // Putting a space between the '++' post-inc operator and the '+' binary op // fixes this, and is highly recommended for readability anyway. static bool FollowsPostfixOperator(StyleContext &sc, Accessor &styler) { Sci_Position pos = (Sci_Position) sc.currentPos; while (--pos > 0) { char ch = styler[pos]; if (ch == '+' || ch == '-') { return styler[pos - 1] == ch; } } return false; } static bool followsKeyword(StyleContext &sc, Accessor &styler) { Sci_Position pos = (Sci_Position) sc.currentPos; Sci_Position currentLine = styler.GetLine(pos); Sci_Position lineStartPos = styler.LineStart(currentLine); while (--pos > lineStartPos) { char ch = styler.SafeGetCharAt(pos); if (ch != ' ' && ch != '\t') { break; } } styler.Flush(); return styler.StyleAt(pos) == SCE_COFFEESCRIPT_WORD; } static void ColouriseCoffeeScriptDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords4 = *keywordlists[3]; CharacterSet setOKBeforeRE(CharacterSet::setNone, "([{=,:;!%^&*|?~+-"); CharacterSet setCouldBePostOp(CharacterSet::setNone, "+-"); CharacterSet setWordStart(CharacterSet::setAlpha, "_$@", 0x80, true); CharacterSet setWord(CharacterSet::setAlphaNum, "._$", 0x80, true); int chPrevNonWhite = ' '; int visibleChars = 0; // String/Regex interpolation variables, based on LexRuby.cxx. // In most cases a value of 2 should be ample for the code the user is // likely to enter. For example, // "Filling the #{container} with #{liquid}..." // from the CoffeeScript homepage nests to a level of 2 // If the user actually hits a 6th occurrence of '#{' in a double-quoted // string (including regexes), it will stay as a string. The problem with // this is that quotes might flip, a 7th '#{' will look like a comment, // and code-folding might be wrong. #define INNER_STRINGS_MAX_COUNT 5 // These vars track our instances of "...#{,,,'..#{,,,}...',,,}..." int inner_string_types[INNER_STRINGS_MAX_COUNT]; // Track # braces when we push a new #{ thing int inner_expn_brace_counts[INNER_STRINGS_MAX_COUNT]; int inner_string_count = 0; int brace_counts = 0; // Number of #{ ... } things within an expression for (int i = 0; i < INNER_STRINGS_MAX_COUNT; i++) { inner_string_types[i] = 0; inner_expn_brace_counts[i] = 0; } // look back to set chPrevNonWhite properly for better regex colouring Sci_Position endPos = startPos + length; if (startPos > 0 && IsSpaceEquiv(initStyle)) { Sci_PositionU back = startPos; styler.Flush(); while (back > 0 && IsSpaceEquiv(styler.StyleAt(--back))) ; if (styler.StyleAt(back) == SCE_COFFEESCRIPT_OPERATOR) { chPrevNonWhite = styler.SafeGetCharAt(back); } if (startPos != back) { initStyle = styler.StyleAt(back); if (IsSpaceEquiv(initStyle)) { initStyle = SCE_COFFEESCRIPT_DEFAULT; } } startPos = back; } StyleContext sc(startPos, endPos - startPos, initStyle, styler); for (; sc.More();) { if (sc.atLineStart) { // Reset states to beginning of colourise so no surprises // if different sets of lines lexed. visibleChars = 0; } // Determine if the current state should terminate. switch (sc.state) { case SCE_COFFEESCRIPT_OPERATOR: sc.SetState(SCE_COFFEESCRIPT_DEFAULT); break; case SCE_COFFEESCRIPT_NUMBER: // We accept almost anything because of hex. and number suffixes if (!setWord.Contains(sc.ch) || sc.Match('.', '.')) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_IDENTIFIER: if (!setWord.Contains(sc.ch) || (sc.ch == '.') || (sc.ch == '$')) { char s[1000]; sc.GetCurrent(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_COFFEESCRIPT_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_COFFEESCRIPT_WORD2); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_COFFEESCRIPT_GLOBALCLASS); } else if (sc.LengthCurrent() > 0 && s[0] == '@') { sc.ChangeState(SCE_COFFEESCRIPT_INSTANCEPROPERTY); } sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_WORD: case SCE_COFFEESCRIPT_WORD2: case SCE_COFFEESCRIPT_GLOBALCLASS: case SCE_COFFEESCRIPT_INSTANCEPROPERTY: if (!setWord.Contains(sc.ch)) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_COMMENTLINE: if (sc.atLineStart) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_STRING: if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); } else if (sc.ch == '#' && sc.chNext == '{' && inner_string_count < INNER_STRINGS_MAX_COUNT) { // process interpolated code #{ ... } enterInnerExpression(inner_string_types, inner_expn_brace_counts, inner_string_count, sc.state, brace_counts); sc.SetState(SCE_COFFEESCRIPT_OPERATOR); sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_CHARACTER: if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_REGEX: if (sc.atLineStart) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } else if (sc.ch == '/') { sc.Forward(); while ((sc.ch < 0x80) && islower(sc.ch)) sc.Forward(); // gobble regex flags sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } else if (sc.ch == '\\') { // Gobble up the quoted character if (sc.chNext == '\\' || sc.chNext == '/') { sc.Forward(); } } break; case SCE_COFFEESCRIPT_STRINGEOL: if (sc.atLineStart) { sc.SetState(SCE_COFFEESCRIPT_DEFAULT); } break; case SCE_COFFEESCRIPT_COMMENTBLOCK: if (sc.Match("###")) { sc.Forward(); sc.Forward(); sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); } else if (sc.ch == '\\') { sc.Forward(); } break; case SCE_COFFEESCRIPT_VERBOSE_REGEX: if (sc.Match("///")) { sc.Forward(); sc.Forward(); sc.ForwardSetState(SCE_COFFEESCRIPT_DEFAULT); } else if (sc.Match('#')) { sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT); } else if (sc.ch == '\\') { sc.Forward(); } break; case SCE_COFFEESCRIPT_VERBOSE_REGEX_COMMENT: if (sc.atLineStart) { sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX); } break; } // Determine if a new state should be entered. if (sc.state == SCE_COFFEESCRIPT_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_COFFEESCRIPT_NUMBER); } else if (setWordStart.Contains(sc.ch)) { sc.SetState(SCE_COFFEESCRIPT_IDENTIFIER); } else if (sc.Match("///")) { sc.SetState(SCE_COFFEESCRIPT_VERBOSE_REGEX); sc.Forward(); sc.Forward(); } else if (sc.ch == '/' && (setOKBeforeRE.Contains(chPrevNonWhite) || followsKeyword(sc, styler)) && (!setCouldBePostOp.Contains(chPrevNonWhite) || !FollowsPostfixOperator(sc, styler))) { sc.SetState(SCE_COFFEESCRIPT_REGEX); // JavaScript's RegEx } else if (sc.ch == '\"') { sc.SetState(SCE_COFFEESCRIPT_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_COFFEESCRIPT_CHARACTER); } else if (sc.ch == '#') { if (sc.Match("###")) { sc.SetState(SCE_COFFEESCRIPT_COMMENTBLOCK); sc.Forward(); sc.Forward(); } else { sc.SetState(SCE_COFFEESCRIPT_COMMENTLINE); } } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_COFFEESCRIPT_OPERATOR); // Handle '..' and '...' operators correctly. if (sc.ch == '.') { for (int i = 0; i < 2 && sc.chNext == '.'; i++, sc.Forward()) ; } else if (sc.ch == '{') { ++brace_counts; } else if (sc.ch == '}' && --brace_counts <= 0 && inner_string_count > 0) { // Return to previous state before #{ ... } sc.ForwardSetState(exitInnerExpression(inner_string_types, inner_expn_brace_counts, inner_string_count, brace_counts)); continue; // skip sc.Forward() at loop end } } } if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) { chPrevNonWhite = sc.ch; visibleChars++; } sc.Forward(); } sc.Complete(); } static bool IsCommentLine(Sci_Position line, Accessor &styler) { Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; for (Sci_Position i = pos; i < eol_pos; i++) { char ch = styler[i]; if (ch == '#') return true; else if (ch != ' ' && ch != '\t') return false; } return false; } static void FoldCoffeeScriptDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { // A simplified version of FoldPyDoc const Sci_Position maxPos = startPos + length; const Sci_Position maxLines = styler.GetLine(maxPos - 1); // Requested last line const Sci_Position docLines = styler.GetLine(styler.Length() - 1); // Available last line // property fold.coffeescript.comment const bool foldComment = styler.GetPropertyInt("fold.coffeescript.comment") != 0; const bool foldCompact = styler.GetPropertyInt("fold.compact") != 0; // Backtrack to previous non-blank line so we can determine indent level // for any white space lines // and so we can fix any preceding fold level (which is why we go back // at least one line in all cases) int spaceFlags = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); while (lineCurrent > 0) { lineCurrent--; indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG) && !IsCommentLine(lineCurrent, styler)) break; } int indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; // Set up initial loop state int prevComment = 0; if (lineCurrent >= 1) prevComment = foldComment && IsCommentLine(lineCurrent - 1, styler); // Process all characters to end of requested range // or comment that hangs over the end of the range. Cap processing in all cases // to end of document (in case of comment at end). while ((lineCurrent <= docLines) && ((lineCurrent <= maxLines) || prevComment)) { // Gather info int lev = indentCurrent; Sci_Position lineNext = lineCurrent + 1; int indentNext = indentCurrent; if (lineNext <= docLines) { // Information about next line is only available if not at end of document indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); } const int comment = foldComment && IsCommentLine(lineCurrent, styler); const int comment_start = (comment && !prevComment && (lineNext <= docLines) && IsCommentLine(lineNext, styler) && (lev > SC_FOLDLEVELBASE)); const int comment_continue = (comment && prevComment); if (!comment) indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; if (indentNext & SC_FOLDLEVELWHITEFLAG) indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; if (comment_start) { // Place fold point at start of a block of comments lev |= SC_FOLDLEVELHEADERFLAG; } else if (comment_continue) { // Add level to rest of lines in the block lev = lev + 1; } // Skip past any blank lines for next indent level info; we skip also // comments (all comments, not just those starting in column 0) // which effectively folds them into surrounding code rather // than screwing up folding. while ((lineNext < docLines) && ((indentNext & SC_FOLDLEVELWHITEFLAG) || (lineNext <= docLines && IsCommentLine(lineNext, styler)))) { lineNext++; indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); } const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK; const int levelBeforeComments = Platform::Maximum(indentCurrentLevel,levelAfterComments); // Now set all the indent levels on the lines we skipped // Do this from end to start. Once we encounter one line // which is indented more than the line after the end of // the comment-block, use the level of the block before Sci_Position skipLine = lineNext; int skipLevel = levelAfterComments; while (--skipLine > lineCurrent) { int skipLineIndent = styler.IndentAmount(skipLine, &spaceFlags, NULL); if (foldCompact) { if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments) skipLevel = levelBeforeComments; int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG; styler.SetLevel(skipLine, skipLevel | whiteFlag); } else { if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments && !(skipLineIndent & SC_FOLDLEVELWHITEFLAG) && !IsCommentLine(skipLine, styler)) skipLevel = levelBeforeComments; styler.SetLevel(skipLine, skipLevel); } } // Set fold header on non-comment line if (!comment && !(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) lev |= SC_FOLDLEVELHEADERFLAG; } // Keep track of block comment state of previous line prevComment = comment_start || comment_continue; // Set fold level for this line and move to next line styler.SetLevel(lineCurrent, lev); indentCurrent = indentNext; lineCurrent = lineNext; } } static const char *const csWordLists[] = { "Keywords", "Secondary keywords", "Unused", "Global classes", 0, }; LexerModule lmCoffeeScript(SCLEX_COFFEESCRIPT, ColouriseCoffeeScriptDoc, "coffeescript", FoldCoffeeScriptDoc, csWordLists); codequery-0.21.0/scintilla/lexers/LexConf.cxx000066400000000000000000000131451310136352400211420ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexConf.cxx ** Lexer for Apache Configuration Files. ** ** First working version contributed by Ahmad Zawawi on October 28, 2000. ** i created this lexer because i needed something pretty when dealing ** when Apache Configuration files... **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static void ColouriseConfDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *keywordLists[], Accessor &styler) { int state = SCE_CONF_DEFAULT; char chNext = styler[startPos]; Sci_Position lengthDoc = startPos + length; // create a buffer large enough to take the largest chunk... char *buffer = new char[length+1]; Sci_Position bufferCount = 0; // this assumes that we have 2 keyword list in conf.properties WordList &directives = *keywordLists[0]; WordList ¶ms = *keywordLists[1]; // go through all provided text segment // using the hand-written state machine shown below styler.StartAt(startPos); styler.StartSegment(startPos); for (Sci_Position i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); i++; continue; } switch(state) { case SCE_CONF_DEFAULT: if( ch == '\n' || ch == '\r' || ch == '\t' || ch == ' ') { // whitespace is simply ignored here... styler.ColourTo(i,SCE_CONF_DEFAULT); break; } else if( ch == '#' ) { // signals the start of a comment... state = SCE_CONF_COMMENT; styler.ColourTo(i,SCE_CONF_COMMENT); } else if( ch == '.' /*|| ch == '/'*/) { // signals the start of a file... state = SCE_CONF_EXTENSION; styler.ColourTo(i,SCE_CONF_EXTENSION); } else if( ch == '"') { state = SCE_CONF_STRING; styler.ColourTo(i,SCE_CONF_STRING); } else if( IsASCII(ch) && ispunct(ch) ) { // signals an operator... // no state jump necessary for this // simple case... styler.ColourTo(i,SCE_CONF_OPERATOR); } else if( IsASCII(ch) && isalpha(ch) ) { // signals the start of an identifier bufferCount = 0; buffer[bufferCount++] = static_cast(tolower(ch)); state = SCE_CONF_IDENTIFIER; } else if( IsASCII(ch) && isdigit(ch) ) { // signals the start of a number bufferCount = 0; buffer[bufferCount++] = ch; //styler.ColourTo(i,SCE_CONF_NUMBER); state = SCE_CONF_NUMBER; } else { // style it the default style.. styler.ColourTo(i,SCE_CONF_DEFAULT); } break; case SCE_CONF_COMMENT: // if we find a newline here, // we simply go to default state // else continue to work on it... if( ch == '\n' || ch == '\r' ) { state = SCE_CONF_DEFAULT; } else { styler.ColourTo(i,SCE_CONF_COMMENT); } break; case SCE_CONF_EXTENSION: // if we find a non-alphanumeric char, // we simply go to default state // else we're still dealing with an extension... if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '$') || (ch == '/') || (ch == '.') || (ch == '*') ) { styler.ColourTo(i,SCE_CONF_EXTENSION); } else { state = SCE_CONF_DEFAULT; chNext = styler[i--]; } break; case SCE_CONF_STRING: // if we find the end of a string char, we simply go to default state // else we're still dealing with an string... if( (ch == '"' && styler.SafeGetCharAt(i-1)!='\\') || (ch == '\n') || (ch == '\r') ) { state = SCE_CONF_DEFAULT; } styler.ColourTo(i,SCE_CONF_STRING); break; case SCE_CONF_IDENTIFIER: // stay in CONF_IDENTIFIER state until we find a non-alphanumeric if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '*')) { buffer[bufferCount++] = static_cast(tolower(ch)); } else { state = SCE_CONF_DEFAULT; buffer[bufferCount] = '\0'; // check if the buffer contains a keyword, and highlight it if it is a keyword... if(directives.InList(buffer)) { styler.ColourTo(i-1,SCE_CONF_DIRECTIVE ); } else if(params.InList(buffer)) { styler.ColourTo(i-1,SCE_CONF_PARAMETER ); } else if(strchr(buffer,'/') || strchr(buffer,'.')) { styler.ColourTo(i-1,SCE_CONF_EXTENSION); } else { styler.ColourTo(i-1,SCE_CONF_DEFAULT); } // push back the faulty character chNext = styler[i--]; } break; case SCE_CONF_NUMBER: // stay in CONF_NUMBER state until we find a non-numeric if( (IsASCII(ch) && isdigit(ch)) || ch == '.') { buffer[bufferCount++] = ch; } else { state = SCE_CONF_DEFAULT; buffer[bufferCount] = '\0'; // Colourize here... if( strchr(buffer,'.') ) { // it is an IP address... styler.ColourTo(i-1,SCE_CONF_IP); } else { // normal number styler.ColourTo(i-1,SCE_CONF_NUMBER); } // push back a character chNext = styler[i--]; } break; } } delete []buffer; } static const char * const confWordListDesc[] = { "Directives", "Parameters", 0 }; LexerModule lmConf(SCLEX_CONF, ColouriseConfDoc, "conf", 0, confWordListDesc); codequery-0.21.0/scintilla/lexers/LexCrontab.cxx000066400000000000000000000161211310136352400216420ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCrontab.cxx ** Lexer to use with extended crontab files used by a powerful ** Windows scheduler/event monitor/automation manager nnCron. ** (http://nemtsev.eserv.ru/) **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static void ColouriseNncrontabDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *keywordLists[], Accessor &styler) { int state = SCE_NNCRONTAB_DEFAULT; char chNext = styler[startPos]; Sci_Position lengthDoc = startPos + length; // create a buffer large enough to take the largest chunk... char *buffer = new char[length+1]; Sci_Position bufferCount = 0; // used when highliting environment variables inside quoted string: bool insideString = false; // this assumes that we have 3 keyword list in conf.properties WordList §ion = *keywordLists[0]; WordList &keyword = *keywordLists[1]; WordList &modifier = *keywordLists[2]; // go through all provided text segment // using the hand-written state machine shown below styler.StartAt(startPos); styler.StartSegment(startPos); for (Sci_Position i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); i++; continue; } switch(state) { case SCE_NNCRONTAB_DEFAULT: if( ch == '\n' || ch == '\r' || ch == '\t' || ch == ' ') { // whitespace is simply ignored here... styler.ColourTo(i,SCE_NNCRONTAB_DEFAULT); break; } else if( ch == '#' && styler.SafeGetCharAt(i+1) == '(') { // signals the start of a task... state = SCE_NNCRONTAB_TASK; styler.ColourTo(i,SCE_NNCRONTAB_TASK); } else if( ch == '\\' && (styler.SafeGetCharAt(i+1) == ' ' || styler.SafeGetCharAt(i+1) == '\t')) { // signals the start of an extended comment... state = SCE_NNCRONTAB_COMMENT; styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); } else if( ch == '#' ) { // signals the start of a plain comment... state = SCE_NNCRONTAB_COMMENT; styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); } else if( ch == ')' && styler.SafeGetCharAt(i+1) == '#') { // signals the end of a task... state = SCE_NNCRONTAB_TASK; styler.ColourTo(i,SCE_NNCRONTAB_TASK); } else if( ch == '"') { state = SCE_NNCRONTAB_STRING; styler.ColourTo(i,SCE_NNCRONTAB_STRING); } else if( ch == '%') { // signals environment variables state = SCE_NNCRONTAB_ENVIRONMENT; styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); } else if( ch == '<' && styler.SafeGetCharAt(i+1) == '%') { // signals environment variables state = SCE_NNCRONTAB_ENVIRONMENT; styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); } else if( ch == '*' ) { // signals an asterisk // no state jump necessary for this simple case... styler.ColourTo(i,SCE_NNCRONTAB_ASTERISK); } else if( (IsASCII(ch) && isalpha(ch)) || ch == '<' ) { // signals the start of an identifier bufferCount = 0; buffer[bufferCount++] = ch; state = SCE_NNCRONTAB_IDENTIFIER; } else if( IsASCII(ch) && isdigit(ch) ) { // signals the start of a number bufferCount = 0; buffer[bufferCount++] = ch; state = SCE_NNCRONTAB_NUMBER; } else { // style it the default style.. styler.ColourTo(i,SCE_NNCRONTAB_DEFAULT); } break; case SCE_NNCRONTAB_COMMENT: // if we find a newline here, // we simply go to default state // else continue to work on it... if( ch == '\n' || ch == '\r' ) { state = SCE_NNCRONTAB_DEFAULT; } else { styler.ColourTo(i,SCE_NNCRONTAB_COMMENT); } break; case SCE_NNCRONTAB_TASK: // if we find a newline here, // we simply go to default state // else continue to work on it... if( ch == '\n' || ch == '\r' ) { state = SCE_NNCRONTAB_DEFAULT; } else { styler.ColourTo(i,SCE_NNCRONTAB_TASK); } break; case SCE_NNCRONTAB_STRING: if( ch == '%' ) { state = SCE_NNCRONTAB_ENVIRONMENT; insideString = true; styler.ColourTo(i-1,SCE_NNCRONTAB_STRING); break; } // if we find the end of a string char, we simply go to default state // else we're still dealing with an string... if( (ch == '"' && styler.SafeGetCharAt(i-1)!='\\') || (ch == '\n') || (ch == '\r') ) { state = SCE_NNCRONTAB_DEFAULT; } styler.ColourTo(i,SCE_NNCRONTAB_STRING); break; case SCE_NNCRONTAB_ENVIRONMENT: // if we find the end of a string char, we simply go to default state // else we're still dealing with an string... if( ch == '%' && insideString ) { state = SCE_NNCRONTAB_STRING; insideString = false; break; } if( (ch == '%' && styler.SafeGetCharAt(i-1)!='\\') || (ch == '\n') || (ch == '\r') || (ch == '>') ) { state = SCE_NNCRONTAB_DEFAULT; styler.ColourTo(i,SCE_NNCRONTAB_ENVIRONMENT); break; } styler.ColourTo(i+1,SCE_NNCRONTAB_ENVIRONMENT); break; case SCE_NNCRONTAB_IDENTIFIER: // stay in CONF_IDENTIFIER state until we find a non-alphanumeric if( (IsASCII(ch) && isalnum(ch)) || (ch == '_') || (ch == '-') || (ch == '/') || (ch == '$') || (ch == '.') || (ch == '<') || (ch == '>') || (ch == '@') ) { buffer[bufferCount++] = ch; } else { state = SCE_NNCRONTAB_DEFAULT; buffer[bufferCount] = '\0'; // check if the buffer contains a keyword, // and highlight it if it is a keyword... if(section.InList(buffer)) { styler.ColourTo(i,SCE_NNCRONTAB_SECTION ); } else if(keyword.InList(buffer)) { styler.ColourTo(i-1,SCE_NNCRONTAB_KEYWORD ); } // else if(strchr(buffer,'/') || strchr(buffer,'.')) { // styler.ColourTo(i-1,SCE_NNCRONTAB_EXTENSION); // } else if(modifier.InList(buffer)) { styler.ColourTo(i-1,SCE_NNCRONTAB_MODIFIER ); } else { styler.ColourTo(i-1,SCE_NNCRONTAB_DEFAULT); } // push back the faulty character chNext = styler[i--]; } break; case SCE_NNCRONTAB_NUMBER: // stay in CONF_NUMBER state until we find a non-numeric if( IsASCII(ch) && isdigit(ch) /* || ch == '.' */ ) { buffer[bufferCount++] = ch; } else { state = SCE_NNCRONTAB_DEFAULT; buffer[bufferCount] = '\0'; // Colourize here... (normal number) styler.ColourTo(i-1,SCE_NNCRONTAB_NUMBER); // push back a character chNext = styler[i--]; } break; } } delete []buffer; } static const char * const cronWordListDesc[] = { "Section keywords and Forth words", "nnCrontab keywords", "Modifiers", 0 }; LexerModule lmNncrontab(SCLEX_NNCRONTAB, ColouriseNncrontabDoc, "nncrontab", 0, cronWordListDesc); codequery-0.21.0/scintilla/lexers/LexCsound.cxx000066400000000000000000000143341310136352400215110ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexCsound.cxx ** Lexer for Csound (Orchestra & Score) ** Written by Georg Ritter - **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch == '?'); } static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' || ch == '%' || ch == '@' || ch == '$' || ch == '?'); } static inline bool IsCsoundOperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; // '.' left out as it is used to make up numbers if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '^' || ch == '[' || ch == ']' || ch == '<' || ch == '&' || ch == '>' || ch == ',' || ch == '|' || ch == '~' || ch == '%' || ch == ':') return true; return false; } static void ColouriseCsoundDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &opcode = *keywordlists[0]; WordList &headerStmt = *keywordlists[1]; WordList &otherKeyword = *keywordlists[2]; // Do not leak onto next line if (initStyle == SCE_CSOUND_STRINGEOL) initStyle = SCE_CSOUND_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Handle line continuation generically. if (sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continue; } } // Determine if the current state should terminate. if (sc.state == SCE_CSOUND_OPERATOR) { if (!IsCsoundOperator(static_cast(sc.ch))) { sc.SetState(SCE_CSOUND_DEFAULT); } }else if (sc.state == SCE_CSOUND_NUMBER) { if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_CSOUND_DEFAULT); } } else if (sc.state == SCE_CSOUND_IDENTIFIER) { if (!IsAWordChar(sc.ch) ) { char s[100]; sc.GetCurrent(s, sizeof(s)); if (opcode.InList(s)) { sc.ChangeState(SCE_CSOUND_OPCODE); } else if (headerStmt.InList(s)) { sc.ChangeState(SCE_CSOUND_HEADERSTMT); } else if (otherKeyword.InList(s)) { sc.ChangeState(SCE_CSOUND_USERKEYWORD); } else if (s[0] == 'p') { sc.ChangeState(SCE_CSOUND_PARAM); } else if (s[0] == 'a') { sc.ChangeState(SCE_CSOUND_ARATE_VAR); } else if (s[0] == 'k') { sc.ChangeState(SCE_CSOUND_KRATE_VAR); } else if (s[0] == 'i') { // covers both i-rate variables and i-statements sc.ChangeState(SCE_CSOUND_IRATE_VAR); } else if (s[0] == 'g') { sc.ChangeState(SCE_CSOUND_GLOBAL_VAR); } sc.SetState(SCE_CSOUND_DEFAULT); } } else if (sc.state == SCE_CSOUND_COMMENT ) { if (sc.atLineEnd) { sc.SetState(SCE_CSOUND_DEFAULT); } } else if ((sc.state == SCE_CSOUND_ARATE_VAR) || (sc.state == SCE_CSOUND_KRATE_VAR) || (sc.state == SCE_CSOUND_IRATE_VAR)) { if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_CSOUND_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_CSOUND_DEFAULT) { if (sc.ch == ';'){ sc.SetState(SCE_CSOUND_COMMENT); } else if (isdigit(sc.ch) || (sc.ch == '.' && isdigit(sc.chNext))) { sc.SetState(SCE_CSOUND_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_CSOUND_IDENTIFIER); } else if (IsCsoundOperator(static_cast(sc.ch))) { sc.SetState(SCE_CSOUND_OPERATOR); } else if (sc.ch == 'p') { sc.SetState(SCE_CSOUND_PARAM); } else if (sc.ch == 'a') { sc.SetState(SCE_CSOUND_ARATE_VAR); } else if (sc.ch == 'k') { sc.SetState(SCE_CSOUND_KRATE_VAR); } else if (sc.ch == 'i') { // covers both i-rate variables and i-statements sc.SetState(SCE_CSOUND_IRATE_VAR); } else if (sc.ch == 'g') { sc.SetState(SCE_CSOUND_GLOBAL_VAR); } } } sc.Complete(); } static void FoldCsoundInstruments(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { Sci_PositionU lengthDoc = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int stylePrev = 0; int styleNext = styler.StyleAt(startPos); for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if ((stylePrev != SCE_CSOUND_OPCODE) && (style == SCE_CSOUND_OPCODE)) { char s[20]; unsigned int j = 0; while ((j < (sizeof(s) - 1)) && (iswordchar(styler[i + j]))) { s[j] = styler[i + j]; j++; } s[j] = '\0'; if (strcmp(s, "instr") == 0) levelCurrent++; if (strcmp(s, "endin") == 0) levelCurrent--; } if (atEOL) { int lev = levelPrev; if (visibleChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; stylePrev = style; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const csoundWordListDesc[] = { "Opcodes", "Header Statements", "User keywords", 0 }; LexerModule lmCsound(SCLEX_CSOUND, ColouriseCsoundDoc, "csound", FoldCsoundInstruments, csoundWordListDesc); codequery-0.21.0/scintilla/lexers/LexD.cxx000066400000000000000000000406051310136352400204410ustar00rootroot00000000000000/** @file LexD.cxx ** Lexer for D. ** ** Copyright (c) 2006 by Waldemar Augustyn ** Converted to lexer object and added further folding features/properties by "Udo Lechner" **/ // Copyright 1998-2005 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /* Nested comments require keeping the value of the nesting level for every position in the document. But since scintilla always styles line by line, we only need to store one value per line. The non-negative number indicates nesting level at the end of the line. */ // Underscore, letter, digit and universal alphas from C99 Appendix D. static bool IsWordStart(int ch) { return (IsASCII(ch) && (isalpha(ch) || ch == '_')) || !IsASCII(ch); } static bool IsWord(int ch) { return (IsASCII(ch) && (isalnum(ch) || ch == '_')) || !IsASCII(ch); } static bool IsDoxygen(int ch) { if (IsASCII(ch) && islower(ch)) return true; if (ch == '$' || ch == '@' || ch == '\\' || ch == '&' || ch == '#' || ch == '<' || ch == '>' || ch == '{' || ch == '}' || ch == '[' || ch == ']') return true; return false; } static bool IsStringSuffix(int ch) { return ch == 'c' || ch == 'w' || ch == 'd'; } static bool IsStreamCommentStyle(int style) { return style == SCE_D_COMMENT || style == SCE_D_COMMENTDOC || style == SCE_D_COMMENTDOCKEYWORD || style == SCE_D_COMMENTDOCKEYWORDERROR; } // An individual named option for use in an OptionSet // Options used for LexerD struct OptionsD { bool fold; bool foldSyntaxBased; bool foldComment; bool foldCommentMultiline; bool foldCommentExplicit; std::string foldExplicitStart; std::string foldExplicitEnd; bool foldExplicitAnywhere; bool foldCompact; int foldAtElseInt; bool foldAtElse; OptionsD() { fold = false; foldSyntaxBased = true; foldComment = false; foldCommentMultiline = true; foldCommentExplicit = true; foldExplicitStart = ""; foldExplicitEnd = ""; foldExplicitAnywhere = false; foldCompact = true; foldAtElseInt = -1; foldAtElse = false; } }; static const char * const dWordLists[] = { "Primary keywords and identifiers", "Secondary keywords and identifiers", "Documentation comment keywords", "Type definitions and aliases", "Keywords 5", "Keywords 6", "Keywords 7", 0, }; struct OptionSetD : public OptionSet { OptionSetD() { DefineProperty("fold", &OptionsD::fold); DefineProperty("fold.d.syntax.based", &OptionsD::foldSyntaxBased, "Set this property to 0 to disable syntax based folding."); DefineProperty("fold.comment", &OptionsD::foldComment); DefineProperty("fold.d.comment.multiline", &OptionsD::foldCommentMultiline, "Set this property to 0 to disable folding multi-line comments when fold.comment=1."); DefineProperty("fold.d.comment.explicit", &OptionsD::foldCommentExplicit, "Set this property to 0 to disable folding explicit fold points when fold.comment=1."); DefineProperty("fold.d.explicit.start", &OptionsD::foldExplicitStart, "The string to use for explicit fold start points, replacing the standard //{."); DefineProperty("fold.d.explicit.end", &OptionsD::foldExplicitEnd, "The string to use for explicit fold end points, replacing the standard //}."); DefineProperty("fold.d.explicit.anywhere", &OptionsD::foldExplicitAnywhere, "Set this property to 1 to enable explicit fold points anywhere, not just in line comments."); DefineProperty("fold.compact", &OptionsD::foldCompact); DefineProperty("lexer.d.fold.at.else", &OptionsD::foldAtElseInt, "This option enables D folding on a \"} else {\" line of an if statement."); DefineProperty("fold.at.else", &OptionsD::foldAtElse); DefineWordListSets(dWordLists); } }; class LexerD : public ILexer { bool caseSensitive; WordList keywords; WordList keywords2; WordList keywords3; WordList keywords4; WordList keywords5; WordList keywords6; WordList keywords7; OptionsD options; OptionSetD osD; public: LexerD(bool caseSensitive_) : caseSensitive(caseSensitive_) { } virtual ~LexerD() { } void SCI_METHOD Release() override { delete this; } int SCI_METHOD Version() const override { return lvOriginal; } const char * SCI_METHOD PropertyNames() override { return osD.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return osD.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char *name) override { return osD.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osD.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return 0; } static ILexer *LexerFactoryD() { return new LexerD(true); } static ILexer *LexerFactoryDInsensitive() { return new LexerD(false); } }; Sci_Position SCI_METHOD LexerD::PropertySet(const char *key, const char *val) { if (osD.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD LexerD::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: wordListN = &keywords; break; case 1: wordListN = &keywords2; break; case 2: wordListN = &keywords3; break; case 3: wordListN = &keywords4; break; case 4: wordListN = &keywords5; break; case 5: wordListN = &keywords6; break; case 6: wordListN = &keywords7; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; } } return firstModification; } void SCI_METHOD LexerD::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); int styleBeforeDCKeyword = SCE_D_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); Sci_Position curLine = styler.GetLine(startPos); int curNcLevel = curLine > 0? styler.GetLineState(curLine-1): 0; bool numFloat = false; // Float literals have '+' and '-' signs bool numHex = false; for (; sc.More(); sc.Forward()) { if (sc.atLineStart) { curLine = styler.GetLine(sc.currentPos); styler.SetLineState(curLine, curNcLevel); } // Determine if the current state should terminate. switch (sc.state) { case SCE_D_OPERATOR: sc.SetState(SCE_D_DEFAULT); break; case SCE_D_NUMBER: // We accept almost anything because of hex. and number suffixes if (IsASCII(sc.ch) && (isalnum(sc.ch) || sc.ch == '_')) { continue; } else if (sc.ch == '.' && sc.chNext != '.' && !numFloat) { // Don't parse 0..2 as number. numFloat=true; continue; } else if ( ( sc.ch == '-' || sc.ch == '+' ) && ( /*sign and*/ ( !numHex && ( sc.chPrev == 'e' || sc.chPrev == 'E' ) ) || /*decimal or*/ ( sc.chPrev == 'p' || sc.chPrev == 'P' ) ) ) { /*hex*/ // Parse exponent sign in float literals: 2e+10 0x2e+10 continue; } else { sc.SetState(SCE_D_DEFAULT); } break; case SCE_D_IDENTIFIER: if (!IsWord(sc.ch)) { char s[1000]; if (caseSensitive) { sc.GetCurrent(s, sizeof(s)); } else { sc.GetCurrentLowered(s, sizeof(s)); } if (keywords.InList(s)) { sc.ChangeState(SCE_D_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_D_WORD2); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_D_TYPEDEF); } else if (keywords5.InList(s)) { sc.ChangeState(SCE_D_WORD5); } else if (keywords6.InList(s)) { sc.ChangeState(SCE_D_WORD6); } else if (keywords7.InList(s)) { sc.ChangeState(SCE_D_WORD7); } sc.SetState(SCE_D_DEFAULT); } break; case SCE_D_COMMENT: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } break; case SCE_D_COMMENTDOC: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_D_COMMENTDOC; sc.SetState(SCE_D_COMMENTDOCKEYWORD); } } break; case SCE_D_COMMENTLINE: if (sc.atLineStart) { sc.SetState(SCE_D_DEFAULT); } break; case SCE_D_COMMENTLINEDOC: if (sc.atLineStart) { sc.SetState(SCE_D_DEFAULT); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_D_COMMENTLINEDOC; sc.SetState(SCE_D_COMMENTDOCKEYWORD); } } break; case SCE_D_COMMENTDOCKEYWORD: if ((styleBeforeDCKeyword == SCE_D_COMMENTDOC) && sc.Match('*', '/')) { sc.ChangeState(SCE_D_COMMENTDOCKEYWORDERROR); sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } else if (!IsDoxygen(sc.ch)) { char s[100]; if (caseSensitive) { sc.GetCurrent(s, sizeof(s)); } else { sc.GetCurrentLowered(s, sizeof(s)); } if (!IsASpace(sc.ch) || !keywords3.InList(s + 1)) { sc.ChangeState(SCE_D_COMMENTDOCKEYWORDERROR); } sc.SetState(styleBeforeDCKeyword); } break; case SCE_D_COMMENTNESTED: if (sc.Match('+', '/')) { if (curNcLevel > 0) curNcLevel -= 1; curLine = styler.GetLine(sc.currentPos); styler.SetLineState(curLine, curNcLevel); sc.Forward(); if (curNcLevel == 0) { sc.ForwardSetState(SCE_D_DEFAULT); } } else if (sc.Match('/','+')) { curNcLevel += 1; curLine = styler.GetLine(sc.currentPos); styler.SetLineState(curLine, curNcLevel); sc.Forward(); } break; case SCE_D_STRING: if (sc.ch == '\\') { if (sc.chNext == '"' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '"') { if(IsStringSuffix(sc.chNext)) sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } break; case SCE_D_CHARACTER: if (sc.atLineEnd) { sc.ChangeState(SCE_D_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { // Char has no suffixes sc.ForwardSetState(SCE_D_DEFAULT); } break; case SCE_D_STRINGEOL: if (sc.atLineStart) { sc.SetState(SCE_D_DEFAULT); } break; case SCE_D_STRINGB: if (sc.ch == '`') { if(IsStringSuffix(sc.chNext)) sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } break; case SCE_D_STRINGR: if (sc.ch == '"') { if(IsStringSuffix(sc.chNext)) sc.Forward(); sc.ForwardSetState(SCE_D_DEFAULT); } break; } // Determine if a new state should be entered. if (sc.state == SCE_D_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_D_NUMBER); numFloat = sc.ch == '.'; // Remember hex literal numHex = sc.ch == '0' && ( sc.chNext == 'x' || sc.chNext == 'X' ); } else if ( (sc.ch == 'r' || sc.ch == 'x' || sc.ch == 'q') && sc.chNext == '"' ) { // Limited support for hex and delimited strings: parse as r"" sc.SetState(SCE_D_STRINGR); sc.Forward(); } else if (IsWordStart(sc.ch) || sc.ch == '$') { sc.SetState(SCE_D_IDENTIFIER); } else if (sc.Match('/','+')) { curNcLevel += 1; curLine = styler.GetLine(sc.currentPos); styler.SetLineState(curLine, curNcLevel); sc.SetState(SCE_D_COMMENTNESTED); sc.Forward(); } else if (sc.Match('/', '*')) { if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style sc.SetState(SCE_D_COMMENTDOC); } else { sc.SetState(SCE_D_COMMENT); } sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('/', '/')) { if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) // Support of Qt/Doxygen doc. style sc.SetState(SCE_D_COMMENTLINEDOC); else sc.SetState(SCE_D_COMMENTLINE); } else if (sc.ch == '"') { sc.SetState(SCE_D_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_D_CHARACTER); } else if (sc.ch == '`') { sc.SetState(SCE_D_STRINGB); } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_D_OPERATOR); if (sc.ch == '.' && sc.chNext == '.') sc.Forward(); // Range operator } } } sc.Complete(); } // Store both the current line's fold level and the next lines in the // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". void SCI_METHOD LexerD::Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { if (!options.fold) return; LexAccessor styler(pAccess); Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelMinCurrent = levelCurrent; int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; bool foldAtElse = options.foldAtElseInt >= 0 ? options.foldAtElseInt != 0 : options.foldAtElse; const bool userDefinedFoldMarkers = !options.foldExplicitStart.empty() && !options.foldExplicitEnd.empty(); for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (options.foldComment && options.foldCommentMultiline && IsStreamCommentStyle(style)) { if (!IsStreamCommentStyle(stylePrev)) { levelNext++; } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelNext--; } } if (options.foldComment && options.foldCommentExplicit && ((style == SCE_D_COMMENTLINE) || options.foldExplicitAnywhere)) { if (userDefinedFoldMarkers) { if (styler.Match(i, options.foldExplicitStart.c_str())) { levelNext++; } else if (styler.Match(i, options.foldExplicitEnd.c_str())) { levelNext--; } } else { if ((ch == '/') && (chNext == '/')) { char chNext2 = styler.SafeGetCharAt(i + 2); if (chNext2 == '{') { levelNext++; } else if (chNext2 == '}') { levelNext--; } } } } if (options.foldSyntaxBased && (style == SCE_D_OPERATOR)) { if (ch == '{') { // Measure the minimum before a '{' to allow // folding on "} else {" if (levelMinCurrent > levelNext) { levelMinCurrent = levelNext; } levelNext++; } else if (ch == '}') { levelNext--; } } if (atEOL || (i == endPos-1)) { if (options.foldComment && options.foldCommentMultiline) { // Handle nested comments int nc; nc = styler.GetLineState(lineCurrent); nc -= lineCurrent>0? styler.GetLineState(lineCurrent-1): 0; levelNext += nc; } int levelUse = levelCurrent; if (options.foldSyntaxBased && foldAtElse) { levelUse = levelMinCurrent; } int lev = levelUse | levelNext << 16; if (visibleChars == 0 && options.foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelCurrent = levelNext; levelMinCurrent = levelCurrent; visibleChars = 0; } if (!IsASpace(ch)) visibleChars++; } } LexerModule lmD(SCLEX_D, LexerD::LexerFactoryD, "d", dWordLists); codequery-0.21.0/scintilla/lexers/LexDMAP.cxx000066400000000000000000000217261310136352400210020ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexDMAP.cxx ** Lexer for MSC Nastran DMAP. ** Written by Mark Robinson, based on the Fortran lexer by Chuan-jian Shen, Last changed Aug. 2013 **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. /***************************************/ #include #include #include #include #include #include /***************************************/ #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" /***************************************/ #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /***********************************************/ static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '%'); } /**********************************************/ static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch)); } /***************************************/ static void ColouriseDMAPDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; /***************************************/ Sci_Position posLineStart = 0, numNonBlank = 0; Sci_Position endPos = startPos + length; /***************************************/ // backtrack to the nearest keyword while ((startPos > 1) && (styler.StyleAt(startPos) != SCE_DMAP_WORD)) { startPos--; } startPos = styler.LineStart(styler.GetLine(startPos)); initStyle = styler.StyleAt(startPos - 1); StyleContext sc(startPos, endPos-startPos, initStyle, styler); /***************************************/ for (; sc.More(); sc.Forward()) { // remember the start position of the line if (sc.atLineStart) { posLineStart = sc.currentPos; numNonBlank = 0; sc.SetState(SCE_DMAP_DEFAULT); } if (!IsASpaceOrTab(sc.ch)) numNonBlank ++; /***********************************************/ // Handle data appearing after column 72; it is ignored Sci_Position toLineStart = sc.currentPos - posLineStart; if (toLineStart >= 72 || sc.ch == '$') { sc.SetState(SCE_DMAP_COMMENT); while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end continue; } /***************************************/ // Determine if the current state should terminate. if (sc.state == SCE_DMAP_OPERATOR) { sc.SetState(SCE_DMAP_DEFAULT); } else if (sc.state == SCE_DMAP_NUMBER) { if (!(IsAWordChar(sc.ch) || sc.ch=='\'' || sc.ch=='\"' || sc.ch=='.')) { sc.SetState(SCE_DMAP_DEFAULT); } } else if (sc.state == SCE_DMAP_IDENTIFIER) { if (!IsAWordChar(sc.ch) || (sc.ch == '%')) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_DMAP_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_DMAP_WORD2); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_DMAP_WORD3); } sc.SetState(SCE_DMAP_DEFAULT); } } else if (sc.state == SCE_DMAP_COMMENT) { if (sc.ch == '\r' || sc.ch == '\n') { sc.SetState(SCE_DMAP_DEFAULT); } } else if (sc.state == SCE_DMAP_STRING1) { if (sc.ch == '\'') { if (sc.chNext == '\'') { sc.Forward(); } else { sc.ForwardSetState(SCE_DMAP_DEFAULT); } } else if (sc.atLineEnd) { sc.ChangeState(SCE_DMAP_STRINGEOL); sc.ForwardSetState(SCE_DMAP_DEFAULT); } } else if (sc.state == SCE_DMAP_STRING2) { if (sc.atLineEnd) { sc.ChangeState(SCE_DMAP_STRINGEOL); sc.ForwardSetState(SCE_DMAP_DEFAULT); } else if (sc.ch == '\"') { if (sc.chNext == '\"') { sc.Forward(); } else { sc.ForwardSetState(SCE_DMAP_DEFAULT); } } } /***************************************/ // Determine if a new state should be entered. if (sc.state == SCE_DMAP_DEFAULT) { if (sc.ch == '$') { sc.SetState(SCE_DMAP_COMMENT); } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext)) || (sc.ch == '-' && IsADigit(sc.chNext))) { sc.SetState(SCE_F_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_DMAP_IDENTIFIER); } else if (sc.ch == '\"') { sc.SetState(SCE_DMAP_STRING2); } else if (sc.ch == '\'') { sc.SetState(SCE_DMAP_STRING1); } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_DMAP_OPERATOR); } } } sc.Complete(); } /***************************************/ // To determine the folding level depending on keywords static int classifyFoldPointDMAP(const char* s, const char* prevWord) { int lev = 0; if ((strcmp(prevWord, "else") == 0 && strcmp(s, "if") == 0) || strcmp(s, "enddo") == 0 || strcmp(s, "endif") == 0) { lev = -1; } else if ((strcmp(prevWord, "do") == 0 && strcmp(s, "while") == 0) || strcmp(s, "then") == 0) { lev = 1; } return lev; } // Folding the code static void FoldDMAPDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { // // bool foldComment = styler.GetPropertyInt("fold.comment") != 0; // Do not know how to fold the comment at the moment. // bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; /***************************************/ Sci_Position lastStart = 0; char prevWord[32] = ""; /***************************************/ for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); // if ((stylePrev == SCE_DMAP_DEFAULT || stylePrev == SCE_DMAP_OPERATOR || stylePrev == SCE_DMAP_COMMENT) && (style == SCE_DMAP_WORD)) { // Store last word and label start point. lastStart = i; } /***************************************/ if (style == SCE_DMAP_WORD) { if(iswordchar(ch) && !iswordchar(chNext)) { char s[32]; Sci_PositionU k; for(k=0; (k<31 ) && (k(tolower(styler[lastStart+k])); } s[k] = '\0'; levelCurrent += classifyFoldPointDMAP(s, prevWord); strcpy(prevWord, s); } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; strcpy(prevWord, ""); } /***************************************/ if (!isspacechar(ch)) visibleChars++; } /***************************************/ // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } /***************************************/ static const char * const DMAPWordLists[] = { "Primary keywords and identifiers", "Intrinsic functions", "Extended and user defined functions", 0, }; /***************************************/ LexerModule lmDMAP(SCLEX_DMAP, ColouriseDMAPDoc, "DMAP", FoldDMAPDoc, DMAPWordLists); codequery-0.21.0/scintilla/lexers/LexDMIS.cxx000066400000000000000000000202421310136352400210050ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexDMIS.cxx ** Lexer for DMIS. **/ // Copyright 1998-2005 by Neil Hodgson // Copyright 2013-2014 by Andreas Tscharner // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static const char *const DMISWordListDesc[] = { "DMIS Major Words", "DMIS Minor Words", "Unsupported DMIS Major Words", "Unsupported DMIS Minor Words", "Keywords for code folding start", "Corresponding keywords for code folding end", 0 }; class LexerDMIS : public ILexer { private: char *m_wordListSets; WordList m_majorWords; WordList m_minorWords; WordList m_unsupportedMajor; WordList m_unsupportedMinor; WordList m_codeFoldingStart; WordList m_codeFoldingEnd; char * SCI_METHOD UpperCase(char *item); void SCI_METHOD InitWordListSets(void); public: LexerDMIS(void); virtual ~LexerDMIS(void); int SCI_METHOD Version() const override { return lvOriginal; } void SCI_METHOD Release() override { delete this; } const char * SCI_METHOD PropertyNames() override { return NULL; } int SCI_METHOD PropertyType(const char *) override { return -1; } const char * SCI_METHOD DescribeProperty(const char *) override { return NULL; } Sci_Position SCI_METHOD PropertySet(const char *, const char *) override { return -1; } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void * SCI_METHOD PrivateCall(int, void *) override { return NULL; } static ILexer *LexerFactoryDMIS() { return new LexerDMIS; } const char * SCI_METHOD DescribeWordListSets() override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override; }; char * SCI_METHOD LexerDMIS::UpperCase(char *item) { char *itemStart; itemStart = item; while (item && *item) { *item = toupper(*item); item++; }; return itemStart; } void SCI_METHOD LexerDMIS::InitWordListSets(void) { size_t totalLen = 0; for (int i=0; DMISWordListDesc[i]; i++) { totalLen += strlen(DMISWordListDesc[i]); totalLen++; }; totalLen++; this->m_wordListSets = new char[totalLen]; memset(this->m_wordListSets, 0, totalLen); for (int i=0; DMISWordListDesc[i]; i++) { strcat(this->m_wordListSets, DMISWordListDesc[i]); strcat(this->m_wordListSets, "\n"); }; } LexerDMIS::LexerDMIS(void) { this->InitWordListSets(); this->m_majorWords.Clear(); this->m_minorWords.Clear(); this->m_unsupportedMajor.Clear(); this->m_unsupportedMinor.Clear(); this->m_codeFoldingStart.Clear(); this->m_codeFoldingEnd.Clear(); } LexerDMIS::~LexerDMIS(void) { delete[] this->m_wordListSets; } Sci_Position SCI_METHOD LexerDMIS::WordListSet(int n, const char *wl) { switch (n) { case 0: this->m_majorWords.Clear(); this->m_majorWords.Set(wl); break; case 1: this->m_minorWords.Clear(); this->m_minorWords.Set(wl); break; case 2: this->m_unsupportedMajor.Clear(); this->m_unsupportedMajor.Set(wl); break; case 3: this->m_unsupportedMinor.Clear(); this->m_unsupportedMinor.Set(wl); break; case 4: this->m_codeFoldingStart.Clear(); this->m_codeFoldingStart.Set(wl); break; case 5: this->m_codeFoldingEnd.Clear(); this->m_codeFoldingEnd.Set(wl); break; default: return -1; break; } return 0; } const char * SCI_METHOD LexerDMIS::DescribeWordListSets() { return this->m_wordListSets; } void SCI_METHOD LexerDMIS::Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) { const Sci_PositionU MAX_STR_LEN = 100; LexAccessor styler(pAccess); StyleContext scCTX(startPos, lengthDoc, initStyle, styler); CharacterSet setDMISNumber(CharacterSet::setDigits, ".-+eE"); CharacterSet setDMISWordStart(CharacterSet::setAlpha, "-234", 0x80, true); CharacterSet setDMISWord(CharacterSet::setAlpha); bool isIFLine = false; for (; scCTX.More(); scCTX.Forward()) { if (scCTX.atLineEnd) { isIFLine = false; }; switch (scCTX.state) { case SCE_DMIS_DEFAULT: if (scCTX.Match('$', '$')) { scCTX.SetState(SCE_DMIS_COMMENT); scCTX.Forward(); }; if (scCTX.Match('\'')) { scCTX.SetState(SCE_DMIS_STRING); }; if (IsADigit(scCTX.ch) || ((scCTX.Match('-') || scCTX.Match('+')) && IsADigit(scCTX.chNext))) { scCTX.SetState(SCE_DMIS_NUMBER); break; }; if (setDMISWordStart.Contains(scCTX.ch)) { scCTX.SetState(SCE_DMIS_KEYWORD); }; if (scCTX.Match('(') && (!isIFLine)) { scCTX.SetState(SCE_DMIS_LABEL); }; break; case SCE_DMIS_COMMENT: if (scCTX.atLineEnd) { scCTX.SetState(SCE_DMIS_DEFAULT); }; break; case SCE_DMIS_STRING: if (scCTX.Match('\'')) { scCTX.SetState(SCE_DMIS_DEFAULT); }; break; case SCE_DMIS_NUMBER: if (!setDMISNumber.Contains(scCTX.ch)) { scCTX.SetState(SCE_DMIS_DEFAULT); }; break; case SCE_DMIS_KEYWORD: if (!setDMISWord.Contains(scCTX.ch)) { char tmpStr[MAX_STR_LEN]; memset(tmpStr, 0, MAX_STR_LEN*sizeof(char)); scCTX.GetCurrent(tmpStr, (MAX_STR_LEN-1)); strncpy(tmpStr, this->UpperCase(tmpStr), (MAX_STR_LEN-1)); if (this->m_minorWords.InList(tmpStr)) { scCTX.ChangeState(SCE_DMIS_MINORWORD); }; if (this->m_majorWords.InList(tmpStr)) { isIFLine = (strcmp(tmpStr, "IF") == 0); scCTX.ChangeState(SCE_DMIS_MAJORWORD); }; if (this->m_unsupportedMajor.InList(tmpStr)) { scCTX.ChangeState(SCE_DMIS_UNSUPPORTED_MAJOR); }; if (this->m_unsupportedMinor.InList(tmpStr)) { scCTX.ChangeState(SCE_DMIS_UNSUPPORTED_MINOR); }; if (scCTX.Match('(') && (!isIFLine)) { scCTX.SetState(SCE_DMIS_LABEL); } else { scCTX.SetState(SCE_DMIS_DEFAULT); }; }; break; case SCE_DMIS_LABEL: if (scCTX.Match(')')) { scCTX.SetState(SCE_DMIS_DEFAULT); }; break; }; }; scCTX.Complete(); } void SCI_METHOD LexerDMIS::Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int, IDocument *pAccess) { const int MAX_STR_LEN = 100; LexAccessor styler(pAccess); Sci_PositionU endPos = startPos + lengthDoc; char chNext = styler[startPos]; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; int strPos = 0; bool foldWordPossible = false; CharacterSet setDMISFoldWord(CharacterSet::setAlpha); char *tmpStr; tmpStr = new char[MAX_STR_LEN]; memset(tmpStr, 0, MAX_STR_LEN*sizeof(char)); for (Sci_PositionU i=startPos; i= (MAX_STR_LEN-1)) { strPos = MAX_STR_LEN-1; }; int style = styler.StyleAt(i); bool noFoldPos = ((style == SCE_DMIS_COMMENT) || (style == SCE_DMIS_STRING)); if (foldWordPossible) { if (setDMISFoldWord.Contains(ch)) { tmpStr[strPos++] = ch; } else { tmpStr = this->UpperCase(tmpStr); if (this->m_codeFoldingStart.InList(tmpStr) && (!noFoldPos)) { levelCurrent++; }; if (this->m_codeFoldingEnd.InList(tmpStr) && (!noFoldPos)) { levelCurrent--; }; memset(tmpStr, 0, MAX_STR_LEN*sizeof(char)); strPos = 0; foldWordPossible = false; }; } else { if (setDMISFoldWord.Contains(ch)) { tmpStr[strPos++] = ch; foldWordPossible = true; }; }; if (atEOL || (i == (endPos-1))) { int lev = levelPrev; if (levelCurrent > levelPrev) { lev |= SC_FOLDLEVELHEADERFLAG; }; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); }; lineCurrent++; levelPrev = levelCurrent; }; }; delete[] tmpStr; } LexerModule lmDMIS(SCLEX_DMIS, LexerDMIS::LexerFactoryDMIS, "DMIS", DMISWordListDesc); codequery-0.21.0/scintilla/lexers/LexDiff.cxx000066400000000000000000000135241310136352400211260ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexDiff.cxx ** Lexer for diff results. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool AtEOL(Accessor &styler, Sci_PositionU i) { return (styler[i] == '\n') || ((styler[i] == '\r') && (styler.SafeGetCharAt(i + 1) != '\n')); } #define DIFF_BUFFER_START_SIZE 16 // Note that ColouriseDiffLine analyzes only the first DIFF_BUFFER_START_SIZE // characters of each line to classify the line. static void ColouriseDiffLine(char *lineBuffer, Sci_Position endLine, Accessor &styler) { // It is needed to remember the current state to recognize starting // comment lines before the first "diff " or "--- ". If a real // difference starts then each line starting with ' ' is a whitespace // otherwise it is considered a comment (Only in..., Binary file...) if (0 == strncmp(lineBuffer, "diff ", 5)) { styler.ColourTo(endLine, SCE_DIFF_COMMAND); } else if (0 == strncmp(lineBuffer, "Index: ", 7)) { // For subversion's diff styler.ColourTo(endLine, SCE_DIFF_COMMAND); } else if (0 == strncmp(lineBuffer, "---", 3) && lineBuffer[3] != '-') { // In a context diff, --- appears in both the header and the position markers if (lineBuffer[3] == ' ' && atoi(lineBuffer + 4) && !strchr(lineBuffer, '/')) styler.ColourTo(endLine, SCE_DIFF_POSITION); else if (lineBuffer[3] == '\r' || lineBuffer[3] == '\n') styler.ColourTo(endLine, SCE_DIFF_POSITION); else if (lineBuffer[3] == ' ') styler.ColourTo(endLine, SCE_DIFF_HEADER); else styler.ColourTo(endLine, SCE_DIFF_DELETED); } else if (0 == strncmp(lineBuffer, "+++ ", 4)) { // I don't know of any diff where "+++ " is a position marker, but for // consistency, do the same as with "--- " and "*** ". if (atoi(lineBuffer+4) && !strchr(lineBuffer, '/')) styler.ColourTo(endLine, SCE_DIFF_POSITION); else styler.ColourTo(endLine, SCE_DIFF_HEADER); } else if (0 == strncmp(lineBuffer, "====", 4)) { // For p4's diff styler.ColourTo(endLine, SCE_DIFF_HEADER); } else if (0 == strncmp(lineBuffer, "***", 3)) { // In a context diff, *** appears in both the header and the position markers. // Also ******** is a chunk header, but here it's treated as part of the // position marker since there is no separate style for a chunk header. if (lineBuffer[3] == ' ' && atoi(lineBuffer+4) && !strchr(lineBuffer, '/')) styler.ColourTo(endLine, SCE_DIFF_POSITION); else if (lineBuffer[3] == '*') styler.ColourTo(endLine, SCE_DIFF_POSITION); else styler.ColourTo(endLine, SCE_DIFF_HEADER); } else if (0 == strncmp(lineBuffer, "? ", 2)) { // For difflib styler.ColourTo(endLine, SCE_DIFF_HEADER); } else if (lineBuffer[0] == '@') { styler.ColourTo(endLine, SCE_DIFF_POSITION); } else if (lineBuffer[0] >= '0' && lineBuffer[0] <= '9') { styler.ColourTo(endLine, SCE_DIFF_POSITION); } else if (lineBuffer[0] == '-' || lineBuffer[0] == '<') { styler.ColourTo(endLine, SCE_DIFF_DELETED); } else if (lineBuffer[0] == '+' || lineBuffer[0] == '>') { styler.ColourTo(endLine, SCE_DIFF_ADDED); } else if (lineBuffer[0] == '!') { styler.ColourTo(endLine, SCE_DIFF_CHANGED); } else if (lineBuffer[0] != ' ') { styler.ColourTo(endLine, SCE_DIFF_COMMENT); } else { styler.ColourTo(endLine, SCE_DIFF_DEFAULT); } } static void ColouriseDiffDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { char lineBuffer[DIFF_BUFFER_START_SIZE] = ""; styler.StartAt(startPos); styler.StartSegment(startPos); Sci_PositionU linePos = 0; for (Sci_PositionU i = startPos; i < startPos + length; i++) { if (AtEOL(styler, i)) { if (linePos < DIFF_BUFFER_START_SIZE) { lineBuffer[linePos] = 0; } ColouriseDiffLine(lineBuffer, i, styler); linePos = 0; } else if (linePos < DIFF_BUFFER_START_SIZE - 1) { lineBuffer[linePos++] = styler[i]; } else if (linePos == DIFF_BUFFER_START_SIZE - 1) { lineBuffer[linePos++] = 0; } } if (linePos > 0) { // Last line does not have ending characters if (linePos < DIFF_BUFFER_START_SIZE) { lineBuffer[linePos] = 0; } ColouriseDiffLine(lineBuffer, startPos + length - 1, styler); } } static void FoldDiffDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position curLine = styler.GetLine(startPos); Sci_Position curLineStart = styler.LineStart(curLine); int prevLevel = curLine > 0 ? styler.LevelAt(curLine - 1) : SC_FOLDLEVELBASE; int nextLevel; do { int lineType = styler.StyleAt(curLineStart); if (lineType == SCE_DIFF_COMMAND) nextLevel = SC_FOLDLEVELBASE | SC_FOLDLEVELHEADERFLAG; else if (lineType == SCE_DIFF_HEADER) nextLevel = (SC_FOLDLEVELBASE + 1) | SC_FOLDLEVELHEADERFLAG; else if (lineType == SCE_DIFF_POSITION && styler[curLineStart] != '-') nextLevel = (SC_FOLDLEVELBASE + 2) | SC_FOLDLEVELHEADERFLAG; else if (prevLevel & SC_FOLDLEVELHEADERFLAG) nextLevel = (prevLevel & SC_FOLDLEVELNUMBERMASK) + 1; else nextLevel = prevLevel; if ((nextLevel & SC_FOLDLEVELHEADERFLAG) && (nextLevel == prevLevel)) styler.SetLevel(curLine-1, prevLevel & ~SC_FOLDLEVELHEADERFLAG); styler.SetLevel(curLine, nextLevel); prevLevel = nextLevel; curLineStart = styler.LineStart(++curLine); } while (static_cast(startPos)+length > curLineStart); } static const char *const emptyWordListDesc[] = { 0 }; LexerModule lmDiff(SCLEX_DIFF, ColouriseDiffDoc, "diff", FoldDiffDoc, emptyWordListDesc); codequery-0.21.0/scintilla/lexers/LexECL.cxx000066400000000000000000000365001310136352400206600ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexECL.cxx ** Lexer for ECL. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #ifdef _MSC_VER #pragma warning(disable: 4786) #endif #ifdef __BORLANDC__ // Borland C++ displays warnings in vector header without this #pragma option -w-ccc -w-rch #endif #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "PropSetSimple.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #define SET_LOWER "abcdefghijklmnopqrstuvwxyz" #define SET_UPPER "ABCDEFGHIJKLMNOPQRSTUVWXYZ" #define SET_DIGITS "0123456789" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static bool IsSpaceEquiv(int state) { switch (state) { case SCE_ECL_DEFAULT: case SCE_ECL_COMMENT: case SCE_ECL_COMMENTLINE: case SCE_ECL_COMMENTLINEDOC: case SCE_ECL_COMMENTDOCKEYWORD: case SCE_ECL_COMMENTDOCKEYWORDERROR: case SCE_ECL_COMMENTDOC: return true; default: return false; } } static void ColouriseEclDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords0 = *keywordlists[0]; WordList &keywords1 = *keywordlists[1]; WordList &keywords2 = *keywordlists[2]; WordList &keywords3 = *keywordlists[3]; //Value Types WordList &keywords4 = *keywordlists[4]; WordList &keywords5 = *keywordlists[5]; WordList &keywords6 = *keywordlists[6]; //Javadoc Tags WordList cplusplus; cplusplus.Set("beginc endc"); bool stylingWithinPreprocessor = false; CharacterSet setOKBeforeRE(CharacterSet::setNone, "(=,"); CharacterSet setDoxygen(CharacterSet::setLower, "$@\\&<>#{}[]"); CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); CharacterSet setWord(CharacterSet::setAlphaNum, "._", 0x80, true); CharacterSet setQualified(CharacterSet::setNone, "uUxX"); int chPrevNonWhite = ' '; int visibleChars = 0; bool lastWordWasUUID = false; int styleBeforeDCKeyword = SCE_ECL_DEFAULT; bool continuationLine = false; if (initStyle == SCE_ECL_PREPROCESSOR) { // Set continuationLine if last character of previous line is '\' Sci_Position lineCurrent = styler.GetLine(startPos); if (lineCurrent > 0) { int chBack = styler.SafeGetCharAt(startPos-1, 0); int chBack2 = styler.SafeGetCharAt(startPos-2, 0); int lineEndChar = '!'; if (chBack2 == '\r' && chBack == '\n') { lineEndChar = styler.SafeGetCharAt(startPos-3, 0); } else if (chBack == '\n' || chBack == '\r') { lineEndChar = chBack2; } continuationLine = lineEndChar == '\\'; } } // look back to set chPrevNonWhite properly for better regex colouring if (startPos > 0) { Sci_Position back = startPos; while (--back && IsSpaceEquiv(styler.StyleAt(back))) ; if (styler.StyleAt(back) == SCE_ECL_OPERATOR) { chPrevNonWhite = styler.SafeGetCharAt(back); } } StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.atLineStart) { if (sc.state == SCE_ECL_STRING) { // Prevent SCE_ECL_STRINGEOL from leaking back to previous line which // ends with a line continuation by locking in the state upto this position. sc.SetState(SCE_ECL_STRING); } // Reset states to begining of colourise so no surprises // if different sets of lines lexed. visibleChars = 0; lastWordWasUUID = false; } // Handle line continuation generically. if (sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continuationLine = true; continue; } } // Determine if the current state should terminate. switch (sc.state) { case SCE_ECL_ADDED: case SCE_ECL_DELETED: case SCE_ECL_CHANGED: case SCE_ECL_MOVED: if (sc.atLineStart) sc.SetState(SCE_ECL_DEFAULT); break; case SCE_ECL_OPERATOR: sc.SetState(SCE_ECL_DEFAULT); break; case SCE_ECL_NUMBER: // We accept almost anything because of hex. and number suffixes if (!setWord.Contains(sc.ch)) { sc.SetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_IDENTIFIER: if (!setWord.Contains(sc.ch) || (sc.ch == '.')) { char s[1000]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords0.InList(s)) { lastWordWasUUID = strcmp(s, "uuid") == 0; sc.ChangeState(SCE_ECL_WORD0); } else if (keywords1.InList(s)) { sc.ChangeState(SCE_ECL_WORD1); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_ECL_WORD2); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_ECL_WORD4); } else if (keywords5.InList(s)) { sc.ChangeState(SCE_ECL_WORD5); } else //Data types are of from KEYWORD## { int i = static_cast(strlen(s)) - 1; while(i >= 0 && (isdigit(s[i]) || s[i] == '_')) --i; char s2[1000]; strncpy(s2, s, i + 1); s2[i + 1] = 0; if (keywords3.InList(s2)) { sc.ChangeState(SCE_ECL_WORD3); } } sc.SetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_PREPROCESSOR: if (sc.atLineStart && !continuationLine) { sc.SetState(SCE_ECL_DEFAULT); } else if (stylingWithinPreprocessor) { if (IsASpace(sc.ch)) { sc.SetState(SCE_ECL_DEFAULT); } } else { if (sc.Match('/', '*') || sc.Match('/', '/')) { sc.SetState(SCE_ECL_DEFAULT); } } break; case SCE_ECL_COMMENT: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_COMMENTDOC: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_ECL_DEFAULT); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_ECL_COMMENTDOC; sc.SetState(SCE_ECL_COMMENTDOCKEYWORD); } } break; case SCE_ECL_COMMENTLINE: if (sc.atLineStart) { sc.SetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_COMMENTLINEDOC: if (sc.atLineStart) { sc.SetState(SCE_ECL_DEFAULT); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = SCE_ECL_COMMENTLINEDOC; sc.SetState(SCE_ECL_COMMENTDOCKEYWORD); } } break; case SCE_ECL_COMMENTDOCKEYWORD: if ((styleBeforeDCKeyword == SCE_ECL_COMMENTDOC) && sc.Match('*', '/')) { sc.ChangeState(SCE_ECL_COMMENTDOCKEYWORDERROR); sc.Forward(); sc.ForwardSetState(SCE_ECL_DEFAULT); } else if (!setDoxygen.Contains(sc.ch)) { char s[1000]; sc.GetCurrentLowered(s, sizeof(s)); if (!IsASpace(sc.ch) || !keywords6.InList(s+1)) { sc.ChangeState(SCE_ECL_COMMENTDOCKEYWORDERROR); } sc.SetState(styleBeforeDCKeyword); } break; case SCE_ECL_STRING: if (sc.atLineEnd) { sc.ChangeState(SCE_ECL_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_CHARACTER: if (sc.atLineEnd) { sc.ChangeState(SCE_ECL_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_REGEX: if (sc.atLineStart) { sc.SetState(SCE_ECL_DEFAULT); } else if (sc.ch == '/') { sc.Forward(); while ((sc.ch < 0x80) && islower(sc.ch)) sc.Forward(); // gobble regex flags sc.SetState(SCE_ECL_DEFAULT); } else if (sc.ch == '\\') { // Gobble up the quoted character if (sc.chNext == '\\' || sc.chNext == '/') { sc.Forward(); } } break; case SCE_ECL_STRINGEOL: if (sc.atLineStart) { sc.SetState(SCE_ECL_DEFAULT); } break; case SCE_ECL_VERBATIM: if (sc.ch == '\"') { if (sc.chNext == '\"') { sc.Forward(); } else { sc.ForwardSetState(SCE_ECL_DEFAULT); } } break; case SCE_ECL_UUID: if (sc.ch == '\r' || sc.ch == '\n' || sc.ch == ')') { sc.SetState(SCE_ECL_DEFAULT); } break; } // Determine if a new state should be entered. Sci_Position lineCurrent = styler.GetLine(sc.currentPos); int lineState = styler.GetLineState(lineCurrent); if (sc.state == SCE_ECL_DEFAULT) { if (lineState) { sc.SetState(lineState); } else if (sc.Match('@', '\"')) { sc.SetState(SCE_ECL_VERBATIM); sc.Forward(); } else if (setQualified.Contains(sc.ch) && sc.chNext == '\'') { sc.SetState(SCE_ECL_CHARACTER); sc.Forward(); } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { if (lastWordWasUUID) { sc.SetState(SCE_ECL_UUID); lastWordWasUUID = false; } else { sc.SetState(SCE_ECL_NUMBER); } } else if (setWordStart.Contains(sc.ch) || (sc.ch == '@')) { if (lastWordWasUUID) { sc.SetState(SCE_ECL_UUID); lastWordWasUUID = false; } else { sc.SetState(SCE_ECL_IDENTIFIER); } } else if (sc.Match('/', '*')) { if (sc.Match("/**") || sc.Match("/*!")) { // Support of Qt/Doxygen doc. style sc.SetState(SCE_ECL_COMMENTDOC); } else { sc.SetState(SCE_ECL_COMMENT); } sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('/', '/')) { if ((sc.Match("///") && !sc.Match("////")) || sc.Match("//!")) // Support of Qt/Doxygen doc. style sc.SetState(SCE_ECL_COMMENTLINEDOC); else sc.SetState(SCE_ECL_COMMENTLINE); } else if (sc.ch == '/' && setOKBeforeRE.Contains(chPrevNonWhite)) { sc.SetState(SCE_ECL_REGEX); // JavaScript's RegEx // } else if (sc.ch == '\"') { // sc.SetState(SCE_ECL_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_ECL_CHARACTER); } else if (sc.ch == '#' && visibleChars == 0) { // Preprocessor commands are alone on their line sc.SetState(SCE_ECL_PREPROCESSOR); // Skip whitespace between # and preprocessor word do { sc.Forward(); } while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()); if (sc.atLineEnd) { sc.SetState(SCE_ECL_DEFAULT); } } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_ECL_OPERATOR); } } if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) { chPrevNonWhite = sc.ch; visibleChars++; } continuationLine = false; } sc.Complete(); } static bool IsStreamCommentStyle(int style) { return style == SCE_ECL_COMMENT || style == SCE_ECL_COMMENTDOC || style == SCE_ECL_COMMENTDOCKEYWORD || style == SCE_ECL_COMMENTDOCKEYWORDERROR; } static bool MatchNoCase(Accessor & styler, Sci_PositionU & pos, const char *s) { Sci_Position i=0; for (; *s; i++) { char compare_char = tolower(*s); char styler_char = tolower(styler.SafeGetCharAt(pos+i)); if (compare_char != styler_char) return false; s++; } pos+=i-1; return true; } // Store both the current line's fold level and the next lines in the // level store to make it easy to pick up with each increment // and to make it possible to fiddle the current level for "} else {". static void FoldEclDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { bool foldComment = true; bool foldPreprocessor = true; bool foldCompact = true; bool foldAtElse = true; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent-1) >> 16; int levelMinCurrent = levelCurrent; int levelNext = levelCurrent; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (foldComment && IsStreamCommentStyle(style)) { if (!IsStreamCommentStyle(stylePrev) && (stylePrev != SCE_ECL_COMMENTLINEDOC)) { levelNext++; } else if (!IsStreamCommentStyle(styleNext) && (styleNext != SCE_ECL_COMMENTLINEDOC) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelNext--; } } if (foldComment && (style == SCE_ECL_COMMENTLINE)) { if ((ch == '/') && (chNext == '/')) { char chNext2 = styler.SafeGetCharAt(i + 2); if (chNext2 == '{') { levelNext++; } else if (chNext2 == '}') { levelNext--; } } } if (foldPreprocessor && (style == SCE_ECL_PREPROCESSOR)) { if (ch == '#') { Sci_PositionU j = i + 1; while ((j < endPos) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { j++; } if (MatchNoCase(styler, j, "region") || MatchNoCase(styler, j, "if")) { levelNext++; } else if (MatchNoCase(styler, j, "endregion") || MatchNoCase(styler, j, "end")) { levelNext--; } } } if (style == SCE_ECL_OPERATOR) { if (ch == '{') { // Measure the minimum before a '{' to allow // folding on "} else {" if (levelMinCurrent > levelNext) { levelMinCurrent = levelNext; } levelNext++; } else if (ch == '}') { levelNext--; } } if (style == SCE_ECL_WORD2) { if (MatchNoCase(styler, i, "record") || MatchNoCase(styler, i, "transform") || MatchNoCase(styler, i, "type") || MatchNoCase(styler, i, "function") || MatchNoCase(styler, i, "module") || MatchNoCase(styler, i, "service") || MatchNoCase(styler, i, "interface") || MatchNoCase(styler, i, "ifblock") || MatchNoCase(styler, i, "macro") || MatchNoCase(styler, i, "beginc++")) { levelNext++; } else if (MatchNoCase(styler, i, "endmacro") || MatchNoCase(styler, i, "endc++") || MatchNoCase(styler, i, "end")) { levelNext--; } } if (atEOL || (i == endPos-1)) { int levelUse = levelCurrent; if (foldAtElse) { levelUse = levelMinCurrent; } int lev = levelUse | levelNext << 16; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (levelUse < levelNext) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelCurrent = levelNext; levelMinCurrent = levelCurrent; if (atEOL && (i == static_cast(styler.Length()-1))) { // There is an empty line at end of file so give it same level and empty styler.SetLevel(lineCurrent, (levelCurrent | levelCurrent << 16) | SC_FOLDLEVELWHITEFLAG); } visibleChars = 0; } if (!IsASpace(ch)) visibleChars++; } } static const char * const EclWordListDesc[] = { "Keywords", 0 }; LexerModule lmECL( SCLEX_ECL, ColouriseEclDoc, "ecl", FoldEclDoc, EclWordListDesc); codequery-0.21.0/scintilla/lexers/LexEDIFACT.cxx000066400000000000000000000213561310136352400213170ustar00rootroot00000000000000// Scintilla Lexer for EDIFACT // Written by Iain Clarke, IMCSoft & Inobiz AB. // EDIFACT documented here: https://www.unece.org/cefact/edifact/welcome.html // and more readably here: https://en.wikipedia.org/wiki/EDIFACT // This code is subject to the same license terms as the rest of the scintilla project: // The License.txt file describes the conditions under which this software may be distributed. // // Header order must match order in scripts/HeaderOrder.txt #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "LexAccessor.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif class LexerEDIFACT : public ILexer { public: LexerEDIFACT(); virtual ~LexerEDIFACT() {} // virtual destructor, as we inherit from ILexer static ILexer *Factory() { return new LexerEDIFACT; } int SCI_METHOD Version() const override { return lvOriginal; } void SCI_METHOD Release() override { delete this; } const char * SCI_METHOD PropertyNames() override { return "fold"; } int SCI_METHOD PropertyType(const char *) override { return SC_TYPE_BOOLEAN; // Only one property! } const char * SCI_METHOD DescribeProperty(const char *name) override { if (strcmp(name, "fold")) return NULL; return "Whether to apply folding to document or not"; } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override { if (strcmp(key, "fold")) return -1; m_bFold = strcmp(val, "0") ? true : false; return 0; } const char * SCI_METHOD DescribeWordListSets() override { return NULL; } Sci_Position SCI_METHOD WordListSet(int, const char *) override { return -1; } void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return NULL; } protected: Sci_Position InitialiseFromUNA(IDocument *pAccess, Sci_PositionU MaxLength); Sci_Position FindPreviousEnd(IDocument *pAccess, Sci_Position startPos) const; Sci_Position ForwardPastWhitespace(IDocument *pAccess, Sci_Position startPos, Sci_Position MaxLength) const; int DetectSegmentHeader(char SegmentHeader[3]) const; bool m_bFold; char m_chComponent; char m_chData; char m_chDecimal; char m_chRelease; char m_chSegment; }; LexerModule lmEDIFACT(SCLEX_EDIFACT, LexerEDIFACT::Factory, "edifact"); /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// LexerEDIFACT::LexerEDIFACT() { m_bFold = false; m_chComponent = ':'; m_chData = '+'; m_chDecimal = '.'; m_chRelease = '?'; m_chSegment = '\''; } void LexerEDIFACT::Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int, IDocument *pAccess) { Sci_PositionU posFinish = startPos + lengthDoc; InitialiseFromUNA(pAccess, posFinish); // Look backwards for a ' or a document beginning Sci_PositionU posCurrent = FindPreviousEnd(pAccess, startPos); // And jump past the ' if this was not the beginning of the document if (posCurrent != 0) posCurrent++; // Style buffer, so we're not issuing loads of notifications LexAccessor styler (pAccess); pAccess->StartStyling(posCurrent, '\377'); styler.StartSegment(posCurrent); Sci_Position posSegmentStart = -1; while ((posCurrent < posFinish) && (posSegmentStart == -1)) { posCurrent = ForwardPastWhitespace(pAccess, posCurrent, posFinish); // Mark whitespace as default styler.ColourTo(posCurrent - 1, SCE_EDI_DEFAULT); if (posCurrent >= posFinish) break; // Does is start with 3 charaters? ie, UNH char SegmentHeader[4] = { 0 }; pAccess->GetCharRange(SegmentHeader, posCurrent, 3); int SegmentStyle = DetectSegmentHeader(SegmentHeader); if (SegmentStyle == SCE_EDI_BADSEGMENT) break; if (SegmentStyle == SCE_EDI_UNA) { posCurrent += 9; styler.ColourTo(posCurrent - 1, SCE_EDI_UNA); // UNA continue; } posSegmentStart = posCurrent; posCurrent += 3; styler.ColourTo(posCurrent - 1, SegmentStyle); // UNH etc // Colour in the rest of the segment for (char c; posCurrent < posFinish; posCurrent++) { pAccess->GetCharRange(&c, posCurrent, 1); if (c == m_chRelease) // ? escape character, check first, in case of ?' posCurrent++; else if (c == m_chSegment) // ' { // Make sure the whole segment is on one line. styler won't let us go back in time, so we'll settle for marking the ' as bad. Sci_Position lineSegmentStart = pAccess->LineFromPosition(posSegmentStart); Sci_Position lineSegmentEnd = pAccess->LineFromPosition(posCurrent); if (lineSegmentStart == lineSegmentEnd) styler.ColourTo(posCurrent, SCE_EDI_SEGMENTEND); else styler.ColourTo(posCurrent, SCE_EDI_BADSEGMENT); posSegmentStart = -1; posCurrent++; break; } else if (c == m_chComponent) // : styler.ColourTo(posCurrent, SCE_EDI_SEP_COMPOSITE); else if (c == m_chData) // + styler.ColourTo(posCurrent, SCE_EDI_SEP_ELEMENT); else styler.ColourTo(posCurrent, SCE_EDI_DEFAULT); } } styler.Flush(); if (posSegmentStart == -1) return; pAccess->StartStyling(posSegmentStart, -1); pAccess->SetStyleFor(posFinish - posSegmentStart, SCE_EDI_BADSEGMENT); } void LexerEDIFACT::Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int, IDocument *pAccess) { if (!m_bFold) return; // Fold at UNx lines. ie, UNx segments = 0, other segments = 1. // There's no sub folding, so we can be quite simple. Sci_Position endPos = startPos + lengthDoc; char SegmentHeader[4] = { 0 }; int iIndentPrevious = 0; Sci_Position lineLast = pAccess->LineFromPosition(endPos); for (Sci_Position lineCurrent = pAccess->LineFromPosition(startPos); lineCurrent <= lineLast; lineCurrent++) { Sci_Position posLineStart = pAccess->LineStart(lineCurrent); posLineStart = ForwardPastWhitespace(pAccess, posLineStart, endPos); Sci_Position lineDataStart = pAccess->LineFromPosition(posLineStart); // Fill in whitespace lines? for (; lineCurrent < lineDataStart; lineCurrent++) pAccess->SetLevel(lineCurrent, SC_FOLDLEVELBASE | SC_FOLDLEVELWHITEFLAG | iIndentPrevious); pAccess->GetCharRange(SegmentHeader, posLineStart, 3); //if (DetectSegmentHeader(SegmentHeader) == SCE_EDI_BADSEGMENT) // Abort if this is not a proper segment header int level = 0; if (memcmp(SegmentHeader, "UNH", 3) == 0) // UNH starts blocks level = SC_FOLDLEVELBASE | SC_FOLDLEVELHEADERFLAG; // Check for UNA,B and Z. All others are inside messages else if (!memcmp(SegmentHeader, "UNA", 3) || !memcmp(SegmentHeader, "UNB", 3) || !memcmp(SegmentHeader, "UNZ", 3)) level = SC_FOLDLEVELBASE; else level = SC_FOLDLEVELBASE | 1; pAccess->SetLevel(lineCurrent, level); iIndentPrevious = level & SC_FOLDLEVELNUMBERMASK; } } Sci_Position LexerEDIFACT::InitialiseFromUNA(IDocument *pAccess, Sci_PositionU MaxLength) { MaxLength -= 9; // drop 9 chars, to give us room for UNA:+.? ' Sci_PositionU startPos = 0; startPos += ForwardPastWhitespace(pAccess, 0, MaxLength); if (startPos < MaxLength) { char bufUNA[9]; pAccess->GetCharRange(bufUNA, startPos, 9); // Check it's UNA segment if (!memcmp(bufUNA, "UNA", 3)) { m_chComponent = bufUNA[3]; m_chData = bufUNA[4]; m_chDecimal = bufUNA[5]; m_chRelease = bufUNA[6]; // bufUNA [7] should be space - reserved. m_chSegment = bufUNA[8]; return 0; // success! } } // We failed to find a UNA, so drop to defaults m_chComponent = ':'; m_chData = '+'; m_chDecimal = '.'; m_chRelease = '?'; m_chSegment = '\''; return -1; } Sci_Position LexerEDIFACT::ForwardPastWhitespace(IDocument *pAccess, Sci_Position startPos, Sci_Position MaxLength) const { char c; while (startPos < MaxLength) { pAccess->GetCharRange(&c, startPos, 1); switch (c) { case '\t': case '\r': case '\n': case ' ': break; default: return startPos; } startPos++; } return MaxLength; } int LexerEDIFACT::DetectSegmentHeader(char SegmentHeader[3]) const { if ( SegmentHeader[0] < 'A' || SegmentHeader[0] > 'Z' || SegmentHeader[1] < 'A' || SegmentHeader[1] > 'Z' || SegmentHeader[2] < 'A' || SegmentHeader[2] > 'Z') return SCE_EDI_BADSEGMENT; if (memcmp(SegmentHeader, "UNA", 3) == 0) return SCE_EDI_UNA; if (memcmp(SegmentHeader, "UNH", 3) == 0) return SCE_EDI_UNH; return SCE_EDI_SEGMENTSTART; } // Look backwards for a ' or a document beginning Sci_Position LexerEDIFACT::FindPreviousEnd(IDocument *pAccess, Sci_Position startPos) const { for (char c; startPos > 0; startPos--) { pAccess->GetCharRange(&c, startPos, 1); if (c == m_chSegment) return startPos; } // We didn't find a ', so just go with the beginning return 0; } codequery-0.21.0/scintilla/lexers/LexEScript.cxx000066400000000000000000000200301310136352400216150ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexESCRIPT.cxx ** Lexer for ESCRIPT **/ // Copyright 2003 by Patrizio Bekerle (patrizio@bekerle.com) #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); } static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } static void ColouriseESCRIPTDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; // Do not leak onto next line /*if (initStyle == SCE_ESCRIPT_STRINGEOL) initStyle = SCE_ESCRIPT_DEFAULT;*/ StyleContext sc(startPos, length, initStyle, styler); bool caseSensitive = styler.GetPropertyInt("escript.case.sensitive", 0) != 0; for (; sc.More(); sc.Forward()) { /*if (sc.atLineStart && (sc.state == SCE_ESCRIPT_STRING)) { // Prevent SCE_ESCRIPT_STRINGEOL from leaking back to previous line sc.SetState(SCE_ESCRIPT_STRING); }*/ // Handle line continuation generically. if (sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continue; } } // Determine if the current state should terminate. if (sc.state == SCE_ESCRIPT_OPERATOR || sc.state == SCE_ESCRIPT_BRACE) { sc.SetState(SCE_ESCRIPT_DEFAULT); } else if (sc.state == SCE_ESCRIPT_NUMBER) { if (!IsADigit(sc.ch) || sc.ch != '.') { sc.SetState(SCE_ESCRIPT_DEFAULT); } } else if (sc.state == SCE_ESCRIPT_IDENTIFIER) { if (!IsAWordChar(sc.ch) || (sc.ch == '.')) { char s[100]; if (caseSensitive) { sc.GetCurrent(s, sizeof(s)); } else { sc.GetCurrentLowered(s, sizeof(s)); } // sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_ESCRIPT_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_ESCRIPT_WORD2); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_ESCRIPT_WORD3); // sc.state = SCE_ESCRIPT_IDENTIFIER; } sc.SetState(SCE_ESCRIPT_DEFAULT); } } else if (sc.state == SCE_ESCRIPT_COMMENT) { if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); } } else if (sc.state == SCE_ESCRIPT_COMMENTDOC) { if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); } } else if (sc.state == SCE_ESCRIPT_COMMENTLINE) { if (sc.atLineEnd) { sc.SetState(SCE_ESCRIPT_DEFAULT); } } else if (sc.state == SCE_ESCRIPT_STRING) { if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_ESCRIPT_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_ESCRIPT_DEFAULT) { if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_ESCRIPT_NUMBER); } else if (IsAWordStart(sc.ch) || (sc.ch == '#')) { sc.SetState(SCE_ESCRIPT_IDENTIFIER); } else if (sc.Match('/', '*')) { sc.SetState(SCE_ESCRIPT_COMMENT); sc.Forward(); // Eat the * so it isn't used for the end of the comment } else if (sc.Match('/', '/')) { sc.SetState(SCE_ESCRIPT_COMMENTLINE); } else if (sc.ch == '\"') { sc.SetState(SCE_ESCRIPT_STRING); //} else if (isoperator(static_cast(sc.ch))) { } else if (sc.ch == '+' || sc.ch == '-' || sc.ch == '*' || sc.ch == '/' || sc.ch == '=' || sc.ch == '<' || sc.ch == '>' || sc.ch == '&' || sc.ch == '|' || sc.ch == '!' || sc.ch == '?' || sc.ch == ':') { sc.SetState(SCE_ESCRIPT_OPERATOR); } else if (sc.ch == '{' || sc.ch == '}') { sc.SetState(SCE_ESCRIPT_BRACE); } } } sc.Complete(); } static int classifyFoldPointESCRIPT(const char* s, const char* prevWord) { int lev = 0; if (strcmp(prevWord, "end") == 0) return lev; if ((strcmp(prevWord, "else") == 0 && strcmp(s, "if") == 0) || strcmp(s, "elseif") == 0) return -1; if (strcmp(s, "for") == 0 || strcmp(s, "foreach") == 0 || strcmp(s, "program") == 0 || strcmp(s, "function") == 0 || strcmp(s, "while") == 0 || strcmp(s, "case") == 0 || strcmp(s, "if") == 0 ) { lev = 1; } else if ( strcmp(s, "endfor") == 0 || strcmp(s, "endforeach") == 0 || strcmp(s, "endprogram") == 0 || strcmp(s, "endfunction") == 0 || strcmp(s, "endwhile") == 0 || strcmp(s, "endcase") == 0 || strcmp(s, "endif") == 0 ) { lev = -1; } return lev; } static bool IsStreamCommentStyle(int style) { return style == SCE_ESCRIPT_COMMENT || style == SCE_ESCRIPT_COMMENTDOC || style == SCE_ESCRIPT_COMMENTLINE; } static void FoldESCRIPTDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { //~ bool foldComment = styler.GetPropertyInt("fold.comment") != 0; // Do not know how to fold the comment at the moment. bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; bool foldComment = true; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; Sci_Position lastStart = 0; char prevWord[32] = ""; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (foldComment && IsStreamCommentStyle(style)) { if (!IsStreamCommentStyle(stylePrev)) { levelCurrent++; } else if (!IsStreamCommentStyle(styleNext) && !atEOL) { // Comments don't end at end of line and the next character may be unstyled. levelCurrent--; } } if (foldComment && (style == SCE_ESCRIPT_COMMENTLINE)) { if ((ch == '/') && (chNext == '/')) { char chNext2 = styler.SafeGetCharAt(i + 2); if (chNext2 == '{') { levelCurrent++; } else if (chNext2 == '}') { levelCurrent--; } } } if (stylePrev == SCE_ESCRIPT_DEFAULT && style == SCE_ESCRIPT_WORD3) { // Store last word start point. lastStart = i; } if (style == SCE_ESCRIPT_WORD3) { if(iswordchar(ch) && !iswordchar(chNext)) { char s[32]; Sci_PositionU j; for(j = 0; ( j < 31 ) && ( j < i-lastStart+1 ); j++) { s[j] = static_cast(tolower(styler[lastStart + j])); } s[j] = '\0'; levelCurrent += classifyFoldPointESCRIPT(s, prevWord); strcpy(prevWord, s); } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; strcpy(prevWord, ""); } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const ESCRIPTWordLists[] = { "Primary keywords and identifiers", "Intrinsic functions", "Extended and user defined functions", 0, }; LexerModule lmESCRIPT(SCLEX_ESCRIPT, ColouriseESCRIPTDoc, "escript", FoldESCRIPTDoc, ESCRIPTWordLists); codequery-0.21.0/scintilla/lexers/LexEiffel.cxx000066400000000000000000000167151310136352400214550ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexEiffel.cxx ** Lexer for Eiffel. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool isEiffelOperator(unsigned int ch) { // '.' left out as it is used to make up numbers return ch == '*' || ch == '/' || ch == '\\' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '{' || ch == '}' || ch == '~' || ch == '[' || ch == ']' || ch == ';' || ch == '<' || ch == '>' || ch == ',' || ch == '.' || ch == '^' || ch == '%' || ch == ':' || ch == '!' || ch == '@' || ch == '?'; } static inline bool IsAWordChar(unsigned int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } static inline bool IsAWordStart(unsigned int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } static void ColouriseEiffelDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.state == SCE_EIFFEL_STRINGEOL) { if (sc.ch != '\r' && sc.ch != '\n') { sc.SetState(SCE_EIFFEL_DEFAULT); } } else if (sc.state == SCE_EIFFEL_OPERATOR) { sc.SetState(SCE_EIFFEL_DEFAULT); } else if (sc.state == SCE_EIFFEL_WORD) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (!keywords.InList(s)) { sc.ChangeState(SCE_EIFFEL_IDENTIFIER); } sc.SetState(SCE_EIFFEL_DEFAULT); } } else if (sc.state == SCE_EIFFEL_NUMBER) { if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_EIFFEL_DEFAULT); } } else if (sc.state == SCE_EIFFEL_COMMENTLINE) { if (sc.ch == '\r' || sc.ch == '\n') { sc.SetState(SCE_EIFFEL_DEFAULT); } } else if (sc.state == SCE_EIFFEL_STRING) { if (sc.ch == '%') { sc.Forward(); } else if (sc.ch == '\"') { sc.Forward(); sc.SetState(SCE_EIFFEL_DEFAULT); } } else if (sc.state == SCE_EIFFEL_CHARACTER) { if (sc.ch == '\r' || sc.ch == '\n') { sc.SetState(SCE_EIFFEL_STRINGEOL); } else if (sc.ch == '%') { sc.Forward(); } else if (sc.ch == '\'') { sc.Forward(); sc.SetState(SCE_EIFFEL_DEFAULT); } } if (sc.state == SCE_EIFFEL_DEFAULT) { if (sc.ch == '-' && sc.chNext == '-') { sc.SetState(SCE_EIFFEL_COMMENTLINE); } else if (sc.ch == '\"') { sc.SetState(SCE_EIFFEL_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_EIFFEL_CHARACTER); } else if (IsADigit(sc.ch) || (sc.ch == '.')) { sc.SetState(SCE_EIFFEL_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_EIFFEL_WORD); } else if (isEiffelOperator(sc.ch)) { sc.SetState(SCE_EIFFEL_OPERATOR); } } } sc.Complete(); } static bool IsEiffelComment(Accessor &styler, Sci_Position pos, Sci_Position len) { return len>1 && styler[pos]=='-' && styler[pos+1]=='-'; } static void FoldEiffelDocIndent(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position lengthDoc = startPos + length; // Backtrack to previous line in case need to fix its fold status Sci_Position lineCurrent = styler.GetLine(startPos); if (startPos > 0) { if (lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); } } int spaceFlags = 0; int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, IsEiffelComment); char chNext = styler[startPos]; for (Sci_Position i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == lengthDoc)) { int lev = indentCurrent; int indentNext = styler.IndentAmount(lineCurrent + 1, &spaceFlags, IsEiffelComment); if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { // Only non whitespace lines can be headers if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) { lev |= SC_FOLDLEVELHEADERFLAG; } else if (indentNext & SC_FOLDLEVELWHITEFLAG) { // Line after is blank so check the next - maybe should continue further? int spaceFlags2 = 0; int indentNext2 = styler.IndentAmount(lineCurrent + 2, &spaceFlags2, IsEiffelComment); if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext2 & SC_FOLDLEVELNUMBERMASK)) { lev |= SC_FOLDLEVELHEADERFLAG; } } } indentCurrent = indentNext; styler.SetLevel(lineCurrent, lev); lineCurrent++; } } } static void FoldEiffelDocKeyWords(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { Sci_PositionU lengthDoc = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int stylePrev = 0; int styleNext = styler.StyleAt(startPos); // lastDeferred should be determined by looking back to last keyword in case // the "deferred" is on a line before "class" bool lastDeferred = false; for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if ((stylePrev != SCE_EIFFEL_WORD) && (style == SCE_EIFFEL_WORD)) { char s[20]; Sci_PositionU j = 0; while ((j < (sizeof(s) - 1)) && (iswordchar(styler[i + j]))) { s[j] = styler[i + j]; j++; } s[j] = '\0'; if ( (strcmp(s, "check") == 0) || (strcmp(s, "debug") == 0) || (strcmp(s, "deferred") == 0) || (strcmp(s, "do") == 0) || (strcmp(s, "from") == 0) || (strcmp(s, "if") == 0) || (strcmp(s, "inspect") == 0) || (strcmp(s, "once") == 0) ) levelCurrent++; if (!lastDeferred && (strcmp(s, "class") == 0)) levelCurrent++; if (strcmp(s, "end") == 0) levelCurrent--; lastDeferred = strcmp(s, "deferred") == 0; } if (atEOL) { int lev = levelPrev; if (visibleChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; stylePrev = style; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const eiffelWordListDesc[] = { "Keywords", 0 }; LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent, eiffelWordListDesc); LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords, eiffelWordListDesc); codequery-0.21.0/scintilla/lexers/LexErlang.cxx000066400000000000000000000400671310136352400214700ustar00rootroot00000000000000// Scintilla source code edit control // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. /** @file LexErlang.cxx ** Lexer for Erlang. ** Enhanced by Etienne 'Lenain' Girondel (lenaing@gmail.com) ** Originally wrote by Peter-Henry Mander, ** based on Matlab lexer by José Fonseca. **/ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static int is_radix(int radix, int ch) { int digit; if (36 < radix || 2 > radix) return 0; if (isdigit(ch)) { digit = ch - '0'; } else if (isalnum(ch)) { digit = toupper(ch) - 'A' + 10; } else { return 0; } return (digit < radix); } typedef enum { STATE_NULL, COMMENT, COMMENT_FUNCTION, COMMENT_MODULE, COMMENT_DOC, COMMENT_DOC_MACRO, ATOM_UNQUOTED, ATOM_QUOTED, NODE_NAME_UNQUOTED, NODE_NAME_QUOTED, MACRO_START, MACRO_UNQUOTED, MACRO_QUOTED, RECORD_START, RECORD_UNQUOTED, RECORD_QUOTED, NUMERAL_START, NUMERAL_BASE_VALUE, NUMERAL_FLOAT, NUMERAL_EXPONENT, PREPROCESSOR } atom_parse_state_t; static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (ch != ' ') && (isalnum(ch) || ch == '_'); } static void ColouriseErlangDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { StyleContext sc(startPos, length, initStyle, styler); WordList &reservedWords = *keywordlists[0]; WordList &erlangBIFs = *keywordlists[1]; WordList &erlangPreproc = *keywordlists[2]; WordList &erlangModulesAtt = *keywordlists[3]; WordList &erlangDoc = *keywordlists[4]; WordList &erlangDocMacro = *keywordlists[5]; int radix_digits = 0; int exponent_digits = 0; atom_parse_state_t parse_state = STATE_NULL; atom_parse_state_t old_parse_state = STATE_NULL; bool to_late_to_comment = false; char cur[100]; int old_style = SCE_ERLANG_DEFAULT; styler.StartAt(startPos); for (; sc.More(); sc.Forward()) { int style = SCE_ERLANG_DEFAULT; if (STATE_NULL != parse_state) { switch (parse_state) { case STATE_NULL : sc.SetState(SCE_ERLANG_DEFAULT); break; /* COMMENTS ------------------------------------------------------*/ case COMMENT : { if (sc.ch != '%') { to_late_to_comment = true; } else if (!to_late_to_comment && sc.ch == '%') { // Switch to comment level 2 (Function) sc.ChangeState(SCE_ERLANG_COMMENT_FUNCTION); old_style = SCE_ERLANG_COMMENT_FUNCTION; parse_state = COMMENT_FUNCTION; sc.Forward(); } } // V--- Falling through! case COMMENT_FUNCTION : { if (sc.ch != '%') { to_late_to_comment = true; } else if (!to_late_to_comment && sc.ch == '%') { // Switch to comment level 3 (Module) sc.ChangeState(SCE_ERLANG_COMMENT_MODULE); old_style = SCE_ERLANG_COMMENT_MODULE; parse_state = COMMENT_MODULE; sc.Forward(); } } // V--- Falling through! case COMMENT_MODULE : { if (parse_state != COMMENT) { // Search for comment documentation if (sc.chNext == '@') { old_parse_state = parse_state; parse_state = ('{' == sc.ch) ? COMMENT_DOC_MACRO : COMMENT_DOC; sc.ForwardSetState(sc.state); } } // All comments types fall here. if (sc.atLineEnd) { to_late_to_comment = false; sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case COMMENT_DOC : // V--- Falling through! case COMMENT_DOC_MACRO : { if (!isalnum(sc.ch)) { // Try to match documentation comment sc.GetCurrent(cur, sizeof(cur)); if (parse_state == COMMENT_DOC_MACRO && erlangDocMacro.InList(cur)) { sc.ChangeState(SCE_ERLANG_COMMENT_DOC_MACRO); while (sc.ch != '}' && !sc.atLineEnd) sc.Forward(); } else if (erlangDoc.InList(cur)) { sc.ChangeState(SCE_ERLANG_COMMENT_DOC); } else { sc.ChangeState(old_style); } // Switch back to old state sc.SetState(old_style); parse_state = old_parse_state; } if (sc.atLineEnd) { to_late_to_comment = false; sc.ChangeState(old_style); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* -------------------------------------------------------------- */ /* Atoms ---------------------------------------------------------*/ case ATOM_UNQUOTED : { if ('@' == sc.ch){ parse_state = NODE_NAME_UNQUOTED; } else if (sc.ch == ':') { // Searching for module name if (sc.chNext == ' ') { // error sc.ChangeState(SCE_ERLANG_UNKNOWN); parse_state = STATE_NULL; } else { sc.Forward(); if (isalnum(sc.ch)) { sc.GetCurrent(cur, sizeof(cur)); sc.ChangeState(SCE_ERLANG_MODULES); sc.SetState(SCE_ERLANG_MODULES); } } } else if (!IsAWordChar(sc.ch)) { sc.GetCurrent(cur, sizeof(cur)); if (reservedWords.InList(cur)) { style = SCE_ERLANG_KEYWORD; } else if (erlangBIFs.InList(cur) && strcmp(cur,"erlang:")){ style = SCE_ERLANG_BIFS; } else if (sc.ch == '(' || '/' == sc.ch){ style = SCE_ERLANG_FUNCTION_NAME; } else { style = SCE_ERLANG_ATOM; } sc.ChangeState(style); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case ATOM_QUOTED : { if ( '@' == sc.ch ){ parse_state = NODE_NAME_QUOTED; } else if ('\'' == sc.ch && '\\' != sc.chPrev) { sc.ChangeState(SCE_ERLANG_ATOM); sc.ForwardSetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* -------------------------------------------------------------- */ /* Node names ----------------------------------------------------*/ case NODE_NAME_UNQUOTED : { if ('@' == sc.ch) { sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } else if (!IsAWordChar(sc.ch)) { sc.ChangeState(SCE_ERLANG_NODE_NAME); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case NODE_NAME_QUOTED : { if ('@' == sc.ch) { sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } else if ('\'' == sc.ch && '\\' != sc.chPrev) { sc.ChangeState(SCE_ERLANG_NODE_NAME_QUOTED); sc.ForwardSetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* -------------------------------------------------------------- */ /* Records -------------------------------------------------------*/ case RECORD_START : { if ('\'' == sc.ch) { parse_state = RECORD_QUOTED; } else if (isalpha(sc.ch) && islower(sc.ch)) { parse_state = RECORD_UNQUOTED; } else { // error sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case RECORD_UNQUOTED : { if (!IsAWordChar(sc.ch)) { sc.ChangeState(SCE_ERLANG_RECORD); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case RECORD_QUOTED : { if ('\'' == sc.ch && '\\' != sc.chPrev) { sc.ChangeState(SCE_ERLANG_RECORD_QUOTED); sc.ForwardSetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* -------------------------------------------------------------- */ /* Macros --------------------------------------------------------*/ case MACRO_START : { if ('\'' == sc.ch) { parse_state = MACRO_QUOTED; } else if (isalpha(sc.ch)) { parse_state = MACRO_UNQUOTED; } else { // error sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case MACRO_UNQUOTED : { if (!IsAWordChar(sc.ch)) { sc.ChangeState(SCE_ERLANG_MACRO); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; case MACRO_QUOTED : { if ('\'' == sc.ch && '\\' != sc.chPrev) { sc.ChangeState(SCE_ERLANG_MACRO_QUOTED); sc.ForwardSetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* -------------------------------------------------------------- */ /* Numerics ------------------------------------------------------*/ /* Simple integer */ case NUMERAL_START : { if (isdigit(sc.ch)) { radix_digits *= 10; radix_digits += sc.ch - '0'; // Assuming ASCII here! } else if ('#' == sc.ch) { if (2 > radix_digits || 36 < radix_digits) { sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } else { parse_state = NUMERAL_BASE_VALUE; } } else if ('.' == sc.ch && isdigit(sc.chNext)) { radix_digits = 0; parse_state = NUMERAL_FLOAT; } else if ('e' == sc.ch || 'E' == sc.ch) { exponent_digits = 0; parse_state = NUMERAL_EXPONENT; } else { radix_digits = 0; sc.ChangeState(SCE_ERLANG_NUMBER); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* Integer in other base than 10 (x#yyy) */ case NUMERAL_BASE_VALUE : { if (!is_radix(radix_digits,sc.ch)) { radix_digits = 0; if (!isalnum(sc.ch)) sc.ChangeState(SCE_ERLANG_NUMBER); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* Float (x.yyy) */ case NUMERAL_FLOAT : { if ('e' == sc.ch || 'E' == sc.ch) { exponent_digits = 0; parse_state = NUMERAL_EXPONENT; } else if (!isdigit(sc.ch)) { sc.ChangeState(SCE_ERLANG_NUMBER); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; /* Exponent, either integer or float (xEyy, x.yyEzzz) */ case NUMERAL_EXPONENT : { if (('-' == sc.ch || '+' == sc.ch) && (isdigit(sc.chNext))) { sc.Forward(); } else if (!isdigit(sc.ch)) { if (0 < exponent_digits) sc.ChangeState(SCE_ERLANG_NUMBER); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } else { ++exponent_digits; } } break; /* -------------------------------------------------------------- */ /* Preprocessor --------------------------------------------------*/ case PREPROCESSOR : { if (!IsAWordChar(sc.ch)) { sc.GetCurrent(cur, sizeof(cur)); if (erlangPreproc.InList(cur)) { style = SCE_ERLANG_PREPROC; } else if (erlangModulesAtt.InList(cur)) { style = SCE_ERLANG_MODULES_ATT; } sc.ChangeState(style); sc.SetState(SCE_ERLANG_DEFAULT); parse_state = STATE_NULL; } } break; } } /* End of : STATE_NULL != parse_state */ else { switch (sc.state) { case SCE_ERLANG_VARIABLE : { if (!IsAWordChar(sc.ch)) sc.SetState(SCE_ERLANG_DEFAULT); } break; case SCE_ERLANG_STRING : { if (sc.ch == '\"' && sc.chPrev != '\\') sc.ForwardSetState(SCE_ERLANG_DEFAULT); } break; case SCE_ERLANG_COMMENT : { if (sc.atLineEnd) sc.SetState(SCE_ERLANG_DEFAULT); } break; case SCE_ERLANG_CHARACTER : { if (sc.chPrev == '\\') { sc.ForwardSetState(SCE_ERLANG_DEFAULT); } else if (sc.ch != '\\') { sc.ForwardSetState(SCE_ERLANG_DEFAULT); } } break; case SCE_ERLANG_OPERATOR : { if (sc.chPrev == '.') { if (sc.ch == '*' || sc.ch == '/' || sc.ch == '\\' || sc.ch == '^') { sc.ForwardSetState(SCE_ERLANG_DEFAULT); } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_ERLANG_DEFAULT); } else { sc.SetState(SCE_ERLANG_DEFAULT); } } else { sc.SetState(SCE_ERLANG_DEFAULT); } } break; } } if (sc.state == SCE_ERLANG_DEFAULT) { bool no_new_state = false; switch (sc.ch) { case '\"' : sc.SetState(SCE_ERLANG_STRING); break; case '$' : sc.SetState(SCE_ERLANG_CHARACTER); break; case '%' : { parse_state = COMMENT; sc.SetState(SCE_ERLANG_COMMENT); } break; case '#' : { parse_state = RECORD_START; sc.SetState(SCE_ERLANG_UNKNOWN); } break; case '?' : { parse_state = MACRO_START; sc.SetState(SCE_ERLANG_UNKNOWN); } break; case '\'' : { parse_state = ATOM_QUOTED; sc.SetState(SCE_ERLANG_UNKNOWN); } break; case '+' : case '-' : { if (IsADigit(sc.chNext)) { parse_state = NUMERAL_START; radix_digits = 0; sc.SetState(SCE_ERLANG_UNKNOWN); } else if (sc.ch != '+') { parse_state = PREPROCESSOR; sc.SetState(SCE_ERLANG_UNKNOWN); } } break; default : no_new_state = true; } if (no_new_state) { if (isdigit(sc.ch)) { parse_state = NUMERAL_START; radix_digits = sc.ch - '0'; sc.SetState(SCE_ERLANG_UNKNOWN); } else if (isupper(sc.ch) || '_' == sc.ch) { sc.SetState(SCE_ERLANG_VARIABLE); } else if (isalpha(sc.ch)) { parse_state = ATOM_UNQUOTED; sc.SetState(SCE_ERLANG_UNKNOWN); } else if (isoperator(static_cast(sc.ch)) || sc.ch == '\\') { sc.SetState(SCE_ERLANG_OPERATOR); } } } } sc.Complete(); } static int ClassifyErlangFoldPoint( Accessor &styler, int styleNext, Sci_Position keyword_start ) { int lev = 0; if (styler.Match(keyword_start,"case") || ( styler.Match(keyword_start,"fun") && (SCE_ERLANG_FUNCTION_NAME != styleNext) ) || styler.Match(keyword_start,"if") || styler.Match(keyword_start,"query") || styler.Match(keyword_start,"receive") ) { ++lev; } else if (styler.Match(keyword_start,"end")) { --lev; } return lev; } static void FoldErlangDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList** /*keywordlists*/, Accessor &styler ) { Sci_PositionU endPos = startPos + length; Sci_Position currentLine = styler.GetLine(startPos); int lev; int previousLevel = styler.LevelAt(currentLine) & SC_FOLDLEVELNUMBERMASK; int currentLevel = previousLevel; int styleNext = styler.StyleAt(startPos); int style = initStyle; int stylePrev; Sci_Position keyword_start = 0; char ch; char chNext = styler.SafeGetCharAt(startPos); bool atEOL; for (Sci_PositionU i = startPos; i < endPos; i++) { ch = chNext; chNext = styler.SafeGetCharAt(i + 1); // Get styles stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); atEOL = ((ch == '\r') && (chNext != '\n')) || (ch == '\n'); if (stylePrev != SCE_ERLANG_KEYWORD && style == SCE_ERLANG_KEYWORD) { keyword_start = i; } // Fold on keywords if (stylePrev == SCE_ERLANG_KEYWORD && style != SCE_ERLANG_KEYWORD && style != SCE_ERLANG_ATOM ) { currentLevel += ClassifyErlangFoldPoint(styler, styleNext, keyword_start); } // Fold on comments if (style == SCE_ERLANG_COMMENT || style == SCE_ERLANG_COMMENT_MODULE || style == SCE_ERLANG_COMMENT_FUNCTION) { if (ch == '%' && chNext == '{') { currentLevel++; } else if (ch == '%' && chNext == '}') { currentLevel--; } } // Fold on braces if (style == SCE_ERLANG_OPERATOR) { if (ch == '{' || ch == '(' || ch == '[') { currentLevel++; } else if (ch == '}' || ch == ')' || ch == ']') { currentLevel--; } } if (atEOL) { lev = previousLevel; if (currentLevel > previousLevel) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(currentLine)) styler.SetLevel(currentLine, lev); currentLine++; previousLevel = currentLevel; } } // Fill in the real level of the next line, keeping the current flags as they will be filled in later styler.SetLevel(currentLine, previousLevel | (styler.LevelAt(currentLine) & ~SC_FOLDLEVELNUMBERMASK)); } static const char * const erlangWordListDesc[] = { "Erlang Reserved words", "Erlang BIFs", "Erlang Preprocessor", "Erlang Module Attributes", "Erlang Documentation", "Erlang Documentation Macro", 0 }; LexerModule lmErlang( SCLEX_ERLANG, ColouriseErlangDoc, "erlang", FoldErlangDoc, erlangWordListDesc); codequery-0.21.0/scintilla/lexers/LexErrorList.cxx000066400000000000000000000317231310136352400222040ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexErrorList.cxx ** Lexer for error lists. Used for the output pane in SciTE. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static bool strstart(const char *haystack, const char *needle) { return strncmp(haystack, needle, strlen(needle)) == 0; } static bool Is0To9(char ch) { return (ch >= '0') && (ch <= '9'); } static bool Is1To9(char ch) { return (ch >= '1') && (ch <= '9'); } static bool IsAlphabetic(int ch) { return IsASCII(ch) && isalpha(ch); } static inline bool AtEOL(Accessor &styler, Sci_PositionU i) { return (styler[i] == '\n') || ((styler[i] == '\r') && (styler.SafeGetCharAt(i + 1) != '\n')); } static int RecogniseErrorListLine(const char *lineBuffer, Sci_PositionU lengthLine, Sci_Position &startValue) { if (lineBuffer[0] == '>') { // Command or return status return SCE_ERR_CMD; } else if (lineBuffer[0] == '<') { // Diff removal. return SCE_ERR_DIFF_DELETION; } else if (lineBuffer[0] == '!') { return SCE_ERR_DIFF_CHANGED; } else if (lineBuffer[0] == '+') { if (strstart(lineBuffer, "+++ ")) { return SCE_ERR_DIFF_MESSAGE; } else { return SCE_ERR_DIFF_ADDITION; } } else if (lineBuffer[0] == '-') { if (strstart(lineBuffer, "--- ")) { return SCE_ERR_DIFF_MESSAGE; } else { return SCE_ERR_DIFF_DELETION; } } else if (strstart(lineBuffer, "cf90-")) { // Absoft Pro Fortran 90/95 v8.2 error and/or warning message return SCE_ERR_ABSF; } else if (strstart(lineBuffer, "fortcom:")) { // Intel Fortran Compiler v8.0 error/warning message return SCE_ERR_IFORT; } else if (strstr(lineBuffer, "File \"") && strstr(lineBuffer, ", line ")) { return SCE_ERR_PYTHON; } else if (strstr(lineBuffer, " in ") && strstr(lineBuffer, " on line ")) { return SCE_ERR_PHP; } else if ((strstart(lineBuffer, "Error ") || strstart(lineBuffer, "Warning ")) && strstr(lineBuffer, " at (") && strstr(lineBuffer, ") : ") && (strstr(lineBuffer, " at (") < strstr(lineBuffer, ") : "))) { // Intel Fortran Compiler error/warning message return SCE_ERR_IFC; } else if (strstart(lineBuffer, "Error ")) { // Borland error message return SCE_ERR_BORLAND; } else if (strstart(lineBuffer, "Warning ")) { // Borland warning message return SCE_ERR_BORLAND; } else if (strstr(lineBuffer, "at line ") && (strstr(lineBuffer, "at line ") < (lineBuffer + lengthLine)) && strstr(lineBuffer, "file ") && (strstr(lineBuffer, "file ") < (lineBuffer + lengthLine))) { // Lua 4 error message return SCE_ERR_LUA; } else if (strstr(lineBuffer, " at ") && (strstr(lineBuffer, " at ") < (lineBuffer + lengthLine)) && strstr(lineBuffer, " line ") && (strstr(lineBuffer, " line ") < (lineBuffer + lengthLine)) && (strstr(lineBuffer, " at ") + 4 < (strstr(lineBuffer, " line ")))) { // perl error message: // at line return SCE_ERR_PERL; } else if ((lengthLine >= 6) && (memcmp(lineBuffer, " at ", 6) == 0) && strstr(lineBuffer, ":line ")) { // A .NET traceback return SCE_ERR_NET; } else if (strstart(lineBuffer, "Line ") && strstr(lineBuffer, ", file ")) { // Essential Lahey Fortran error message return SCE_ERR_ELF; } else if (strstart(lineBuffer, "line ") && strstr(lineBuffer, " column ")) { // HTML tidy style: line 42 column 1 return SCE_ERR_TIDY; } else if (strstart(lineBuffer, "\tat ") && strstr(lineBuffer, "(") && strstr(lineBuffer, ".java:")) { // Java stack back trace return SCE_ERR_JAVA_STACK; } else if (strstart(lineBuffer, "In file included from ") || strstart(lineBuffer, " from ")) { // GCC showing include path to following error return SCE_ERR_GCC_INCLUDED_FROM; } else if (strstr(lineBuffer, "warning LNK")) { // Microsoft linker warning: // { : } warning LNK9999 return SCE_ERR_MS; } else { // Look for one of the following formats: // GCC: :: // Microsoft: () : // Common: (): warning|error|note|remark|catastrophic|fatal // Common: () warning|error|note|remark|catastrophic|fatal // Microsoft: (,) // CTags: \t\t // Lua 5 traceback: \t:: // Lua 5.1: : :: bool initialTab = (lineBuffer[0] == '\t'); bool initialColonPart = false; bool canBeCtags = !initialTab; // For ctags must have an identifier with no spaces then a tab enum { stInitial, stGccStart, stGccDigit, stGccColumn, stGcc, stMsStart, stMsDigit, stMsBracket, stMsVc, stMsDigitComma, stMsDotNet, stCtagsStart, stCtagsFile, stCtagsStartString, stCtagsStringDollar, stCtags, stUnrecognized } state = stInitial; for (Sci_PositionU i = 0; i < lengthLine; i++) { char ch = lineBuffer[i]; char chNext = ' '; if ((i + 1) < lengthLine) chNext = lineBuffer[i + 1]; if (state == stInitial) { if (ch == ':') { // May be GCC, or might be Lua 5 (Lua traceback same but with tab prefix) if ((chNext != '\\') && (chNext != '/') && (chNext != ' ')) { // This check is not completely accurate as may be on // GTK+ with a file name that includes ':'. state = stGccStart; } else if (chNext == ' ') { // indicates a Lua 5.1 error message initialColonPart = true; } } else if ((ch == '(') && Is1To9(chNext) && (!initialTab)) { // May be Microsoft // Check against '0' often removes phone numbers state = stMsStart; } else if ((ch == '\t') && canBeCtags) { // May be CTags state = stCtagsStart; } else if (ch == ' ') { canBeCtags = false; } } else if (state == stGccStart) { // : state = Is0To9(ch) ? stGccDigit : stUnrecognized; } else if (state == stGccDigit) { // : if (ch == ':') { state = stGccColumn; // :9.*: is GCC startValue = i + 1; } else if (!Is0To9(ch)) { state = stUnrecognized; } } else if (state == stGccColumn) { // :: if (!Is0To9(ch)) { state = stGcc; if (ch == ':') startValue = i + 1; break; } } else if (state == stMsStart) { // ( state = Is0To9(ch) ? stMsDigit : stUnrecognized; } else if (state == stMsDigit) { // ( if (ch == ',') { state = stMsDigitComma; } else if (ch == ')') { state = stMsBracket; } else if ((ch != ' ') && !Is0To9(ch)) { state = stUnrecognized; } } else if (state == stMsBracket) { // () if ((ch == ' ') && (chNext == ':')) { state = stMsVc; } else if ((ch == ':' && chNext == ' ') || (ch == ' ')) { // Possibly Delphi.. don't test against chNext as it's one of the strings below. char word[512]; Sci_PositionU j, chPos; unsigned numstep; chPos = 0; if (ch == ' ') numstep = 1; // ch was ' ', handle as if it's a delphi errorline, only add 1 to i. else numstep = 2; // otherwise add 2. for (j = i + numstep; j < lengthLine && IsAlphabetic(lineBuffer[j]) && chPos < sizeof(word) - 1; j++) word[chPos++] = lineBuffer[j]; word[chPos] = 0; if (!CompareCaseInsensitive(word, "error") || !CompareCaseInsensitive(word, "warning") || !CompareCaseInsensitive(word, "fatal") || !CompareCaseInsensitive(word, "catastrophic") || !CompareCaseInsensitive(word, "note") || !CompareCaseInsensitive(word, "remark")) { state = stMsVc; } else { state = stUnrecognized; } } else { state = stUnrecognized; } } else if (state == stMsDigitComma) { // (, if (ch == ')') { state = stMsDotNet; break; } else if ((ch != ' ') && !Is0To9(ch)) { state = stUnrecognized; } } else if (state == stCtagsStart) { if (ch == '\t') { state = stCtagsFile; } } else if (state == stCtagsFile) { if ((lineBuffer[i - 1] == '\t') && ((ch == '/' && chNext == '^') || Is0To9(ch))) { state = stCtags; break; } else if ((ch == '/') && (chNext == '^')) { state = stCtagsStartString; } } else if ((state == stCtagsStartString) && ((lineBuffer[i] == '$') && (lineBuffer[i + 1] == '/'))) { state = stCtagsStringDollar; break; } } if (state == stGcc) { return initialColonPart ? SCE_ERR_LUA : SCE_ERR_GCC; } else if ((state == stMsVc) || (state == stMsDotNet)) { return SCE_ERR_MS; } else if ((state == stCtagsStringDollar) || (state == stCtags)) { return SCE_ERR_CTAG; } else if (initialColonPart && strstr(lineBuffer, ": warning C")) { // Microsoft warning without line number // : warning C9999 return SCE_ERR_MS; } else { return SCE_ERR_DEFAULT; } } } #define CSI "\033[" namespace { bool SequenceEnd(int ch) { return (ch == 0) || ((ch >= '@') && (ch <= '~')); } int StyleFromSequence(const char *seq) { int bold = 0; int colour = 0; while (!SequenceEnd(*seq)) { if (Is0To9(*seq)) { int base = *seq - '0'; if (Is0To9(seq[1])) { base = base * 10; base += seq[1] - '0'; seq++; } if (base == 0) { colour = 0; bold = 0; } else if (base == 1) { bold = 1; } else if (base >= 30 && base <= 37) { colour = base - 30; } } seq++; } return SCE_ERR_ES_BLACK + bold * 8 + colour; } } static void ColouriseErrorListLine( char *lineBuffer, Sci_PositionU lengthLine, Sci_PositionU endPos, Accessor &styler, bool valueSeparate, bool escapeSequences) { Sci_Position startValue = -1; int style = RecogniseErrorListLine(lineBuffer, lengthLine, startValue); if (escapeSequences && strstr(lineBuffer, CSI)) { const int startPos = endPos - lengthLine; const char *linePortion = lineBuffer; int startPortion = startPos; int portionStyle = style; while (const char *startSeq = strstr(linePortion, CSI)) { if (startSeq > linePortion) { styler.ColourTo(startPortion + static_cast(startSeq - linePortion), portionStyle); } const char *endSeq = startSeq + 2; while (!SequenceEnd(*endSeq)) endSeq++; const int endSeqPosition = startPortion + static_cast(endSeq - linePortion) + 1; switch (*endSeq) { case 0: styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN); return; case 'm': // Colour command styler.ColourTo(endSeqPosition, SCE_ERR_ESCSEQ); portionStyle = StyleFromSequence(startSeq+2); break; case 'K': // Erase to end of line -> ignore styler.ColourTo(endSeqPosition, SCE_ERR_ESCSEQ); break; default: styler.ColourTo(endSeqPosition, SCE_ERR_ESCSEQ_UNKNOWN); portionStyle = style; } startPortion = endSeqPosition; linePortion = endSeq + 1; } styler.ColourTo(endPos, portionStyle); } else { if (valueSeparate && (startValue >= 0)) { styler.ColourTo(endPos - (lengthLine - startValue), style); styler.ColourTo(endPos, SCE_ERR_VALUE); } else { styler.ColourTo(endPos, style); } } } static void ColouriseErrorListDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { char lineBuffer[10000]; styler.StartAt(startPos); styler.StartSegment(startPos); Sci_PositionU linePos = 0; // property lexer.errorlist.value.separate // For lines in the output pane that are matches from Find in Files or GCC-style // diagnostics, style the path and line number separately from the rest of the // line with style 21 used for the rest of the line. // This allows matched text to be more easily distinguished from its location. bool valueSeparate = styler.GetPropertyInt("lexer.errorlist.value.separate", 0) != 0; // property lexer.errorlist.escape.sequences // Set to 1 to interpret escape sequences. const bool escapeSequences = styler.GetPropertyInt("lexer.errorlist.escape.sequences") != 0; for (Sci_PositionU i = startPos; i < startPos + length; i++) { lineBuffer[linePos++] = styler[i]; if (AtEOL(styler, i) || (linePos >= sizeof(lineBuffer) - 1)) { // End of line (or of line buffer) met, colourise it lineBuffer[linePos] = '\0'; ColouriseErrorListLine(lineBuffer, linePos, i, styler, valueSeparate, escapeSequences); linePos = 0; } } if (linePos > 0) { // Last line does not have ending characters lineBuffer[linePos] = '\0'; ColouriseErrorListLine(lineBuffer, linePos, startPos + length - 1, styler, valueSeparate, escapeSequences); } } static const char *const emptyWordListDesc[] = { 0 }; LexerModule lmErrorList(SCLEX_ERRORLIST, ColouriseErrorListDoc, "errorlist", 0, emptyWordListDesc); codequery-0.21.0/scintilla/lexers/LexFlagship.cxx000066400000000000000000000300441310136352400220070ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexFlagShip.cxx ** Lexer for Harbour and FlagShip. ** (Syntactically compatible to other xBase dialects, like Clipper, dBase, Clip, FoxPro etc.) **/ // Copyright 2005 by Randy Butler // Copyright 2010 by Xavi (Harbour) // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Extended to accept accented characters static inline bool IsAWordChar(int ch) { return ch >= 0x80 || (isalnum(ch) || ch == '_'); } static void ColouriseFlagShipDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; WordList &keywords5 = *keywordlists[4]; // property lexer.flagship.styling.within.preprocessor // For Harbour code, determines whether all preprocessor code is styled in the preprocessor style (0) or only from the // initial # to the end of the command word(1, the default). It also determines how to present text, dump, and disabled code. bool stylingWithinPreprocessor = styler.GetPropertyInt("lexer.flagship.styling.within.preprocessor", 1) != 0; CharacterSet setDoxygen(CharacterSet::setAlpha, "$@\\&<>#{}[]"); int visibleChars = 0; int closeStringChar = 0; int styleBeforeDCKeyword = SCE_FS_DEFAULT; bool bEnableCode = initStyle < SCE_FS_DISABLEDCODE; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Determine if the current state should terminate. switch (sc.state) { case SCE_FS_OPERATOR: case SCE_FS_OPERATOR_C: case SCE_FS_WORDOPERATOR: sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); break; case SCE_FS_IDENTIFIER: case SCE_FS_IDENTIFIER_C: if (!IsAWordChar(sc.ch)) { char s[64]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(bEnableCode ? SCE_FS_KEYWORD : SCE_FS_KEYWORD_C); } else if (keywords2.InList(s)) { sc.ChangeState(bEnableCode ? SCE_FS_KEYWORD2 : SCE_FS_KEYWORD2_C); } else if (bEnableCode && keywords3.InList(s)) { sc.ChangeState(SCE_FS_KEYWORD3); } else if (bEnableCode && keywords4.InList(s)) { sc.ChangeState(SCE_FS_KEYWORD4); }// Else, it is really an identifier... sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } break; case SCE_FS_NUMBER: if (!IsAWordChar(sc.ch) && !(sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_FS_DEFAULT); } break; case SCE_FS_NUMBER_C: if (!IsAWordChar(sc.ch) && sc.ch != '.') { sc.SetState(SCE_FS_DEFAULT_C); } break; case SCE_FS_CONSTANT: if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_FS_DEFAULT); } break; case SCE_FS_STRING: case SCE_FS_STRING_C: if (sc.ch == closeStringChar) { sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } else if (sc.atLineEnd) { sc.ChangeState(bEnableCode ? SCE_FS_STRINGEOL : SCE_FS_STRINGEOL_C); } break; case SCE_FS_STRINGEOL: case SCE_FS_STRINGEOL_C: if (sc.atLineStart) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } break; case SCE_FS_COMMENTDOC: case SCE_FS_COMMENTDOC_C: if (sc.Match('*', '/')) { sc.Forward(); sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '*') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = bEnableCode ? SCE_FS_COMMENTDOC : SCE_FS_COMMENTDOC_C; sc.SetState(SCE_FS_COMMENTDOCKEYWORD); } } break; case SCE_FS_COMMENT: case SCE_FS_COMMENTLINE: if (sc.atLineStart) { sc.SetState(SCE_FS_DEFAULT); } break; case SCE_FS_COMMENTLINEDOC: case SCE_FS_COMMENTLINEDOC_C: if (sc.atLineStart) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } else if (sc.ch == '@' || sc.ch == '\\') { // JavaDoc and Doxygen support // Verify that we have the conditions to mark a comment-doc-keyword if ((IsASpace(sc.chPrev) || sc.chPrev == '/' || sc.chPrev == '!') && (!IsASpace(sc.chNext))) { styleBeforeDCKeyword = bEnableCode ? SCE_FS_COMMENTLINEDOC : SCE_FS_COMMENTLINEDOC_C; sc.SetState(SCE_FS_COMMENTDOCKEYWORD); } } break; case SCE_FS_COMMENTDOCKEYWORD: if ((styleBeforeDCKeyword == SCE_FS_COMMENTDOC || styleBeforeDCKeyword == SCE_FS_COMMENTDOC_C) && sc.Match('*', '/')) { sc.ChangeState(SCE_FS_COMMENTDOCKEYWORDERROR); sc.Forward(); sc.ForwardSetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } else if (!setDoxygen.Contains(sc.ch)) { char s[64]; sc.GetCurrentLowered(s, sizeof(s)); if (!IsASpace(sc.ch) || !keywords5.InList(s + 1)) { sc.ChangeState(SCE_FS_COMMENTDOCKEYWORDERROR); } sc.SetState(styleBeforeDCKeyword); } break; case SCE_FS_PREPROCESSOR: case SCE_FS_PREPROCESSOR_C: if (sc.atLineEnd) { if (!(sc.chPrev == ';' || sc.GetRelative(-2) == ';')) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } } else if (stylingWithinPreprocessor) { if (IsASpaceOrTab(sc.ch)) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } } else if (sc.Match('/', '*') || sc.Match('/', '/') || sc.Match('&', '&')) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } break; case SCE_FS_DISABLEDCODE: if (sc.ch == '#' && visibleChars == 0) { sc.SetState(bEnableCode ? SCE_FS_PREPROCESSOR : SCE_FS_PREPROCESSOR_C); do { // Skip whitespace between # and preprocessor word sc.Forward(); } while (IsASpaceOrTab(sc.ch) && sc.More()); if (sc.MatchIgnoreCase("pragma")) { sc.Forward(6); do { // Skip more whitespace until keyword sc.Forward(); } while (IsASpaceOrTab(sc.ch) && sc.More()); if (sc.MatchIgnoreCase("enddump") || sc.MatchIgnoreCase("__endtext")) { bEnableCode = true; sc.SetState(SCE_FS_DISABLEDCODE); sc.Forward(sc.ch == '_' ? 8 : 6); sc.ForwardSetState(SCE_FS_DEFAULT); } else { sc.ChangeState(SCE_FS_DISABLEDCODE); } } else { sc.ChangeState(SCE_FS_DISABLEDCODE); } } break; case SCE_FS_DATE: if (sc.ch == '}') { sc.ForwardSetState(SCE_FS_DEFAULT); } else if (sc.atLineEnd) { sc.ChangeState(SCE_FS_STRINGEOL); } } // Determine if a new state should be entered. if (sc.state == SCE_FS_DEFAULT || sc.state == SCE_FS_DEFAULT_C) { if (bEnableCode && (sc.MatchIgnoreCase(".and.") || sc.MatchIgnoreCase(".not."))) { sc.SetState(SCE_FS_WORDOPERATOR); sc.Forward(4); } else if (bEnableCode && sc.MatchIgnoreCase(".or.")) { sc.SetState(SCE_FS_WORDOPERATOR); sc.Forward(3); } else if (bEnableCode && (sc.MatchIgnoreCase(".t.") || sc.MatchIgnoreCase(".f.") || (!IsAWordChar(sc.GetRelative(3)) && sc.MatchIgnoreCase("nil")))) { sc.SetState(SCE_FS_CONSTANT); sc.Forward(2); } else if (sc.Match('/', '*')) { sc.SetState(bEnableCode ? SCE_FS_COMMENTDOC : SCE_FS_COMMENTDOC_C); sc.Forward(); } else if (bEnableCode && sc.Match('&', '&')) { sc.SetState(SCE_FS_COMMENTLINE); sc.Forward(); } else if (sc.Match('/', '/')) { sc.SetState(bEnableCode ? SCE_FS_COMMENTLINEDOC : SCE_FS_COMMENTLINEDOC_C); sc.Forward(); } else if (bEnableCode && sc.ch == '*' && visibleChars == 0) { sc.SetState(SCE_FS_COMMENT); } else if (sc.ch == '\"' || sc.ch == '\'') { sc.SetState(bEnableCode ? SCE_FS_STRING : SCE_FS_STRING_C); closeStringChar = sc.ch; } else if (closeStringChar == '>' && sc.ch == '<') { sc.SetState(bEnableCode ? SCE_FS_STRING : SCE_FS_STRING_C); } else if (sc.ch == '#' && visibleChars == 0) { sc.SetState(bEnableCode ? SCE_FS_PREPROCESSOR : SCE_FS_PREPROCESSOR_C); do { // Skip whitespace between # and preprocessor word sc.Forward(); } while (IsASpaceOrTab(sc.ch) && sc.More()); if (sc.atLineEnd) { sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C); } else if (sc.MatchIgnoreCase("include")) { if (stylingWithinPreprocessor) { closeStringChar = '>'; } } else if (sc.MatchIgnoreCase("pragma")) { sc.Forward(6); do { // Skip more whitespace until keyword sc.Forward(); } while (IsASpaceOrTab(sc.ch) && sc.More()); if (sc.MatchIgnoreCase("begindump") || sc.MatchIgnoreCase("__cstream")) { bEnableCode = false; if (stylingWithinPreprocessor) { sc.SetState(SCE_FS_DISABLEDCODE); sc.Forward(8); sc.ForwardSetState(SCE_FS_DEFAULT_C); } else { sc.SetState(SCE_FS_DISABLEDCODE); } } else if (sc.MatchIgnoreCase("enddump") || sc.MatchIgnoreCase("__endtext")) { bEnableCode = true; sc.SetState(SCE_FS_DISABLEDCODE); sc.Forward(sc.ch == '_' ? 8 : 6); sc.ForwardSetState(SCE_FS_DEFAULT); } } } else if (bEnableCode && sc.ch == '{') { Sci_Position p = 0; int chSeek; Sci_PositionU endPos(startPos + length); do { // Skip whitespace chSeek = sc.GetRelative(++p); } while (IsASpaceOrTab(chSeek) && (sc.currentPos + p < endPos)); if (chSeek == '^') { sc.SetState(SCE_FS_DATE); } else { sc.SetState(SCE_FS_OPERATOR); } } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(bEnableCode ? SCE_FS_NUMBER : SCE_FS_NUMBER_C); } else if (IsAWordChar(sc.ch)) { sc.SetState(bEnableCode ? SCE_FS_IDENTIFIER : SCE_FS_IDENTIFIER_C); } else if (isoperator(static_cast(sc.ch)) || (bEnableCode && sc.ch == '@')) { sc.SetState(bEnableCode ? SCE_FS_OPERATOR : SCE_FS_OPERATOR_C); } } if (sc.atLineEnd) { visibleChars = 0; closeStringChar = 0; } if (!IsASpace(sc.ch)) { visibleChars++; } } sc.Complete(); } static void FoldFlagShipDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_Position endPos = startPos + length; // Backtrack to previous line in case need to fix its fold status Sci_Position lineCurrent = styler.GetLine(startPos); if (startPos > 0 && lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); } int spaceFlags = 0; int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags); char chNext = styler[startPos]; for (Sci_Position i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if ((ch == '\r' && chNext != '\n') || (ch == '\n') || (i == endPos-1)) { int lev = indentCurrent; int indentNext = styler.IndentAmount(lineCurrent + 1, &spaceFlags); if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) { lev |= SC_FOLDLEVELHEADERFLAG; } else if (indentNext & SC_FOLDLEVELWHITEFLAG) { int spaceFlags2 = 0; int indentNext2 = styler.IndentAmount(lineCurrent + 2, &spaceFlags2); if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext2 & SC_FOLDLEVELNUMBERMASK)) { lev |= SC_FOLDLEVELHEADERFLAG; } } } indentCurrent = indentNext; styler.SetLevel(lineCurrent, lev); lineCurrent++; } } } static const char * const FSWordListDesc[] = { "Keywords Commands", "Std Library Functions", "Procedure, return, exit", "Class (oop)", "Doxygen keywords", 0 }; LexerModule lmFlagShip(SCLEX_FLAGSHIP, ColouriseFlagShipDoc, "flagship", FoldFlagShipDoc, FSWordListDesc); codequery-0.21.0/scintilla/lexers/LexForth.cxx000066400000000000000000000123421310136352400213350ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexForth.cxx ** Lexer for FORTH **/ // Copyright 1998-2003 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordStart(int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.'); } static inline bool IsANumChar(int ch) { return (ch < 0x80) && (isxdigit(ch) || ch == '.' || ch == 'e' || ch == 'E' ); } static inline bool IsASpaceChar(int ch) { return (ch < 0x80) && isspace(ch); } static void ColouriseForthDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordLists[], Accessor &styler) { WordList &control = *keywordLists[0]; WordList &keyword = *keywordLists[1]; WordList &defword = *keywordLists[2]; WordList &preword1 = *keywordLists[3]; WordList &preword2 = *keywordLists[4]; WordList &strings = *keywordLists[5]; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Determine if the current state should terminate. if (sc.state == SCE_FORTH_COMMENT) { if (sc.atLineEnd) { sc.SetState(SCE_FORTH_DEFAULT); } }else if (sc.state == SCE_FORTH_COMMENT_ML) { if (sc.ch == ')') { sc.ForwardSetState(SCE_FORTH_DEFAULT); } }else if (sc.state == SCE_FORTH_IDENTIFIER || sc.state == SCE_FORTH_NUMBER) { // handle numbers here too, because what we thought was a number might // turn out to be a keyword e.g. 2DUP if (IsASpaceChar(sc.ch) ) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); int newState = sc.state == SCE_FORTH_NUMBER ? SCE_FORTH_NUMBER : SCE_FORTH_DEFAULT; if (control.InList(s)) { sc.ChangeState(SCE_FORTH_CONTROL); } else if (keyword.InList(s)) { sc.ChangeState(SCE_FORTH_KEYWORD); } else if (defword.InList(s)) { sc.ChangeState(SCE_FORTH_DEFWORD); } else if (preword1.InList(s)) { sc.ChangeState(SCE_FORTH_PREWORD1); } else if (preword2.InList(s)) { sc.ChangeState(SCE_FORTH_PREWORD2); } else if (strings.InList(s)) { sc.ChangeState(SCE_FORTH_STRING); newState = SCE_FORTH_STRING; } sc.SetState(newState); } if (sc.state == SCE_FORTH_NUMBER) { if (IsASpaceChar(sc.ch)) { sc.SetState(SCE_FORTH_DEFAULT); } else if (!IsANumChar(sc.ch)) { sc.ChangeState(SCE_FORTH_IDENTIFIER); } } }else if (sc.state == SCE_FORTH_STRING) { if (sc.ch == '\"') { sc.ForwardSetState(SCE_FORTH_DEFAULT); } }else if (sc.state == SCE_FORTH_LOCALE) { if (sc.ch == '}') { sc.ForwardSetState(SCE_FORTH_DEFAULT); } }else if (sc.state == SCE_FORTH_DEFWORD) { if (IsASpaceChar(sc.ch)) { sc.SetState(SCE_FORTH_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_FORTH_DEFAULT) { if (sc.ch == '\\'){ sc.SetState(SCE_FORTH_COMMENT); } else if (sc.ch == '(' && (sc.atLineStart || IsASpaceChar(sc.chPrev)) && (sc.atLineEnd || IsASpaceChar(sc.chNext))) { sc.SetState(SCE_FORTH_COMMENT_ML); } else if ( (sc.ch == '$' && (IsASCII(sc.chNext) && isxdigit(sc.chNext))) ) { // number starting with $ is a hex number sc.SetState(SCE_FORTH_NUMBER); while(sc.More() && IsASCII(sc.chNext) && isxdigit(sc.chNext)) sc.Forward(); } else if ( (sc.ch == '%' && (IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1'))) ) { // number starting with % is binary sc.SetState(SCE_FORTH_NUMBER); while(sc.More() && IsASCII(sc.chNext) && (sc.chNext == '0' || sc.chNext == '1')) sc.Forward(); } else if ( IsASCII(sc.ch) && (isxdigit(sc.ch) || ((sc.ch == '.' || sc.ch == '-') && IsASCII(sc.chNext) && isxdigit(sc.chNext)) ) ){ sc.SetState(SCE_FORTH_NUMBER); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_FORTH_IDENTIFIER); } else if (sc.ch == '{') { sc.SetState(SCE_FORTH_LOCALE); } else if (sc.ch == ':' && IsASCII(sc.chNext) && isspace(sc.chNext)) { // highlight word definitions e.g. : GCD ( n n -- n ) ..... ; // ^ ^^^ sc.SetState(SCE_FORTH_DEFWORD); while(sc.More() && IsASCII(sc.chNext) && isspace(sc.chNext)) sc.Forward(); } else if (sc.ch == ';' && (sc.atLineStart || IsASpaceChar(sc.chPrev)) && (sc.atLineEnd || IsASpaceChar(sc.chNext)) ) { // mark the ';' that ends a word sc.SetState(SCE_FORTH_DEFWORD); sc.ForwardSetState(SCE_FORTH_DEFAULT); } } } sc.Complete(); } static void FoldForthDoc(Sci_PositionU, Sci_Position, int, WordList *[], Accessor &) { } static const char * const forthWordLists[] = { "control keywords", "keywords", "definition words", "prewords with one argument", "prewords with two arguments", "string definition keywords", 0, }; LexerModule lmForth(SCLEX_FORTH, ColouriseForthDoc, "forth", FoldForthDoc, forthWordLists); codequery-0.21.0/scintilla/lexers/LexFortran.cxx000066400000000000000000000446051310136352400216750ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexFortran.cxx ** Lexer for Fortran. ** Written by Chuan-jian Shen, Last changed Sep. 2003 **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. /***************************************/ #include #include #include #include #include #include /***************************************/ #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" /***************************************/ #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /***********************************************/ static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '%'); } /**********************************************/ static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch)); } /***************************************/ static inline bool IsABlank(unsigned int ch) { return (ch == ' ') || (ch == 0x09) || (ch == 0x0b) ; } /***************************************/ static inline bool IsALineEnd(char ch) { return ((ch == '\n') || (ch == '\r')) ; } /***************************************/ static Sci_PositionU GetContinuedPos(Sci_PositionU pos, Accessor &styler) { while (!IsALineEnd(styler.SafeGetCharAt(pos++))) continue; if (styler.SafeGetCharAt(pos) == '\n') pos++; while (IsABlank(styler.SafeGetCharAt(pos++))) continue; char chCur = styler.SafeGetCharAt(pos); if (chCur == '&') { while (IsABlank(styler.SafeGetCharAt(++pos))) continue; return pos; } else { return pos; } } /***************************************/ static void ColouriseFortranDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler, bool isFixFormat) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; /***************************************/ Sci_Position posLineStart = 0; int numNonBlank = 0, prevState = 0; Sci_Position endPos = startPos + length; /***************************************/ // backtrack to the nearest keyword while ((startPos > 1) && (styler.StyleAt(startPos) != SCE_F_WORD)) { startPos--; } startPos = styler.LineStart(styler.GetLine(startPos)); initStyle = styler.StyleAt(startPos - 1); StyleContext sc(startPos, endPos-startPos, initStyle, styler); /***************************************/ for (; sc.More(); sc.Forward()) { // remember the start position of the line if (sc.atLineStart) { posLineStart = sc.currentPos; numNonBlank = 0; sc.SetState(SCE_F_DEFAULT); } if (!IsASpaceOrTab(sc.ch)) numNonBlank ++; /***********************************************/ // Handle the fix format generically Sci_Position toLineStart = sc.currentPos - posLineStart; if (isFixFormat && (toLineStart < 6 || toLineStart >= 72)) { if ((toLineStart == 0 && (tolower(sc.ch) == 'c' || sc.ch == '*')) || sc.ch == '!') { if (sc.MatchIgnoreCase("cdec$") || sc.MatchIgnoreCase("*dec$") || sc.MatchIgnoreCase("!dec$") || sc.MatchIgnoreCase("cdir$") || sc.MatchIgnoreCase("*dir$") || sc.MatchIgnoreCase("!dir$") || sc.MatchIgnoreCase("cms$") || sc.MatchIgnoreCase("*ms$") || sc.MatchIgnoreCase("!ms$") || sc.chNext == '$') { sc.SetState(SCE_F_PREPROCESSOR); } else { sc.SetState(SCE_F_COMMENT); } while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end } else if (toLineStart >= 72) { sc.SetState(SCE_F_COMMENT); while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end } else if (toLineStart < 5) { if (IsADigit(sc.ch)) sc.SetState(SCE_F_LABEL); else sc.SetState(SCE_F_DEFAULT); } else if (toLineStart == 5) { //if (!IsASpace(sc.ch) && sc.ch != '0') { if (sc.ch != '\r' && sc.ch != '\n') { sc.SetState(SCE_F_CONTINUATION); if (!IsASpace(sc.ch) && sc.ch != '0') sc.ForwardSetState(prevState); } else sc.SetState(SCE_F_DEFAULT); } continue; } /***************************************/ // Hanndle preprocessor directives if (sc.ch == '#' && numNonBlank == 1) { sc.SetState(SCE_F_PREPROCESSOR); while (!sc.atLineEnd && sc.More()) sc.Forward(); // Until line end } /***************************************/ // Handle line continuation generically. if (!isFixFormat && sc.ch == '&' && sc.state != SCE_F_COMMENT) { char chTemp = ' '; Sci_Position j = 1; while (IsABlank(chTemp) && j<132) { chTemp = static_cast(sc.GetRelative(j)); j++; } if (chTemp == '!') { sc.SetState(SCE_F_CONTINUATION); if (sc.chNext == '!') sc.ForwardSetState(SCE_F_COMMENT); } else if (chTemp == '\r' || chTemp == '\n') { int currentState = sc.state; sc.SetState(SCE_F_CONTINUATION); sc.ForwardSetState(SCE_F_DEFAULT); while (IsASpace(sc.ch) && sc.More()) sc.Forward(); if (sc.ch == '&') { sc.SetState(SCE_F_CONTINUATION); sc.Forward(); } sc.SetState(currentState); } } /***************************************/ // Determine if the current state should terminate. if (sc.state == SCE_F_OPERATOR) { sc.SetState(SCE_F_DEFAULT); } else if (sc.state == SCE_F_NUMBER) { if (!(IsAWordChar(sc.ch) || sc.ch=='\'' || sc.ch=='\"' || sc.ch=='.')) { sc.SetState(SCE_F_DEFAULT); } } else if (sc.state == SCE_F_IDENTIFIER) { if (!IsAWordChar(sc.ch) || (sc.ch == '%')) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_F_WORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_F_WORD2); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_F_WORD3); } sc.SetState(SCE_F_DEFAULT); } } else if (sc.state == SCE_F_COMMENT || sc.state == SCE_F_PREPROCESSOR) { if (sc.ch == '\r' || sc.ch == '\n') { sc.SetState(SCE_F_DEFAULT); } } else if (sc.state == SCE_F_STRING1) { prevState = sc.state; if (sc.ch == '\'') { if (sc.chNext == '\'') { sc.Forward(); } else { sc.ForwardSetState(SCE_F_DEFAULT); prevState = SCE_F_DEFAULT; } } else if (sc.atLineEnd) { sc.ChangeState(SCE_F_STRINGEOL); sc.ForwardSetState(SCE_F_DEFAULT); } } else if (sc.state == SCE_F_STRING2) { prevState = sc.state; if (sc.atLineEnd) { sc.ChangeState(SCE_F_STRINGEOL); sc.ForwardSetState(SCE_F_DEFAULT); } else if (sc.ch == '\"') { if (sc.chNext == '\"') { sc.Forward(); } else { sc.ForwardSetState(SCE_F_DEFAULT); prevState = SCE_F_DEFAULT; } } } else if (sc.state == SCE_F_OPERATOR2) { if (sc.ch == '.') { sc.ForwardSetState(SCE_F_DEFAULT); } } else if (sc.state == SCE_F_CONTINUATION) { sc.SetState(SCE_F_DEFAULT); } else if (sc.state == SCE_F_LABEL) { if (!IsADigit(sc.ch)) { sc.SetState(SCE_F_DEFAULT); } else { if (isFixFormat && sc.currentPos-posLineStart > 4) sc.SetState(SCE_F_DEFAULT); else if (numNonBlank > 5) sc.SetState(SCE_F_DEFAULT); } } /***************************************/ // Determine if a new state should be entered. if (sc.state == SCE_F_DEFAULT) { if (sc.ch == '!') { if (sc.MatchIgnoreCase("!dec$") || sc.MatchIgnoreCase("!dir$") || sc.MatchIgnoreCase("!ms$") || sc.chNext == '$') { sc.SetState(SCE_F_PREPROCESSOR); } else { sc.SetState(SCE_F_COMMENT); } } else if ((!isFixFormat) && IsADigit(sc.ch) && numNonBlank == 1) { sc.SetState(SCE_F_LABEL); } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_F_NUMBER); } else if ((tolower(sc.ch) == 'b' || tolower(sc.ch) == 'o' || tolower(sc.ch) == 'z') && (sc.chNext == '\"' || sc.chNext == '\'')) { sc.SetState(SCE_F_NUMBER); sc.Forward(); } else if (sc.ch == '.' && isalpha(sc.chNext)) { sc.SetState(SCE_F_OPERATOR2); } else if (IsAWordStart(sc.ch)) { sc.SetState(SCE_F_IDENTIFIER); } else if (sc.ch == '\"') { sc.SetState(SCE_F_STRING2); } else if (sc.ch == '\'') { sc.SetState(SCE_F_STRING1); } else if (isoperator(static_cast(sc.ch))) { sc.SetState(SCE_F_OPERATOR); } } } sc.Complete(); } /***************************************/ // To determine the folding level depending on keywords static int classifyFoldPointFortran(const char* s, const char* prevWord, const char chNextNonBlank) { int lev = 0; if ((strcmp(prevWord, "module") == 0 && strcmp(s, "subroutine") == 0) || (strcmp(prevWord, "module") == 0 && strcmp(s, "function") == 0)) { lev = 0; } else if (strcmp(s, "associate") == 0 || strcmp(s, "block") == 0 || strcmp(s, "blockdata") == 0 || strcmp(s, "select") == 0 || strcmp(s, "selecttype") == 0 || strcmp(s, "selectcase") == 0 || strcmp(s, "do") == 0 || strcmp(s, "enum") ==0 || strcmp(s, "function") == 0 || strcmp(s, "interface") == 0 || strcmp(s, "module") == 0 || strcmp(s, "program") == 0 || strcmp(s, "subroutine") == 0 || strcmp(s, "then") == 0 || (strcmp(s, "type") == 0 && chNextNonBlank != '(') || strcmp(s, "critical") == 0 || strcmp(s, "submodule") == 0){ if (strcmp(prevWord, "end") == 0) lev = 0; else lev = 1; } else if ((strcmp(s, "end") == 0 && chNextNonBlank != '=') || strcmp(s, "endassociate") == 0 || strcmp(s, "endblock") == 0 || strcmp(s, "endblockdata") == 0 || strcmp(s, "endselect") == 0 || strcmp(s, "enddo") == 0 || strcmp(s, "endenum") ==0 || strcmp(s, "endif") == 0 || strcmp(s, "endforall") == 0 || strcmp(s, "endfunction") == 0 || strcmp(s, "endinterface") == 0 || strcmp(s, "endmodule") == 0 || strcmp(s, "endprogram") == 0 || strcmp(s, "endsubroutine") == 0 || strcmp(s, "endtype") == 0 || strcmp(s, "endwhere") == 0 || strcmp(s, "endcritical") == 0 || (strcmp(prevWord, "module") == 0 && strcmp(s, "procedure") == 0) // Take care of the "module procedure" statement || strcmp(s, "endsubmodule") == 0) { lev = -1; } else if (strcmp(prevWord, "end") == 0 && strcmp(s, "if") == 0){ // end if lev = 0; } else if (strcmp(prevWord, "type") == 0 && strcmp(s, "is") == 0){ // type is lev = -1; } else if ((strcmp(prevWord, "end") == 0 && strcmp(s, "procedure") == 0) || strcmp(s, "endprocedure") == 0) { lev = 1; // level back to 0, because no folding support for "module procedure" in submodule } return lev; } /***************************************/ // Folding the code static void FoldFortranDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, Accessor &styler, bool isFixFormat) { // // bool foldComment = styler.GetPropertyInt("fold.comment") != 0; // Do not know how to fold the comment at the moment. // bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent; bool isPrevLine; if (lineCurrent > 0) { lineCurrent--; startPos = styler.LineStart(lineCurrent); levelCurrent = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; isPrevLine = true; } else { levelCurrent = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; isPrevLine = false; } char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; int levelDeltaNext = 0; /***************************************/ Sci_Position lastStart = 0; char prevWord[32] = ""; /***************************************/ for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); char chNextNonBlank = chNext; bool nextEOL = false; if (IsALineEnd(chNextNonBlank)) { nextEOL = true; } Sci_PositionU j=i+1; while(IsABlank(chNextNonBlank) && j(tolower(styler[lastStart+k])); } s[k] = '\0'; // Handle the forall and where statement and structure. if (strcmp(s, "forall") == 0 || (strcmp(s, "where") == 0 && strcmp(prevWord, "else") != 0)) { if (strcmp(prevWord, "end") != 0) { j = i + 1; char chBrace = '(', chSeek = ')', ch1 = styler.SafeGetCharAt(j); // Find the position of the first ( while (ch1 != chBrace && j 0) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) styler.SetLevel(lineCurrent, lev); lineCurrent++; levelCurrent += levelDeltaNext; levelDeltaNext = 0; visibleChars = 0; strcpy(prevWord, ""); isPrevLine = false; } /***************************************/ if (!isspacechar(ch)) visibleChars++; } /***************************************/ } /***************************************/ static const char * const FortranWordLists[] = { "Primary keywords and identifiers", "Intrinsic functions", "Extended and user defined functions", 0, }; /***************************************/ static void ColouriseFortranDocFreeFormat(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { ColouriseFortranDoc(startPos, length, initStyle, keywordlists, styler, false); } /***************************************/ static void ColouriseFortranDocFixFormat(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { ColouriseFortranDoc(startPos, length, initStyle, keywordlists, styler, true); } /***************************************/ static void FoldFortranDocFreeFormat(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { FoldFortranDoc(startPos, length, initStyle,styler, false); } /***************************************/ static void FoldFortranDocFixFormat(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { FoldFortranDoc(startPos, length, initStyle,styler, true); } /***************************************/ LexerModule lmFortran(SCLEX_FORTRAN, ColouriseFortranDocFreeFormat, "fortran", FoldFortranDocFreeFormat, FortranWordLists); LexerModule lmF77(SCLEX_F77, ColouriseFortranDocFixFormat, "f77", FoldFortranDocFixFormat, FortranWordLists); codequery-0.21.0/scintilla/lexers/LexGAP.cxx000066400000000000000000000155351310136352400206710ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexGAP.cxx ** Lexer for the GAP language. (The GAP System for Computational Discrete Algebra) ** http://www.gap-system.org **/ // Copyright 2007 by Istvan Szollosi ( szteven gmail com ) // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsGAPOperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^' || ch == ',' || ch == '!' || ch == '.' || ch == '=' || ch == '<' || ch == '>' || ch == '(' || ch == ')' || ch == ';' || ch == '[' || ch == ']' || ch == '{' || ch == '}' || ch == ':' ) return true; return false; } static void GetRange(Sci_PositionU start, Sci_PositionU end, Accessor &styler, char *s, Sci_PositionU len) { Sci_PositionU i = 0; while ((i < end - start + 1) && (i < len-1)) { s[i] = static_cast(styler[start + i]); i++; } s[i] = '\0'; } static void ColouriseGAPDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords1 = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; // Do not leak onto next line if (initStyle == SCE_GAP_STRINGEOL) initStyle = SCE_GAP_DEFAULT; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { // Prevent SCE_GAP_STRINGEOL from leaking back to previous line if ( sc.atLineStart ) { if (sc.state == SCE_GAP_STRING) sc.SetState(SCE_GAP_STRING); if (sc.state == SCE_GAP_CHAR) sc.SetState(SCE_GAP_CHAR); } // Handle line continuation generically if (sc.ch == '\\' ) { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continue; } } // Determine if the current state should terminate switch (sc.state) { case SCE_GAP_OPERATOR : sc.SetState(SCE_GAP_DEFAULT); break; case SCE_GAP_NUMBER : if (!IsADigit(sc.ch)) { if (sc.ch == '\\') { if (!sc.atLineEnd) { if (!IsADigit(sc.chNext)) { sc.Forward(); sc.ChangeState(SCE_GAP_IDENTIFIER); } } } else if (isalpha(sc.ch) || sc.ch == '_') { sc.ChangeState(SCE_GAP_IDENTIFIER); } else sc.SetState(SCE_GAP_DEFAULT); } break; case SCE_GAP_IDENTIFIER : if (!(iswordstart(static_cast(sc.ch)) || sc.ch == '$')) { if (sc.ch == '\\') sc.Forward(); else { char s[1000]; sc.GetCurrent(s, sizeof(s)); if (keywords1.InList(s)) { sc.ChangeState(SCE_GAP_KEYWORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_GAP_KEYWORD2); } else if (keywords3.InList(s)) { sc.ChangeState(SCE_GAP_KEYWORD3); } else if (keywords4.InList(s)) { sc.ChangeState(SCE_GAP_KEYWORD4); } sc.SetState(SCE_GAP_DEFAULT); } } break; case SCE_GAP_COMMENT : if (sc.atLineEnd) { sc.SetState(SCE_GAP_DEFAULT); } break; case SCE_GAP_STRING: if (sc.atLineEnd) { sc.ChangeState(SCE_GAP_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_GAP_DEFAULT); } break; case SCE_GAP_CHAR: if (sc.atLineEnd) { sc.ChangeState(SCE_GAP_STRINGEOL); } else if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\'' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\'') { sc.ForwardSetState(SCE_GAP_DEFAULT); } break; case SCE_GAP_STRINGEOL: if (sc.atLineStart) { sc.SetState(SCE_GAP_DEFAULT); } break; } // Determine if a new state should be entered if (sc.state == SCE_GAP_DEFAULT) { if (IsGAPOperator(static_cast(sc.ch))) { sc.SetState(SCE_GAP_OPERATOR); } else if (IsADigit(sc.ch)) { sc.SetState(SCE_GAP_NUMBER); } else if (isalpha(sc.ch) || sc.ch == '_' || sc.ch == '\\' || sc.ch == '$' || sc.ch == '~') { sc.SetState(SCE_GAP_IDENTIFIER); if (sc.ch == '\\') sc.Forward(); } else if (sc.ch == '#') { sc.SetState(SCE_GAP_COMMENT); } else if (sc.ch == '\"') { sc.SetState(SCE_GAP_STRING); } else if (sc.ch == '\'') { sc.SetState(SCE_GAP_CHAR); } } } sc.Complete(); } static int ClassifyFoldPointGAP(const char* s) { int level = 0; if (strcmp(s, "function") == 0 || strcmp(s, "do") == 0 || strcmp(s, "if") == 0 || strcmp(s, "repeat") == 0 ) { level = 1; } else if (strcmp(s, "end") == 0 || strcmp(s, "od") == 0 || strcmp(s, "fi") == 0 || strcmp(s, "until") == 0 ) { level = -1; } return level; } static void FoldGAPDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList** , Accessor &styler) { Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); int style = initStyle; Sci_Position lastStart = 0; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int stylePrev = style; style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (stylePrev != SCE_GAP_KEYWORD && style == SCE_GAP_KEYWORD) { // Store last word start point. lastStart = i; } if (stylePrev == SCE_GAP_KEYWORD) { if(iswordchar(ch) && !iswordchar(chNext)) { char s[100]; GetRange(lastStart, i, styler, s, sizeof(s)); levelCurrent += ClassifyFoldPointGAP(s); } } if (atEOL) { int lev = levelPrev; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const GAPWordListDesc[] = { "Keywords 1", "Keywords 2", "Keywords 3 (unused)", "Keywords 4 (unused)", 0 }; LexerModule lmGAP( SCLEX_GAP, ColouriseGAPDoc, "gap", FoldGAPDoc, GAPWordListDesc); codequery-0.21.0/scintilla/lexers/LexGui4Cli.cxx000066400000000000000000000213331310136352400215130ustar00rootroot00000000000000// Scintilla source code edit control // Copyright 1998-2002 by Neil Hodgson /* This is the Lexer for Gui4Cli, included in SciLexer.dll - by d. Keletsekis, 2/10/2003 To add to SciLexer.dll: 1. Add the values below to INCLUDE\Scintilla.iface 2. Run the scripts/HFacer.py script 3. Run the scripts/LexGen.py script val SCE_GC_DEFAULT=0 val SCE_GC_COMMENTLINE=1 val SCE_GC_COMMENTBLOCK=2 val SCE_GC_GLOBAL=3 val SCE_GC_EVENT=4 val SCE_GC_ATTRIBUTE=5 val SCE_GC_CONTROL=6 val SCE_GC_COMMAND=7 val SCE_GC_STRING=8 val SCE_GC_OPERATOR=9 */ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #define debug Platform::DebugPrintf static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_' || ch =='\\'); } inline bool isGCOperator(int ch) { if (isalnum(ch)) return false; // '.' left out as it is used to make up numbers if (ch == '*' || ch == '/' || ch == '-' || ch == '+' || ch == '(' || ch == ')' || ch == '=' || ch == '%' || ch == '[' || ch == ']' || ch == '<' || ch == '>' || ch == ',' || ch == ';' || ch == ':') return true; return false; } #define isSpace(x) ((x)==' ' || (x)=='\t') #define isNL(x) ((x)=='\n' || (x)=='\r') #define isSpaceOrNL(x) (isSpace(x) || isNL(x)) #define BUFFSIZE 500 #define isFoldPoint(x) ((styler.LevelAt(x) & SC_FOLDLEVELNUMBERMASK) == 1024) static void colorFirstWord(WordList *keywordlists[], Accessor &styler, StyleContext *sc, char *buff, Sci_Position length, int) { Sci_Position c = 0; while (sc->More() && isSpaceOrNL(sc->ch)) { sc->Forward(); } styler.ColourTo(sc->currentPos - 1, sc->state); if (!IsAWordChar(sc->ch)) // comment, marker, etc.. return; while (sc->More() && !isSpaceOrNL(sc->ch) && (c < length-1) && !isGCOperator(sc->ch)) { buff[c] = static_cast(sc->ch); ++c; sc->Forward(); } buff[c] = '\0'; char *p = buff; while (*p) // capitalize.. { if (islower(*p)) *p = static_cast(toupper(*p)); ++p; } WordList &kGlobal = *keywordlists[0]; // keyword lists set by the user WordList &kEvent = *keywordlists[1]; WordList &kAttribute = *keywordlists[2]; WordList &kControl = *keywordlists[3]; WordList &kCommand = *keywordlists[4]; int state = 0; // int level = styler.LevelAt(line) & SC_FOLDLEVELNUMBERMASK; // debug ("line = %d, level = %d", line, level); if (kGlobal.InList(buff)) state = SCE_GC_GLOBAL; else if (kAttribute.InList(buff)) state = SCE_GC_ATTRIBUTE; else if (kControl.InList(buff)) state = SCE_GC_CONTROL; else if (kCommand.InList(buff)) state = SCE_GC_COMMAND; else if (kEvent.InList(buff)) state = SCE_GC_EVENT; if (state) { sc->ChangeState(state); styler.ColourTo(sc->currentPos - 1, sc->state); sc->ChangeState(SCE_GC_DEFAULT); } else { sc->ChangeState(SCE_GC_DEFAULT); styler.ColourTo(sc->currentPos - 1, sc->state); } } // Main colorizing function called by Scintilla static void ColouriseGui4CliDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { styler.StartAt(startPos); Sci_Position currentline = styler.GetLine(startPos); int quotestart = 0, oldstate; styler.StartSegment(startPos); bool noforward; char buff[BUFFSIZE+1]; // buffer for command name StyleContext sc(startPos, length, initStyle, styler); buff[0] = '\0'; // cbuff = 0; if (sc.state != SCE_GC_COMMENTBLOCK) // colorize 1st word.. colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); while (sc.More()) { noforward = 0; switch (sc.ch) { case '/': if (sc.state == SCE_GC_COMMENTBLOCK || sc.state == SCE_GC_STRING) break; if (sc.chNext == '/') // line comment { sc.SetState (SCE_GC_COMMENTLINE); sc.Forward(); styler.ColourTo(sc.currentPos, sc.state); } else if (sc.chNext == '*') // block comment { sc.SetState(SCE_GC_COMMENTBLOCK); sc.Forward(); styler.ColourTo(sc.currentPos, sc.state); } else styler.ColourTo(sc.currentPos, sc.state); break; case '*': // end of comment block, or operator.. if (sc.state == SCE_GC_STRING) break; if (sc.state == SCE_GC_COMMENTBLOCK && sc.chNext == '/') { sc.Forward(); styler.ColourTo(sc.currentPos, sc.state); sc.ChangeState (SCE_GC_DEFAULT); } else styler.ColourTo(sc.currentPos, sc.state); break; case '\'': case '\"': // strings.. if (sc.state == SCE_GC_COMMENTBLOCK || sc.state == SCE_GC_COMMENTLINE) break; if (sc.state == SCE_GC_STRING) { if (sc.ch == quotestart) // match same quote char.. { styler.ColourTo(sc.currentPos, sc.state); sc.ChangeState(SCE_GC_DEFAULT); quotestart = 0; } } else { styler.ColourTo(sc.currentPos - 1, sc.state); sc.ChangeState(SCE_GC_STRING); quotestart = sc.ch; } break; case ';': // end of commandline character if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE && sc.state != SCE_GC_STRING) { styler.ColourTo(sc.currentPos - 1, sc.state); styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); sc.ChangeState(SCE_GC_DEFAULT); sc.Forward(); colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); noforward = 1; // don't move forward - already positioned at next char.. } break; case '+': case '-': case '=': case '!': // operators.. case '<': case '>': case '&': case '|': case '$': if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE && sc.state != SCE_GC_STRING) { styler.ColourTo(sc.currentPos - 1, sc.state); styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); sc.ChangeState(SCE_GC_DEFAULT); } break; case '\\': // escape - same as operator, but also mark in strings.. if (sc.state != SCE_GC_COMMENTBLOCK && sc.state != SCE_GC_COMMENTLINE) { oldstate = sc.state; styler.ColourTo(sc.currentPos - 1, sc.state); sc.Forward(); // mark also the next char.. styler.ColourTo(sc.currentPos, SCE_GC_OPERATOR); sc.ChangeState(oldstate); } break; case '\n': case '\r': ++currentline; if (sc.state == SCE_GC_COMMENTLINE) { styler.ColourTo(sc.currentPos, sc.state); sc.ChangeState (SCE_GC_DEFAULT); } else if (sc.state != SCE_GC_COMMENTBLOCK) { colorFirstWord(keywordlists, styler, &sc, buff, BUFFSIZE, currentline); noforward = 1; // don't move forward - already positioned at next char.. } break; // case ' ': case '\t': // default : } if (!noforward) sc.Forward(); } sc.Complete(); } // Main folding function called by Scintilla - (based on props (.ini) files function) static void FoldGui4Cli(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); bool headerPoint = false; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler[i+1]; int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (style == SCE_GC_EVENT || style == SCE_GC_GLOBAL) { headerPoint = true; // fold at events and globals } if (atEOL) { int lev = SC_FOLDLEVELBASE+1; if (headerPoint) lev = SC_FOLDLEVELBASE; if (visibleChars == 0 && foldCompact) lev |= SC_FOLDLEVELWHITEFLAG; if (headerPoint) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) // set level, if not already correct { styler.SetLevel(lineCurrent, lev); } lineCurrent++; // re-initialize our flags visibleChars = 0; headerPoint = false; } if (!(isspacechar(ch))) // || (style == SCE_GC_COMMENTLINE) || (style != SCE_GC_COMMENTBLOCK))) visibleChars++; } int lev = headerPoint ? SC_FOLDLEVELBASE : SC_FOLDLEVELBASE+1; int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, lev | flagsNext); } // I have no idea what these are for.. probably accessible by some message. static const char * const gui4cliWordListDesc[] = { "Globals", "Events", "Attributes", "Control", "Commands", 0 }; // Declare language & pass our function pointers to Scintilla LexerModule lmGui4Cli(SCLEX_GUI4CLI, ColouriseGui4CliDoc, "gui4cli", FoldGui4Cli, gui4cliWordListDesc); #undef debug codequery-0.21.0/scintilla/lexers/LexHTML.cxx000066400000000000000000002112061310136352400210170ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexHTML.cxx ** Lexer for HTML. **/ // Copyright 1998-2005 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "StringCopy.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #define SCE_HA_JS (SCE_HJA_START - SCE_HJ_START) #define SCE_HA_VBS (SCE_HBA_START - SCE_HB_START) #define SCE_HA_PYTHON (SCE_HPA_START - SCE_HP_START) enum script_type { eScriptNone = 0, eScriptJS, eScriptVBS, eScriptPython, eScriptPHP, eScriptXML, eScriptSGML, eScriptSGMLblock, eScriptComment }; enum script_mode { eHtml = 0, eNonHtmlScript, eNonHtmlPreProc, eNonHtmlScriptPreProc }; static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); } static inline bool IsAWordStart(const int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } inline bool IsOperator(int ch) { if (IsASCII(ch) && isalnum(ch)) return false; // '.' left out as it is used to make up numbers if (ch == '%' || ch == '^' || ch == '&' || ch == '*' || ch == '(' || ch == ')' || ch == '-' || ch == '+' || ch == '=' || ch == '|' || ch == '{' || ch == '}' || ch == '[' || ch == ']' || ch == ':' || ch == ';' || ch == '<' || ch == '>' || ch == ',' || ch == '/' || ch == '?' || ch == '!' || ch == '.' || ch == '~') return true; return false; } static void GetTextSegment(Accessor &styler, Sci_PositionU start, Sci_PositionU end, char *s, size_t len) { Sci_PositionU i = 0; for (; (i < end - start + 1) && (i < len-1); i++) { s[i] = static_cast(MakeLowerCase(styler[start + i])); } s[i] = '\0'; } static const char *GetNextWord(Accessor &styler, Sci_PositionU start, char *s, size_t sLen) { Sci_PositionU i = 0; for (; i < sLen-1; i++) { char ch = static_cast(styler.SafeGetCharAt(start + i)); if ((i == 0) && !IsAWordStart(ch)) break; if ((i > 0) && !IsAWordChar(ch)) break; s[i] = ch; } s[i] = '\0'; return s; } static script_type segIsScriptingIndicator(Accessor &styler, Sci_PositionU start, Sci_PositionU end, script_type prevValue) { char s[100]; GetTextSegment(styler, start, end, s, sizeof(s)); //Platform::DebugPrintf("Scripting indicator [%s]\n", s); if (strstr(s, "src")) // External script return eScriptNone; if (strstr(s, "vbs")) return eScriptVBS; if (strstr(s, "pyth")) return eScriptPython; if (strstr(s, "javas")) return eScriptJS; if (strstr(s, "jscr")) return eScriptJS; if (strstr(s, "php")) return eScriptPHP; if (strstr(s, "xml")) { const char *xml = strstr(s, "xml"); for (const char *t=s; t= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) { return eScriptPython; } else if ((state >= SCE_HB_START) && (state <= SCE_HB_STRINGEOL)) { return eScriptVBS; } else if ((state >= SCE_HJ_START) && (state <= SCE_HJ_REGEX)) { return eScriptJS; } else if ((state >= SCE_HPHP_DEFAULT) && (state <= SCE_HPHP_COMMENTLINE)) { return eScriptPHP; } else if ((state >= SCE_H_SGML_DEFAULT) && (state < SCE_H_SGML_BLOCK_DEFAULT)) { return eScriptSGML; } else if (state == SCE_H_SGML_BLOCK_DEFAULT) { return eScriptSGMLblock; } else { return eScriptNone; } } static int statePrintForState(int state, script_mode inScriptType) { int StateToPrint = state; if (state >= SCE_HJ_START) { if ((state >= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) { StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_PYTHON); } else if ((state >= SCE_HB_START) && (state <= SCE_HB_STRINGEOL)) { StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_VBS); } else if ((state >= SCE_HJ_START) && (state <= SCE_HJ_REGEX)) { StateToPrint = state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_JS); } } return StateToPrint; } static int stateForPrintState(int StateToPrint) { int state; if ((StateToPrint >= SCE_HPA_START) && (StateToPrint <= SCE_HPA_IDENTIFIER)) { state = StateToPrint - SCE_HA_PYTHON; } else if ((StateToPrint >= SCE_HBA_START) && (StateToPrint <= SCE_HBA_STRINGEOL)) { state = StateToPrint - SCE_HA_VBS; } else if ((StateToPrint >= SCE_HJA_START) && (StateToPrint <= SCE_HJA_REGEX)) { state = StateToPrint - SCE_HA_JS; } else { state = StateToPrint; } return state; } static inline bool IsNumber(Sci_PositionU start, Accessor &styler) { return IsADigit(styler[start]) || (styler[start] == '.') || (styler[start] == '-') || (styler[start] == '#'); } static inline bool isStringState(int state) { bool bResult; switch (state) { case SCE_HJ_DOUBLESTRING: case SCE_HJ_SINGLESTRING: case SCE_HJA_DOUBLESTRING: case SCE_HJA_SINGLESTRING: case SCE_HB_STRING: case SCE_HBA_STRING: case SCE_HP_STRING: case SCE_HP_CHARACTER: case SCE_HP_TRIPLE: case SCE_HP_TRIPLEDOUBLE: case SCE_HPA_STRING: case SCE_HPA_CHARACTER: case SCE_HPA_TRIPLE: case SCE_HPA_TRIPLEDOUBLE: case SCE_HPHP_HSTRING: case SCE_HPHP_SIMPLESTRING: case SCE_HPHP_HSTRING_VARIABLE: case SCE_HPHP_COMPLEX_VARIABLE: bResult = true; break; default : bResult = false; break; } return bResult; } static inline bool stateAllowsTermination(int state) { bool allowTermination = !isStringState(state); if (allowTermination) { switch (state) { case SCE_HB_COMMENTLINE: case SCE_HPHP_COMMENT: case SCE_HP_COMMENTLINE: case SCE_HPA_COMMENTLINE: allowTermination = false; } } return allowTermination; } // not really well done, since it's only comments that should lex the %> and <% static inline bool isCommentASPState(int state) { bool bResult; switch (state) { case SCE_HJ_COMMENT: case SCE_HJ_COMMENTLINE: case SCE_HJ_COMMENTDOC: case SCE_HB_COMMENTLINE: case SCE_HP_COMMENTLINE: case SCE_HPHP_COMMENT: case SCE_HPHP_COMMENTLINE: bResult = true; break; default : bResult = false; break; } return bResult; } static void classifyAttribHTML(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler) { bool wordIsNumber = IsNumber(start, styler); char chAttr = SCE_H_ATTRIBUTEUNKNOWN; if (wordIsNumber) { chAttr = SCE_H_NUMBER; } else { char s[100]; GetTextSegment(styler, start, end, s, sizeof(s)); if (keywords.InList(s)) chAttr = SCE_H_ATTRIBUTE; } if ((chAttr == SCE_H_ATTRIBUTEUNKNOWN) && !keywords) // No keywords -> all are known chAttr = SCE_H_ATTRIBUTE; styler.ColourTo(end, chAttr); } static int classifyTagHTML(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler, bool &tagDontFold, bool caseSensitive, bool isXml, bool allowScripts) { char withSpace[30 + 2] = " "; const char *s = withSpace + 1; // Copy after the '<' Sci_PositionU i = 1; for (Sci_PositionU cPos = start; cPos <= end && i < 30; cPos++) { char ch = styler[cPos]; if ((ch != '<') && (ch != '/')) { withSpace[i++] = caseSensitive ? ch : static_cast(MakeLowerCase(ch)); } } //The following is only a quick hack, to see if this whole thing would work //we first need the tagname with a trailing space... withSpace[i] = ' '; withSpace[i+1] = '\0'; // if the current language is XML, I can fold any tag // if the current language is HTML, I don't want to fold certain tags (input, meta, etc.) //...to find it in the list of no-container-tags tagDontFold = (!isXml) && (NULL != strstr(" area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr ", withSpace)); //now we can remove the trailing space withSpace[i] = '\0'; // No keywords -> all are known char chAttr = SCE_H_TAGUNKNOWN; if (s[0] == '!') { chAttr = SCE_H_SGML_DEFAULT; } else if (!keywords || keywords.InList(s)) { chAttr = SCE_H_TAG; } styler.ColourTo(end, chAttr); if (chAttr == SCE_H_TAG) { if (allowScripts && 0 == strcmp(s, "script")) { // check to see if this is a self-closing tag by sniffing ahead bool isSelfClose = false; for (Sci_PositionU cPos = end; cPos <= end + 200; cPos++) { char ch = styler.SafeGetCharAt(cPos, '\0'); if (ch == '\0' || ch == '>') break; else if (ch == '/' && styler.SafeGetCharAt(cPos + 1, '\0') == '>') { isSelfClose = true; break; } } // do not enter a script state if the tag self-closed if (!isSelfClose) chAttr = SCE_H_SCRIPT; } else if (!isXml && 0 == strcmp(s, "comment")) { chAttr = SCE_H_COMMENT; } } return chAttr; } static void classifyWordHTJS(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler, script_mode inScriptType) { char s[30 + 1]; Sci_PositionU i = 0; for (; i < end - start + 1 && i < 30; i++) { s[i] = styler[start + i]; } s[i] = '\0'; char chAttr = SCE_HJ_WORD; bool wordIsNumber = IsADigit(s[0]) || ((s[0] == '.') && IsADigit(s[1])); if (wordIsNumber) { chAttr = SCE_HJ_NUMBER; } else if (keywords.InList(s)) { chAttr = SCE_HJ_KEYWORD; } styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); } static int classifyWordHTVB(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler, script_mode inScriptType) { char chAttr = SCE_HB_IDENTIFIER; bool wordIsNumber = IsADigit(styler[start]) || (styler[start] == '.'); if (wordIsNumber) { chAttr = SCE_HB_NUMBER; } else { char s[100]; GetTextSegment(styler, start, end, s, sizeof(s)); if (keywords.InList(s)) { chAttr = SCE_HB_WORD; if (strcmp(s, "rem") == 0) chAttr = SCE_HB_COMMENTLINE; } } styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); if (chAttr == SCE_HB_COMMENTLINE) return SCE_HB_COMMENTLINE; else return SCE_HB_DEFAULT; } static void classifyWordHTPy(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler, char *prevWord, script_mode inScriptType, bool isMako) { bool wordIsNumber = IsADigit(styler[start]); char s[30 + 1]; Sci_PositionU i = 0; for (; i < end - start + 1 && i < 30; i++) { s[i] = styler[start + i]; } s[i] = '\0'; char chAttr = SCE_HP_IDENTIFIER; if (0 == strcmp(prevWord, "class")) chAttr = SCE_HP_CLASSNAME; else if (0 == strcmp(prevWord, "def")) chAttr = SCE_HP_DEFNAME; else if (wordIsNumber) chAttr = SCE_HP_NUMBER; else if (keywords.InList(s)) chAttr = SCE_HP_WORD; else if (isMako && 0 == strcmp(s, "block")) chAttr = SCE_HP_WORD; styler.ColourTo(end, statePrintForState(chAttr, inScriptType)); strcpy(prevWord, s); } // Update the word colour to default or keyword // Called when in a PHP word static void classifyWordHTPHP(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler) { char chAttr = SCE_HPHP_DEFAULT; bool wordIsNumber = IsADigit(styler[start]) || (styler[start] == '.' && start+1 <= end && IsADigit(styler[start+1])); if (wordIsNumber) { chAttr = SCE_HPHP_NUMBER; } else { char s[100]; GetTextSegment(styler, start, end, s, sizeof(s)); if (keywords.InList(s)) chAttr = SCE_HPHP_WORD; } styler.ColourTo(end, chAttr); } static bool isWordHSGML(Sci_PositionU start, Sci_PositionU end, WordList &keywords, Accessor &styler) { char s[30 + 1]; Sci_PositionU i = 0; for (; i < end - start + 1 && i < 30; i++) { s[i] = styler[start + i]; } s[i] = '\0'; return keywords.InList(s); } static bool isWordCdata(Sci_PositionU start, Sci_PositionU end, Accessor &styler) { char s[30 + 1]; Sci_PositionU i = 0; for (; i < end - start + 1 && i < 30; i++) { s[i] = styler[start + i]; } s[i] = '\0'; return (0 == strcmp(s, "[CDATA[")); } // Return the first state to reach when entering a scripting language static int StateForScript(script_type scriptLanguage) { int Result; switch (scriptLanguage) { case eScriptVBS: Result = SCE_HB_START; break; case eScriptPython: Result = SCE_HP_START; break; case eScriptPHP: Result = SCE_HPHP_DEFAULT; break; case eScriptXML: Result = SCE_H_TAGUNKNOWN; break; case eScriptSGML: Result = SCE_H_SGML_DEFAULT; break; case eScriptComment: Result = SCE_H_COMMENT; break; default : Result = SCE_HJ_START; break; } return Result; } static inline bool issgmlwordchar(int ch) { return !IsASCII(ch) || (isalnum(ch) || ch == '.' || ch == '_' || ch == ':' || ch == '!' || ch == '#' || ch == '['); } static inline bool IsPhpWordStart(int ch) { return (IsASCII(ch) && (isalpha(ch) || (ch == '_'))) || (ch >= 0x7f); } static inline bool IsPhpWordChar(int ch) { return IsADigit(ch) || IsPhpWordStart(ch); } static bool InTagState(int state) { return state == SCE_H_TAG || state == SCE_H_TAGUNKNOWN || state == SCE_H_SCRIPT || state == SCE_H_ATTRIBUTE || state == SCE_H_ATTRIBUTEUNKNOWN || state == SCE_H_NUMBER || state == SCE_H_OTHER || state == SCE_H_DOUBLESTRING || state == SCE_H_SINGLESTRING; } static bool IsCommentState(const int state) { return state == SCE_H_COMMENT || state == SCE_H_SGML_COMMENT; } static bool IsScriptCommentState(const int state) { return state == SCE_HJ_COMMENT || state == SCE_HJ_COMMENTLINE || state == SCE_HJA_COMMENT || state == SCE_HJA_COMMENTLINE || state == SCE_HB_COMMENTLINE || state == SCE_HBA_COMMENTLINE; } static bool isLineEnd(int ch) { return ch == '\r' || ch == '\n'; } static bool isMakoBlockEnd(const int ch, const int chNext, const char *blockType) { if (strlen(blockType) == 0) { return ((ch == '%') && (chNext == '>')); } else if ((0 == strcmp(blockType, "inherit")) || (0 == strcmp(blockType, "namespace")) || (0 == strcmp(blockType, "include")) || (0 == strcmp(blockType, "page"))) { return ((ch == '/') && (chNext == '>')); } else if (0 == strcmp(blockType, "%")) { if (ch == '/' && isLineEnd(chNext)) return 1; else return isLineEnd(ch); } else if (0 == strcmp(blockType, "{")) { return ch == '}'; } else { return (ch == '>'); } } static bool isDjangoBlockEnd(const int ch, const int chNext, const char *blockType) { if (strlen(blockType) == 0) { return 0; } else if (0 == strcmp(blockType, "%")) { return ((ch == '%') && (chNext == '}')); } else if (0 == strcmp(blockType, "{")) { return ((ch == '}') && (chNext == '}')); } else { return 0; } } static bool isPHPStringState(int state) { return (state == SCE_HPHP_HSTRING) || (state == SCE_HPHP_SIMPLESTRING) || (state == SCE_HPHP_HSTRING_VARIABLE) || (state == SCE_HPHP_COMPLEX_VARIABLE); } static Sci_Position FindPhpStringDelimiter(char *phpStringDelimiter, const int phpStringDelimiterSize, Sci_Position i, const Sci_Position lengthDoc, Accessor &styler, bool &isSimpleString) { Sci_Position j; const Sci_Position beginning = i - 1; bool isValidSimpleString = false; while (i < lengthDoc && (styler[i] == ' ' || styler[i] == '\t')) i++; char ch = styler.SafeGetCharAt(i); const char chNext = styler.SafeGetCharAt(i + 1); if (!IsPhpWordStart(ch)) { if (ch == '\'' && IsPhpWordStart(chNext)) { i++; ch = chNext; isSimpleString = true; } else { phpStringDelimiter[0] = '\0'; return beginning; } } phpStringDelimiter[0] = ch; i++; for (j = i; j < lengthDoc && !isLineEnd(styler[j]); j++) { if (!IsPhpWordChar(styler[j])) { if (isSimpleString && (styler[j] == '\'') && isLineEnd(styler.SafeGetCharAt(j + 1))) { isValidSimpleString = true; j++; break; } else { phpStringDelimiter[0] = '\0'; return beginning; } } if (j - i < phpStringDelimiterSize - 2) phpStringDelimiter[j-i+1] = styler[j]; else i++; } if (isSimpleString && !isValidSimpleString) { phpStringDelimiter[0] = '\0'; return beginning; } phpStringDelimiter[j-i+1 - (isSimpleString ? 1 : 0)] = '\0'; return j - 1; } static void ColouriseHyperTextDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler, bool isXml) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; WordList &keywords5 = *keywordlists[4]; WordList &keywords6 = *keywordlists[5]; // SGML (DTD) keywords styler.StartAt(startPos); char prevWord[200]; prevWord[0] = '\0'; char phpStringDelimiter[200]; // PHP is not limited in length, we are phpStringDelimiter[0] = '\0'; int StateToPrint = initStyle; int state = stateForPrintState(StateToPrint); char makoBlockType[200]; makoBlockType[0] = '\0'; int makoComment = 0; char djangoBlockType[2]; djangoBlockType[0] = '\0'; // If inside a tag, it may be a script tag, so reread from the start of line starting tag to ensure any language tags are seen if (InTagState(state)) { while ((startPos > 0) && (InTagState(styler.StyleAt(startPos - 1)))) { Sci_Position backLineStart = styler.LineStart(styler.GetLine(startPos-1)); length += startPos - backLineStart; startPos = backLineStart; } state = SCE_H_DEFAULT; } // String can be heredoc, must find a delimiter first. Reread from beginning of line containing the string, to get the correct lineState if (isPHPStringState(state)) { while (startPos > 0 && (isPHPStringState(state) || !isLineEnd(styler[startPos - 1]))) { startPos--; length++; state = styler.StyleAt(startPos); } if (startPos == 0) state = SCE_H_DEFAULT; } styler.StartAt(startPos); /* Nothing handles getting out of these, so we need not start in any of them. * As we're at line start and they can't span lines, we'll re-detect them anyway */ switch (state) { case SCE_H_QUESTION: case SCE_H_XMLSTART: case SCE_H_XMLEND: case SCE_H_ASP: state = SCE_H_DEFAULT; break; } Sci_Position lineCurrent = styler.GetLine(startPos); int lineState; if (lineCurrent > 0) { lineState = styler.GetLineState(lineCurrent-1); } else { // Default client and ASP scripting language is JavaScript lineState = eScriptJS << 8; // property asp.default.language // Script in ASP code is initially assumed to be in JavaScript. // To change this to VBScript set asp.default.language to 2. Python is 3. lineState |= styler.GetPropertyInt("asp.default.language", eScriptJS) << 4; } script_mode inScriptType = script_mode((lineState >> 0) & 0x03); // 2 bits of scripting mode bool tagOpened = (lineState >> 2) & 0x01; // 1 bit to know if we are in an opened tag bool tagClosing = (lineState >> 3) & 0x01; // 1 bit to know if we are in a closing tag bool tagDontFold = false; //some HTML tags should not be folded script_type aspScript = script_type((lineState >> 4) & 0x0F); // 4 bits of script name script_type clientScript = script_type((lineState >> 8) & 0x0F); // 4 bits of script name int beforePreProc = (lineState >> 12) & 0xFF; // 8 bits of state script_type scriptLanguage = ScriptOfState(state); // If eNonHtmlScript coincides with SCE_H_COMMENT, assume eScriptComment if (inScriptType == eNonHtmlScript && state == SCE_H_COMMENT) { scriptLanguage = eScriptComment; } script_type beforeLanguage = ScriptOfState(beforePreProc); // property fold.html // Folding is turned on or off for HTML and XML files with this option. // The fold option must also be on for folding to occur. const bool foldHTML = styler.GetPropertyInt("fold.html", 0) != 0; const bool fold = foldHTML && styler.GetPropertyInt("fold", 0); // property fold.html.preprocessor // Folding is turned on or off for scripts embedded in HTML files with this option. // The default is on. const bool foldHTMLPreprocessor = foldHTML && styler.GetPropertyInt("fold.html.preprocessor", 1); const bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; // property fold.hypertext.comment // Allow folding for comments in scripts embedded in HTML. // The default is off. const bool foldComment = fold && styler.GetPropertyInt("fold.hypertext.comment", 0) != 0; // property fold.hypertext.heredoc // Allow folding for heredocs in scripts embedded in HTML. // The default is off. const bool foldHeredoc = fold && styler.GetPropertyInt("fold.hypertext.heredoc", 0) != 0; // property html.tags.case.sensitive // For XML and HTML, setting this property to 1 will make tags match in a case // sensitive way which is the expected behaviour for XML and XHTML. const bool caseSensitive = styler.GetPropertyInt("html.tags.case.sensitive", 0) != 0; // property lexer.xml.allow.scripts // Set to 0 to disable scripts in XML. const bool allowScripts = styler.GetPropertyInt("lexer.xml.allow.scripts", 1) != 0; // property lexer.html.mako // Set to 1 to enable the mako template language. const bool isMako = styler.GetPropertyInt("lexer.html.mako", 0) != 0; // property lexer.html.django // Set to 1 to enable the django template language. const bool isDjango = styler.GetPropertyInt("lexer.html.django", 0) != 0; const CharacterSet setHTMLWord(CharacterSet::setAlphaNum, ".-_:!#", 0x80, true); const CharacterSet setTagContinue(CharacterSet::setAlphaNum, ".-_:!#[", 0x80, true); const CharacterSet setAttributeContinue(CharacterSet::setAlphaNum, ".-_:!#/", 0x80, true); // TODO: also handle + and - (except if they're part of ++ or --) and return keywords const CharacterSet setOKBeforeJSRE(CharacterSet::setNone, "([{=,:;!%^&*|?~"); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; int visibleChars = 0; int lineStartVisibleChars = 0; int chPrev = ' '; int ch = ' '; int chPrevNonWhite = ' '; // look back to set chPrevNonWhite properly for better regex colouring if (scriptLanguage == eScriptJS && startPos > 0) { Sci_Position back = startPos; int style = 0; while (--back) { style = styler.StyleAt(back); if (style < SCE_HJ_DEFAULT || style > SCE_HJ_COMMENTDOC) // includes SCE_HJ_COMMENT & SCE_HJ_COMMENTLINE break; } if (style == SCE_HJ_SYMBOLS) { chPrevNonWhite = static_cast(styler.SafeGetCharAt(back)); } } styler.StartSegment(startPos); const Sci_Position lengthDoc = startPos + length; for (Sci_Position i = startPos; i < lengthDoc; i++) { const int chPrev2 = chPrev; chPrev = ch; if (!IsASpace(ch) && state != SCE_HJ_COMMENT && state != SCE_HJ_COMMENTLINE && state != SCE_HJ_COMMENTDOC) chPrevNonWhite = ch; ch = static_cast(styler[i]); int chNext = static_cast(styler.SafeGetCharAt(i + 1)); const int chNext2 = static_cast(styler.SafeGetCharAt(i + 2)); // Handle DBCS codepages if (styler.IsLeadByte(static_cast(ch))) { chPrev = ' '; i += 1; continue; } if ((!IsASpace(ch) || !foldCompact) && fold) visibleChars++; if (!IsASpace(ch)) lineStartVisibleChars++; // decide what is the current state to print (depending of the script tag) StateToPrint = statePrintForState(state, inScriptType); // handle script folding if (fold) { switch (scriptLanguage) { case eScriptJS: case eScriptPHP: //not currently supported case eScriptVBS: if ((state != SCE_HPHP_COMMENT) && (state != SCE_HPHP_COMMENTLINE) && (state != SCE_HJ_COMMENT) && (state != SCE_HJ_COMMENTLINE) && (state != SCE_HJ_COMMENTDOC) && (!isStringState(state))) { //Platform::DebugPrintf("state=%d, StateToPrint=%d, initStyle=%d\n", state, StateToPrint, initStyle); //if ((state == SCE_HPHP_OPERATOR) || (state == SCE_HPHP_DEFAULT) || (state == SCE_HJ_SYMBOLS) || (state == SCE_HJ_START) || (state == SCE_HJ_DEFAULT)) { if (ch == '#') { Sci_Position j = i + 1; while ((j < lengthDoc) && IsASpaceOrTab(styler.SafeGetCharAt(j))) { j++; } if (styler.Match(j, "region") || styler.Match(j, "if")) { levelCurrent++; } else if (styler.Match(j, "end")) { levelCurrent--; } } else if ((ch == '{') || (ch == '}') || (foldComment && (ch == '/') && (chNext == '*'))) { levelCurrent += (((ch == '{') || (ch == '/')) ? 1 : -1); } } else if (((state == SCE_HPHP_COMMENT) || (state == SCE_HJ_COMMENT)) && foldComment && (ch == '*') && (chNext == '/')) { levelCurrent--; } break; case eScriptPython: if (state != SCE_HP_COMMENTLINE && !isMako) { if ((ch == ':') && ((chNext == '\n') || (chNext == '\r' && chNext2 == '\n'))) { levelCurrent++; } else if ((ch == '\n') && !((chNext == '\r') && (chNext2 == '\n')) && (chNext != '\n')) { // check if the number of tabs is lower than the level int Findlevel = (levelCurrent & ~SC_FOLDLEVELBASE) * 8; for (Sci_Position j = 0; Findlevel > 0; j++) { char chTmp = styler.SafeGetCharAt(i + j + 1); if (chTmp == '\t') { Findlevel -= 8; } else if (chTmp == ' ') { Findlevel--; } else { break; } } if (Findlevel > 0) { levelCurrent -= Findlevel / 8; if (Findlevel % 8) levelCurrent--; } } } break; default: break; } } if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { // Trigger on CR only (Mac style) or either on LF from CR+LF (Dos/Win) or on LF alone (Unix) // Avoid triggering two times on Dos/Win // New line -> record any line state onto /next/ line if (fold) { int lev = levelPrev; if (visibleChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; styler.SetLevel(lineCurrent, lev); visibleChars = 0; levelPrev = levelCurrent; } styler.SetLineState(lineCurrent, ((inScriptType & 0x03) << 0) | ((tagOpened ? 1 : 0) << 2) | ((tagClosing ? 1 : 0) << 3) | ((aspScript & 0x0F) << 4) | ((clientScript & 0x0F) << 8) | ((beforePreProc & 0xFF) << 12)); lineCurrent++; lineStartVisibleChars = 0; } // handle start of Mako comment line if (isMako && ch == '#' && chNext == '#') { makoComment = 1; state = SCE_HP_COMMENTLINE; } // handle end of Mako comment line else if (isMako && makoComment && (ch == '\r' || ch == '\n')) { makoComment = 0; styler.ColourTo(i - 1, StateToPrint); if (scriptLanguage == eScriptPython) { state = SCE_HP_DEFAULT; } else { state = SCE_H_DEFAULT; } } // Allow falling through to mako handling code if newline is going to end a block if (((ch == '\r' && chNext != '\n') || (ch == '\n')) && (!isMako || (0 != strcmp(makoBlockType, "%")))) { } // Ignore everything in mako comment until the line ends else if (isMako && makoComment) { } // generic end of script processing else if ((inScriptType == eNonHtmlScript) && (ch == '<') && (chNext == '/')) { // Check if it's the end of the script tag (or any other HTML tag) switch (state) { // in these cases, you can embed HTML tags (to confirm !!!!!!!!!!!!!!!!!!!!!!) case SCE_H_DOUBLESTRING: case SCE_H_SINGLESTRING: case SCE_HJ_COMMENT: case SCE_HJ_COMMENTDOC: //case SCE_HJ_COMMENTLINE: // removed as this is a common thing done to hide // the end of script marker from some JS interpreters. case SCE_HB_COMMENTLINE: case SCE_HBA_COMMENTLINE: case SCE_HJ_DOUBLESTRING: case SCE_HJ_SINGLESTRING: case SCE_HJ_REGEX: case SCE_HB_STRING: case SCE_HBA_STRING: case SCE_HP_STRING: case SCE_HP_TRIPLE: case SCE_HP_TRIPLEDOUBLE: case SCE_HPHP_HSTRING: case SCE_HPHP_SIMPLESTRING: case SCE_HPHP_COMMENT: case SCE_HPHP_COMMENTLINE: break; default : // check if the closing tag is a script tag if (const char *tag = state == SCE_HJ_COMMENTLINE || isXml ? "script" : state == SCE_H_COMMENT ? "comment" : 0) { Sci_Position j = i + 2; int chr; do { chr = static_cast(*tag++); } while (chr != 0 && chr == MakeLowerCase(styler.SafeGetCharAt(j++))); if (chr != 0) break; } // closing tag of the script (it's a closing HTML tag anyway) styler.ColourTo(i - 1, StateToPrint); state = SCE_H_TAGUNKNOWN; inScriptType = eHtml; scriptLanguage = eScriptNone; clientScript = eScriptJS; i += 2; visibleChars += 2; tagClosing = true; continue; } } ///////////////////////////////////// // handle the start of PHP pre-processor = Non-HTML else if ((state != SCE_H_ASPAT) && !isStringState(state) && (state != SCE_HPHP_COMMENT) && (state != SCE_HPHP_COMMENTLINE) && (ch == '<') && (chNext == '?') && !IsScriptCommentState(state)) { beforeLanguage = scriptLanguage; scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP); if ((scriptLanguage != eScriptPHP) && (isStringState(state) || (state==SCE_H_COMMENT))) continue; styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; i++; visibleChars++; i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 6); if (scriptLanguage == eScriptXML) styler.ColourTo(i, SCE_H_XMLSTART); else styler.ColourTo(i, SCE_H_QUESTION); state = StateForScript(scriptLanguage); if (inScriptType == eNonHtmlScript) inScriptType = eNonHtmlScriptPreProc; else inScriptType = eNonHtmlPreProc; // Fold whole script, but not if the XML first tag (all XML-like tags in this case) if (foldHTMLPreprocessor && (scriptLanguage != eScriptXML)) { levelCurrent++; } // should be better ch = static_cast(styler.SafeGetCharAt(i)); continue; } // handle the start Mako template Python code else if (isMako && scriptLanguage == eScriptNone && ((ch == '<' && chNext == '%') || (lineStartVisibleChars == 1 && ch == '%') || (lineStartVisibleChars == 1 && ch == '/' && chNext == '%') || (ch == '$' && chNext == '{') || (ch == '<' && chNext == '/' && chNext2 == '%'))) { if (ch == '%' || ch == '/') StringCopy(makoBlockType, "%"); else if (ch == '$') StringCopy(makoBlockType, "{"); else if (chNext == '/') GetNextWord(styler, i+3, makoBlockType, sizeof(makoBlockType)); else GetNextWord(styler, i+2, makoBlockType, sizeof(makoBlockType)); styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; if (inScriptType == eNonHtmlScript) inScriptType = eNonHtmlScriptPreProc; else inScriptType = eNonHtmlPreProc; if (chNext == '/') { i += 2; visibleChars += 2; } else if (ch != '%') { i++; visibleChars++; } state = SCE_HP_START; scriptLanguage = eScriptPython; styler.ColourTo(i, SCE_H_ASP); if (ch != '%' && ch != '$' && ch != '/') { i += static_cast(strlen(makoBlockType)); visibleChars += static_cast(strlen(makoBlockType)); if (keywords4.InList(makoBlockType)) styler.ColourTo(i, SCE_HP_WORD); else styler.ColourTo(i, SCE_H_TAGUNKNOWN); } ch = static_cast(styler.SafeGetCharAt(i)); continue; } // handle the start/end of Django comment else if (isDjango && state != SCE_H_COMMENT && (ch == '{' && chNext == '#')) { styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; beforeLanguage = scriptLanguage; if (inScriptType == eNonHtmlScript) inScriptType = eNonHtmlScriptPreProc; else inScriptType = eNonHtmlPreProc; i += 1; visibleChars += 1; scriptLanguage = eScriptComment; state = SCE_H_COMMENT; styler.ColourTo(i, SCE_H_ASP); ch = static_cast(styler.SafeGetCharAt(i)); continue; } else if (isDjango && state == SCE_H_COMMENT && (ch == '#' && chNext == '}')) { styler.ColourTo(i - 1, StateToPrint); i += 1; visibleChars += 1; styler.ColourTo(i, SCE_H_ASP); state = beforePreProc; if (inScriptType == eNonHtmlScriptPreProc) inScriptType = eNonHtmlScript; else inScriptType = eHtml; scriptLanguage = beforeLanguage; continue; } // handle the start Django template code else if (isDjango && scriptLanguage != eScriptPython && (ch == '{' && (chNext == '%' || chNext == '{'))) { if (chNext == '%') StringCopy(djangoBlockType, "%"); else StringCopy(djangoBlockType, "{"); styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; if (inScriptType == eNonHtmlScript) inScriptType = eNonHtmlScriptPreProc; else inScriptType = eNonHtmlPreProc; i += 1; visibleChars += 1; state = SCE_HP_START; beforeLanguage = scriptLanguage; scriptLanguage = eScriptPython; styler.ColourTo(i, SCE_H_ASP); ch = static_cast(styler.SafeGetCharAt(i)); continue; } // handle the start of ASP pre-processor = Non-HTML else if (!isMako && !isDjango && !isCommentASPState(state) && (ch == '<') && (chNext == '%') && !isPHPStringState(state)) { styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; if (inScriptType == eNonHtmlScript) inScriptType = eNonHtmlScriptPreProc; else inScriptType = eNonHtmlPreProc; if (chNext2 == '@') { i += 2; // place as if it was the second next char treated visibleChars += 2; state = SCE_H_ASPAT; } else if ((chNext2 == '-') && (styler.SafeGetCharAt(i + 3) == '-')) { styler.ColourTo(i + 3, SCE_H_ASP); state = SCE_H_XCCOMMENT; scriptLanguage = eScriptVBS; continue; } else { if (chNext2 == '=') { i += 2; // place as if it was the second next char treated visibleChars += 2; } else { i++; // place as if it was the next char treated visibleChars++; } state = StateForScript(aspScript); } scriptLanguage = eScriptVBS; styler.ColourTo(i, SCE_H_ASP); // fold whole script if (foldHTMLPreprocessor) levelCurrent++; // should be better ch = static_cast(styler.SafeGetCharAt(i)); continue; } ///////////////////////////////////// // handle the start of SGML language (DTD) else if (((scriptLanguage == eScriptNone) || (scriptLanguage == eScriptXML)) && (chPrev == '<') && (ch == '!') && (StateToPrint != SCE_H_CDATA) && (!IsCommentState(StateToPrint)) && (!IsScriptCommentState(StateToPrint))) { beforePreProc = state; styler.ColourTo(i - 2, StateToPrint); if ((chNext == '-') && (chNext2 == '-')) { state = SCE_H_COMMENT; // wait for a pending command styler.ColourTo(i + 2, SCE_H_COMMENT); i += 2; // follow styling after the -- } else if (isWordCdata(i + 1, i + 7, styler)) { state = SCE_H_CDATA; } else { styler.ColourTo(i, SCE_H_SGML_DEFAULT); // ') { i++; visibleChars++; } else if (0 == strcmp(makoBlockType, "%") && ch == '/') { i++; visibleChars++; } if (0 != strcmp(makoBlockType, "%") || ch == '/') { styler.ColourTo(i, SCE_H_ASP); } state = beforePreProc; if (inScriptType == eNonHtmlScriptPreProc) inScriptType = eNonHtmlScript; else inScriptType = eHtml; scriptLanguage = eScriptNone; continue; } // handle the end of Django template code else if (isDjango && ((inScriptType == eNonHtmlPreProc) || (inScriptType == eNonHtmlScriptPreProc)) && (scriptLanguage != eScriptNone) && stateAllowsTermination(state) && isDjangoBlockEnd(ch, chNext, djangoBlockType)) { if (state == SCE_H_ASPAT) { aspScript = segIsScriptingIndicator(styler, styler.GetStartSegment(), i - 1, aspScript); } if (state == SCE_HP_WORD) { classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); } else { styler.ColourTo(i - 1, StateToPrint); } i += 1; visibleChars += 1; styler.ColourTo(i, SCE_H_ASP); state = beforePreProc; if (inScriptType == eNonHtmlScriptPreProc) inScriptType = eNonHtmlScript; else inScriptType = eHtml; scriptLanguage = beforeLanguage; continue; } // handle the end of a pre-processor = Non-HTML else if ((!isMako && !isDjango && ((inScriptType == eNonHtmlPreProc) || (inScriptType == eNonHtmlScriptPreProc)) && (((scriptLanguage != eScriptNone) && stateAllowsTermination(state))) && (((ch == '%') || (ch == '?')) && (chNext == '>'))) || ((scriptLanguage == eScriptSGML) && (ch == '>') && (state != SCE_H_SGML_COMMENT))) { if (state == SCE_H_ASPAT) { aspScript = segIsScriptingIndicator(styler, styler.GetStartSegment(), i - 1, aspScript); } // Bounce out of any ASP mode switch (state) { case SCE_HJ_WORD: classifyWordHTJS(styler.GetStartSegment(), i - 1, keywords2, styler, inScriptType); break; case SCE_HB_WORD: classifyWordHTVB(styler.GetStartSegment(), i - 1, keywords3, styler, inScriptType); break; case SCE_HP_WORD: classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); break; case SCE_HPHP_WORD: classifyWordHTPHP(styler.GetStartSegment(), i - 1, keywords5, styler); break; case SCE_H_XCCOMMENT: styler.ColourTo(i - 1, state); break; default : styler.ColourTo(i - 1, StateToPrint); break; } if (scriptLanguage != eScriptSGML) { i++; visibleChars++; } if (ch == '%') styler.ColourTo(i, SCE_H_ASP); else if (scriptLanguage == eScriptXML) styler.ColourTo(i, SCE_H_XMLEND); else if (scriptLanguage == eScriptSGML) styler.ColourTo(i, SCE_H_SGML_DEFAULT); else styler.ColourTo(i, SCE_H_QUESTION); state = beforePreProc; if (inScriptType == eNonHtmlScriptPreProc) inScriptType = eNonHtmlScript; else inScriptType = eHtml; // Unfold all scripting languages, except for XML tag if (foldHTMLPreprocessor && (scriptLanguage != eScriptXML)) { levelCurrent--; } scriptLanguage = beforeLanguage; continue; } ///////////////////////////////////// switch (state) { case SCE_H_DEFAULT: if (ch == '<') { // in HTML, fold on tag open and unfold on tag close tagOpened = true; tagClosing = (chNext == '/'); styler.ColourTo(i - 1, StateToPrint); if (chNext != '!') state = SCE_H_TAGUNKNOWN; } else if (ch == '&') { styler.ColourTo(i - 1, SCE_H_DEFAULT); state = SCE_H_ENTITY; } break; case SCE_H_SGML_DEFAULT: case SCE_H_SGML_BLOCK_DEFAULT: // if (scriptLanguage == eScriptSGMLblock) // StateToPrint = SCE_H_SGML_BLOCK_DEFAULT; if (ch == '\"') { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_SGML_DOUBLESTRING; } else if (ch == '\'') { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_SGML_SIMPLESTRING; } else if ((ch == '-') && (chPrev == '-')) { if (static_cast(styler.GetStartSegment()) <= (i - 2)) { styler.ColourTo(i - 2, StateToPrint); } state = SCE_H_SGML_COMMENT; } else if (IsASCII(ch) && isalpha(ch) && (chPrev == '%')) { styler.ColourTo(i - 2, StateToPrint); state = SCE_H_SGML_ENTITY; } else if (ch == '#') { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_SGML_SPECIAL; } else if (ch == '[') { styler.ColourTo(i - 1, StateToPrint); scriptLanguage = eScriptSGMLblock; state = SCE_H_SGML_BLOCK_DEFAULT; } else if (ch == ']') { if (scriptLanguage == eScriptSGMLblock) { styler.ColourTo(i, StateToPrint); scriptLanguage = eScriptSGML; } else { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, SCE_H_SGML_ERROR); } state = SCE_H_SGML_DEFAULT; } else if (scriptLanguage == eScriptSGMLblock) { if ((ch == '!') && (chPrev == '<')) { styler.ColourTo(i - 2, StateToPrint); styler.ColourTo(i, SCE_H_SGML_DEFAULT); state = SCE_H_SGML_COMMAND; } else if (ch == '>') { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, SCE_H_SGML_DEFAULT); } } break; case SCE_H_SGML_COMMAND: if ((ch == '-') && (chPrev == '-')) { styler.ColourTo(i - 2, StateToPrint); state = SCE_H_SGML_COMMENT; } else if (!issgmlwordchar(ch)) { if (isWordHSGML(styler.GetStartSegment(), i - 1, keywords6, styler)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_SGML_1ST_PARAM; } else { state = SCE_H_SGML_ERROR; } } break; case SCE_H_SGML_1ST_PARAM: // wait for the beginning of the word if ((ch == '-') && (chPrev == '-')) { if (scriptLanguage == eScriptSGMLblock) { styler.ColourTo(i - 2, SCE_H_SGML_BLOCK_DEFAULT); } else { styler.ColourTo(i - 2, SCE_H_SGML_DEFAULT); } state = SCE_H_SGML_1ST_PARAM_COMMENT; } else if (issgmlwordchar(ch)) { if (scriptLanguage == eScriptSGMLblock) { styler.ColourTo(i - 1, SCE_H_SGML_BLOCK_DEFAULT); } else { styler.ColourTo(i - 1, SCE_H_SGML_DEFAULT); } // find the length of the word int size = 1; while (setHTMLWord.Contains(static_cast(styler.SafeGetCharAt(i + size)))) size++; styler.ColourTo(i + size - 1, StateToPrint); i += size - 1; visibleChars += size - 1; ch = static_cast(styler.SafeGetCharAt(i)); if (scriptLanguage == eScriptSGMLblock) { state = SCE_H_SGML_BLOCK_DEFAULT; } else { state = SCE_H_SGML_DEFAULT; } continue; } break; case SCE_H_SGML_ERROR: if ((ch == '-') && (chPrev == '-')) { styler.ColourTo(i - 2, StateToPrint); state = SCE_H_SGML_COMMENT; } break; case SCE_H_SGML_DOUBLESTRING: if (ch == '\"') { styler.ColourTo(i, StateToPrint); state = SCE_H_SGML_DEFAULT; } break; case SCE_H_SGML_SIMPLESTRING: if (ch == '\'') { styler.ColourTo(i, StateToPrint); state = SCE_H_SGML_DEFAULT; } break; case SCE_H_SGML_COMMENT: if ((ch == '-') && (chPrev == '-')) { styler.ColourTo(i, StateToPrint); state = SCE_H_SGML_DEFAULT; } break; case SCE_H_CDATA: if ((chPrev2 == ']') && (chPrev == ']') && (ch == '>')) { styler.ColourTo(i, StateToPrint); state = SCE_H_DEFAULT; levelCurrent--; } break; case SCE_H_COMMENT: if ((scriptLanguage != eScriptComment) && (chPrev2 == '-') && (chPrev == '-') && (ch == '>')) { styler.ColourTo(i, StateToPrint); state = SCE_H_DEFAULT; levelCurrent--; } break; case SCE_H_SGML_1ST_PARAM_COMMENT: if ((ch == '-') && (chPrev == '-')) { styler.ColourTo(i, SCE_H_SGML_COMMENT); state = SCE_H_SGML_1ST_PARAM; } break; case SCE_H_SGML_SPECIAL: if (!(IsASCII(ch) && isupper(ch))) { styler.ColourTo(i - 1, StateToPrint); if (isalnum(ch)) { state = SCE_H_SGML_ERROR; } else { state = SCE_H_SGML_DEFAULT; } } break; case SCE_H_SGML_ENTITY: if (ch == ';') { styler.ColourTo(i, StateToPrint); state = SCE_H_SGML_DEFAULT; } else if (!(IsASCII(ch) && isalnum(ch)) && ch != '-' && ch != '.') { styler.ColourTo(i, SCE_H_SGML_ERROR); state = SCE_H_SGML_DEFAULT; } break; case SCE_H_ENTITY: if (ch == ';') { styler.ColourTo(i, StateToPrint); state = SCE_H_DEFAULT; } if (ch != '#' && !(IsASCII(ch) && isalnum(ch)) // Should check that '#' follows '&', but it is unlikely anyway... && ch != '.' && ch != '-' && ch != '_' && ch != ':') { // valid in XML if (!IsASCII(ch)) // Possibly start of a multibyte character so don't allow this byte to be in entity style styler.ColourTo(i-1, SCE_H_TAGUNKNOWN); else styler.ColourTo(i, SCE_H_TAGUNKNOWN); state = SCE_H_DEFAULT; } break; case SCE_H_TAGUNKNOWN: if (!setTagContinue.Contains(ch) && !((ch == '/') && (chPrev == '<'))) { int eClass = classifyTagHTML(styler.GetStartSegment(), i - 1, keywords, styler, tagDontFold, caseSensitive, isXml, allowScripts); if (eClass == SCE_H_SCRIPT || eClass == SCE_H_COMMENT) { if (!tagClosing) { inScriptType = eNonHtmlScript; scriptLanguage = eClass == SCE_H_SCRIPT ? clientScript : eScriptComment; } else { scriptLanguage = eScriptNone; } eClass = SCE_H_TAG; } if (ch == '>') { styler.ColourTo(i, eClass); if (inScriptType == eNonHtmlScript) { state = StateForScript(scriptLanguage); } else { state = SCE_H_DEFAULT; } tagOpened = false; if (!tagDontFold) { if (tagClosing) { levelCurrent--; } else { levelCurrent++; } } tagClosing = false; } else if (ch == '/' && chNext == '>') { if (eClass == SCE_H_TAGUNKNOWN) { styler.ColourTo(i + 1, SCE_H_TAGUNKNOWN); } else { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i + 1, SCE_H_TAGEND); } i++; ch = chNext; state = SCE_H_DEFAULT; tagOpened = false; } else { if (eClass != SCE_H_TAGUNKNOWN) { if (eClass == SCE_H_SGML_DEFAULT) { state = SCE_H_SGML_DEFAULT; } else { state = SCE_H_OTHER; } } } } break; case SCE_H_ATTRIBUTE: if (!setAttributeContinue.Contains(ch)) { if (inScriptType == eNonHtmlScript) { int scriptLanguagePrev = scriptLanguage; clientScript = segIsScriptingIndicator(styler, styler.GetStartSegment(), i - 1, scriptLanguage); scriptLanguage = clientScript; if ((scriptLanguagePrev != scriptLanguage) && (scriptLanguage == eScriptNone)) inScriptType = eHtml; } classifyAttribHTML(styler.GetStartSegment(), i - 1, keywords, styler); if (ch == '>') { styler.ColourTo(i, SCE_H_TAG); if (inScriptType == eNonHtmlScript) { state = StateForScript(scriptLanguage); } else { state = SCE_H_DEFAULT; } tagOpened = false; if (!tagDontFold) { if (tagClosing) { levelCurrent--; } else { levelCurrent++; } } tagClosing = false; } else if (ch == '=') { styler.ColourTo(i, SCE_H_OTHER); state = SCE_H_VALUE; } else { state = SCE_H_OTHER; } } break; case SCE_H_OTHER: if (ch == '>') { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, SCE_H_TAG); if (inScriptType == eNonHtmlScript) { state = StateForScript(scriptLanguage); } else { state = SCE_H_DEFAULT; } tagOpened = false; if (!tagDontFold) { if (tagClosing) { levelCurrent--; } else { levelCurrent++; } } tagClosing = false; } else if (ch == '\"') { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_DOUBLESTRING; } else if (ch == '\'') { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_SINGLESTRING; } else if (ch == '=') { styler.ColourTo(i, StateToPrint); state = SCE_H_VALUE; } else if (ch == '/' && chNext == '>') { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i + 1, SCE_H_TAGEND); i++; ch = chNext; state = SCE_H_DEFAULT; tagOpened = false; } else if (ch == '?' && chNext == '>') { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i + 1, SCE_H_XMLEND); i++; ch = chNext; state = SCE_H_DEFAULT; } else if (setHTMLWord.Contains(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_H_ATTRIBUTE; } break; case SCE_H_DOUBLESTRING: if (ch == '\"') { if (inScriptType == eNonHtmlScript) { scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment(), i, scriptLanguage); } styler.ColourTo(i, SCE_H_DOUBLESTRING); state = SCE_H_OTHER; } break; case SCE_H_SINGLESTRING: if (ch == '\'') { if (inScriptType == eNonHtmlScript) { scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment(), i, scriptLanguage); } styler.ColourTo(i, SCE_H_SINGLESTRING); state = SCE_H_OTHER; } break; case SCE_H_VALUE: if (!setHTMLWord.Contains(ch)) { if (ch == '\"' && chPrev == '=') { // Should really test for being first character state = SCE_H_DOUBLESTRING; } else if (ch == '\'' && chPrev == '=') { state = SCE_H_SINGLESTRING; } else { if (IsNumber(styler.GetStartSegment(), styler)) { styler.ColourTo(i - 1, SCE_H_NUMBER); } else { styler.ColourTo(i - 1, StateToPrint); } if (ch == '>') { styler.ColourTo(i, SCE_H_TAG); if (inScriptType == eNonHtmlScript) { state = StateForScript(scriptLanguage); } else { state = SCE_H_DEFAULT; } tagOpened = false; if (!tagDontFold) { if (tagClosing) { levelCurrent--; } else { levelCurrent++; } } tagClosing = false; } else { state = SCE_H_OTHER; } } } break; case SCE_HJ_DEFAULT: case SCE_HJ_START: case SCE_HJ_SYMBOLS: if (IsAWordStart(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_WORD; } else if (ch == '/' && chNext == '*') { styler.ColourTo(i - 1, StateToPrint); if (chNext2 == '*') state = SCE_HJ_COMMENTDOC; else state = SCE_HJ_COMMENT; if (chNext2 == '/') { // Eat the * so it isn't used for the end of the comment i++; } } else if (ch == '/' && chNext == '/') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; } else if (ch == '/' && setOKBeforeJSRE.Contains(chPrevNonWhite)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_REGEX; } else if (ch == '\"') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_DOUBLESTRING; } else if (ch == '\'') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_SINGLESTRING; } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && styler.SafeGetCharAt(i + 3) == '-') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; } else if ((ch == '-') && (chNext == '-') && (chNext2 == '>')) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; i += 2; } else if (IsOperator(ch)) { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); state = SCE_HJ_DEFAULT; } else if ((ch == ' ') || (ch == '\t')) { if (state == SCE_HJ_START) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_DEFAULT; } } break; case SCE_HJ_WORD: if (!IsAWordChar(ch)) { classifyWordHTJS(styler.GetStartSegment(), i - 1, keywords2, styler, inScriptType); //styler.ColourTo(i - 1, eHTJSKeyword); state = SCE_HJ_DEFAULT; if (ch == '/' && chNext == '*') { if (chNext2 == '*') state = SCE_HJ_COMMENTDOC; else state = SCE_HJ_COMMENT; } else if (ch == '/' && chNext == '/') { state = SCE_HJ_COMMENTLINE; } else if (ch == '\"') { state = SCE_HJ_DOUBLESTRING; } else if (ch == '\'') { state = SCE_HJ_SINGLESTRING; } else if ((ch == '-') && (chNext == '-') && (chNext2 == '>')) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; i += 2; } else if (IsOperator(ch)) { styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); state = SCE_HJ_DEFAULT; } } break; case SCE_HJ_COMMENT: case SCE_HJ_COMMENTDOC: if (ch == '/' && chPrev == '*') { styler.ColourTo(i, StateToPrint); state = SCE_HJ_DEFAULT; ch = ' '; } break; case SCE_HJ_COMMENTLINE: if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, statePrintForState(SCE_HJ_COMMENTLINE, inScriptType)); state = SCE_HJ_DEFAULT; ch = ' '; } break; case SCE_HJ_DOUBLESTRING: if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; } } else if (ch == '\"') { styler.ColourTo(i, statePrintForState(SCE_HJ_DOUBLESTRING, inScriptType)); state = SCE_HJ_DEFAULT; } else if ((inScriptType == eNonHtmlScript) && (ch == '-') && (chNext == '-') && (chNext2 == '>')) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; i += 2; } else if (isLineEnd(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_STRINGEOL; } break; case SCE_HJ_SINGLESTRING: if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; } } else if (ch == '\'') { styler.ColourTo(i, statePrintForState(SCE_HJ_SINGLESTRING, inScriptType)); state = SCE_HJ_DEFAULT; } else if ((inScriptType == eNonHtmlScript) && (ch == '-') && (chNext == '-') && (chNext2 == '>')) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; i += 2; } else if (isLineEnd(ch)) { styler.ColourTo(i - 1, StateToPrint); if (chPrev != '\\' && (chPrev2 != '\\' || chPrev != '\r' || ch != '\n')) { state = SCE_HJ_STRINGEOL; } } break; case SCE_HJ_STRINGEOL: if (!isLineEnd(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_DEFAULT; } else if (!isLineEnd(chNext)) { styler.ColourTo(i, StateToPrint); state = SCE_HJ_DEFAULT; } break; case SCE_HJ_REGEX: if (ch == '\r' || ch == '\n' || ch == '/') { if (ch == '/') { while (IsASCII(chNext) && islower(chNext)) { // gobble regex flags i++; ch = chNext; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } } styler.ColourTo(i, StateToPrint); state = SCE_HJ_DEFAULT; } else if (ch == '\\') { // Gobble up the quoted character if (chNext == '\\' || chNext == '/') { i++; ch = chNext; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } } break; case SCE_HB_DEFAULT: case SCE_HB_START: if (IsAWordStart(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_WORD; } else if (ch == '\'') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_COMMENTLINE; } else if (ch == '\"') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_STRING; } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && styler.SafeGetCharAt(i + 3) == '-') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_COMMENTLINE; } else if (IsOperator(ch)) { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, statePrintForState(SCE_HB_DEFAULT, inScriptType)); state = SCE_HB_DEFAULT; } else if ((ch == ' ') || (ch == '\t')) { if (state == SCE_HB_START) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_DEFAULT; } } break; case SCE_HB_WORD: if (!IsAWordChar(ch)) { state = classifyWordHTVB(styler.GetStartSegment(), i - 1, keywords3, styler, inScriptType); if (state == SCE_HB_DEFAULT) { if (ch == '\"') { state = SCE_HB_STRING; } else if (ch == '\'') { state = SCE_HB_COMMENTLINE; } else if (IsOperator(ch)) { styler.ColourTo(i, statePrintForState(SCE_HB_DEFAULT, inScriptType)); state = SCE_HB_DEFAULT; } } } break; case SCE_HB_STRING: if (ch == '\"') { styler.ColourTo(i, StateToPrint); state = SCE_HB_DEFAULT; } else if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_STRINGEOL; } break; case SCE_HB_COMMENTLINE: if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_DEFAULT; } break; case SCE_HB_STRINGEOL: if (!isLineEnd(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HB_DEFAULT; } else if (!isLineEnd(chNext)) { styler.ColourTo(i, StateToPrint); state = SCE_HB_DEFAULT; } break; case SCE_HP_DEFAULT: case SCE_HP_START: if (IsAWordStart(ch)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HP_WORD; } else if ((ch == '<') && (chNext == '!') && (chNext2 == '-') && styler.SafeGetCharAt(i + 3) == '-') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HP_COMMENTLINE; } else if (ch == '#') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HP_COMMENTLINE; } else if (ch == '\"') { styler.ColourTo(i - 1, StateToPrint); if (chNext == '\"' && chNext2 == '\"') { i += 2; state = SCE_HP_TRIPLEDOUBLE; ch = ' '; chPrev = ' '; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } else { // state = statePrintForState(SCE_HP_STRING,inScriptType); state = SCE_HP_STRING; } } else if (ch == '\'') { styler.ColourTo(i - 1, StateToPrint); if (chNext == '\'' && chNext2 == '\'') { i += 2; state = SCE_HP_TRIPLE; ch = ' '; chPrev = ' '; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } else { state = SCE_HP_CHARACTER; } } else if (IsOperator(ch)) { styler.ColourTo(i - 1, StateToPrint); styler.ColourTo(i, statePrintForState(SCE_HP_OPERATOR, inScriptType)); } else if ((ch == ' ') || (ch == '\t')) { if (state == SCE_HP_START) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HP_DEFAULT; } } break; case SCE_HP_WORD: if (!IsAWordChar(ch)) { classifyWordHTPy(styler.GetStartSegment(), i - 1, keywords4, styler, prevWord, inScriptType, isMako); state = SCE_HP_DEFAULT; if (ch == '#') { state = SCE_HP_COMMENTLINE; } else if (ch == '\"') { if (chNext == '\"' && chNext2 == '\"') { i += 2; state = SCE_HP_TRIPLEDOUBLE; ch = ' '; chPrev = ' '; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } else { state = SCE_HP_STRING; } } else if (ch == '\'') { if (chNext == '\'' && chNext2 == '\'') { i += 2; state = SCE_HP_TRIPLE; ch = ' '; chPrev = ' '; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } else { state = SCE_HP_CHARACTER; } } else if (IsOperator(ch)) { styler.ColourTo(i, statePrintForState(SCE_HP_OPERATOR, inScriptType)); } } break; case SCE_HP_COMMENTLINE: if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HP_DEFAULT; } break; case SCE_HP_STRING: if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; ch = chNext; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } } else if (ch == '\"') { styler.ColourTo(i, StateToPrint); state = SCE_HP_DEFAULT; } break; case SCE_HP_CHARACTER: if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; ch = chNext; chNext = static_cast(styler.SafeGetCharAt(i + 1)); } } else if (ch == '\'') { styler.ColourTo(i, StateToPrint); state = SCE_HP_DEFAULT; } break; case SCE_HP_TRIPLE: if (ch == '\'' && chPrev == '\'' && chPrev2 == '\'') { styler.ColourTo(i, StateToPrint); state = SCE_HP_DEFAULT; } break; case SCE_HP_TRIPLEDOUBLE: if (ch == '\"' && chPrev == '\"' && chPrev2 == '\"') { styler.ColourTo(i, StateToPrint); state = SCE_HP_DEFAULT; } break; ///////////// start - PHP state handling case SCE_HPHP_WORD: if (!IsAWordChar(ch)) { classifyWordHTPHP(styler.GetStartSegment(), i - 1, keywords5, styler); if (ch == '/' && chNext == '*') { i++; state = SCE_HPHP_COMMENT; } else if (ch == '/' && chNext == '/') { i++; state = SCE_HPHP_COMMENTLINE; } else if (ch == '#') { state = SCE_HPHP_COMMENTLINE; } else if (ch == '\"') { state = SCE_HPHP_HSTRING; StringCopy(phpStringDelimiter, "\""); } else if (styler.Match(i, "<<<")) { bool isSimpleString = false; i = FindPhpStringDelimiter(phpStringDelimiter, sizeof(phpStringDelimiter), i + 3, lengthDoc, styler, isSimpleString); if (strlen(phpStringDelimiter)) { state = (isSimpleString ? SCE_HPHP_SIMPLESTRING : SCE_HPHP_HSTRING); if (foldHeredoc) levelCurrent++; } } else if (ch == '\'') { state = SCE_HPHP_SIMPLESTRING; StringCopy(phpStringDelimiter, "\'"); } else if (ch == '$' && IsPhpWordStart(chNext)) { state = SCE_HPHP_VARIABLE; } else if (IsOperator(ch)) { state = SCE_HPHP_OPERATOR; } else { state = SCE_HPHP_DEFAULT; } } break; case SCE_HPHP_NUMBER: // recognize bases 8,10 or 16 integers OR floating-point numbers if (!IsADigit(ch) && strchr(".xXabcdefABCDEF", ch) == NULL && ((ch != '-' && ch != '+') || (chPrev != 'e' && chPrev != 'E'))) { styler.ColourTo(i - 1, SCE_HPHP_NUMBER); if (IsOperator(ch)) state = SCE_HPHP_OPERATOR; else state = SCE_HPHP_DEFAULT; } break; case SCE_HPHP_VARIABLE: if (!IsPhpWordChar(chNext)) { styler.ColourTo(i, SCE_HPHP_VARIABLE); state = SCE_HPHP_DEFAULT; } break; case SCE_HPHP_COMMENT: if (ch == '/' && chPrev == '*') { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; } break; case SCE_HPHP_COMMENTLINE: if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HPHP_DEFAULT; } break; case SCE_HPHP_HSTRING: if (ch == '\\' && (phpStringDelimiter[0] == '\"' || chNext == '$' || chNext == '{')) { // skip the next char i++; } else if (((ch == '{' && chNext == '$') || (ch == '$' && chNext == '{')) && IsPhpWordStart(chNext2)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HPHP_COMPLEX_VARIABLE; } else if (ch == '$' && IsPhpWordStart(chNext)) { styler.ColourTo(i - 1, StateToPrint); state = SCE_HPHP_HSTRING_VARIABLE; } else if (styler.Match(i, phpStringDelimiter)) { if (phpStringDelimiter[0] == '\"') { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; } else if (isLineEnd(chPrev)) { const int psdLength = static_cast(strlen(phpStringDelimiter)); const char chAfterPsd = styler.SafeGetCharAt(i + psdLength); const char chAfterPsd2 = styler.SafeGetCharAt(i + psdLength + 1); if (isLineEnd(chAfterPsd) || (chAfterPsd == ';' && isLineEnd(chAfterPsd2))) { i += (((i + psdLength) < lengthDoc) ? psdLength : lengthDoc) - 1; styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; if (foldHeredoc) levelCurrent--; } } } break; case SCE_HPHP_SIMPLESTRING: if (phpStringDelimiter[0] == '\'') { if (ch == '\\') { // skip the next char i++; } else if (ch == '\'') { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; } } else if (isLineEnd(chPrev) && styler.Match(i, phpStringDelimiter)) { const int psdLength = static_cast(strlen(phpStringDelimiter)); const char chAfterPsd = styler.SafeGetCharAt(i + psdLength); const char chAfterPsd2 = styler.SafeGetCharAt(i + psdLength + 1); if (isLineEnd(chAfterPsd) || (chAfterPsd == ';' && isLineEnd(chAfterPsd2))) { i += (((i + psdLength) < lengthDoc) ? psdLength : lengthDoc) - 1; styler.ColourTo(i, StateToPrint); state = SCE_HPHP_DEFAULT; if (foldHeredoc) levelCurrent--; } } break; case SCE_HPHP_HSTRING_VARIABLE: if (!IsPhpWordChar(chNext)) { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_HSTRING; } break; case SCE_HPHP_COMPLEX_VARIABLE: if (ch == '}') { styler.ColourTo(i, StateToPrint); state = SCE_HPHP_HSTRING; } break; case SCE_HPHP_OPERATOR: case SCE_HPHP_DEFAULT: styler.ColourTo(i - 1, StateToPrint); if (IsADigit(ch) || (ch == '.' && IsADigit(chNext))) { state = SCE_HPHP_NUMBER; } else if (IsAWordStart(ch)) { state = SCE_HPHP_WORD; } else if (ch == '/' && chNext == '*') { i++; state = SCE_HPHP_COMMENT; } else if (ch == '/' && chNext == '/') { i++; state = SCE_HPHP_COMMENTLINE; } else if (ch == '#') { state = SCE_HPHP_COMMENTLINE; } else if (ch == '\"') { state = SCE_HPHP_HSTRING; StringCopy(phpStringDelimiter, "\""); } else if (styler.Match(i, "<<<")) { bool isSimpleString = false; i = FindPhpStringDelimiter(phpStringDelimiter, sizeof(phpStringDelimiter), i + 3, lengthDoc, styler, isSimpleString); if (strlen(phpStringDelimiter)) { state = (isSimpleString ? SCE_HPHP_SIMPLESTRING : SCE_HPHP_HSTRING); if (foldHeredoc) levelCurrent++; } } else if (ch == '\'') { state = SCE_HPHP_SIMPLESTRING; StringCopy(phpStringDelimiter, "\'"); } else if (ch == '$' && IsPhpWordStart(chNext)) { state = SCE_HPHP_VARIABLE; } else if (IsOperator(ch)) { state = SCE_HPHP_OPERATOR; } else if ((state == SCE_HPHP_OPERATOR) && (IsASpace(ch))) { state = SCE_HPHP_DEFAULT; } break; ///////////// end - PHP state handling } // Some of the above terminated their lexeme but since the same character starts // the same class again, only reenter if non empty segment. bool nonEmptySegment = i >= static_cast(styler.GetStartSegment()); if (state == SCE_HB_DEFAULT) { // One of the above succeeded if ((ch == '\"') && (nonEmptySegment)) { state = SCE_HB_STRING; } else if (ch == '\'') { state = SCE_HB_COMMENTLINE; } else if (IsAWordStart(ch)) { state = SCE_HB_WORD; } else if (IsOperator(ch)) { styler.ColourTo(i, SCE_HB_DEFAULT); } } else if (state == SCE_HBA_DEFAULT) { // One of the above succeeded if ((ch == '\"') && (nonEmptySegment)) { state = SCE_HBA_STRING; } else if (ch == '\'') { state = SCE_HBA_COMMENTLINE; } else if (IsAWordStart(ch)) { state = SCE_HBA_WORD; } else if (IsOperator(ch)) { styler.ColourTo(i, SCE_HBA_DEFAULT); } } else if (state == SCE_HJ_DEFAULT) { // One of the above succeeded if (ch == '/' && chNext == '*') { if (styler.SafeGetCharAt(i + 2) == '*') state = SCE_HJ_COMMENTDOC; else state = SCE_HJ_COMMENT; } else if (ch == '/' && chNext == '/') { state = SCE_HJ_COMMENTLINE; } else if ((ch == '\"') && (nonEmptySegment)) { state = SCE_HJ_DOUBLESTRING; } else if ((ch == '\'') && (nonEmptySegment)) { state = SCE_HJ_SINGLESTRING; } else if (IsAWordStart(ch)) { state = SCE_HJ_WORD; } else if (IsOperator(ch)) { styler.ColourTo(i, statePrintForState(SCE_HJ_SYMBOLS, inScriptType)); } } } switch (state) { case SCE_HJ_WORD: classifyWordHTJS(styler.GetStartSegment(), lengthDoc - 1, keywords2, styler, inScriptType); break; case SCE_HB_WORD: classifyWordHTVB(styler.GetStartSegment(), lengthDoc - 1, keywords3, styler, inScriptType); break; case SCE_HP_WORD: classifyWordHTPy(styler.GetStartSegment(), lengthDoc - 1, keywords4, styler, prevWord, inScriptType, isMako); break; case SCE_HPHP_WORD: classifyWordHTPHP(styler.GetStartSegment(), lengthDoc - 1, keywords5, styler); break; default: StateToPrint = statePrintForState(state, inScriptType); if (static_cast(styler.GetStartSegment()) < lengthDoc) styler.ColourTo(lengthDoc - 1, StateToPrint); break; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later if (fold) { int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } } static void ColouriseXMLDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { // Passing in true because we're lexing XML ColouriseHyperTextDoc(startPos, length, initStyle, keywordlists, styler, true); } static void ColouriseHTMLDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { // Passing in false because we're notlexing XML ColouriseHyperTextDoc(startPos, length, initStyle, keywordlists, styler, false); } static void ColourisePHPScriptDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { if (startPos == 0) initStyle = SCE_HPHP_DEFAULT; ColouriseHTMLDoc(startPos, length, initStyle, keywordlists, styler); } static const char * const htmlWordListDesc[] = { "HTML elements and attributes", "JavaScript keywords", "VBScript keywords", "Python keywords", "PHP keywords", "SGML and DTD keywords", 0, }; static const char * const phpscriptWordListDesc[] = { "", //Unused "", //Unused "", //Unused "", //Unused "PHP keywords", "", //Unused 0, }; LexerModule lmHTML(SCLEX_HTML, ColouriseHTMLDoc, "hypertext", 0, htmlWordListDesc); LexerModule lmXML(SCLEX_XML, ColouriseXMLDoc, "xml", 0, htmlWordListDesc); LexerModule lmPHPSCRIPT(SCLEX_PHPSCRIPT, ColourisePHPScriptDoc, "phpscript", 0, phpscriptWordListDesc); codequery-0.21.0/scintilla/lexers/LexHaskell.cxx000066400000000000000000001067661310136352400216540ustar00rootroot00000000000000/****************************************************************** * LexHaskell.cxx * * A haskell lexer for the scintilla code control. * Some stuff "lended" from LexPython.cxx and LexCPP.cxx. * External lexer stuff inspired from the caml external lexer. * Folder copied from Python's. * * Written by Tobias Engvall - tumm at dtek dot chalmers dot se * * Several bug fixes by Krasimir Angelov - kr.angelov at gmail.com * * Improved by kudah * * TODO: * * A proper lexical folder to fold group declarations, comments, pragmas, * #ifdefs, explicit layout, lists, tuples, quasi-quotes, splces, etc, etc, * etc. * *****************************************************************/ #include #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "PropSetSimple.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "CharacterCategory.h" #include "LexerModule.h" #include "OptionSet.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // See https://github.com/ghc/ghc/blob/master/compiler/parser/Lexer.x#L1682 // Note, letter modifiers are prohibited. static int u_iswupper (int ch) { CharacterCategory c = CategoriseCharacter(ch); return c == ccLu || c == ccLt; } static int u_iswalpha (int ch) { CharacterCategory c = CategoriseCharacter(ch); return c == ccLl || c == ccLu || c == ccLt || c == ccLo; } static int u_iswalnum (int ch) { CharacterCategory c = CategoriseCharacter(ch); return c == ccLl || c == ccLu || c == ccLt || c == ccLo || c == ccNd || c == ccNo; } static int u_IsHaskellSymbol(int ch) { CharacterCategory c = CategoriseCharacter(ch); return c == ccPc || c == ccPd || c == ccPo || c == ccSm || c == ccSc || c == ccSk || c == ccSo; } static inline bool IsHaskellLetter(const int ch) { if (IsASCII(ch)) { return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); } else { return u_iswalpha(ch) != 0; } } static inline bool IsHaskellAlphaNumeric(const int ch) { if (IsASCII(ch)) { return IsAlphaNumeric(ch); } else { return u_iswalnum(ch) != 0; } } static inline bool IsHaskellUpperCase(const int ch) { if (IsASCII(ch)) { return ch >= 'A' && ch <= 'Z'; } else { return u_iswupper(ch) != 0; } } static inline bool IsAnHaskellOperatorChar(const int ch) { if (IsASCII(ch)) { return ( ch == '!' || ch == '#' || ch == '$' || ch == '%' || ch == '&' || ch == '*' || ch == '+' || ch == '-' || ch == '.' || ch == '/' || ch == ':' || ch == '<' || ch == '=' || ch == '>' || ch == '?' || ch == '@' || ch == '^' || ch == '|' || ch == '~' || ch == '\\'); } else { return u_IsHaskellSymbol(ch) != 0; } } static inline bool IsAHaskellWordStart(const int ch) { return IsHaskellLetter(ch) || ch == '_'; } static inline bool IsAHaskellWordChar(const int ch) { return ( IsHaskellAlphaNumeric(ch) || ch == '_' || ch == '\''); } static inline bool IsCommentBlockStyle(int style) { return (style >= SCE_HA_COMMENTBLOCK && style <= SCE_HA_COMMENTBLOCK3); } static inline bool IsCommentStyle(int style) { return (style >= SCE_HA_COMMENTLINE && style <= SCE_HA_COMMENTBLOCK3) || ( style == SCE_HA_LITERATE_COMMENT || style == SCE_HA_LITERATE_CODEDELIM); } // styles which do not belong to Haskell, but to external tools static inline bool IsExternalStyle(int style) { return ( style == SCE_HA_PREPROCESSOR || style == SCE_HA_LITERATE_COMMENT || style == SCE_HA_LITERATE_CODEDELIM); } static inline int CommentBlockStyleFromNestLevel(const unsigned int nestLevel) { return SCE_HA_COMMENTBLOCK + (nestLevel % 3); } // Mangled version of lexlib/Accessor.cxx IndentAmount. // Modified to treat comment blocks as whitespace // plus special case for commentline/preprocessor. static int HaskellIndentAmount(Accessor &styler, const Sci_Position line) { // Determines the indentation level of the current line // Comment blocks are treated as whitespace Sci_Position pos = styler.LineStart(line); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; char ch = styler[pos]; int style = styler.StyleAt(pos); int indent = 0; bool inPrevPrefix = line > 0; Sci_Position posPrev = inPrevPrefix ? styler.LineStart(line-1) : 0; while (( ch == ' ' || ch == '\t' || IsCommentBlockStyle(style) || style == SCE_HA_LITERATE_CODEDELIM) && (pos < eol_pos)) { if (inPrevPrefix) { char chPrev = styler[posPrev++]; if (chPrev != ' ' && chPrev != '\t') { inPrevPrefix = false; } } if (ch == '\t') { indent = (indent / 8 + 1) * 8; } else { // Space or comment block indent++; } pos++; ch = styler[pos]; style = styler.StyleAt(pos); } indent += SC_FOLDLEVELBASE; // if completely empty line or the start of a comment or preprocessor... if ( styler.LineStart(line) == styler.Length() || ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' || IsCommentStyle(style) || style == SCE_HA_PREPROCESSOR) return indent | SC_FOLDLEVELWHITEFLAG; else return indent; } struct OptionsHaskell { bool magicHash; bool allowQuotes; bool implicitParams; bool highlightSafe; bool cpp; bool stylingWithinPreprocessor; bool fold; bool foldComment; bool foldCompact; bool foldImports; OptionsHaskell() { magicHash = true; // Widespread use, enabled by default. allowQuotes = true; // Widespread use, enabled by default. implicitParams = false; // Fell out of favor, seldom used, disabled. highlightSafe = true; // Moderately used, doesn't hurt to enable. cpp = true; // Widespread use, enabled by default; stylingWithinPreprocessor = false; fold = false; foldComment = false; foldCompact = false; foldImports = false; } }; static const char * const haskellWordListDesc[] = { "Keywords", "FFI", "Reserved operators", 0 }; struct OptionSetHaskell : public OptionSet { OptionSetHaskell() { DefineProperty("lexer.haskell.allow.hash", &OptionsHaskell::magicHash, "Set to 0 to disallow the '#' character at the end of identifiers and " "literals with the haskell lexer " "(GHC -XMagicHash extension)"); DefineProperty("lexer.haskell.allow.quotes", &OptionsHaskell::allowQuotes, "Set to 0 to disable highlighting of Template Haskell name quotations " "and promoted constructors " "(GHC -XTemplateHaskell and -XDataKinds extensions)"); DefineProperty("lexer.haskell.allow.questionmark", &OptionsHaskell::implicitParams, "Set to 1 to allow the '?' character at the start of identifiers " "with the haskell lexer " "(GHC & Hugs -XImplicitParams extension)"); DefineProperty("lexer.haskell.import.safe", &OptionsHaskell::highlightSafe, "Set to 0 to disallow \"safe\" keyword in imports " "(GHC -XSafe, -XTrustworthy, -XUnsafe extensions)"); DefineProperty("lexer.haskell.cpp", &OptionsHaskell::cpp, "Set to 0 to disable C-preprocessor highlighting " "(-XCPP extension)"); DefineProperty("styling.within.preprocessor", &OptionsHaskell::stylingWithinPreprocessor, "For Haskell code, determines whether all preprocessor code is styled in the " "preprocessor style (0, the default) or only from the initial # to the end " "of the command word(1)." ); DefineProperty("fold", &OptionsHaskell::fold); DefineProperty("fold.comment", &OptionsHaskell::foldComment); DefineProperty("fold.compact", &OptionsHaskell::foldCompact); DefineProperty("fold.haskell.imports", &OptionsHaskell::foldImports, "Set to 1 to enable folding of import declarations"); DefineWordListSets(haskellWordListDesc); } }; class LexerHaskell : public ILexer { bool literate; Sci_Position firstImportLine; int firstImportIndent; WordList keywords; WordList ffi; WordList reserved_operators; OptionsHaskell options; OptionSetHaskell osHaskell; enum HashCount { oneHash ,twoHashes ,unlimitedHashes }; enum KeywordMode { HA_MODE_DEFAULT = 0 ,HA_MODE_IMPORT1 = 1 // after "import", before "qualified" or "safe" or package name or module name. ,HA_MODE_IMPORT2 = 2 // after module name, before "as" or "hiding". ,HA_MODE_IMPORT3 = 3 // after "as", before "hiding" ,HA_MODE_MODULE = 4 // after "module", before module name. ,HA_MODE_FFI = 5 // after "foreign", before FFI keywords ,HA_MODE_TYPE = 6 // after "type" or "data", before "family" }; enum LiterateMode { LITERATE_BIRD = 0 // if '>' is the first character on the line, // color '>' as a codedelim and the rest of // the line as code. // else if "\begin{code}" is the only word on the // line except whitespace, switch to LITERATE_BLOCK // otherwise color the line as a literate comment. ,LITERATE_BLOCK = 1 // if the string "\end{code}" is encountered at column // 0 ignoring all later characters, color the line // as a codedelim and switch to LITERATE_BIRD // otherwise color the line as code. }; struct HaskellLineInfo { unsigned int nestLevel; // 22 bits ought to be enough for anybody unsigned int nonexternalStyle; // 5 bits, widen if number of styles goes // beyond 31. bool pragma; LiterateMode lmode; KeywordMode mode; HaskellLineInfo(int state) : nestLevel (state >> 10) , nonexternalStyle ((state >> 5) & 0x1F) , pragma ((state >> 4) & 0x1) , lmode (static_cast((state >> 3) & 0x1)) , mode (static_cast(state & 0x7)) {} int ToLineState() { return (nestLevel << 10) | (nonexternalStyle << 5) | (pragma << 4) | (lmode << 3) | mode; } }; inline void skipMagicHash(StyleContext &sc, const HashCount hashes) const { if (options.magicHash && sc.ch == '#') { sc.Forward(); if (hashes == twoHashes && sc.ch == '#') { sc.Forward(); } else if (hashes == unlimitedHashes) { while (sc.ch == '#') { sc.Forward(); } } } } bool LineContainsImport(const Sci_Position line, Accessor &styler) const { if (options.foldImports) { Sci_Position currentPos = styler.LineStart(line); int style = styler.StyleAt(currentPos); Sci_Position eol_pos = styler.LineStart(line + 1) - 1; while (currentPos < eol_pos) { int ch = styler[currentPos]; style = styler.StyleAt(currentPos); if (ch == ' ' || ch == '\t' || IsCommentBlockStyle(style) || style == SCE_HA_LITERATE_CODEDELIM) { currentPos++; } else { break; } } return (style == SCE_HA_KEYWORD && styler.Match(currentPos, "import")); } else { return false; } } inline int IndentAmountWithOffset(Accessor &styler, const Sci_Position line) const { const int indent = HaskellIndentAmount(styler, line); const int indentLevel = indent & SC_FOLDLEVELNUMBERMASK; return indentLevel <= ((firstImportIndent - 1) + SC_FOLDLEVELBASE) ? indent : (indentLevel + firstImportIndent) | (indent & ~SC_FOLDLEVELNUMBERMASK); } inline int IndentLevelRemoveIndentOffset(const int indentLevel) const { return indentLevel <= ((firstImportIndent - 1) + SC_FOLDLEVELBASE) ? indentLevel : indentLevel - firstImportIndent; } public: LexerHaskell(bool literate_) : literate(literate_) , firstImportLine(-1) , firstImportIndent(0) {} virtual ~LexerHaskell() {} void SCI_METHOD Release() override { delete this; } int SCI_METHOD Version() const override { return lvOriginal; } const char * SCI_METHOD PropertyNames() override { return osHaskell.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return osHaskell.PropertyType(name); } const char * SCI_METHOD DescribeProperty(const char *name) override { return osHaskell.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override; const char * SCI_METHOD DescribeWordListSets() override { return osHaskell.DescribeWordListSets(); } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override; void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void * SCI_METHOD PrivateCall(int, void *) override { return 0; } static ILexer *LexerFactoryHaskell() { return new LexerHaskell(false); } static ILexer *LexerFactoryLiterateHaskell() { return new LexerHaskell(true); } }; Sci_Position SCI_METHOD LexerHaskell::PropertySet(const char *key, const char *val) { if (osHaskell.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD LexerHaskell::WordListSet(int n, const char *wl) { WordList *wordListN = 0; switch (n) { case 0: wordListN = &keywords; break; case 1: wordListN = &ffi; break; case 2: wordListN = &reserved_operators; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; } } return firstModification; } void SCI_METHOD LexerHaskell::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle ,IDocument *pAccess) { LexAccessor styler(pAccess); Sci_Position lineCurrent = styler.GetLine(startPos); HaskellLineInfo hs = HaskellLineInfo(lineCurrent ? styler.GetLineState(lineCurrent-1) : 0); // Do not leak onto next line if (initStyle == SCE_HA_STRINGEOL) initStyle = SCE_HA_DEFAULT; else if (initStyle == SCE_HA_LITERATE_CODEDELIM) initStyle = hs.nonexternalStyle; StyleContext sc(startPos, length, initStyle, styler); int base = 10; bool dot = false; bool inDashes = false; bool alreadyInTheMiddleOfOperator = false; assert(!(IsCommentBlockStyle(initStyle) && hs.nestLevel == 0)); while (sc.More()) { // Check for state end if (!IsExternalStyle(sc.state)) { hs.nonexternalStyle = sc.state; } // For lexer to work, states should unconditionally forward at least one // character. // If they don't, they should still check if they are at line end and // forward if so. // If a state forwards more than one character, it should check every time // that it is not a line end and cease forwarding otherwise. if (sc.atLineEnd) { // Remember the line state for future incremental lexing styler.SetLineState(lineCurrent, hs.ToLineState()); lineCurrent++; } // Handle line continuation generically. if (sc.ch == '\\' && (sc.chNext == '\n' || sc.chNext == '\r') && ( sc.state == SCE_HA_STRING || sc.state == SCE_HA_PREPROCESSOR)) { // Remember the line state for future incremental lexing styler.SetLineState(lineCurrent, hs.ToLineState()); lineCurrent++; sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } sc.Forward(); continue; } if (sc.atLineStart) { if (sc.state == SCE_HA_STRING || sc.state == SCE_HA_CHARACTER) { // Prevent SCE_HA_STRINGEOL from leaking back to previous line sc.SetState(sc.state); } if (literate && hs.lmode == LITERATE_BIRD) { if (!IsExternalStyle(sc.state)) { sc.SetState(SCE_HA_LITERATE_COMMENT); } } } // External // Literate if ( literate && hs.lmode == LITERATE_BIRD && sc.atLineStart && sc.ch == '>') { sc.SetState(SCE_HA_LITERATE_CODEDELIM); sc.ForwardSetState(hs.nonexternalStyle); } else if (literate && hs.lmode == LITERATE_BIRD && sc.atLineStart && ( sc.ch == ' ' || sc.ch == '\t' || sc.Match("\\begin{code}"))) { sc.SetState(sc.state); while ((sc.ch == ' ' || sc.ch == '\t') && sc.More()) sc.Forward(); if (sc.Match("\\begin{code}")) { sc.Forward(static_cast(strlen("\\begin{code}"))); bool correct = true; while (!sc.atLineEnd && sc.More()) { if (sc.ch != ' ' && sc.ch != '\t') { correct = false; } sc.Forward(); } if (correct) { sc.ChangeState(SCE_HA_LITERATE_CODEDELIM); // color the line end hs.lmode = LITERATE_BLOCK; } } } else if (literate && hs.lmode == LITERATE_BLOCK && sc.atLineStart && sc.Match("\\end{code}")) { sc.SetState(SCE_HA_LITERATE_CODEDELIM); sc.Forward(static_cast(strlen("\\end{code}"))); while (!sc.atLineEnd && sc.More()) { sc.Forward(); } sc.SetState(SCE_HA_LITERATE_COMMENT); hs.lmode = LITERATE_BIRD; } // Preprocessor else if (sc.atLineStart && sc.ch == '#' && options.cpp && (!options.stylingWithinPreprocessor || sc.state == SCE_HA_DEFAULT)) { sc.SetState(SCE_HA_PREPROCESSOR); sc.Forward(); } // Literate else if (sc.state == SCE_HA_LITERATE_COMMENT) { sc.Forward(); } else if (sc.state == SCE_HA_LITERATE_CODEDELIM) { sc.ForwardSetState(hs.nonexternalStyle); } // Preprocessor else if (sc.state == SCE_HA_PREPROCESSOR) { if (sc.atLineEnd) { sc.SetState(options.stylingWithinPreprocessor ? SCE_HA_DEFAULT : hs.nonexternalStyle); sc.Forward(); // prevent double counting a line } else if (options.stylingWithinPreprocessor && !IsHaskellLetter(sc.ch)) { sc.SetState(SCE_HA_DEFAULT); } else { sc.Forward(); } } // Haskell // Operator else if (sc.state == SCE_HA_OPERATOR) { int style = SCE_HA_OPERATOR; if ( sc.ch == ':' && !alreadyInTheMiddleOfOperator // except "::" && !( sc.chNext == ':' && !IsAnHaskellOperatorChar(sc.GetRelative(2)))) { style = SCE_HA_CAPITAL; } alreadyInTheMiddleOfOperator = false; while (IsAnHaskellOperatorChar(sc.ch)) sc.Forward(); char s[100]; sc.GetCurrent(s, sizeof(s)); if (reserved_operators.InList(s)) style = SCE_HA_RESERVED_OPERATOR; sc.ChangeState(style); sc.SetState(SCE_HA_DEFAULT); } // String else if (sc.state == SCE_HA_STRING) { if (sc.atLineEnd) { sc.ChangeState(SCE_HA_STRINGEOL); sc.ForwardSetState(SCE_HA_DEFAULT); } else if (sc.ch == '\"') { sc.Forward(); skipMagicHash(sc, oneHash); sc.SetState(SCE_HA_DEFAULT); } else if (sc.ch == '\\') { sc.Forward(2); } else { sc.Forward(); } } // Char else if (sc.state == SCE_HA_CHARACTER) { if (sc.atLineEnd) { sc.ChangeState(SCE_HA_STRINGEOL); sc.ForwardSetState(SCE_HA_DEFAULT); } else if (sc.ch == '\'') { sc.Forward(); skipMagicHash(sc, oneHash); sc.SetState(SCE_HA_DEFAULT); } else if (sc.ch == '\\') { sc.Forward(2); } else { sc.Forward(); } } // Number else if (sc.state == SCE_HA_NUMBER) { if (sc.atLineEnd) { sc.SetState(SCE_HA_DEFAULT); sc.Forward(); // prevent double counting a line } else if (IsADigit(sc.ch, base)) { sc.Forward(); } else if (sc.ch=='.' && dot && IsADigit(sc.chNext, base)) { sc.Forward(2); dot = false; } else if ((base == 10) && (sc.ch == 'e' || sc.ch == 'E') && (IsADigit(sc.chNext) || sc.chNext == '+' || sc.chNext == '-')) { sc.Forward(); if (sc.ch == '+' || sc.ch == '-') sc.Forward(); } else { skipMagicHash(sc, twoHashes); sc.SetState(SCE_HA_DEFAULT); } } // Keyword or Identifier else if (sc.state == SCE_HA_IDENTIFIER) { int style = IsHaskellUpperCase(sc.ch) ? SCE_HA_CAPITAL : SCE_HA_IDENTIFIER; assert(IsAHaskellWordStart(sc.ch)); sc.Forward(); while (sc.More()) { if (IsAHaskellWordChar(sc.ch)) { sc.Forward(); } else if (sc.ch == '.' && style == SCE_HA_CAPITAL) { if (IsHaskellUpperCase(sc.chNext)) { sc.Forward(); style = SCE_HA_CAPITAL; } else if (IsAHaskellWordStart(sc.chNext)) { sc.Forward(); style = SCE_HA_IDENTIFIER; } else if (IsAnHaskellOperatorChar(sc.chNext)) { sc.Forward(); style = sc.ch == ':' ? SCE_HA_CAPITAL : SCE_HA_OPERATOR; while (IsAnHaskellOperatorChar(sc.ch)) sc.Forward(); break; } else { break; } } else { break; } } skipMagicHash(sc, unlimitedHashes); char s[100]; sc.GetCurrent(s, sizeof(s)); KeywordMode new_mode = HA_MODE_DEFAULT; if (keywords.InList(s)) { style = SCE_HA_KEYWORD; } else if (style == SCE_HA_CAPITAL) { if (hs.mode == HA_MODE_IMPORT1 || hs.mode == HA_MODE_IMPORT3) { style = SCE_HA_MODULE; new_mode = HA_MODE_IMPORT2; } else if (hs.mode == HA_MODE_MODULE) { style = SCE_HA_MODULE; } } else if (hs.mode == HA_MODE_IMPORT1 && strcmp(s,"qualified") == 0) { style = SCE_HA_KEYWORD; new_mode = HA_MODE_IMPORT1; } else if (options.highlightSafe && hs.mode == HA_MODE_IMPORT1 && strcmp(s,"safe") == 0) { style = SCE_HA_KEYWORD; new_mode = HA_MODE_IMPORT1; } else if (hs.mode == HA_MODE_IMPORT2) { if (strcmp(s,"as") == 0) { style = SCE_HA_KEYWORD; new_mode = HA_MODE_IMPORT3; } else if (strcmp(s,"hiding") == 0) { style = SCE_HA_KEYWORD; } } else if (hs.mode == HA_MODE_TYPE) { if (strcmp(s,"family") == 0) style = SCE_HA_KEYWORD; } if (hs.mode == HA_MODE_FFI) { if (ffi.InList(s)) { style = SCE_HA_KEYWORD; new_mode = HA_MODE_FFI; } } sc.ChangeState(style); sc.SetState(SCE_HA_DEFAULT); if (strcmp(s,"import") == 0 && hs.mode != HA_MODE_FFI) new_mode = HA_MODE_IMPORT1; else if (strcmp(s,"module") == 0) new_mode = HA_MODE_MODULE; else if (strcmp(s,"foreign") == 0) new_mode = HA_MODE_FFI; else if (strcmp(s,"type") == 0 || strcmp(s,"data") == 0) new_mode = HA_MODE_TYPE; hs.mode = new_mode; } // Comments // Oneliner else if (sc.state == SCE_HA_COMMENTLINE) { if (sc.atLineEnd) { sc.SetState(hs.pragma ? SCE_HA_PRAGMA : SCE_HA_DEFAULT); sc.Forward(); // prevent double counting a line } else if (inDashes && sc.ch != '-' && !hs.pragma) { inDashes = false; if (IsAnHaskellOperatorChar(sc.ch)) { alreadyInTheMiddleOfOperator = true; sc.ChangeState(SCE_HA_OPERATOR); } } else { sc.Forward(); } } // Nested else if (IsCommentBlockStyle(sc.state)) { if (sc.Match('{','-')) { sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); sc.Forward(2); hs.nestLevel++; } else if (sc.Match('-','}')) { sc.Forward(2); assert(hs.nestLevel > 0); if (hs.nestLevel > 0) hs.nestLevel--; sc.SetState( hs.nestLevel == 0 ? (hs.pragma ? SCE_HA_PRAGMA : SCE_HA_DEFAULT) : CommentBlockStyleFromNestLevel(hs.nestLevel - 1)); } else { sc.Forward(); } } // Pragma else if (sc.state == SCE_HA_PRAGMA) { if (sc.Match("#-}")) { hs.pragma = false; sc.Forward(3); sc.SetState(SCE_HA_DEFAULT); } else if (sc.Match('-','-')) { sc.SetState(SCE_HA_COMMENTLINE); sc.Forward(2); inDashes = false; } else if (sc.Match('{','-')) { sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); sc.Forward(2); hs.nestLevel = 1; } else { sc.Forward(); } } // New state? else if (sc.state == SCE_HA_DEFAULT) { // Digit if (IsADigit(sc.ch)) { hs.mode = HA_MODE_DEFAULT; sc.SetState(SCE_HA_NUMBER); if (sc.ch == '0' && (sc.chNext == 'X' || sc.chNext == 'x')) { // Match anything starting with "0x" or "0X", too sc.Forward(2); base = 16; dot = false; } else if (sc.ch == '0' && (sc.chNext == 'O' || sc.chNext == 'o')) { // Match anything starting with "0o" or "0O", too sc.Forward(2); base = 8; dot = false; } else { sc.Forward(); base = 10; dot = true; } } // Pragma else if (sc.Match("{-#")) { hs.pragma = true; sc.SetState(SCE_HA_PRAGMA); sc.Forward(3); } // Comment line else if (sc.Match('-','-')) { sc.SetState(SCE_HA_COMMENTLINE); sc.Forward(2); inDashes = true; } // Comment block else if (sc.Match('{','-')) { sc.SetState(CommentBlockStyleFromNestLevel(hs.nestLevel)); sc.Forward(2); hs.nestLevel = 1; } // String else if (sc.ch == '\"') { sc.SetState(SCE_HA_STRING); sc.Forward(); } // Character or quoted name or promoted term else if (sc.ch == '\'') { hs.mode = HA_MODE_DEFAULT; sc.SetState(SCE_HA_CHARACTER); sc.Forward(); if (options.allowQuotes) { // Quoted type ''T if (sc.ch=='\'' && IsAHaskellWordStart(sc.chNext)) { sc.Forward(); sc.ChangeState(SCE_HA_IDENTIFIER); } else if (sc.chNext != '\'') { // Quoted name 'n or promoted constructor 'N if (IsAHaskellWordStart(sc.ch)) { sc.ChangeState(SCE_HA_IDENTIFIER); // Promoted constructor operator ':~> } else if (sc.ch == ':') { alreadyInTheMiddleOfOperator = false; sc.ChangeState(SCE_HA_OPERATOR); // Promoted list or tuple '[T] } else if (sc.ch == '[' || sc.ch== '(') { sc.ChangeState(SCE_HA_OPERATOR); sc.ForwardSetState(SCE_HA_DEFAULT); } } } } // Operator starting with '?' or an implicit parameter else if (sc.ch == '?') { hs.mode = HA_MODE_DEFAULT; alreadyInTheMiddleOfOperator = false; sc.SetState(SCE_HA_OPERATOR); if ( options.implicitParams && IsAHaskellWordStart(sc.chNext) && !IsHaskellUpperCase(sc.chNext)) { sc.Forward(); sc.ChangeState(SCE_HA_IDENTIFIER); } } // Operator else if (IsAnHaskellOperatorChar(sc.ch)) { hs.mode = HA_MODE_DEFAULT; sc.SetState(SCE_HA_OPERATOR); } // Braces and punctuation else if (sc.ch == ',' || sc.ch == ';' || sc.ch == '(' || sc.ch == ')' || sc.ch == '[' || sc.ch == ']' || sc.ch == '{' || sc.ch == '}') { sc.SetState(SCE_HA_OPERATOR); sc.ForwardSetState(SCE_HA_DEFAULT); } // Keyword or Identifier else if (IsAHaskellWordStart(sc.ch)) { sc.SetState(SCE_HA_IDENTIFIER); // Something we don't care about } else { sc.Forward(); } } // This branch should never be reached. else { assert(false); sc.Forward(); } } sc.Complete(); } void SCI_METHOD LexerHaskell::Fold(Sci_PositionU startPos, Sci_Position length, int // initStyle ,IDocument *pAccess) { if (!options.fold) return; Accessor styler(pAccess, NULL); Sci_Position lineCurrent = styler.GetLine(startPos); if (lineCurrent <= firstImportLine) { firstImportLine = -1; // readjust first import position firstImportIndent = 0; } const Sci_Position maxPos = startPos + length; const Sci_Position maxLines = maxPos == styler.Length() ? styler.GetLine(maxPos) : styler.GetLine(maxPos - 1); // Requested last line const Sci_Position docLines = styler.GetLine(styler.Length()); // Available last line // Backtrack to previous non-blank line so we can determine indent level // for any white space lines // and so we can fix any preceding fold level (which is why we go back // at least one line in all cases) bool importHere = LineContainsImport(lineCurrent, styler); int indentCurrent = IndentAmountWithOffset(styler, lineCurrent); while (lineCurrent > 0) { lineCurrent--; importHere = LineContainsImport(lineCurrent, styler); indentCurrent = IndentAmountWithOffset(styler, lineCurrent); if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) break; } int indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; if (importHere) { indentCurrentLevel = IndentLevelRemoveIndentOffset(indentCurrentLevel); if (firstImportLine == -1) { firstImportLine = lineCurrent; firstImportIndent = (1 + indentCurrentLevel) - SC_FOLDLEVELBASE; } if (firstImportLine != lineCurrent) { indentCurrentLevel++; } } indentCurrent = indentCurrentLevel | (indentCurrent & ~SC_FOLDLEVELNUMBERMASK); // Process all characters to end of requested range //that hangs over the end of the range. Cap processing in all cases // to end of document. while (lineCurrent <= docLines && lineCurrent <= maxLines) { // Gather info Sci_Position lineNext = lineCurrent + 1; importHere = false; int indentNext = indentCurrent; if (lineNext <= docLines) { // Information about next line is only available if not at end of document importHere = LineContainsImport(lineNext, styler); indentNext = IndentAmountWithOffset(styler, lineNext); } if (indentNext & SC_FOLDLEVELWHITEFLAG) indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; // Skip past any blank lines for next indent level info; we skip also // comments (all comments, not just those starting in column 0) // which effectively folds them into surrounding code rather // than screwing up folding. while (lineNext < docLines && (indentNext & SC_FOLDLEVELWHITEFLAG)) { lineNext++; importHere = LineContainsImport(lineNext, styler); indentNext = IndentAmountWithOffset(styler, lineNext); } int indentNextLevel = indentNext & SC_FOLDLEVELNUMBERMASK; if (importHere) { indentNextLevel = IndentLevelRemoveIndentOffset(indentNextLevel); if (firstImportLine == -1) { firstImportLine = lineNext; firstImportIndent = (1 + indentNextLevel) - SC_FOLDLEVELBASE; } if (firstImportLine != lineNext) { indentNextLevel++; } } indentNext = indentNextLevel | (indentNext & ~SC_FOLDLEVELNUMBERMASK); const int levelBeforeComments = Maximum(indentCurrentLevel,indentNextLevel); // Now set all the indent levels on the lines we skipped // Do this from end to start. Once we encounter one line // which is indented more than the line after the end of // the comment-block, use the level of the block before Sci_Position skipLine = lineNext; int skipLevel = indentNextLevel; while (--skipLine > lineCurrent) { int skipLineIndent = IndentAmountWithOffset(styler, skipLine); if (options.foldCompact) { if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > indentNextLevel) { skipLevel = levelBeforeComments; } int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG; styler.SetLevel(skipLine, skipLevel | whiteFlag); } else { if ( (skipLineIndent & SC_FOLDLEVELNUMBERMASK) > indentNextLevel && !(skipLineIndent & SC_FOLDLEVELWHITEFLAG)) { skipLevel = levelBeforeComments; } styler.SetLevel(skipLine, skipLevel); } } int lev = indentCurrent; if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG)) { if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < (indentNext & SC_FOLDLEVELNUMBERMASK)) lev |= SC_FOLDLEVELHEADERFLAG; } // Set fold level for this line and move to next line styler.SetLevel(lineCurrent, options.foldCompact ? lev : lev & ~SC_FOLDLEVELWHITEFLAG); indentCurrent = indentNext; indentCurrentLevel = indentNextLevel; lineCurrent = lineNext; } // NOTE: Cannot set level of last line here because indentCurrent doesn't have // header flag set; the loop above is crafted to take care of this case! //styler.SetLevel(lineCurrent, indentCurrent); } LexerModule lmHaskell(SCLEX_HASKELL, LexerHaskell::LexerFactoryHaskell, "haskell", haskellWordListDesc); LexerModule lmLiterateHaskell(SCLEX_LITERATEHASKELL, LexerHaskell::LexerFactoryLiterateHaskell, "literatehaskell", haskellWordListDesc); codequery-0.21.0/scintilla/lexers/LexHex.cxx000066400000000000000000000705361310136352400210100ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexHex.cxx ** Lexers for Motorola S-Record, Intel HEX and Tektronix extended HEX. ** ** Written by Markus Heidelberg **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. /* * Motorola S-Record * =============================== * * Each record (line) is built as follows: * * field digits states * * +----------+ * | start | 1 ('S') SCE_HEX_RECSTART * +----------+ * | type | 1 SCE_HEX_RECTYPE, (SCE_HEX_RECTYPE_UNKNOWN) * +----------+ * | count | 2 SCE_HEX_BYTECOUNT, SCE_HEX_BYTECOUNT_WRONG * +----------+ * | address | 4/6/8 SCE_HEX_NOADDRESS, SCE_HEX_DATAADDRESS, SCE_HEX_RECCOUNT, SCE_HEX_STARTADDRESS, (SCE_HEX_ADDRESSFIELD_UNKNOWN) * +----------+ * | data | 0..504/502/500 SCE_HEX_DATA_ODD, SCE_HEX_DATA_EVEN, SCE_HEX_DATA_EMPTY, (SCE_HEX_DATA_UNKNOWN) * +----------+ * | checksum | 2 SCE_HEX_CHECKSUM, SCE_HEX_CHECKSUM_WRONG * +----------+ * * * Intel HEX * =============================== * * Each record (line) is built as follows: * * field digits states * * +----------+ * | start | 1 (':') SCE_HEX_RECSTART * +----------+ * | count | 2 SCE_HEX_BYTECOUNT, SCE_HEX_BYTECOUNT_WRONG * +----------+ * | address | 4 SCE_HEX_NOADDRESS, SCE_HEX_DATAADDRESS, (SCE_HEX_ADDRESSFIELD_UNKNOWN) * +----------+ * | type | 2 SCE_HEX_RECTYPE, (SCE_HEX_RECTYPE_UNKNOWN) * +----------+ * | data | 0..510 SCE_HEX_DATA_ODD, SCE_HEX_DATA_EVEN, SCE_HEX_DATA_EMPTY, SCE_HEX_EXTENDEDADDRESS, SCE_HEX_STARTADDRESS, (SCE_HEX_DATA_UNKNOWN) * +----------+ * | checksum | 2 SCE_HEX_CHECKSUM, SCE_HEX_CHECKSUM_WRONG * +----------+ * * * Folding: * * Data records (type 0x00), which follow an extended address record (type * 0x02 or 0x04), can be folded. The extended address record is the fold * point at fold level 0, the corresponding data records are set to level 1. * * Any record, which is not a data record, sets the fold level back to 0. * Any line, which is not a record (blank lines and lines starting with a * character other than ':'), leaves the fold level unchanged. * * * Tektronix extended HEX * =============================== * * Each record (line) is built as follows: * * field digits states * * +----------+ * | start | 1 ('%') SCE_HEX_RECSTART * +----------+ * | length | 2 SCE_HEX_BYTECOUNT, SCE_HEX_BYTECOUNT_WRONG * +----------+ * | type | 1 SCE_HEX_RECTYPE, (SCE_HEX_RECTYPE_UNKNOWN) * +----------+ * | checksum | 2 SCE_HEX_CHECKSUM, SCE_HEX_CHECKSUM_WRONG * +----------+ * | address | 9 SCE_HEX_DATAADDRESS, SCE_HEX_STARTADDRESS, (SCE_HEX_ADDRESSFIELD_UNKNOWN) * +----------+ * | data | 0..241 SCE_HEX_DATA_ODD, SCE_HEX_DATA_EVEN * +----------+ * * * General notes for all lexers * =============================== * * - Depending on where the helper functions are invoked, some of them have to * read beyond the current position. In case of malformed data (record too * short), it has to be ensured that this either does not have bad influence * or will be captured deliberately. * * - States in parentheses in the upper format descriptions indicate that they * should not appear in a valid hex file. * * - State SCE_HEX_GARBAGE means garbage data after the intended end of the * record, the line is too long then. This state is used in all lexers. */ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // prototypes for general helper functions static inline bool IsNewline(const int ch); static int GetHexaNibble(char hd); static int GetHexaChar(char hd1, char hd2); static int GetHexaChar(Sci_PositionU pos, Accessor &styler); static bool ForwardWithinLine(StyleContext &sc, Sci_Position nb = 1); static bool PosInSameRecord(Sci_PositionU pos1, Sci_PositionU pos2, Accessor &styler); static Sci_Position CountByteCount(Sci_PositionU startPos, Sci_Position uncountedDigits, Accessor &styler); static int CalcChecksum(Sci_PositionU startPos, Sci_Position cnt, bool twosCompl, Accessor &styler); // prototypes for file format specific helper functions static Sci_PositionU GetSrecRecStartPosition(Sci_PositionU pos, Accessor &styler); static int GetSrecByteCount(Sci_PositionU recStartPos, Accessor &styler); static Sci_Position CountSrecByteCount(Sci_PositionU recStartPos, Accessor &styler); static int GetSrecAddressFieldSize(Sci_PositionU recStartPos, Accessor &styler); static int GetSrecAddressFieldType(Sci_PositionU recStartPos, Accessor &styler); static int GetSrecDataFieldType(Sci_PositionU recStartPos, Accessor &styler); static Sci_Position GetSrecRequiredDataFieldSize(Sci_PositionU recStartPos, Accessor &styler); static int GetSrecChecksum(Sci_PositionU recStartPos, Accessor &styler); static int CalcSrecChecksum(Sci_PositionU recStartPos, Accessor &styler); static Sci_PositionU GetIHexRecStartPosition(Sci_PositionU pos, Accessor &styler); static int GetIHexByteCount(Sci_PositionU recStartPos, Accessor &styler); static Sci_Position CountIHexByteCount(Sci_PositionU recStartPos, Accessor &styler); static int GetIHexAddressFieldType(Sci_PositionU recStartPos, Accessor &styler); static int GetIHexDataFieldType(Sci_PositionU recStartPos, Accessor &styler); static int GetIHexRequiredDataFieldSize(Sci_PositionU recStartPos, Accessor &styler); static int GetIHexChecksum(Sci_PositionU recStartPos, Accessor &styler); static int CalcIHexChecksum(Sci_PositionU recStartPos, Accessor &styler); static int GetTEHexDigitCount(Sci_PositionU recStartPos, Accessor &styler); static Sci_Position CountTEHexDigitCount(Sci_PositionU recStartPos, Accessor &styler); static int GetTEHexAddressFieldType(Sci_PositionU recStartPos, Accessor &styler); static int GetTEHexChecksum(Sci_PositionU recStartPos, Accessor &styler); static int CalcTEHexChecksum(Sci_PositionU recStartPos, Accessor &styler); static inline bool IsNewline(const int ch) { return (ch == '\n' || ch == '\r'); } static int GetHexaNibble(char hd) { int hexValue = 0; if (hd >= '0' && hd <= '9') { hexValue += hd - '0'; } else if (hd >= 'A' && hd <= 'F') { hexValue += hd - 'A' + 10; } else if (hd >= 'a' && hd <= 'f') { hexValue += hd - 'a' + 10; } else { return -1; } return hexValue; } static int GetHexaChar(char hd1, char hd2) { int hexValue = 0; if (hd1 >= '0' && hd1 <= '9') { hexValue += 16 * (hd1 - '0'); } else if (hd1 >= 'A' && hd1 <= 'F') { hexValue += 16 * (hd1 - 'A' + 10); } else if (hd1 >= 'a' && hd1 <= 'f') { hexValue += 16 * (hd1 - 'a' + 10); } else { return -1; } if (hd2 >= '0' && hd2 <= '9') { hexValue += hd2 - '0'; } else if (hd2 >= 'A' && hd2 <= 'F') { hexValue += hd2 - 'A' + 10; } else if (hd2 >= 'a' && hd2 <= 'f') { hexValue += hd2 - 'a' + 10; } else { return -1; } return hexValue; } static int GetHexaChar(Sci_PositionU pos, Accessor &styler) { char highNibble, lowNibble; highNibble = styler.SafeGetCharAt(pos); lowNibble = styler.SafeGetCharAt(pos + 1); return GetHexaChar(highNibble, lowNibble); } // Forward characters, but abort (and return false) if hitting the line // end. Return true if forwarding within the line was possible. // Avoids influence on highlighting of the subsequent line if the current line // is malformed (too short). static bool ForwardWithinLine(StyleContext &sc, Sci_Position nb) { for (Sci_Position i = 0; i < nb; i++) { if (sc.atLineEnd) { // line is too short sc.SetState(SCE_HEX_DEFAULT); sc.Forward(); return false; } else { sc.Forward(); } } return true; } // Checks whether the given positions are in the same record. static bool PosInSameRecord(Sci_PositionU pos1, Sci_PositionU pos2, Accessor &styler) { return styler.GetLine(pos1) == styler.GetLine(pos2); } // Count the number of digit pairs from till end of record, ignoring // digits. // If the record is too short, a negative count may be returned. static Sci_Position CountByteCount(Sci_PositionU startPos, Sci_Position uncountedDigits, Accessor &styler) { Sci_Position cnt; Sci_PositionU pos; pos = startPos; while (!IsNewline(styler.SafeGetCharAt(pos, '\n'))) { pos++; } // number of digits in this line minus number of digits of uncounted fields cnt = static_cast(pos - startPos) - uncountedDigits; // Prepare round up if odd (digit pair incomplete), this way the byte // count is considered to be valid if the checksum is incomplete. if (cnt >= 0) { cnt++; } // digit pairs cnt /= 2; return cnt; } // Calculate the checksum of the record. // is the position of the first character of the starting digit // pair, is the number of digit pairs. static int CalcChecksum(Sci_PositionU startPos, Sci_Position cnt, bool twosCompl, Accessor &styler) { int cs = 0; for (Sci_PositionU pos = startPos; pos < startPos + cnt; pos += 2) { int val = GetHexaChar(pos, styler); if (val < 0) { return val; } // overflow does not matter cs += val; } if (twosCompl) { // low byte of two's complement return -cs & 0xFF; } else { // low byte of one's complement return ~cs & 0xFF; } } // Get the position of the record "start" field (first character in line) in // the record around position . static Sci_PositionU GetSrecRecStartPosition(Sci_PositionU pos, Accessor &styler) { while (styler.SafeGetCharAt(pos) != 'S') { pos--; } return pos; } // Get the value of the "byte count" field, it counts the number of bytes in // the subsequent fields ("address", "data" and "checksum" fields). static int GetSrecByteCount(Sci_PositionU recStartPos, Accessor &styler) { int val; val = GetHexaChar(recStartPos + 2, styler); if (val < 0) { val = 0; } return val; } // Count the number of digit pairs for the "address", "data" and "checksum" // fields in this record. Has to be equal to the "byte count" field value. // If the record is too short, a negative count may be returned. static Sci_Position CountSrecByteCount(Sci_PositionU recStartPos, Accessor &styler) { return CountByteCount(recStartPos, 4, styler); } // Get the size of the "address" field. static int GetSrecAddressFieldSize(Sci_PositionU recStartPos, Accessor &styler) { switch (styler.SafeGetCharAt(recStartPos + 1)) { case '0': case '1': case '5': case '9': return 2; // 16 bit case '2': case '6': case '8': return 3; // 24 bit case '3': case '7': return 4; // 32 bit default: return 0; } } // Get the type of the "address" field content. static int GetSrecAddressFieldType(Sci_PositionU recStartPos, Accessor &styler) { switch (styler.SafeGetCharAt(recStartPos + 1)) { case '0': return SCE_HEX_NOADDRESS; case '1': case '2': case '3': return SCE_HEX_DATAADDRESS; case '5': case '6': return SCE_HEX_RECCOUNT; case '7': case '8': case '9': return SCE_HEX_STARTADDRESS; default: // handle possible format extension in the future return SCE_HEX_ADDRESSFIELD_UNKNOWN; } } // Get the type of the "data" field content. static int GetSrecDataFieldType(Sci_PositionU recStartPos, Accessor &styler) { switch (styler.SafeGetCharAt(recStartPos + 1)) { case '0': case '1': case '2': case '3': return SCE_HEX_DATA_ODD; case '5': case '6': case '7': case '8': case '9': return SCE_HEX_DATA_EMPTY; default: // handle possible format extension in the future return SCE_HEX_DATA_UNKNOWN; } } // Get the required size of the "data" field. Useless for block header and // ordinary data records (type S0, S1, S2, S3), return the value calculated // from the "byte count" and "address field" size in this case. static Sci_Position GetSrecRequiredDataFieldSize(Sci_PositionU recStartPos, Accessor &styler) { switch (styler.SafeGetCharAt(recStartPos + 1)) { case '5': case '6': case '7': case '8': case '9': return 0; default: return GetSrecByteCount(recStartPos, styler) - GetSrecAddressFieldSize(recStartPos, styler) - 1; // -1 for checksum field } } // Get the value of the "checksum" field. static int GetSrecChecksum(Sci_PositionU recStartPos, Accessor &styler) { int byteCount; byteCount = GetSrecByteCount(recStartPos, styler); return GetHexaChar(recStartPos + 2 + byteCount * 2, styler); } // Calculate the checksum of the record. static int CalcSrecChecksum(Sci_PositionU recStartPos, Accessor &styler) { Sci_Position byteCount; byteCount = GetSrecByteCount(recStartPos, styler); // sum over "byte count", "address" and "data" fields (6..510 digits) return CalcChecksum(recStartPos + 2, byteCount * 2, false, styler); } // Get the position of the record "start" field (first character in line) in // the record around position . static Sci_PositionU GetIHexRecStartPosition(Sci_PositionU pos, Accessor &styler) { while (styler.SafeGetCharAt(pos) != ':') { pos--; } return pos; } // Get the value of the "byte count" field, it counts the number of bytes in // the "data" field. static int GetIHexByteCount(Sci_PositionU recStartPos, Accessor &styler) { int val; val = GetHexaChar(recStartPos + 1, styler); if (val < 0) { val = 0; } return val; } // Count the number of digit pairs for the "data" field in this record. Has to // be equal to the "byte count" field value. // If the record is too short, a negative count may be returned. static Sci_Position CountIHexByteCount(Sci_PositionU recStartPos, Accessor &styler) { return CountByteCount(recStartPos, 11, styler); } // Get the type of the "address" field content. static int GetIHexAddressFieldType(Sci_PositionU recStartPos, Accessor &styler) { if (!PosInSameRecord(recStartPos, recStartPos + 7, styler)) { // malformed (record too short) // type cannot be determined return SCE_HEX_ADDRESSFIELD_UNKNOWN; } switch (GetHexaChar(recStartPos + 7, styler)) { case 0x00: return SCE_HEX_DATAADDRESS; case 0x01: case 0x02: case 0x03: case 0x04: case 0x05: return SCE_HEX_NOADDRESS; default: // handle possible format extension in the future return SCE_HEX_ADDRESSFIELD_UNKNOWN; } } // Get the type of the "data" field content. static int GetIHexDataFieldType(Sci_PositionU recStartPos, Accessor &styler) { switch (GetHexaChar(recStartPos + 7, styler)) { case 0x00: return SCE_HEX_DATA_ODD; case 0x01: return SCE_HEX_DATA_EMPTY; case 0x02: case 0x04: return SCE_HEX_EXTENDEDADDRESS; case 0x03: case 0x05: return SCE_HEX_STARTADDRESS; default: // handle possible format extension in the future return SCE_HEX_DATA_UNKNOWN; } } // Get the required size of the "data" field. Useless for an ordinary data // record (type 00), return the "byte count" in this case. static int GetIHexRequiredDataFieldSize(Sci_PositionU recStartPos, Accessor &styler) { switch (GetHexaChar(recStartPos + 7, styler)) { case 0x01: return 0; case 0x02: case 0x04: return 2; case 0x03: case 0x05: return 4; default: return GetIHexByteCount(recStartPos, styler); } } // Get the value of the "checksum" field. static int GetIHexChecksum(Sci_PositionU recStartPos, Accessor &styler) { int byteCount; byteCount = GetIHexByteCount(recStartPos, styler); return GetHexaChar(recStartPos + 9 + byteCount * 2, styler); } // Calculate the checksum of the record. static int CalcIHexChecksum(Sci_PositionU recStartPos, Accessor &styler) { int byteCount; byteCount = GetIHexByteCount(recStartPos, styler); // sum over "byte count", "address", "type" and "data" fields (8..518 digits) return CalcChecksum(recStartPos + 1, 8 + byteCount * 2, true, styler); } // Get the value of the "record length" field, it counts the number of digits in // the record excluding the percent. static int GetTEHexDigitCount(Sci_PositionU recStartPos, Accessor &styler) { int val = GetHexaChar(recStartPos + 1, styler); if (val < 0) val = 0; return val; } // Count the number of digits in this record. Has to // be equal to the "record length" field value. static Sci_Position CountTEHexDigitCount(Sci_PositionU recStartPos, Accessor &styler) { Sci_PositionU pos; pos = recStartPos+1; while (!IsNewline(styler.SafeGetCharAt(pos, '\n'))) { pos++; } return static_cast(pos - (recStartPos+1)); } // Get the type of the "address" field content. static int GetTEHexAddressFieldType(Sci_PositionU recStartPos, Accessor &styler) { switch (styler.SafeGetCharAt(recStartPos + 3)) { case '6': return SCE_HEX_DATAADDRESS; case '8': return SCE_HEX_STARTADDRESS; default: // handle possible format extension in the future return SCE_HEX_ADDRESSFIELD_UNKNOWN; } } // Get the value of the "checksum" field. static int GetTEHexChecksum(Sci_PositionU recStartPos, Accessor &styler) { return GetHexaChar(recStartPos+4, styler); } // Calculate the checksum of the record (excluding the checksum field). static int CalcTEHexChecksum(Sci_PositionU recStartPos, Accessor &styler) { Sci_PositionU pos = recStartPos +1; Sci_PositionU length = GetTEHexDigitCount(recStartPos, styler); int cs = GetHexaNibble(styler.SafeGetCharAt(pos++));//length cs += GetHexaNibble(styler.SafeGetCharAt(pos++));//length cs += GetHexaNibble(styler.SafeGetCharAt(pos++));//type pos += 2;// jump over CS field for (; pos <= recStartPos + length; ++pos) { int val = GetHexaNibble(styler.SafeGetCharAt(pos)); if (val < 0) { return val; } // overflow does not matter cs += val; } // low byte return cs & 0xFF; } static void ColouriseSrecDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { StyleContext sc(startPos, length, initStyle, styler); while (sc.More()) { Sci_PositionU recStartPos; int byteCount, reqByteCount, addrFieldSize, addrFieldType, dataFieldSize, dataFieldType; int cs1, cs2; switch (sc.state) { case SCE_HEX_DEFAULT: if (sc.atLineStart && sc.Match('S')) { sc.SetState(SCE_HEX_RECSTART); } ForwardWithinLine(sc); break; case SCE_HEX_RECSTART: recStartPos = sc.currentPos - 1; addrFieldType = GetSrecAddressFieldType(recStartPos, styler); if (addrFieldType == SCE_HEX_ADDRESSFIELD_UNKNOWN) { sc.SetState(SCE_HEX_RECTYPE_UNKNOWN); } else { sc.SetState(SCE_HEX_RECTYPE); } ForwardWithinLine(sc); break; case SCE_HEX_RECTYPE: case SCE_HEX_RECTYPE_UNKNOWN: recStartPos = sc.currentPos - 2; byteCount = GetSrecByteCount(recStartPos, styler); reqByteCount = GetSrecAddressFieldSize(recStartPos, styler) + GetSrecRequiredDataFieldSize(recStartPos, styler) + 1; // +1 for checksum field if (byteCount == CountSrecByteCount(recStartPos, styler) && byteCount == reqByteCount) { sc.SetState(SCE_HEX_BYTECOUNT); } else { sc.SetState(SCE_HEX_BYTECOUNT_WRONG); } ForwardWithinLine(sc, 2); break; case SCE_HEX_BYTECOUNT: case SCE_HEX_BYTECOUNT_WRONG: recStartPos = sc.currentPos - 4; addrFieldSize = GetSrecAddressFieldSize(recStartPos, styler); addrFieldType = GetSrecAddressFieldType(recStartPos, styler); sc.SetState(addrFieldType); ForwardWithinLine(sc, addrFieldSize * 2); break; case SCE_HEX_NOADDRESS: case SCE_HEX_DATAADDRESS: case SCE_HEX_RECCOUNT: case SCE_HEX_STARTADDRESS: case SCE_HEX_ADDRESSFIELD_UNKNOWN: recStartPos = GetSrecRecStartPosition(sc.currentPos, styler); dataFieldType = GetSrecDataFieldType(recStartPos, styler); // Using the required size here if possible has the effect that the // checksum is highlighted at a fixed position after this field for // specific record types, independent on the "byte count" value. dataFieldSize = GetSrecRequiredDataFieldSize(recStartPos, styler); sc.SetState(dataFieldType); if (dataFieldType == SCE_HEX_DATA_ODD) { for (int i = 0; i < dataFieldSize * 2; i++) { if ((i & 0x3) == 0) { sc.SetState(SCE_HEX_DATA_ODD); } else if ((i & 0x3) == 2) { sc.SetState(SCE_HEX_DATA_EVEN); } if (!ForwardWithinLine(sc)) { break; } } } else { ForwardWithinLine(sc, dataFieldSize * 2); } break; case SCE_HEX_DATA_ODD: case SCE_HEX_DATA_EVEN: case SCE_HEX_DATA_EMPTY: case SCE_HEX_DATA_UNKNOWN: recStartPos = GetSrecRecStartPosition(sc.currentPos, styler); cs1 = CalcSrecChecksum(recStartPos, styler); cs2 = GetSrecChecksum(recStartPos, styler); if (cs1 != cs2 || cs1 < 0 || cs2 < 0) { sc.SetState(SCE_HEX_CHECKSUM_WRONG); } else { sc.SetState(SCE_HEX_CHECKSUM); } ForwardWithinLine(sc, 2); break; case SCE_HEX_CHECKSUM: case SCE_HEX_CHECKSUM_WRONG: case SCE_HEX_GARBAGE: // record finished or line too long sc.SetState(SCE_HEX_GARBAGE); ForwardWithinLine(sc); break; default: // prevent endless loop in faulty state sc.SetState(SCE_HEX_DEFAULT); break; } } sc.Complete(); } static void ColouriseIHexDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { StyleContext sc(startPos, length, initStyle, styler); while (sc.More()) { Sci_PositionU recStartPos; int byteCount, addrFieldType, dataFieldSize, dataFieldType; int cs1, cs2; switch (sc.state) { case SCE_HEX_DEFAULT: if (sc.atLineStart && sc.Match(':')) { sc.SetState(SCE_HEX_RECSTART); } ForwardWithinLine(sc); break; case SCE_HEX_RECSTART: recStartPos = sc.currentPos - 1; byteCount = GetIHexByteCount(recStartPos, styler); dataFieldSize = GetIHexRequiredDataFieldSize(recStartPos, styler); if (byteCount == CountIHexByteCount(recStartPos, styler) && byteCount == dataFieldSize) { sc.SetState(SCE_HEX_BYTECOUNT); } else { sc.SetState(SCE_HEX_BYTECOUNT_WRONG); } ForwardWithinLine(sc, 2); break; case SCE_HEX_BYTECOUNT: case SCE_HEX_BYTECOUNT_WRONG: recStartPos = sc.currentPos - 3; addrFieldType = GetIHexAddressFieldType(recStartPos, styler); sc.SetState(addrFieldType); ForwardWithinLine(sc, 4); break; case SCE_HEX_NOADDRESS: case SCE_HEX_DATAADDRESS: case SCE_HEX_ADDRESSFIELD_UNKNOWN: recStartPos = sc.currentPos - 7; addrFieldType = GetIHexAddressFieldType(recStartPos, styler); if (addrFieldType == SCE_HEX_ADDRESSFIELD_UNKNOWN) { sc.SetState(SCE_HEX_RECTYPE_UNKNOWN); } else { sc.SetState(SCE_HEX_RECTYPE); } ForwardWithinLine(sc, 2); break; case SCE_HEX_RECTYPE: case SCE_HEX_RECTYPE_UNKNOWN: recStartPos = sc.currentPos - 9; dataFieldType = GetIHexDataFieldType(recStartPos, styler); // Using the required size here if possible has the effect that the // checksum is highlighted at a fixed position after this field for // specific record types, independent on the "byte count" value. dataFieldSize = GetIHexRequiredDataFieldSize(recStartPos, styler); sc.SetState(dataFieldType); if (dataFieldType == SCE_HEX_DATA_ODD) { for (int i = 0; i < dataFieldSize * 2; i++) { if ((i & 0x3) == 0) { sc.SetState(SCE_HEX_DATA_ODD); } else if ((i & 0x3) == 2) { sc.SetState(SCE_HEX_DATA_EVEN); } if (!ForwardWithinLine(sc)) { break; } } } else { ForwardWithinLine(sc, dataFieldSize * 2); } break; case SCE_HEX_DATA_ODD: case SCE_HEX_DATA_EVEN: case SCE_HEX_DATA_EMPTY: case SCE_HEX_EXTENDEDADDRESS: case SCE_HEX_STARTADDRESS: case SCE_HEX_DATA_UNKNOWN: recStartPos = GetIHexRecStartPosition(sc.currentPos, styler); cs1 = CalcIHexChecksum(recStartPos, styler); cs2 = GetIHexChecksum(recStartPos, styler); if (cs1 != cs2 || cs1 < 0 || cs2 < 0) { sc.SetState(SCE_HEX_CHECKSUM_WRONG); } else { sc.SetState(SCE_HEX_CHECKSUM); } ForwardWithinLine(sc, 2); break; case SCE_HEX_CHECKSUM: case SCE_HEX_CHECKSUM_WRONG: case SCE_HEX_GARBAGE: // record finished or line too long sc.SetState(SCE_HEX_GARBAGE); ForwardWithinLine(sc); break; default: // prevent endless loop in faulty state sc.SetState(SCE_HEX_DEFAULT); break; } } sc.Complete(); } static void FoldIHexDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_PositionU endPos = startPos + length; Sci_Position lineCurrent = styler.GetLine(startPos); int levelCurrent = SC_FOLDLEVELBASE; if (lineCurrent > 0) levelCurrent = styler.LevelAt(lineCurrent - 1); Sci_PositionU lineStartNext = styler.LineStart(lineCurrent + 1); int levelNext = SC_FOLDLEVELBASE; // default if no specific line found for (Sci_PositionU i = startPos; i < endPos; i++) { bool atEOL = i == (lineStartNext - 1); int style = styler.StyleAt(i); // search for specific lines if (style == SCE_HEX_EXTENDEDADDRESS) { // extended addres record levelNext = SC_FOLDLEVELBASE | SC_FOLDLEVELHEADERFLAG; } else if (style == SCE_HEX_DATAADDRESS || (style == SCE_HEX_DEFAULT && i == (Sci_PositionU)styler.LineStart(lineCurrent))) { // data record or no record start code at all if (levelCurrent & SC_FOLDLEVELHEADERFLAG) { levelNext = SC_FOLDLEVELBASE + 1; } else { // continue level 0 or 1, no fold point levelNext = levelCurrent; } } if (atEOL || (i == endPos - 1)) { styler.SetLevel(lineCurrent, levelNext); lineCurrent++; lineStartNext = styler.LineStart(lineCurrent + 1); levelCurrent = levelNext; levelNext = SC_FOLDLEVELBASE; } } } static void ColouriseTEHexDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *[], Accessor &styler) { StyleContext sc(startPos, length, initStyle, styler); while (sc.More()) { Sci_PositionU recStartPos; int digitCount, addrFieldType; int cs1, cs2; switch (sc.state) { case SCE_HEX_DEFAULT: if (sc.atLineStart && sc.Match('%')) { sc.SetState(SCE_HEX_RECSTART); } ForwardWithinLine(sc); break; case SCE_HEX_RECSTART: recStartPos = sc.currentPos - 1; if (GetTEHexDigitCount(recStartPos, styler) == CountTEHexDigitCount(recStartPos, styler)) { sc.SetState(SCE_HEX_BYTECOUNT); } else { sc.SetState(SCE_HEX_BYTECOUNT_WRONG); } ForwardWithinLine(sc, 2); break; case SCE_HEX_BYTECOUNT: case SCE_HEX_BYTECOUNT_WRONG: recStartPos = sc.currentPos - 3; addrFieldType = GetTEHexAddressFieldType(recStartPos, styler); if (addrFieldType == SCE_HEX_ADDRESSFIELD_UNKNOWN) { sc.SetState(SCE_HEX_RECTYPE_UNKNOWN); } else { sc.SetState(SCE_HEX_RECTYPE); } ForwardWithinLine(sc); break; case SCE_HEX_RECTYPE: case SCE_HEX_RECTYPE_UNKNOWN: recStartPos = sc.currentPos - 4; cs1 = CalcTEHexChecksum(recStartPos, styler); cs2 = GetTEHexChecksum(recStartPos, styler); if (cs1 != cs2 || cs1 < 0 || cs2 < 0) { sc.SetState(SCE_HEX_CHECKSUM_WRONG); } else { sc.SetState(SCE_HEX_CHECKSUM); } ForwardWithinLine(sc, 2); break; case SCE_HEX_CHECKSUM: case SCE_HEX_CHECKSUM_WRONG: recStartPos = sc.currentPos - 6; addrFieldType = GetTEHexAddressFieldType(recStartPos, styler); sc.SetState(addrFieldType); ForwardWithinLine(sc, 9); break; case SCE_HEX_DATAADDRESS: case SCE_HEX_STARTADDRESS: case SCE_HEX_ADDRESSFIELD_UNKNOWN: recStartPos = sc.currentPos - 15; digitCount = GetTEHexDigitCount(recStartPos, styler) - 14; sc.SetState(SCE_HEX_DATA_ODD); for (int i = 0; i < digitCount; i++) { if ((i & 0x3) == 0) { sc.SetState(SCE_HEX_DATA_ODD); } else if ((i & 0x3) == 2) { sc.SetState(SCE_HEX_DATA_EVEN); } if (!ForwardWithinLine(sc)) { break; } } break; case SCE_HEX_DATA_ODD: case SCE_HEX_DATA_EVEN: case SCE_HEX_GARBAGE: // record finished or line too long sc.SetState(SCE_HEX_GARBAGE); ForwardWithinLine(sc); break; default: // prevent endless loop in faulty state sc.SetState(SCE_HEX_DEFAULT); break; } } sc.Complete(); } LexerModule lmSrec(SCLEX_SREC, ColouriseSrecDoc, "srec", 0, NULL); LexerModule lmIHex(SCLEX_IHEX, ColouriseIHexDoc, "ihex", FoldIHexDoc, NULL); LexerModule lmTEHex(SCLEX_TEHEX, ColouriseTEHexDoc, "tehex", 0, NULL); codequery-0.21.0/scintilla/lexers/LexIndent.cxx000066400000000000000000000047401310136352400214770ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexIndent.cxx ** Lexer for no language. Used for indentation-based folding of files. **/ // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static void ColouriseIndentDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { // Indent language means all style bytes are 0 so just mark the end - no need to fill in. if (length > 0) { styler.StartAt(startPos + length - 1); styler.StartSegment(startPos + length - 1); styler.ColourTo(startPos + length - 1, 0); } } static void FoldIndentDoc(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { int visibleCharsCurrent, visibleCharsNext; int levelCurrent, levelNext; Sci_PositionU i, lineEnd; Sci_PositionU lengthDoc = startPos + length; Sci_Position lineCurrent = styler.GetLine(startPos); i = styler.LineStart(lineCurrent ); lineEnd = styler.LineStart(lineCurrent+1)-1; if(lineEnd>=lengthDoc) lineEnd = lengthDoc-1; while(styler[lineEnd]=='\n' || styler[lineEnd]=='\r') lineEnd--; for(visibleCharsCurrent=0, levelCurrent=SC_FOLDLEVELBASE; !visibleCharsCurrent && i<=lineEnd; i++){ if(isspacechar(styler[i])) levelCurrent++; else visibleCharsCurrent=1; } for(; i=lengthDoc) lineEnd = lengthDoc-1; while(styler[lineEnd]=='\n' || styler[lineEnd]=='\r') lineEnd--; for(visibleCharsNext=0, levelNext=SC_FOLDLEVELBASE; !visibleCharsNext && i<=lineEnd; i++){ if(isspacechar(styler[i])) levelNext++; else visibleCharsNext=1; } int lev = levelCurrent; if(!visibleCharsCurrent) lev |= SC_FOLDLEVELWHITEFLAG; else if(levelNext > levelCurrent) lev |= SC_FOLDLEVELHEADERFLAG; styler.SetLevel(lineCurrent, lev); levelCurrent = levelNext; visibleCharsCurrent = visibleCharsNext; } } LexerModule lmIndent(SCLEX_INDENT, ColouriseIndentDoc, "indent", FoldIndentDoc); codequery-0.21.0/scintilla/lexers/LexInno.cxx000066400000000000000000000203151310136352400211550ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexInno.cxx ** Lexer for Inno Setup scripts. **/ // Written by Friedrich Vedder , using code from LexOthers.cxx. // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static void ColouriseInnoDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *keywordLists[], Accessor &styler) { int state = SCE_INNO_DEFAULT; char chPrev; char ch = 0; char chNext = styler[startPos]; Sci_Position lengthDoc = startPos + length; char *buffer = new char[length+1]; Sci_Position bufferCount = 0; bool isBOL, isEOL, isWS, isBOLWS = 0; bool isCStyleComment = false; WordList §ionKeywords = *keywordLists[0]; WordList &standardKeywords = *keywordLists[1]; WordList ¶meterKeywords = *keywordLists[2]; WordList &preprocessorKeywords = *keywordLists[3]; WordList &pascalKeywords = *keywordLists[4]; WordList &userKeywords = *keywordLists[5]; Sci_Position curLine = styler.GetLine(startPos); int curLineState = curLine > 0 ? styler.GetLineState(curLine - 1) : 0; bool isCode = (curLineState == 1); // Go through all provided text segment // using the hand-written state machine shown below styler.StartAt(startPos); styler.StartSegment(startPos); for (Sci_Position i = startPos; i < lengthDoc; i++) { chPrev = ch; ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); i++; continue; } isBOL = (chPrev == 0) || (chPrev == '\n') || (chPrev == '\r' && ch != '\n'); isBOLWS = (isBOL) ? 1 : (isBOLWS && (chPrev == ' ' || chPrev == '\t')); isEOL = (ch == '\n' || ch == '\r'); isWS = (ch == ' ' || ch == '\t'); if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { // Remember the line state for future incremental lexing curLine = styler.GetLine(i); styler.SetLineState(curLine, (isCode ? 1 : 0)); } switch(state) { case SCE_INNO_DEFAULT: if (!isCode && ch == ';' && isBOLWS) { // Start of a comment state = SCE_INNO_COMMENT; } else if (ch == '[' && isBOLWS) { // Start of a section name bufferCount = 0; state = SCE_INNO_SECTION; } else if (ch == '#' && isBOLWS) { // Start of a preprocessor directive state = SCE_INNO_PREPROC; } else if (!isCode && ch == '{' && chNext != '{' && chPrev != '{') { // Start of an inline expansion state = SCE_INNO_INLINE_EXPANSION; } else if (isCode && (ch == '{' || (ch == '(' && chNext == '*'))) { // Start of a Pascal comment state = SCE_INNO_COMMENT_PASCAL; isCStyleComment = false; } else if (isCode && ch == '/' && chNext == '/') { // Apparently, C-style comments are legal, too state = SCE_INNO_COMMENT_PASCAL; isCStyleComment = true; } else if (ch == '"') { // Start of a double-quote string state = SCE_INNO_STRING_DOUBLE; } else if (ch == '\'') { // Start of a single-quote string state = SCE_INNO_STRING_SINGLE; } else if (IsASCII(ch) && (isalpha(ch) || (ch == '_'))) { // Start of an identifier bufferCount = 0; buffer[bufferCount++] = static_cast(tolower(ch)); state = SCE_INNO_IDENTIFIER; } else { // Style it the default style styler.ColourTo(i,SCE_INNO_DEFAULT); } break; case SCE_INNO_COMMENT: if (isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_COMMENT); } break; case SCE_INNO_IDENTIFIER: if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { buffer[bufferCount++] = static_cast(tolower(ch)); } else { state = SCE_INNO_DEFAULT; buffer[bufferCount] = '\0'; // Check if the buffer contains a keyword if (!isCode && standardKeywords.InList(buffer)) { styler.ColourTo(i-1,SCE_INNO_KEYWORD); } else if (!isCode && parameterKeywords.InList(buffer)) { styler.ColourTo(i-1,SCE_INNO_PARAMETER); } else if (isCode && pascalKeywords.InList(buffer)) { styler.ColourTo(i-1,SCE_INNO_KEYWORD_PASCAL); } else if (!isCode && userKeywords.InList(buffer)) { styler.ColourTo(i-1,SCE_INNO_KEYWORD_USER); } else { styler.ColourTo(i-1,SCE_INNO_DEFAULT); } // Push back the faulty character chNext = styler[i--]; ch = chPrev; } break; case SCE_INNO_SECTION: if (ch == ']') { state = SCE_INNO_DEFAULT; buffer[bufferCount] = '\0'; // Check if the buffer contains a section name if (sectionKeywords.InList(buffer)) { styler.ColourTo(i,SCE_INNO_SECTION); isCode = !CompareCaseInsensitive(buffer, "code"); } else { styler.ColourTo(i,SCE_INNO_DEFAULT); } } else if (IsASCII(ch) && (isalnum(ch) || (ch == '_'))) { buffer[bufferCount++] = static_cast(tolower(ch)); } else { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_DEFAULT); } break; case SCE_INNO_PREPROC: if (isWS || isEOL) { if (IsASCII(chPrev) && isalpha(chPrev)) { state = SCE_INNO_DEFAULT; buffer[bufferCount] = '\0'; // Check if the buffer contains a preprocessor directive if (preprocessorKeywords.InList(buffer)) { styler.ColourTo(i-1,SCE_INNO_PREPROC); } else { styler.ColourTo(i-1,SCE_INNO_DEFAULT); } // Push back the faulty character chNext = styler[i--]; ch = chPrev; } } else if (IsASCII(ch) && isalpha(ch)) { if (chPrev == '#' || chPrev == ' ' || chPrev == '\t') bufferCount = 0; buffer[bufferCount++] = static_cast(tolower(ch)); } break; case SCE_INNO_STRING_DOUBLE: if (ch == '"' || isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_STRING_DOUBLE); } break; case SCE_INNO_STRING_SINGLE: if (ch == '\'' || isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_STRING_SINGLE); } break; case SCE_INNO_INLINE_EXPANSION: if (ch == '}') { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_INLINE_EXPANSION); } else if (isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_DEFAULT); } break; case SCE_INNO_COMMENT_PASCAL: if (isCStyleComment) { if (isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_COMMENT_PASCAL); } } else { if (ch == '}' || (ch == ')' && chPrev == '*')) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_COMMENT_PASCAL); } else if (isEOL) { state = SCE_INNO_DEFAULT; styler.ColourTo(i,SCE_INNO_DEFAULT); } } break; } } delete []buffer; } static const char * const innoWordListDesc[] = { "Sections", "Keywords", "Parameters", "Preprocessor directives", "Pascal keywords", "User defined keywords", 0 }; static void FoldInnoDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_PositionU endPos = startPos + length; char chNext = styler[startPos]; Sci_Position lineCurrent = styler.GetLine(startPos); bool sectionFlag = false; int levelPrev = lineCurrent > 0 ? styler.LevelAt(lineCurrent - 1) : SC_FOLDLEVELBASE; int level; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler[i+1]; bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); int style = styler.StyleAt(i); if (style == SCE_INNO_SECTION) sectionFlag = true; if (atEOL || i == endPos - 1) { if (sectionFlag) { level = SC_FOLDLEVELBASE | SC_FOLDLEVELHEADERFLAG; if (level == levelPrev) styler.SetLevel(lineCurrent - 1, levelPrev & ~SC_FOLDLEVELHEADERFLAG); } else { level = levelPrev & SC_FOLDLEVELNUMBERMASK; if (levelPrev & SC_FOLDLEVELHEADERFLAG) level++; } styler.SetLevel(lineCurrent, level); levelPrev = level; lineCurrent++; sectionFlag = false; } } } LexerModule lmInno(SCLEX_INNOSETUP, ColouriseInnoDoc, "inno", FoldInnoDoc, innoWordListDesc); codequery-0.21.0/scintilla/lexers/LexJSON.cxx000066400000000000000000000326041310136352400210270ustar00rootroot00000000000000// Scintilla source code edit control /** * @file LexJSON.cxx * @date February 19, 2016 * @brief Lexer for JSON and JSON-LD formats * @author nkmathew * * The License.txt file describes the conditions under which this software may * be distributed. * */ #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "OptionSet.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static const char *const JSONWordListDesc[] = { "JSON Keywords", "JSON-LD Keywords", 0 }; /** * Used to detect compact IRI/URLs in JSON-LD without first looking ahead for the * colon separating the prefix and suffix * * https://www.w3.org/TR/json-ld/#dfn-compact-iri */ struct CompactIRI { int colonCount; bool foundInvalidChar; CharacterSet setCompactIRI; CompactIRI() { colonCount = 0; foundInvalidChar = false; setCompactIRI = CharacterSet(CharacterSet::setAlpha, "$_-"); } void resetState() { colonCount = 0; foundInvalidChar = false; } void checkChar(int ch) { if (ch == ':') { colonCount++; } else { foundInvalidChar |= !setCompactIRI.Contains(ch); } } bool shouldHighlight() const { return !foundInvalidChar && colonCount == 1; } }; /** * Keeps track of escaped characters in strings as per: * * https://tools.ietf.org/html/rfc7159#section-7 */ struct EscapeSequence { int digitsLeft; CharacterSet setHexDigits; CharacterSet setEscapeChars; EscapeSequence() { digitsLeft = 0; setHexDigits = CharacterSet(CharacterSet::setDigits, "ABCDEFabcdef"); setEscapeChars = CharacterSet(CharacterSet::setNone, "\\\"tnbfru/"); } // Returns true if the following character is a valid escaped character bool newSequence(int nextChar) { digitsLeft = 0; if (nextChar == 'u') { digitsLeft = 5; } else if (!setEscapeChars.Contains(nextChar)) { return false; } return true; } bool atEscapeEnd() const { return digitsLeft <= 0; } bool isInvalidChar(int currChar) const { return !setHexDigits.Contains(currChar); } }; struct OptionsJSON { bool foldCompact; bool fold; bool allowComments; bool escapeSequence; OptionsJSON() { foldCompact = false; fold = false; allowComments = false; escapeSequence = false; } }; struct OptionSetJSON : public OptionSet { OptionSetJSON() { DefineProperty("lexer.json.escape.sequence", &OptionsJSON::escapeSequence, "Set to 1 to enable highlighting of escape sequences in strings"); DefineProperty("lexer.json.allow.comments", &OptionsJSON::allowComments, "Set to 1 to enable highlighting of line/block comments in JSON"); DefineProperty("fold.compact", &OptionsJSON::foldCompact); DefineProperty("fold", &OptionsJSON::fold); DefineWordListSets(JSONWordListDesc); } }; class LexerJSON : public ILexer { OptionsJSON options; OptionSetJSON optSetJSON; EscapeSequence escapeSeq; WordList keywordsJSON; WordList keywordsJSONLD; CharacterSet setOperators; CharacterSet setURL; CharacterSet setKeywordJSONLD; CharacterSet setKeywordJSON; CompactIRI compactIRI; static bool IsNextNonWhitespace(LexAccessor &styler, Sci_Position start, char ch) { Sci_Position i = 0; while (i < 50) { i++; char curr = styler.SafeGetCharAt(start+i, '\0'); char next = styler.SafeGetCharAt(start+i+1, '\0'); bool atEOL = (curr == '\r' && next != '\n') || (curr == '\n'); if (curr == ch) { return true; } else if (!isspacechar(curr) || atEOL) { return false; } } return false; } /** * Looks for the colon following the end quote * * Assumes property names of lengths no longer than a 100 characters. * The colon is also expected to be less than 50 spaces after the end * quote for the string to be considered a property name */ static bool AtPropertyName(LexAccessor &styler, Sci_Position start) { Sci_Position i = 0; bool escaped = false; while (i < 100) { i++; char curr = styler.SafeGetCharAt(start+i, '\0'); if (escaped) { escaped = false; continue; } escaped = curr == '\\'; if (curr == '"') { return IsNextNonWhitespace(styler, start+i, ':'); } else if (!curr) { return false; } } return false; } static bool IsNextWordInList(WordList &keywordList, CharacterSet wordSet, StyleContext &context, LexAccessor &styler) { char word[51]; Sci_Position currPos = (Sci_Position) context.currentPos; int i = 0; while (i < 50) { char ch = styler.SafeGetCharAt(currPos + i); if (!wordSet.Contains(ch)) { break; } word[i] = ch; i++; } word[i] = '\0'; return keywordList.InList(word); } public: LexerJSON() : setOperators(CharacterSet::setNone, "[{}]:,"), setURL(CharacterSet::setAlphaNum, "-._~:/?#[]@!$&'()*+,),="), setKeywordJSONLD(CharacterSet::setAlpha, ":@"), setKeywordJSON(CharacterSet::setAlpha, "$_") { } virtual ~LexerJSON() {} int SCI_METHOD Version() const override { return lvOriginal; } void SCI_METHOD Release() override { delete this; } const char *SCI_METHOD PropertyNames() override { return optSetJSON.PropertyNames(); } int SCI_METHOD PropertyType(const char *name) override { return optSetJSON.PropertyType(name); } const char *SCI_METHOD DescribeProperty(const char *name) override { return optSetJSON.DescribeProperty(name); } Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) override { if (optSetJSON.PropertySet(&options, key, val)) { return 0; } return -1; } Sci_Position SCI_METHOD WordListSet(int n, const char *wl) override { WordList *wordListN = 0; switch (n) { case 0: wordListN = &keywordsJSON; break; case 1: wordListN = &keywordsJSONLD; break; } Sci_Position firstModification = -1; if (wordListN) { WordList wlNew; wlNew.Set(wl); if (*wordListN != wlNew) { wordListN->Set(wl); firstModification = 0; } } return firstModification; } void *SCI_METHOD PrivateCall(int, void *) override { return 0; } static ILexer *LexerFactoryJSON() { return new LexerJSON; } const char *SCI_METHOD DescribeWordListSets() override { return optSetJSON.DescribeWordListSets(); } void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; }; void SCI_METHOD LexerJSON::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { LexAccessor styler(pAccess); StyleContext context(startPos, length, initStyle, styler); int stringStyleBefore = SCE_JSON_STRING; while (context.More()) { switch (context.state) { case SCE_JSON_BLOCKCOMMENT: if (context.Match("*/")) { context.Forward(); context.ForwardSetState(SCE_JSON_DEFAULT); } break; case SCE_JSON_LINECOMMENT: if (context.atLineEnd) { context.SetState(SCE_JSON_DEFAULT); } break; case SCE_JSON_STRINGEOL: if (context.atLineStart) { context.SetState(SCE_JSON_DEFAULT); } break; case SCE_JSON_ESCAPESEQUENCE: escapeSeq.digitsLeft--; if (!escapeSeq.atEscapeEnd()) { if (escapeSeq.isInvalidChar(context.ch)) { context.SetState(SCE_JSON_ERROR); } break; } if (context.ch == '"') { context.SetState(stringStyleBefore); context.ForwardSetState(SCE_C_DEFAULT); } else if (context.ch == '\\') { if (!escapeSeq.newSequence(context.chNext)) { context.SetState(SCE_JSON_ERROR); } context.Forward(); } else { context.SetState(stringStyleBefore); if (context.atLineEnd) { context.ChangeState(SCE_JSON_STRINGEOL); } } break; case SCE_JSON_PROPERTYNAME: case SCE_JSON_STRING: if (context.ch == '"') { if (compactIRI.shouldHighlight()) { context.ChangeState(SCE_JSON_COMPACTIRI); context.ForwardSetState(SCE_JSON_DEFAULT); compactIRI.resetState(); } else { context.ForwardSetState(SCE_JSON_DEFAULT); } } else if (context.atLineEnd) { context.ChangeState(SCE_JSON_STRINGEOL); } else if (context.ch == '\\') { stringStyleBefore = context.state; if (options.escapeSequence) { context.SetState(SCE_JSON_ESCAPESEQUENCE); if (!escapeSeq.newSequence(context.chNext)) { context.SetState(SCE_JSON_ERROR); } } context.Forward(); } else if (context.Match("https://") || context.Match("http://") || context.Match("ssh://") || context.Match("git://") || context.Match("svn://") || context.Match("ftp://") || context.Match("mailto:")) { // Handle most common URI schemes only stringStyleBefore = context.state; context.SetState(SCE_JSON_URI); } else if (context.ch == '@') { // https://www.w3.org/TR/json-ld/#dfn-keyword if (IsNextWordInList(keywordsJSONLD, setKeywordJSONLD, context, styler)) { stringStyleBefore = context.state; context.SetState(SCE_JSON_LDKEYWORD); } } else { compactIRI.checkChar(context.ch); } break; case SCE_JSON_LDKEYWORD: case SCE_JSON_URI: if ((!setKeywordJSONLD.Contains(context.ch) && (context.state == SCE_JSON_LDKEYWORD)) || (!setURL.Contains(context.ch))) { context.SetState(stringStyleBefore); } if (context.ch == '"') { context.ForwardSetState(SCE_JSON_DEFAULT); } else if (context.atLineEnd) { context.ChangeState(SCE_JSON_STRINGEOL); } break; case SCE_JSON_OPERATOR: case SCE_JSON_NUMBER: context.SetState(SCE_JSON_DEFAULT); break; case SCE_JSON_ERROR: if (context.atLineEnd) { context.SetState(SCE_JSON_DEFAULT); } break; case SCE_JSON_KEYWORD: if (!setKeywordJSON.Contains(context.ch)) { context.SetState(SCE_JSON_DEFAULT); } break; } if (context.state == SCE_JSON_DEFAULT) { if (context.ch == '"') { compactIRI.resetState(); context.SetState(SCE_JSON_STRING); Sci_Position currPos = static_cast(context.currentPos); if (AtPropertyName(styler, currPos)) { context.SetState(SCE_JSON_PROPERTYNAME); } } else if (setOperators.Contains(context.ch)) { context.SetState(SCE_JSON_OPERATOR); } else if (options.allowComments && context.Match("/*")) { context.SetState(SCE_JSON_BLOCKCOMMENT); context.Forward(); } else if (options.allowComments && context.Match("//")) { context.SetState(SCE_JSON_LINECOMMENT); } else if (setKeywordJSON.Contains(context.ch)) { if (IsNextWordInList(keywordsJSON, setKeywordJSON, context, styler)) { context.SetState(SCE_JSON_KEYWORD); } } bool numberStart = IsADigit(context.ch) && (context.chPrev == '+'|| context.chPrev == '-' || context.atLineStart || IsASpace(context.chPrev) || setOperators.Contains(context.chPrev)); bool exponentPart = tolower(context.ch) == 'e' && IsADigit(context.chPrev) && (IsADigit(context.chNext) || context.chNext == '+' || context.chNext == '-'); bool signPart = (context.ch == '-' || context.ch == '+') && ((tolower(context.chPrev) == 'e' && IsADigit(context.chNext)) || ((IsASpace(context.chPrev) || setOperators.Contains(context.chPrev)) && IsADigit(context.chNext))); bool adjacentDigit = IsADigit(context.ch) && IsADigit(context.chPrev); bool afterExponent = IsADigit(context.ch) && tolower(context.chPrev) == 'e'; bool dotPart = context.ch == '.' && IsADigit(context.chPrev) && IsADigit(context.chNext); bool afterDot = IsADigit(context.ch) && context.chPrev == '.'; if (numberStart || exponentPart || signPart || adjacentDigit || dotPart || afterExponent || afterDot) { context.SetState(SCE_JSON_NUMBER); } else if (context.state == SCE_JSON_DEFAULT && !IsASpace(context.ch)) { context.SetState(SCE_JSON_ERROR); } } context.Forward(); } context.Complete(); } void SCI_METHOD LexerJSON::Fold(Sci_PositionU startPos, Sci_Position length, int, IDocument *pAccess) { if (!options.fold) { return; } LexAccessor styler(pAccess); Sci_PositionU currLine = styler.GetLine(startPos); Sci_PositionU endPos = startPos + length; int currLevel = SC_FOLDLEVELBASE; if (currLine > 0) currLevel = styler.LevelAt(currLine - 1) >> 16; int nextLevel = currLevel; int visibleChars = 0; for (Sci_PositionU i = startPos; i < endPos; i++) { char curr = styler.SafeGetCharAt(i); char next = styler.SafeGetCharAt(i+1); bool atEOL = (curr == '\r' && next != '\n') || (curr == '\n'); if (styler.StyleAt(i) == SCE_JSON_OPERATOR) { if (curr == '{' || curr == '[') { nextLevel++; } else if (curr == '}' || curr == ']') { nextLevel--; } } if (atEOL || i == (endPos-1)) { int level = currLevel | nextLevel << 16; if (!visibleChars && options.foldCompact) { level |= SC_FOLDLEVELWHITEFLAG; } else if (nextLevel > currLevel) { level |= SC_FOLDLEVELHEADERFLAG; } if (level != styler.LevelAt(currLine)) { styler.SetLevel(currLine, level); } currLine++; currLevel = nextLevel; visibleChars = 0; } if (!isspacechar(curr)) { visibleChars++; } } } LexerModule lmJSON(SCLEX_JSON, LexerJSON::LexerFactoryJSON, "json", JSONWordListDesc); codequery-0.21.0/scintilla/lexers/LexKVIrc.cxx000066400000000000000000000377071310136352400212450ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexKVIrc.cxx ** Lexer for KVIrc script. **/ // Copyright 2013 by OmegaPhil , based in // part from LexPython Copyright 1998-2002 by Neil Hodgson // and LexCmake Copyright 2007 by Cristian Adam // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif /* KVIrc Script syntactic rules: http://www.kvirc.net/doc/doc_syntactic_rules.html */ /* Utility functions */ static inline bool IsAWordChar(int ch) { /* Keyword list includes modules, i.e. words including '.', and * alias namespaces include ':' */ return (ch < 0x80) && (isalnum(ch) || ch == '_' || ch == '.' || ch == ':'); } static inline bool IsAWordStart(int ch) { /* Functions (start with '$') are treated separately to keywords */ return (ch < 0x80) && (isalnum(ch) || ch == '_' ); } /* Interface function called by Scintilla to request some text to be syntax highlighted */ static void ColouriseKVIrcDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { /* Fetching style context */ StyleContext sc(startPos, length, initStyle, styler); /* Accessing keywords and function-marking keywords */ WordList &keywords = *keywordlists[0]; WordList &functionKeywords = *keywordlists[1]; /* Looping for all characters - only automatically moving forward * when asked for (transitions leaving strings and keywords do this * already) */ bool next = true; for( ; sc.More(); next ? sc.Forward() : (void)0 ) { /* Resetting next */ next = true; /* Dealing with different states */ switch (sc.state) { case SCE_KVIRC_DEFAULT: /* Detecting single-line comments * Unfortunately KVIrc script allows raw '#' to be used, and appending # to an array returns * its length... * Going for a compromise where single line comments not * starting on a newline are allowed in all cases except * when they are preceeded with an opening bracket or comma * (this will probably be the most common style a valid * string-less channel name will be used with), with the * array length case included */ if ( (sc.ch == '#' && sc.atLineStart) || (sc.ch == '#' && ( sc.chPrev != '(' && sc.chPrev != ',' && sc.chPrev != ']') ) ) { sc.SetState(SCE_KVIRC_COMMENT); break; } /* Detecting multi-line comments */ if (sc.Match('/', '*')) { sc.SetState(SCE_KVIRC_COMMENTBLOCK); break; } /* Detecting strings */ if (sc.ch == '"') { sc.SetState(SCE_KVIRC_STRING); break; } /* Detecting functions */ if (sc.ch == '$') { sc.SetState(SCE_KVIRC_FUNCTION); break; } /* Detecting variables */ if (sc.ch == '%') { sc.SetState(SCE_KVIRC_VARIABLE); break; } /* Detecting numbers - isdigit is unsafe as it does not * validate, use CharacterSet.h functions */ if (IsADigit(sc.ch)) { sc.SetState(SCE_KVIRC_NUMBER); break; } /* Detecting words */ if (IsAWordStart(sc.ch) && IsAWordChar(sc.chNext)) { sc.SetState(SCE_KVIRC_WORD); sc.Forward(); break; } /* Detecting operators */ if (isoperator(sc.ch)) { sc.SetState(SCE_KVIRC_OPERATOR); break; } break; case SCE_KVIRC_COMMENT: /* Breaking out of single line comment when a newline * is introduced */ if (sc.ch == '\r' || sc.ch == '\n') { sc.SetState(SCE_KVIRC_DEFAULT); break; } break; case SCE_KVIRC_COMMENTBLOCK: /* Detecting end of multi-line comment */ if (sc.Match('*', '/')) { // Moving the current position forward two characters // so that '*/' is included in the comment sc.Forward(2); sc.SetState(SCE_KVIRC_DEFAULT); /* Comment has been exited and the current position * moved forward, yet the new current character * has yet to be defined - loop without moving * forward again */ next = false; break; } break; case SCE_KVIRC_STRING: /* Detecting end of string - closing speechmarks */ if (sc.ch == '"') { /* Allowing escaped speechmarks to pass */ if (sc.chPrev == '\\') break; /* Moving the current position forward to capture the * terminating speechmarks, and ending string */ sc.ForwardSetState(SCE_KVIRC_DEFAULT); /* String has been exited and the current position * moved forward, yet the new current character * has yet to be defined - loop without moving * forward again */ next = false; break; } /* Functions and variables are now highlighted in strings * Detecting functions */ if (sc.ch == '$') { /* Allowing escaped functions to pass */ if (sc.chPrev == '\\') break; sc.SetState(SCE_KVIRC_STRING_FUNCTION); break; } /* Detecting variables */ if (sc.ch == '%') { /* Allowing escaped variables to pass */ if (sc.chPrev == '\\') break; sc.SetState(SCE_KVIRC_STRING_VARIABLE); break; } /* Breaking out of a string when a newline is introduced */ if (sc.ch == '\r' || sc.ch == '\n') { /* Allowing escaped newlines */ if (sc.chPrev == '\\') break; sc.SetState(SCE_KVIRC_DEFAULT); break; } break; case SCE_KVIRC_FUNCTION: case SCE_KVIRC_VARIABLE: /* Detecting the end of a function/variable (word) */ if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_KVIRC_DEFAULT); /* Word has been exited yet the current character * has yet to be defined - loop without moving * forward again */ next = false; break; } break; case SCE_KVIRC_STRING_FUNCTION: case SCE_KVIRC_STRING_VARIABLE: /* A function or variable in a string * Detecting the end of a function/variable (word) */ if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_KVIRC_STRING); /* Word has been exited yet the current character * has yet to be defined - loop without moving * forward again */ next = false; break; } break; case SCE_KVIRC_NUMBER: /* Detecting the end of a number */ if (!IsADigit(sc.ch)) { sc.SetState(SCE_KVIRC_DEFAULT); /* Number has been exited yet the current character * has yet to be defined - loop without moving * forward */ next = false; break; } break; case SCE_KVIRC_OPERATOR: /* Because '%' is an operator but is also the marker for * a variable, I need to always treat operators as single * character strings and therefore redo their detection * after every character */ sc.SetState(SCE_KVIRC_DEFAULT); /* Operator has been exited yet the current character * has yet to be defined - loop without moving * forward */ next = false; break; case SCE_KVIRC_WORD: /* Detecting the end of a word */ if (!IsAWordChar(sc.ch)) { /* Checking if the word was actually a keyword - * fetching the current word, NULL-terminated like * the keyword list */ char s[100]; Sci_Position wordLen = sc.currentPos - styler.GetStartSegment(); if (wordLen > 99) wordLen = 99; /* Include '\0' in buffer */ Sci_Position i; for( i = 0; i < wordLen; ++i ) { s[i] = styler.SafeGetCharAt( styler.GetStartSegment() + i ); } s[wordLen] = '\0'; /* Actually detecting keywords and fixing the state */ if (keywords.InList(s)) { /* The SetState call actually commits the * previous keyword state */ sc.ChangeState(SCE_KVIRC_KEYWORD); } else if (functionKeywords.InList(s)) { // Detecting function keywords and fixing the state sc.ChangeState(SCE_KVIRC_FUNCTION_KEYWORD); } /* Transitioning to default and committing the previous * word state */ sc.SetState(SCE_KVIRC_DEFAULT); /* Word has been exited yet the current character * has yet to be defined - loop without moving * forward again */ next = false; break; } break; } } /* Indicating processing is complete */ sc.Complete(); } static void FoldKVIrcDoc(Sci_PositionU startPos, Sci_Position length, int /*initStyle - unused*/, WordList *[], Accessor &styler) { /* Based on CMake's folder */ /* Exiting if folding isnt enabled */ if ( styler.GetPropertyInt("fold") == 0 ) return; /* Obtaining current line number*/ Sci_Position currentLine = styler.GetLine(startPos); /* Obtaining starting character - indentation is done on a line basis, * not character */ Sci_PositionU safeStartPos = styler.LineStart( currentLine ); /* Initialising current level - this is defined as indentation level * in the low 12 bits, with flag bits in the upper four bits. * It looks like two indentation states are maintained in the returned * 32bit value - 'nextLevel' in the most-significant bits, 'currentLevel' * in the least-significant bits. Since the next level is the most * up to date, this must refer to the current state of indentation. * So the code bitshifts the old current level out of existence to * get at the actual current state of indentation * Based on the LexerCPP.cxx line 958 comment */ int currentLevel = SC_FOLDLEVELBASE; if (currentLine > 0) currentLevel = styler.LevelAt(currentLine - 1) >> 16; int nextLevel = currentLevel; // Looping for characters in range for (Sci_PositionU i = safeStartPos; i < startPos + length; ++i) { /* Folding occurs after syntax highlighting, meaning Scintilla * already knows where the comments are * Fetching the current state */ int state = styler.StyleAt(i) & 31; switch( styler.SafeGetCharAt(i) ) { case '{': /* Indenting only when the braces are not contained in * a comment */ if (state != SCE_KVIRC_COMMENT && state != SCE_KVIRC_COMMENTBLOCK) ++nextLevel; break; case '}': /* Outdenting only when the braces are not contained in * a comment */ if (state != SCE_KVIRC_COMMENT && state != SCE_KVIRC_COMMENTBLOCK) --nextLevel; break; case '\n': case '\r': /* Preparing indentation information to return - combining * current and next level data */ int lev = currentLevel | nextLevel << 16; /* If the next level increases the indent level, mark the * current line as a fold point - current level data is * in the least significant bits */ if (nextLevel > currentLevel ) lev |= SC_FOLDLEVELHEADERFLAG; /* Updating indentation level if needed */ if (lev != styler.LevelAt(currentLine)) styler.SetLevel(currentLine, lev); /* Updating variables */ ++currentLine; currentLevel = nextLevel; /* Dealing with problematic Windows newlines - * incrementing to avoid the extra newline breaking the * fold point */ if (styler.SafeGetCharAt(i) == '\r' && styler.SafeGetCharAt(i + 1) == '\n') ++i; break; } } /* At this point the data has ended, so presumably the end of the line? * Preparing indentation information to return - combining current * and next level data */ int lev = currentLevel | nextLevel << 16; /* If the next level increases the indent level, mark the current * line as a fold point - current level data is in the least * significant bits */ if (nextLevel > currentLevel ) lev |= SC_FOLDLEVELHEADERFLAG; /* Updating indentation level if needed */ if (lev != styler.LevelAt(currentLine)) styler.SetLevel(currentLine, lev); } /* Registering wordlists */ static const char *const kvircWordListDesc[] = { "primary", "function_keywords", 0 }; /* Registering functions and wordlists */ LexerModule lmKVIrc(SCLEX_KVIRC, ColouriseKVIrcDoc, "kvirc", FoldKVIrcDoc, kvircWordListDesc); codequery-0.21.0/scintilla/lexers/LexKix.cxx000066400000000000000000000072771310136352400210210ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexKix.cxx ** Lexer for KIX-Scripts. **/ // Copyright 2004 by Manfred Becker // The License.txt file describes the conditions under which this software may be distributed. // Edited by Lee Wilmott (24-Jun-2014) added support for block comments #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Extended to accept accented characters static inline bool IsAWordChar(int ch) { return ch >= 0x80 || isalnum(ch) || ch == '_'; } static inline bool IsOperator(const int ch) { return (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '&' || ch == '|' || ch == '<' || ch == '>' || ch == '='); } static void ColouriseKixDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; // WordList &keywords4 = *keywordlists[3]; styler.StartAt(startPos); StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.state == SCE_KIX_COMMENT) { if (sc.atLineEnd) { sc.SetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_COMMENTSTREAM) { if (sc.ch == '/' && sc.chPrev == '*') { sc.ForwardSetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_STRING1) { // This is a doubles quotes string if (sc.ch == '\"') { sc.ForwardSetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_STRING2) { // This is a single quote string if (sc.ch == '\'') { sc.ForwardSetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_NUMBER) { if (!IsADigit(sc.ch)) { sc.SetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_VAR) { if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_MACRO) { if (!IsAWordChar(sc.ch) && !IsADigit(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (!keywords3.InList(&s[1])) { sc.ChangeState(SCE_KIX_DEFAULT); } sc.SetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_OPERATOR) { if (!IsOperator(sc.ch)) { sc.SetState(SCE_KIX_DEFAULT); } } else if (sc.state == SCE_KIX_IDENTIFIER) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrentLowered(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_KIX_KEYWORD); } else if (keywords2.InList(s)) { sc.ChangeState(SCE_KIX_FUNCTIONS); } sc.SetState(SCE_KIX_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_KIX_DEFAULT) { if (sc.ch == ';') { sc.SetState(SCE_KIX_COMMENT); } else if (sc.ch == '/' && sc.chNext == '*') { sc.SetState(SCE_KIX_COMMENTSTREAM); } else if (sc.ch == '\"') { sc.SetState(SCE_KIX_STRING1); } else if (sc.ch == '\'') { sc.SetState(SCE_KIX_STRING2); } else if (sc.ch == '$') { sc.SetState(SCE_KIX_VAR); } else if (sc.ch == '@') { sc.SetState(SCE_KIX_MACRO); } else if (IsADigit(sc.ch) || ((sc.ch == '.' || sc.ch == '&') && IsADigit(sc.chNext))) { sc.SetState(SCE_KIX_NUMBER); } else if (IsOperator(sc.ch)) { sc.SetState(SCE_KIX_OPERATOR); } else if (IsAWordChar(sc.ch)) { sc.SetState(SCE_KIX_IDENTIFIER); } } } sc.Complete(); } LexerModule lmKix(SCLEX_KIX, ColouriseKixDoc, "kix"); codequery-0.21.0/scintilla/lexers/LexLaTeX.cxx000066400000000000000000000362311310136352400212330ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexLaTeX.cxx ** Lexer for LaTeX2e. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. // Modified by G. HU in 2013. Added folding, syntax highting inside math environments, and changed some minor behaviors. #include #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "PropSetSimple.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #include "LexerBase.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif using namespace std; struct latexFoldSave { latexFoldSave() : structLev(0) { for (int i = 0; i < 8; ++i) openBegins[i] = 0; } latexFoldSave(const latexFoldSave &save) : structLev(save.structLev) { for (int i = 0; i < 8; ++i) openBegins[i] = save.openBegins[i]; } int openBegins[8]; int structLev; }; class LexerLaTeX : public LexerBase { private: vector modes; void setMode(Sci_Position line, int mode) { if (line >= static_cast(modes.size())) modes.resize(line + 1, 0); modes[line] = mode; } int getMode(Sci_Position line) { if (line >= 0 && line < static_cast(modes.size())) return modes[line]; return 0; } void truncModes(Sci_Position numLines) { if (static_cast(modes.size()) > numLines * 2 + 256) modes.resize(numLines + 128); } vector saves; void setSave(Sci_Position line, const latexFoldSave &save) { if (line >= static_cast(saves.size())) saves.resize(line + 1); saves[line] = save; } void getSave(Sci_Position line, latexFoldSave &save) { if (line >= 0 && line < static_cast(saves.size())) save = saves[line]; else { save.structLev = 0; for (int i = 0; i < 8; ++i) save.openBegins[i] = 0; } } void truncSaves(Sci_Position numLines) { if (static_cast(saves.size()) > numLines * 2 + 256) saves.resize(numLines + 128); } public: static ILexer *LexerFactoryLaTeX() { return new LexerLaTeX(); } void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) override; }; static bool latexIsSpecial(int ch) { return (ch == '#') || (ch == '$') || (ch == '%') || (ch == '&') || (ch == '_') || (ch == '{') || (ch == '}') || (ch == ' '); } static bool latexIsBlank(int ch) { return (ch == ' ') || (ch == '\t'); } static bool latexIsBlankAndNL(int ch) { return (ch == ' ') || (ch == '\t') || (ch == '\r') || (ch == '\n'); } static bool latexIsLetter(int ch) { return IsASCII(ch) && isalpha(ch); } static bool latexIsTagValid(Sci_Position &i, Sci_Position l, Accessor &styler) { while (i < l) { if (styler.SafeGetCharAt(i) == '{') { while (i < l) { i++; if (styler.SafeGetCharAt(i) == '}') { return true; } else if (!latexIsLetter(styler.SafeGetCharAt(i)) && styler.SafeGetCharAt(i)!='*') { return false; } } } else if (!latexIsBlank(styler.SafeGetCharAt(i))) { return false; } i++; } return false; } static bool latexNextNotBlankIs(Sci_Position i, Accessor &styler, char needle) { char ch; while (i < styler.Length()) { ch = styler.SafeGetCharAt(i); if (!latexIsBlankAndNL(ch) && ch != '*') { if (ch == needle) return true; else return false; } i++; } return false; } static bool latexLastWordIs(Sci_Position start, Accessor &styler, const char *needle) { Sci_PositionU i = 0; Sci_PositionU l = static_cast(strlen(needle)); Sci_Position ini = start-l+1; char s[32]; while (i < l && i < 31) { s[i] = styler.SafeGetCharAt(ini + i); i++; } s[i] = '\0'; return (strcmp(s, needle) == 0); } static bool latexLastWordIsMathEnv(Sci_Position pos, Accessor &styler) { Sci_Position i, j; char s[32]; const char *mathEnvs[] = { "align", "alignat", "flalign", "gather", "multiline", "displaymath", "eqnarray", "equation" }; if (styler.SafeGetCharAt(pos) != '}') return false; for (i = pos - 1; i >= 0; --i) { if (styler.SafeGetCharAt(i) == '{') break; if (pos - i >= 20) return false; } if (i < 0 || i == pos - 1) return false; ++i; for (j = 0; i + j < pos; ++j) s[j] = styler.SafeGetCharAt(i + j); s[j] = '\0'; if (j == 0) return false; if (s[j - 1] == '*') s[--j] = '\0'; for (i = 0; i < static_cast(sizeof(mathEnvs) / sizeof(const char *)); ++i) if (strcmp(s, mathEnvs[i]) == 0) return true; return false; } static inline void latexStateReset(int &mode, int &state) { switch (mode) { case 1: state = SCE_L_MATH; break; case 2: state = SCE_L_MATH2; break; default: state = SCE_L_DEFAULT; break; } } // There are cases not handled correctly, like $abcd\textrm{what is $x+y$}z+w$. // But I think it's already good enough. void SCI_METHOD LexerLaTeX::Lex(Sci_PositionU startPos, Sci_Position length, int initStyle, IDocument *pAccess) { // startPos is assumed to be the first character of a line Accessor styler(pAccess, &props); styler.StartAt(startPos); int mode = getMode(styler.GetLine(startPos) - 1); int state = initStyle; if (state == SCE_L_ERROR || state == SCE_L_SHORTCMD || state == SCE_L_SPECIAL) // should not happen latexStateReset(mode, state); char chNext = styler.SafeGetCharAt(startPos); char chVerbatimDelim = '\0'; styler.StartSegment(startPos); Sci_Position lengthDoc = startPos + length; for (Sci_Position i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); if (styler.IsLeadByte(ch)) { i++; chNext = styler.SafeGetCharAt(i + 1); continue; } if (ch == '\r' || ch == '\n') setMode(styler.GetLine(i), mode); switch (state) { case SCE_L_DEFAULT : switch (ch) { case '\\' : styler.ColourTo(i - 1, state); if (latexIsLetter(chNext)) { state = SCE_L_COMMAND; } else if (latexIsSpecial(chNext)) { styler.ColourTo(i + 1, SCE_L_SPECIAL); i++; chNext = styler.SafeGetCharAt(i + 1); } else if (chNext == '\r' || chNext == '\n') { styler.ColourTo(i, SCE_L_ERROR); } else if (IsASCII(chNext)) { styler.ColourTo(i + 1, SCE_L_SHORTCMD); if (chNext == '(') { mode = 1; state = SCE_L_MATH; } else if (chNext == '[') { mode = 2; state = SCE_L_MATH2; } i++; chNext = styler.SafeGetCharAt(i + 1); } break; case '$' : styler.ColourTo(i - 1, state); if (chNext == '$') { styler.ColourTo(i + 1, SCE_L_SHORTCMD); mode = 2; state = SCE_L_MATH2; i++; chNext = styler.SafeGetCharAt(i + 1); } else { styler.ColourTo(i, SCE_L_SHORTCMD); mode = 1; state = SCE_L_MATH; } break; case '%' : styler.ColourTo(i - 1, state); state = SCE_L_COMMENT; break; } break; // These 3 will never be reached. case SCE_L_ERROR: case SCE_L_SPECIAL: case SCE_L_SHORTCMD: break; case SCE_L_COMMAND : if (!latexIsLetter(chNext)) { styler.ColourTo(i, state); if (latexNextNotBlankIs(i + 1, styler, '[' )) { state = SCE_L_CMDOPT; } else if (latexLastWordIs(i, styler, "\\begin")) { state = SCE_L_TAG; } else if (latexLastWordIs(i, styler, "\\end")) { state = SCE_L_TAG2; } else if (latexLastWordIs(i, styler, "\\verb") && chNext != '*' && chNext != ' ') { chVerbatimDelim = chNext; state = SCE_L_VERBATIM; } else { latexStateReset(mode, state); } } break; case SCE_L_CMDOPT : if (ch == ']') { styler.ColourTo(i, state); latexStateReset(mode, state); } break; case SCE_L_TAG : if (latexIsTagValid(i, lengthDoc, styler)) { styler.ColourTo(i, state); latexStateReset(mode, state); if (latexLastWordIs(i, styler, "{verbatim}")) { state = SCE_L_VERBATIM; } else if (latexLastWordIs(i, styler, "{comment}")) { state = SCE_L_COMMENT2; } else if (latexLastWordIs(i, styler, "{math}") && mode == 0) { mode = 1; state = SCE_L_MATH; } else if (latexLastWordIsMathEnv(i, styler) && mode == 0) { mode = 2; state = SCE_L_MATH2; } } else { styler.ColourTo(i, SCE_L_ERROR); latexStateReset(mode, state); ch = styler.SafeGetCharAt(i); if (ch == '\r' || ch == '\n') setMode(styler.GetLine(i), mode); } chNext = styler.SafeGetCharAt(i+1); break; case SCE_L_TAG2 : if (latexIsTagValid(i, lengthDoc, styler)) { styler.ColourTo(i, state); latexStateReset(mode, state); } else { styler.ColourTo(i, SCE_L_ERROR); latexStateReset(mode, state); ch = styler.SafeGetCharAt(i); if (ch == '\r' || ch == '\n') setMode(styler.GetLine(i), mode); } chNext = styler.SafeGetCharAt(i+1); break; case SCE_L_MATH : switch (ch) { case '\\' : styler.ColourTo(i - 1, state); if (latexIsLetter(chNext)) { Sci_Position match = i + 3; if (latexLastWordIs(match, styler, "\\end")) { match++; if (latexIsTagValid(match, lengthDoc, styler)) { if (latexLastWordIs(match, styler, "{math}")) mode = 0; } } state = SCE_L_COMMAND; } else if (latexIsSpecial(chNext)) { styler.ColourTo(i + 1, SCE_L_SPECIAL); i++; chNext = styler.SafeGetCharAt(i + 1); } else if (chNext == '\r' || chNext == '\n') { styler.ColourTo(i, SCE_L_ERROR); } else if (IsASCII(chNext)) { if (chNext == ')') { mode = 0; state = SCE_L_DEFAULT; } styler.ColourTo(i + 1, SCE_L_SHORTCMD); i++; chNext = styler.SafeGetCharAt(i + 1); } break; case '$' : styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_L_SHORTCMD); mode = 0; state = SCE_L_DEFAULT; break; case '%' : styler.ColourTo(i - 1, state); state = SCE_L_COMMENT; break; } break; case SCE_L_MATH2 : switch (ch) { case '\\' : styler.ColourTo(i - 1, state); if (latexIsLetter(chNext)) { Sci_Position match = i + 3; if (latexLastWordIs(match, styler, "\\end")) { match++; if (latexIsTagValid(match, lengthDoc, styler)) { if (latexLastWordIsMathEnv(match, styler)) mode = 0; } } state = SCE_L_COMMAND; } else if (latexIsSpecial(chNext)) { styler.ColourTo(i + 1, SCE_L_SPECIAL); i++; chNext = styler.SafeGetCharAt(i + 1); } else if (chNext == '\r' || chNext == '\n') { styler.ColourTo(i, SCE_L_ERROR); } else if (IsASCII(chNext)) { if (chNext == ']') { mode = 0; state = SCE_L_DEFAULT; } styler.ColourTo(i + 1, SCE_L_SHORTCMD); i++; chNext = styler.SafeGetCharAt(i + 1); } break; case '$' : styler.ColourTo(i - 1, state); if (chNext == '$') { styler.ColourTo(i + 1, SCE_L_SHORTCMD); i++; chNext = styler.SafeGetCharAt(i + 1); mode = 0; state = SCE_L_DEFAULT; } else { // This may not be an error, e.g. \begin{equation}\text{$a$}\end{equation} styler.ColourTo(i, SCE_L_SHORTCMD); } break; case '%' : styler.ColourTo(i - 1, state); state = SCE_L_COMMENT; break; } break; case SCE_L_COMMENT : if (ch == '\r' || ch == '\n') { styler.ColourTo(i - 1, state); latexStateReset(mode, state); } break; case SCE_L_COMMENT2 : if (ch == '\\') { Sci_Position match = i + 3; if (latexLastWordIs(match, styler, "\\end")) { match++; if (latexIsTagValid(match, lengthDoc, styler)) { if (latexLastWordIs(match, styler, "{comment}")) { styler.ColourTo(i - 1, state); state = SCE_L_COMMAND; } } } } break; case SCE_L_VERBATIM : if (ch == '\\') { Sci_Position match = i + 3; if (latexLastWordIs(match, styler, "\\end")) { match++; if (latexIsTagValid(match, lengthDoc, styler)) { if (latexLastWordIs(match, styler, "{verbatim}")) { styler.ColourTo(i - 1, state); state = SCE_L_COMMAND; } } } } else if (chNext == chVerbatimDelim) { styler.ColourTo(i + 1, state); latexStateReset(mode, state); chVerbatimDelim = '\0'; i++; chNext = styler.SafeGetCharAt(i + 1); } else if (chVerbatimDelim != '\0' && (ch == '\n' || ch == '\r')) { styler.ColourTo(i, SCE_L_ERROR); latexStateReset(mode, state); chVerbatimDelim = '\0'; } break; } } if (lengthDoc == styler.Length()) truncModes(styler.GetLine(lengthDoc - 1)); styler.ColourTo(lengthDoc - 1, state); styler.Flush(); } static int latexFoldSaveToInt(const latexFoldSave &save) { int sum = 0; for (int i = 0; i <= save.structLev; ++i) sum += save.openBegins[i]; return ((sum + save.structLev + SC_FOLDLEVELBASE) & SC_FOLDLEVELNUMBERMASK); } // Change folding state while processing a line // Return the level before the first relevant command void SCI_METHOD LexerLaTeX::Fold(Sci_PositionU startPos, Sci_Position length, int, IDocument *pAccess) { const char *structWords[7] = {"part", "chapter", "section", "subsection", "subsubsection", "paragraph", "subparagraph"}; Accessor styler(pAccess, &props); Sci_PositionU endPos = startPos + length; Sci_Position curLine = styler.GetLine(startPos); latexFoldSave save; getSave(curLine - 1, save); do { char ch, buf[16]; Sci_Position i, j; int lev = -1; bool needFold = false; for (i = static_cast(startPos); i < static_cast(endPos); ++i) { ch = styler.SafeGetCharAt(i); if (ch == '\r' || ch == '\n') break; if (ch != '\\' || styler.StyleAt(i) != SCE_L_COMMAND) continue; for (j = 0; j < 15 && i + 1 < static_cast(endPos); ++j, ++i) { buf[j] = styler.SafeGetCharAt(i + 1); if (!latexIsLetter(buf[j])) break; } buf[j] = '\0'; if (strcmp(buf, "begin") == 0) { if (lev < 0) lev = latexFoldSaveToInt(save); ++save.openBegins[save.structLev]; needFold = true; } else if (strcmp(buf, "end") == 0) { while (save.structLev > 0 && save.openBegins[save.structLev] == 0) --save.structLev; if (lev < 0) lev = latexFoldSaveToInt(save); if (save.openBegins[save.structLev] > 0) --save.openBegins[save.structLev]; } else { for (j = 0; j < 7; ++j) if (strcmp(buf, structWords[j]) == 0) break; if (j >= 7) continue; save.structLev = j; // level before the command for (j = save.structLev + 1; j < 8; ++j) { save.openBegins[save.structLev] += save.openBegins[j]; save.openBegins[j] = 0; } if (lev < 0) lev = latexFoldSaveToInt(save); ++save.structLev; // level after the command needFold = true; } } if (lev < 0) lev = latexFoldSaveToInt(save); if (needFold) lev |= SC_FOLDLEVELHEADERFLAG; styler.SetLevel(curLine, lev); setSave(curLine, save); ++curLine; startPos = styler.LineStart(curLine); if (static_cast(startPos) == styler.Length()) { lev = latexFoldSaveToInt(save); styler.SetLevel(curLine, lev); setSave(curLine, save); truncSaves(curLine); } } while (startPos < endPos); styler.Flush(); } static const char *const emptyWordListDesc[] = { 0 }; LexerModule lmLatex(SCLEX_LATEX, LexerLaTeX::LexerFactoryLaTeX, "latex", emptyWordListDesc); codequery-0.21.0/scintilla/lexers/LexLisp.cxx000066400000000000000000000202101310136352400211530ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexLisp.cxx ** Lexer for Lisp. ** Written by Alexey Yutkin. **/ // Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif #define SCE_LISP_CHARACTER 29 #define SCE_LISP_MACRO 30 #define SCE_LISP_MACRO_DISPATCH 31 static inline bool isLispoperator(char ch) { if (IsASCII(ch) && isalnum(ch)) return false; if (ch == '\'' || ch == '`' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == '{' || ch == '}') return true; return false; } static inline bool isLispwordstart(char ch) { return IsASCII(ch) && ch != ';' && !isspacechar(ch) && !isLispoperator(ch) && ch != '\n' && ch != '\r' && ch != '\"'; } static void classifyWordLisp(Sci_PositionU start, Sci_PositionU end, WordList &keywords, WordList &keywords_kw, Accessor &styler) { assert(end >= start); char s[100]; Sci_PositionU i; bool digit_flag = true; for (i = 0; (i < end - start + 1) && (i < 99); i++) { s[i] = styler[start + i]; s[i + 1] = '\0'; if (!isdigit(s[i]) && (s[i] != '.')) digit_flag = false; } char chAttr = SCE_LISP_IDENTIFIER; if(digit_flag) chAttr = SCE_LISP_NUMBER; else { if (keywords.InList(s)) { chAttr = SCE_LISP_KEYWORD; } else if (keywords_kw.InList(s)) { chAttr = SCE_LISP_KEYWORD_KW; } else if ((s[0] == '*' && s[i-1] == '*') || (s[0] == '+' && s[i-1] == '+')) { chAttr = SCE_LISP_SPECIAL; } } styler.ColourTo(end, chAttr); return; } static void ColouriseLispDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords_kw = *keywordlists[1]; styler.StartAt(startPos); int state = initStyle, radix = -1; char chNext = styler[startPos]; Sci_PositionU lengthDoc = startPos + length; styler.StartSegment(startPos); for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (styler.IsLeadByte(ch)) { chNext = styler.SafeGetCharAt(i + 2); i += 1; continue; } if (state == SCE_LISP_DEFAULT) { if (ch == '#') { styler.ColourTo(i - 1, state); radix = -1; state = SCE_LISP_MACRO_DISPATCH; } else if (ch == ':' && isLispwordstart(chNext)) { styler.ColourTo(i - 1, state); state = SCE_LISP_SYMBOL; } else if (isLispwordstart(ch)) { styler.ColourTo(i - 1, state); state = SCE_LISP_IDENTIFIER; } else if (ch == ';') { styler.ColourTo(i - 1, state); state = SCE_LISP_COMMENT; } else if (isLispoperator(ch) || ch=='\'') { styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_LISP_OPERATOR); if (ch=='\'' && isLispwordstart(chNext)) { state = SCE_LISP_SYMBOL; } } else if (ch == '\"') { styler.ColourTo(i - 1, state); state = SCE_LISP_STRING; } } else if (state == SCE_LISP_IDENTIFIER || state == SCE_LISP_SYMBOL) { if (!isLispwordstart(ch)) { if (state == SCE_LISP_IDENTIFIER) { classifyWordLisp(styler.GetStartSegment(), i - 1, keywords, keywords_kw, styler); } else { styler.ColourTo(i - 1, state); } state = SCE_LISP_DEFAULT; } /*else*/ if (isLispoperator(ch) || ch=='\'') { styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_LISP_OPERATOR); if (ch=='\'' && isLispwordstart(chNext)) { state = SCE_LISP_SYMBOL; } } } else if (state == SCE_LISP_MACRO_DISPATCH) { if (!(IsASCII(ch) && isdigit(ch))) { if (ch != 'r' && ch != 'R' && (i - styler.GetStartSegment()) > 1) { state = SCE_LISP_DEFAULT; } else { switch (ch) { case '|': state = SCE_LISP_MULTI_COMMENT; break; case 'o': case 'O': radix = 8; state = SCE_LISP_MACRO; break; case 'x': case 'X': radix = 16; state = SCE_LISP_MACRO; break; case 'b': case 'B': radix = 2; state = SCE_LISP_MACRO; break; case '\\': state = SCE_LISP_CHARACTER; break; case ':': case '-': case '+': state = SCE_LISP_MACRO; break; case '\'': if (isLispwordstart(chNext)) { state = SCE_LISP_SPECIAL; } else { styler.ColourTo(i - 1, SCE_LISP_DEFAULT); styler.ColourTo(i, SCE_LISP_OPERATOR); state = SCE_LISP_DEFAULT; } break; default: if (isLispoperator(ch)) { styler.ColourTo(i - 1, SCE_LISP_DEFAULT); styler.ColourTo(i, SCE_LISP_OPERATOR); } state = SCE_LISP_DEFAULT; break; } } } } else if (state == SCE_LISP_MACRO) { if (isLispwordstart(ch) && (radix == -1 || IsADigit(ch, radix))) { state = SCE_LISP_SPECIAL; } else { state = SCE_LISP_DEFAULT; } } else if (state == SCE_LISP_CHARACTER) { if (isLispoperator(ch)) { styler.ColourTo(i, SCE_LISP_SPECIAL); state = SCE_LISP_DEFAULT; } else if (isLispwordstart(ch)) { styler.ColourTo(i, SCE_LISP_SPECIAL); state = SCE_LISP_SPECIAL; } else { state = SCE_LISP_DEFAULT; } } else if (state == SCE_LISP_SPECIAL) { if (!isLispwordstart(ch) || (radix != -1 && !IsADigit(ch, radix))) { styler.ColourTo(i - 1, state); state = SCE_LISP_DEFAULT; } if (isLispoperator(ch) || ch=='\'') { styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_LISP_OPERATOR); if (ch=='\'' && isLispwordstart(chNext)) { state = SCE_LISP_SYMBOL; } } } else { if (state == SCE_LISP_COMMENT) { if (atEOL) { styler.ColourTo(i - 1, state); state = SCE_LISP_DEFAULT; } } else if (state == SCE_LISP_MULTI_COMMENT) { if (ch == '|' && chNext == '#') { i++; chNext = styler.SafeGetCharAt(i + 1); styler.ColourTo(i, state); state = SCE_LISP_DEFAULT; } } else if (state == SCE_LISP_STRING) { if (ch == '\\') { if (chNext == '\"' || chNext == '\'' || chNext == '\\') { i++; chNext = styler.SafeGetCharAt(i + 1); } } else if (ch == '\"') { styler.ColourTo(i, state); state = SCE_LISP_DEFAULT; } } } } styler.ColourTo(lengthDoc - 1, state); } static void FoldLispDoc(Sci_PositionU startPos, Sci_Position length, int /* initStyle */, WordList *[], Accessor &styler) { Sci_PositionU lengthDoc = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; int styleNext = styler.StyleAt(startPos); for (Sci_PositionU i = startPos; i < lengthDoc; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (style == SCE_LISP_OPERATOR) { if (ch == '(' || ch == '[' || ch == '{') { levelCurrent++; } else if (ch == ')' || ch == ']' || ch == '}') { levelCurrent--; } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0) lev |= SC_FOLDLEVELWHITEFLAG; if ((levelCurrent > levelPrev) && (visibleChars > 0)) lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const lispWordListDesc[] = { "Functions and special operators", "Keywords", 0 }; LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc, lispWordListDesc); codequery-0.21.0/scintilla/lexers/LexLout.cxx000066400000000000000000000136661310136352400212100ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexLout.cxx ** Lexer for the Basser Lout (>= version 3) typesetting language **/ // Copyright 2003 by Kein-Hong Man // The License.txt file describes the conditions under which this software may be distributed. #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif static inline bool IsAWordChar(const int ch) { return (ch < 0x80) && (isalpha(ch) || ch == '@' || ch == '_'); } static inline bool IsAnOther(const int ch) { return (ch < 0x80) && (ch == '{' || ch == '}' || ch == '!' || ch == '$' || ch == '%' || ch == '&' || ch == '\'' || ch == '(' || ch == ')' || ch == '*' || ch == '+' || ch == ',' || ch == '-' || ch == '.' || ch == '/' || ch == ':' || ch == ';' || ch == '<' || ch == '=' || ch == '>' || ch == '?' || ch == '[' || ch == ']' || ch == '^' || ch == '`' || ch == '|' || ch == '~'); } static void ColouriseLoutDoc(Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; int visibleChars = 0; int firstWordInLine = 0; int leadingAtSign = 0; StyleContext sc(startPos, length, initStyle, styler); for (; sc.More(); sc.Forward()) { if (sc.atLineStart && (sc.state == SCE_LOUT_STRING)) { // Prevent SCE_LOUT_STRINGEOL from leaking back to previous line sc.SetState(SCE_LOUT_STRING); } // Determine if the current state should terminate. if (sc.state == SCE_LOUT_COMMENT) { if (sc.atLineEnd) { sc.SetState(SCE_LOUT_DEFAULT); visibleChars = 0; } } else if (sc.state == SCE_LOUT_NUMBER) { if (!IsADigit(sc.ch) && sc.ch != '.') { sc.SetState(SCE_LOUT_DEFAULT); } } else if (sc.state == SCE_LOUT_STRING) { if (sc.ch == '\\') { if (sc.chNext == '\"' || sc.chNext == '\\') { sc.Forward(); } } else if (sc.ch == '\"') { sc.ForwardSetState(SCE_LOUT_DEFAULT); } else if (sc.atLineEnd) { sc.ChangeState(SCE_LOUT_STRINGEOL); sc.ForwardSetState(SCE_LOUT_DEFAULT); visibleChars = 0; } } else if (sc.state == SCE_LOUT_IDENTIFIER) { if (!IsAWordChar(sc.ch)) { char s[100]; sc.GetCurrent(s, sizeof(s)); if (leadingAtSign) { if (keywords.InList(s)) { sc.ChangeState(SCE_LOUT_WORD); } else { sc.ChangeState(SCE_LOUT_WORD4); } } else if (firstWordInLine && keywords3.InList(s)) { sc.ChangeState(SCE_LOUT_WORD3); } sc.SetState(SCE_LOUT_DEFAULT); } } else if (sc.state == SCE_LOUT_OPERATOR) { if (!IsAnOther(sc.ch)) { char s[100]; sc.GetCurrent(s, sizeof(s)); if (keywords2.InList(s)) { sc.ChangeState(SCE_LOUT_WORD2); } sc.SetState(SCE_LOUT_DEFAULT); } } // Determine if a new state should be entered. if (sc.state == SCE_LOUT_DEFAULT) { if (sc.ch == '#') { sc.SetState(SCE_LOUT_COMMENT); } else if (sc.ch == '\"') { sc.SetState(SCE_LOUT_STRING); } else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) { sc.SetState(SCE_LOUT_NUMBER); } else if (IsAWordChar(sc.ch)) { firstWordInLine = (visibleChars == 0); leadingAtSign = (sc.ch == '@'); sc.SetState(SCE_LOUT_IDENTIFIER); } else if (IsAnOther(sc.ch)) { sc.SetState(SCE_LOUT_OPERATOR); } } if (sc.atLineEnd) { // Reset states to begining of colourise so no surprises // if different sets of lines lexed. visibleChars = 0; } if (!IsASpace(sc.ch)) { visibleChars++; } } sc.Complete(); } static void FoldLoutDoc(Sci_PositionU startPos, Sci_Position length, int, WordList *[], Accessor &styler) { Sci_PositionU endPos = startPos + length; int visibleChars = 0; Sci_Position lineCurrent = styler.GetLine(startPos); int levelPrev = styler.LevelAt(lineCurrent) & SC_FOLDLEVELNUMBERMASK; int levelCurrent = levelPrev; char chNext = styler[startPos]; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; int styleNext = styler.StyleAt(startPos); char s[10] = ""; for (Sci_PositionU i = startPos; i < endPos; i++) { char ch = chNext; chNext = styler.SafeGetCharAt(i + 1); int style = styleNext; styleNext = styler.StyleAt(i + 1); bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n'); if (style == SCE_LOUT_WORD) { if (ch == '@') { for (Sci_PositionU j = 0; j < 8; j++) { if (!IsAWordChar(styler[i + j])) { break; } s[j] = styler[i + j]; s[j + 1] = '\0'; } if (strcmp(s, "@Begin") == 0) { levelCurrent++; } else if (strcmp(s, "@End") == 0) { levelCurrent--; } } } else if (style == SCE_LOUT_OPERATOR) { if (ch == '{') { levelCurrent++; } else if (ch == '}') { levelCurrent--; } } if (atEOL) { int lev = levelPrev; if (visibleChars == 0 && foldCompact) { lev |= SC_FOLDLEVELWHITEFLAG; } if ((levelCurrent > levelPrev) && (visibleChars > 0)) { lev |= SC_FOLDLEVELHEADERFLAG; } if (lev != styler.LevelAt(lineCurrent)) { styler.SetLevel(lineCurrent, lev); } lineCurrent++; levelPrev = levelCurrent; visibleChars = 0; } if (!isspacechar(ch)) visibleChars++; } // Fill in the real level of the next line, keeping the current flags as they will be filled in later int flagsNext = styler.LevelAt(lineCurrent) & ~SC_FOLDLEVELNUMBERMASK; styler.SetLevel(lineCurrent, levelPrev | flagsNext); } static const char * const loutWordLists[] = { "Predefined identifiers", "Predefined delimiters", "Predefined keywords", 0, }; LexerModule lmLout(SCLEX_LOUT, ColouriseLoutDoc, "lout", FoldLoutDoc, loutWordLists); codequery-0.21.0/scintilla/lexers/LexLua.cxx000066400000000000000000000321601310136352400207740ustar00rootroot00000000000000// Scintilla source code edit control /** @file LexLua.cxx ** Lexer for Lua language. ** ** Written by Paul Winwood. ** Folder by Alexey Yutkin. ** Modified by Marcos E. Wurzius & Philippe Lhoste **/ #include #include #include #include #include #include #include "ILexer.h" #include "Scintilla.h" #include "SciLexer.h" #include "WordList.h" #include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" #include "CharacterSet.h" #include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; #endif // Test for [=[ ... ]=] delimiters, returns 0 if it's only a [ or ], // return 1 for [[ or ]], returns >=2 for [=[ or ]=] and so on. // The maximum number of '=' characters allowed is 254. static int LongDelimCheck(StyleContext &sc) { int sep = 1; while (sc.GetRelative(sep) == '=' && sep < 0xFF) sep++; if (sc.GetRelative(sep) == sc.ch) return sep; return 0; } static void ColouriseLuaDoc( Sci_PositionU startPos, Sci_Position length, int initStyle, WordList *keywordlists[], Accessor &styler) { WordList &keywords = *keywordlists[0]; WordList &keywords2 = *keywordlists[1]; WordList &keywords3 = *keywordlists[2]; WordList &keywords4 = *keywordlists[3]; WordList &keywords5 = *keywordlists[4]; WordList &keywords6 = *keywordlists[5]; WordList &keywords7 = *keywordlists[6]; WordList &keywords8 = *keywordlists[7]; // Accepts accented characters CharacterSet setWordStart(CharacterSet::setAlpha, "_", 0x80, true); CharacterSet setWord(CharacterSet::setAlphaNum, "_", 0x80, true); // Not exactly following number definition (several dots are seen as OK, etc.) // but probably enough in most cases. [pP] is for hex floats. CharacterSet setNumber(CharacterSet::setDigits, ".-+abcdefpABCDEFP"); CharacterSet setExponent(CharacterSet::setNone, "eEpP"); CharacterSet setLuaOperator(CharacterSet::setNone, "*/-+()={}~[];<>,.^%:#&|"); CharacterSet setEscapeSkip(CharacterSet::setNone, "\"'\\"); Sci_Position currentLine = styler.GetLine(startPos); // Initialize long string [[ ... ]] or block comment --[[ ... ]] nesting level, // if we are inside such a string. Block comment was introduced in Lua 5.0, // blocks with separators [=[ ... ]=] in Lua 5.1. // Continuation of a string (\z whitespace escaping) is controlled by stringWs. int nestLevel = 0; int sepCount = 0; int stringWs = 0; if (initStyle == SCE_LUA_LITERALSTRING || initStyle == SCE_LUA_COMMENT || initStyle == SCE_LUA_STRING || initStyle == SCE_LUA_CHARACTER) { int lineState = styler.GetLineState(currentLine - 1); nestLevel = lineState >> 9; sepCount = lineState & 0xFF; stringWs = lineState & 0x100; } // Do not leak onto next line if (initStyle == SCE_LUA_STRINGEOL || initStyle == SCE_LUA_COMMENTLINE || initStyle == SCE_LUA_PREPROCESSOR) { initStyle = SCE_LUA_DEFAULT; } StyleContext sc(startPos, length, initStyle, styler); if (startPos == 0 && sc.ch == '#' && sc.chNext == '!') { // shbang line: "#!" is a comment only if located at the start of the script sc.SetState(SCE_LUA_COMMENTLINE); } for (; sc.More(); sc.Forward()) { if (sc.atLineEnd) { // Update the line state, so it can be seen by next line currentLine = styler.GetLine(sc.currentPos); switch (sc.state) { case SCE_LUA_LITERALSTRING: case SCE_LUA_COMMENT: case SCE_LUA_STRING: case SCE_LUA_CHARACTER: // Inside a literal string, block comment or string, we set the line state styler.SetLineState(currentLine, (nestLevel << 9) | stringWs | sepCount); break; default: // Reset the line state styler.SetLineState(currentLine, 0); break; } } if (sc.atLineStart && (sc.state == SCE_LUA_STRING)) { // Prevent SCE_LUA_STRINGEOL from leaking back to previous line sc.SetState(SCE_LUA_STRING); } // Handle string line continuation if ((sc.state == SCE_LUA_STRING || sc.state == SCE_LUA_CHARACTER) && sc.ch == '\\') { if (sc.chNext == '\n' || sc.chNext == '\r') { sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { sc.Forward(); } continue; } } // Determine if the current state should terminate. if (sc.state == SCE_LUA_OPERATOR) { if (sc.ch == ':' && sc.chPrev == ':') { // ::