Revision: 1896 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1896&view=re... Author: eht16 Date: 2011-01-30 15:30:05 +0000 (Sun, 30 Jan 2011)
Log Message: ----------- update sc_speller_is_text() for new filetypes
Modified Paths: -------------- trunk/geany-plugins/spellcheck/src/speller.c
Modified: trunk/geany-plugins/spellcheck/src/speller.c =================================================================== --- trunk/geany-plugins/spellcheck/src/speller.c 2011-01-30 15:19:43 UTC (rev 1895) +++ trunk/geany-plugins/spellcheck/src/speller.c 2011-01-30 15:30:05 UTC (rev 1896) @@ -539,6 +539,21 @@ } break; } + case SCLEX_CMAKE: + { + switch (style) + { + case SCE_CMAKE_DEFAULT: + case SCE_CMAKE_COMMENT: + case SCE_CMAKE_STRINGDQ: + case SCE_CMAKE_STRINGLQ: + case SCE_CMAKE_STRINGRQ: + return TRUE; + default: + return FALSE; + } + break; + } #ifdef SCE_PAS_DEFAULT case SCLEX_PASCAL: { @@ -559,6 +574,7 @@ #else case SCLEX_PASCAL: #endif + case SCLEX_COBOL: case SCLEX_CPP: { switch (style) @@ -577,22 +593,6 @@ } break; } - case SCLEX_CMAKE: - { - switch (style) - { - case SCE_CMAKE_DEFAULT: - case SCE_CMAKE_COMMENT: - case SCE_CMAKE_STRINGDQ: - case SCE_CMAKE_STRINGLQ: - case SCE_CMAKE_STRINGRQ: - case SCE_CMAKE_STRINGVAR: - return TRUE; - default: - return FALSE; - } - break; - } case SCLEX_CSS: { switch (style) @@ -637,8 +637,26 @@ } break; } + case SCLEX_ERLANG: + { + switch (style) + { + case SCE_ERLANG_DEFAULT: + case SCE_ERLANG_COMMENT: + case SCE_ERLANG_STRING: + case SCE_ERLANG_CHARACTER: + case SCE_ERLANG_COMMENT_FUNCTION: + case SCE_ERLANG_COMMENT_MODULE: + case SCE_ERLANG_COMMENT_DOC: + case SCE_ERLANG_COMMENT_DOC_MACRO: + return TRUE; + default: + return FALSE; + } + break; + } + case SCLEX_F77: case SCLEX_FORTRAN: - case SCLEX_F77: { switch (style) { @@ -653,6 +671,21 @@ } break; } + case SCLEX_FORTH: + { + switch (style) + { + case SCE_FORTH_DEFAULT: + case SCE_FORTH_COMMENT: + case SCE_FORTH_COMMENT_ML: + case SCE_FORTH_STRING: + case SCE_FORTH_LOCALE: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_FREEBASIC: { switch (style) @@ -761,6 +794,21 @@ } break; } + case SCLEX_LISP: + { + switch (style) + { + case SCE_LISP_DEFAULT: + case SCE_LISP_COMMENT: + case SCE_LISP_STRING: + case SCE_LISP_STRINGEOL: + case SCE_LISP_MULTI_COMMENT: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_LUA: { switch (style) @@ -791,6 +839,11 @@ } break; } + case SCLEX_MARKDOWN: + { + return TRUE; + break; + } case SCLEX_MATLAB: { switch (style) @@ -945,6 +998,27 @@ } break; } + case SCLEX_TXT2TAGS: + { + return TRUE; + break; + } + case SCLEX_VERILOG: + { + switch (style) + { + case SCE_V_DEFAULT: + case SCE_V_COMMENT: + case SCE_V_COMMENTLINE: + case SCE_V_COMMENTLINEBANG: + case SCE_V_STRING: + case SCE_V_STRINGEOL: + return TRUE; + default: + return FALSE; + } + break; + } case SCLEX_VHDL: { switch (style)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org