Better m4.lang and sh.lang
This commit is contained in:
parent
05eb516101
commit
910e9267ae
@ -57,3 +57,4 @@ moo/mooterm/termhelper_res\.rc$
|
|||||||
.*\.(new|old).*
|
.*\.(new|old).*
|
||||||
gmon\.out
|
gmon\.out
|
||||||
py-compile
|
py-compile
|
||||||
|
^moo/mooedit/language-specs/testfiles/.*$
|
||||||
|
@ -1,53 +1,53 @@
|
|||||||
languagespecsdir = ${MOO_TEXT_LANG_FILES_DIR}
|
languagespecsdir = ${MOO_TEXT_LANG_FILES_DIR}
|
||||||
|
|
||||||
langs2 = \
|
langs2 = \
|
||||||
c.lang \
|
ada.lang \
|
||||||
changelog.lang \
|
changelog.lang \
|
||||||
|
c.lang \
|
||||||
cpp.lang \
|
cpp.lang \
|
||||||
|
csharp.lang \
|
||||||
|
css.lang \
|
||||||
def.lang \
|
def.lang \
|
||||||
|
desktop.lang \
|
||||||
|
diff.lang \
|
||||||
|
fortran.lang \
|
||||||
gap.lang \
|
gap.lang \
|
||||||
|
gtkrc.lang \
|
||||||
|
haskell.lang \
|
||||||
html.lang \
|
html.lang \
|
||||||
|
idl.lang \
|
||||||
|
ini.lang \
|
||||||
|
java.lang \
|
||||||
javascript.lang \
|
javascript.lang \
|
||||||
latex.lang \
|
latex.lang \
|
||||||
m4.lang \
|
m4.lang \
|
||||||
makefile.lang \
|
makefile.lang \
|
||||||
ms.lang \
|
ms.lang \
|
||||||
python.lang \
|
|
||||||
python-console.lang \
|
|
||||||
sh.lang \
|
|
||||||
xml.lang \
|
|
||||||
yacc.lang
|
|
||||||
|
|
||||||
langs1 = \
|
|
||||||
ada.lang \
|
|
||||||
boo.lang \
|
|
||||||
check.sh \
|
|
||||||
csharp.lang \
|
|
||||||
css.lang \
|
|
||||||
d.lang \
|
|
||||||
desktop.lang \
|
|
||||||
diff.lang \
|
|
||||||
fortran.lang \
|
|
||||||
gtkrc.lang \
|
|
||||||
haskell.lang \
|
|
||||||
idl.lang \
|
|
||||||
ini.lang \
|
|
||||||
java.lang \
|
|
||||||
lua.lang \
|
|
||||||
msil.lang \
|
|
||||||
nemerle.lang \
|
|
||||||
octave.lang \
|
octave.lang \
|
||||||
pascal.lang \
|
pascal.lang \
|
||||||
perl.lang \
|
perl.lang \
|
||||||
php.lang \
|
php.lang \
|
||||||
po.lang \
|
po.lang \
|
||||||
R.lang \
|
python-console.lang \
|
||||||
|
python.lang \
|
||||||
ruby.lang \
|
ruby.lang \
|
||||||
scheme.lang \
|
scheme.lang \
|
||||||
sh.lang \
|
sh.lang \
|
||||||
|
sh.lang \
|
||||||
sql.lang \
|
sql.lang \
|
||||||
tcl.lang \
|
tcl.lang \
|
||||||
texinfo.lang \
|
texinfo.lang \
|
||||||
|
xml.lang \
|
||||||
|
yacc.lang
|
||||||
|
|
||||||
|
langs1 = \
|
||||||
|
boo.lang \
|
||||||
|
check.sh \
|
||||||
|
d.lang \
|
||||||
|
lua.lang \
|
||||||
|
msil.lang \
|
||||||
|
nemerle.lang \
|
||||||
|
R.lang \
|
||||||
vbnet.lang \
|
vbnet.lang \
|
||||||
verilog.lang \
|
verilog.lang \
|
||||||
vhdl.lang
|
vhdl.lang
|
||||||
|
@ -58,6 +58,8 @@
|
|||||||
|
|
||||||
<style name="changelog:email" use-style="c:preprocessor"/>
|
<style name="changelog:email" use-style="c:preprocessor"/>
|
||||||
|
|
||||||
|
<!-- <style name="m4:quote" background="grey"/>-->
|
||||||
|
|
||||||
<style name="sh:dollar" foreground="#008000" bold="true"/>
|
<style name="sh:dollar" foreground="#008000" bold="true"/>
|
||||||
<!-- <style name="sh:single-quote" background="pink"/>
|
<!-- <style name="sh:single-quote" background="pink"/>
|
||||||
<style name="sh:double-quote" background="lightgrey"/>
|
<style name="sh:double-quote" background="lightgrey"/>
|
||||||
|
@ -2,25 +2,531 @@
|
|||||||
<language id="m4" _name="m4" _section="Scripts" version="2.0">
|
<language id="m4" _name="m4" _section="Scripts" version="2.0">
|
||||||
<metadata>
|
<metadata>
|
||||||
<property name="mimetypes">application/x-m4</property>
|
<property name="mimetypes">application/x-m4</property>
|
||||||
<property name="globs">*.m4</property>
|
<property name="globs">*.m4;configure.ac;configure.in</property>
|
||||||
<property name="line-comment-start">#</property>
|
<property name="line-comment-start">#</property>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
||||||
<styles>
|
<styles>
|
||||||
<style id="m4-comment" name="m4-comment" map-to="def:comment"/>
|
<style id="m4-comment" name="m4-comment" map-to="sh:comment"/>
|
||||||
|
<style id="quote" name="quote"/>
|
||||||
|
<style id="parentheses" name="parentheses"/>
|
||||||
|
<style id="m4-macro" name="m4 Macro" map-to="def:keyword"/>
|
||||||
|
<style id="ac-macros" name="Autoconf Macros" map-to="def:keyword"/>
|
||||||
|
<style id="ac-macros-obsolete" name="Obsolete Autoconf Macros" map-to="def:keyword"/>
|
||||||
|
<style id="am-macros" name="Automake Macros" map-to="def:keyword"/>
|
||||||
|
<style id="misc-macros" name="Miscellaneous Macros" map-to="def:keyword"/>
|
||||||
</styles>
|
</styles>
|
||||||
|
|
||||||
<definitions>
|
<definitions>
|
||||||
<context id="m4">
|
<context id="quote" style-ref="quote">
|
||||||
|
<start>\[</start>
|
||||||
|
<end>\]</end>
|
||||||
<include>
|
<include>
|
||||||
<context id="m4-comment" style-ref="m4-comment" end-at-line-end="true">
|
<context ref="m4-comment"/>
|
||||||
<start>dnl</start>
|
<context ref="quote"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="parentheses" style-ref="parentheses">
|
||||||
|
<start>\(</start>
|
||||||
|
<end>\)</end>
|
||||||
|
<include>
|
||||||
|
<context ref="m4-comment"/>
|
||||||
|
<context ref="parentheses"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="m4-comment" style-ref="m4-comment" end-at-line-end="true">
|
||||||
|
<start>dnl</start>
|
||||||
|
<include>
|
||||||
|
<context ref="def:line-comment:*"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="ac-defun">
|
||||||
|
<start>(AC_DEFUN)\s*\([^,]*,</start>
|
||||||
|
<end>\)</end>
|
||||||
|
<include>
|
||||||
|
<context sub-pattern="1" where="start" style-ref="ac-macros"/>
|
||||||
|
<context ref="ignore-quote:*"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="m4-foreach">
|
||||||
|
<start extended="true">
|
||||||
|
(m4_foreach)\s*\(
|
||||||
|
([^,]|\[[^\]]*\])*, # first argument
|
||||||
|
([^,]|\[[^\]]*\])*, # second argument
|
||||||
|
</start>
|
||||||
|
<end>\)</end>
|
||||||
|
<include>
|
||||||
|
<context sub-pattern="1" where="start" style-ref="m4-macro"/>
|
||||||
|
<context ref="ignore-quote:*"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="ignore-quote">
|
||||||
|
<include>
|
||||||
|
<context id="ignore-quote-1">
|
||||||
|
<start>\[</start>
|
||||||
|
<end>\]</end>
|
||||||
<include>
|
<include>
|
||||||
<context ref="def:line-comment:*"/>
|
<context ref="m4:*"/>
|
||||||
</include>
|
</include>
|
||||||
</context>
|
</context>
|
||||||
|
<context ref="m4:*"/>
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="m4">
|
||||||
|
<include>
|
||||||
|
<context ref="m4-comment"/>
|
||||||
|
<context ref="ac-defun"/>
|
||||||
|
<context ref="m4-foreach"/>
|
||||||
|
<context ref="m4-macro"/>
|
||||||
|
<context ref="ac-macros"/>
|
||||||
|
<context ref="ac-macros-obsolete"/>
|
||||||
|
<context ref="am-macros"/>
|
||||||
|
<context ref="parentheses"/>
|
||||||
|
<context ref="quote"/>
|
||||||
<context ref="sh:sh:*"/>
|
<context ref="sh:sh:*"/>
|
||||||
</include>
|
</include>
|
||||||
</context>
|
</context>
|
||||||
|
|
||||||
|
|
||||||
|
<context id="m4-macro" style-ref="m4-macro">
|
||||||
|
<keyword>m4_append(_uniq)?</keyword>
|
||||||
|
<keyword>m4_bpatsubst</keyword>
|
||||||
|
<keyword>m4_bregexp</keyword>
|
||||||
|
<keyword>m4_builtin</keyword>
|
||||||
|
<keyword>m4_decr</keyword>
|
||||||
|
<keyword>m4_define</keyword>
|
||||||
|
<keyword>m4_defn</keyword>
|
||||||
|
<keyword>m4_dnl</keyword>
|
||||||
|
<keyword>m4_dquote</keyword>
|
||||||
|
<keyword>m4_dumpdef</keyword>
|
||||||
|
<keyword>m4_errprint</keyword>
|
||||||
|
<keyword>m4_esyscmd</keyword>
|
||||||
|
<keyword>m4_eval</keyword>
|
||||||
|
<keyword>m4_exit</keyword>
|
||||||
|
<keyword>m4_for(each(_w)?)?</keyword>
|
||||||
|
<keyword>m4_format</keyword>
|
||||||
|
<keyword>m4_if(def)?</keyword>
|
||||||
|
<keyword>m4_include</keyword>
|
||||||
|
<keyword>m4_incr</keyword>
|
||||||
|
<keyword>m4_index</keyword>
|
||||||
|
<keyword>m4_indir</keyword>
|
||||||
|
<keyword>m4_len</keyword>
|
||||||
|
<keyword>m4_maketemp</keyword>
|
||||||
|
<keyword>m4_mkstemp</keyword>
|
||||||
|
<keyword>m4_normalize</keyword>
|
||||||
|
<keyword>m4_pattern_(allow|forbid)</keyword>
|
||||||
|
<keyword>m4_popdef</keyword>
|
||||||
|
<keyword>m4_pushdef</keyword>
|
||||||
|
<keyword>m4_quote</keyword>
|
||||||
|
<keyword>m4_re_escape</keyword>
|
||||||
|
<keyword>m4_shift</keyword>
|
||||||
|
<keyword>m4_sinclude</keyword>
|
||||||
|
<keyword>m4_split</keyword>
|
||||||
|
<keyword>m4_substr</keyword>
|
||||||
|
<keyword>m4_syscmd</keyword>
|
||||||
|
<keyword>m4_sysval</keyword>
|
||||||
|
<keyword>m4_to(lower|upper)</keyword>
|
||||||
|
<keyword>m4_translit</keyword>
|
||||||
|
<keyword>m4_undefine</keyword>
|
||||||
|
<keyword>m4_wrap</keyword>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="ac-macros" style-ref="ac-macros">
|
||||||
|
<keyword>AC_AC_PROG_MKDIR_P</keyword>
|
||||||
|
<keyword>AC_AIX</keyword>
|
||||||
|
<keyword>AC_ARG_(ENABLE|PROGRAM|VAR|WITH)</keyword>
|
||||||
|
<keyword>AC_BEFORE</keyword>
|
||||||
|
<keyword>AC_CACHE_(CHECK|LOAD|SAVE|VAL)</keyword>
|
||||||
|
<keyword>AC_CANONICAL_(BUILD|HOST|TARGET)</keyword>
|
||||||
|
<keyword>AC_C_BIGENDIAN</keyword>
|
||||||
|
<keyword>AC_C_CHAR_UNSIGNED</keyword>
|
||||||
|
<keyword>AC_C_CONST</keyword>
|
||||||
|
<keyword>AC_C_FLEXIBLE_ARRAY_MEMBER</keyword>
|
||||||
|
<keyword>AC_CHECK_ALIGNOF</keyword>
|
||||||
|
<keyword>AC_CHECK_DECL(S(_ONCE)?)?</keyword>
|
||||||
|
<keyword>AC_CHECK_FILES?</keyword>
|
||||||
|
<keyword>AC_CHECK_FUNC(S(_ONCE)?)?</keyword>
|
||||||
|
<keyword>AC_CHECK_HEADER(S(_ONCE)?)?</keyword>
|
||||||
|
<keyword>AC_CHECK_LIB</keyword>
|
||||||
|
<keyword>AC_CHECK_MEMBERS?</keyword>
|
||||||
|
<keyword>AC_CHECK_PROGS?</keyword>
|
||||||
|
<keyword>AC_CHECK_SIZEOF</keyword>
|
||||||
|
<keyword>AC_CHECK_TARGET_TOOLS?</keyword>
|
||||||
|
<keyword>AC_CHECK_TOOLS?</keyword>
|
||||||
|
<keyword>AC_CHECK_TYPES?</keyword>
|
||||||
|
<keyword>AC_C_INLINE</keyword>
|
||||||
|
<keyword>AC_COMPILE_IFELSE</keyword>
|
||||||
|
<keyword>AC_COMPUTE_INT</keyword>
|
||||||
|
<keyword>AC_CONFIG_AUX_DIR</keyword>
|
||||||
|
<keyword>AC_CONFIG_COMMANDS(_POST|_PRE)?</keyword>
|
||||||
|
<keyword>AC_CONFIG_FILES</keyword>
|
||||||
|
<keyword>AC_CONFIG_HEADERS</keyword>
|
||||||
|
<keyword>AC_CONFIG_LIBOBJ_DIR</keyword>
|
||||||
|
<keyword>AC_CONFIG_LINKS</keyword>
|
||||||
|
<keyword>AC_CONFIG_MACRO_DIR</keyword>
|
||||||
|
<keyword>AC_CONFIG_SRCDIR</keyword>
|
||||||
|
<keyword>AC_CONFIG_SUBDIRS</keyword>
|
||||||
|
<keyword>AC_CONFIG_TESTDIR</keyword>
|
||||||
|
<keyword>AC_COPYRIGHT</keyword>
|
||||||
|
<keyword>AC_C_PROTOTYPES</keyword>
|
||||||
|
<keyword>AC_C_RESTRICT</keyword>
|
||||||
|
<keyword>AC_C_STRINGIZE</keyword>
|
||||||
|
<keyword>AC_C_TYPEOF</keyword>
|
||||||
|
<keyword>AC_C_VARARRAYS</keyword>
|
||||||
|
<keyword>AC_C_VOLATILE</keyword>
|
||||||
|
<keyword>AC_DATAROOTDIR_CHECKED</keyword>
|
||||||
|
<keyword>AC_DEFINE(_UNQUOTED)?</keyword>
|
||||||
|
<keyword>AC_DEFUN(_ONCE)?</keyword>
|
||||||
|
<keyword>AC_DIAGNOSE</keyword>
|
||||||
|
<keyword>AC_EGREP_CPP</keyword>
|
||||||
|
<keyword>AC_EGREP_HEADER</keyword>
|
||||||
|
<keyword>AC_ENABLE</keyword>
|
||||||
|
<keyword>AC_ERLANG_CHECK_LIB</keyword>
|
||||||
|
<keyword>AC_ERLANG_NEED_ERLC?</keyword>
|
||||||
|
<keyword>AC_ERLANG_PATH_ERLC?</keyword>
|
||||||
|
<keyword>AC_ERLANG_SUBST_(LIB_DIR|ROOT_DIR|(INSTALL_LIB_(DIR|SUBDIR)))</keyword>
|
||||||
|
<keyword>AC_F77_DUMMY_MAIN</keyword>
|
||||||
|
<keyword>AC_F77_FUNC</keyword>
|
||||||
|
<keyword>AC_F77_LIBRARY_LDFLAGS</keyword>
|
||||||
|
<keyword>AC_F77_MAIN</keyword>
|
||||||
|
<keyword>AC_F77_WRAPPERS</keyword>
|
||||||
|
<keyword>AC_FATAL</keyword>
|
||||||
|
<keyword>AC_FC_FREEFORM</keyword>
|
||||||
|
<keyword>AC_FC_FUNC</keyword>
|
||||||
|
<keyword>AC_FC_LIBRARY_LDFLAGS</keyword>
|
||||||
|
<keyword>AC_FC_MAIN</keyword>
|
||||||
|
<keyword>AC_FC_SRCEXT</keyword>
|
||||||
|
<keyword>AC_FC_WRAPPERS</keyword>
|
||||||
|
<keyword>AC_FUNC_ALLOCA</keyword>
|
||||||
|
<keyword>AC_FUNC_CHOWN</keyword>
|
||||||
|
<keyword>AC_FUNC_CLOSEDIR_VOID</keyword>
|
||||||
|
<keyword>AC_FUNC_ERROR_AT_LINE</keyword>
|
||||||
|
<keyword>AC_FUNC_FNMATCH(_GNU)?</keyword>
|
||||||
|
<keyword>AC_FUNC_FORK</keyword>
|
||||||
|
<keyword>AC_FUNC_FSEEKO</keyword>
|
||||||
|
<keyword>AC_FUNC_GETGROUPS</keyword>
|
||||||
|
<keyword>AC_FUNC_GETLOADAVG</keyword>
|
||||||
|
<keyword>AC_FUNC_GETMNTENT</keyword>
|
||||||
|
<keyword>AC_FUNC_GETPGRP</keyword>
|
||||||
|
<keyword>AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK</keyword>
|
||||||
|
<keyword>AC_FUNC_LSTAT</keyword>
|
||||||
|
<keyword>AC_FUNC_MALLOC</keyword>
|
||||||
|
<keyword>AC_FUNC_MBRTOWC</keyword>
|
||||||
|
<keyword>AC_FUNC_MEMCMP</keyword>
|
||||||
|
<keyword>AC_FUNC_MKTIME</keyword>
|
||||||
|
<keyword>AC_FUNC_MMAP</keyword>
|
||||||
|
<keyword>AC_FUNC_OBSTACK</keyword>
|
||||||
|
<keyword>AC_FUNC_REALLOC</keyword>
|
||||||
|
<keyword>AC_FUNC_SELECT_ARGTYPES</keyword>
|
||||||
|
<keyword>AC_FUNC_SETPGRP</keyword>
|
||||||
|
<keyword>AC_FUNC_SETVBUF_REVERSED</keyword>
|
||||||
|
<keyword>AC_FUNC_STAT</keyword>
|
||||||
|
<keyword>AC_FUNC_STRCOLL</keyword>
|
||||||
|
<keyword>AC_FUNC_STRERROR_R</keyword>
|
||||||
|
<keyword>AC_FUNC_STRFTIME</keyword>
|
||||||
|
<keyword>AC_FUNC_STRNLEN</keyword>
|
||||||
|
<keyword>AC_FUNC_STRTOD</keyword>
|
||||||
|
<keyword>AC_FUNC_STRTOLD</keyword>
|
||||||
|
<keyword>AC_FUNC_UTIME_NULL</keyword>
|
||||||
|
<keyword>AC_FUNC_VPRINTF</keyword>
|
||||||
|
<keyword>AC_GNU_SOURCE</keyword>
|
||||||
|
<keyword>AC_HAVE_C_BACKSLASH_A</keyword>
|
||||||
|
<keyword>AC_HEADER_ASSERT</keyword>
|
||||||
|
<keyword>AC_HEADER_DIRENT</keyword>
|
||||||
|
<keyword>AC_HEADER_MAJOR</keyword>
|
||||||
|
<keyword>AC_HEADER_RESOLV</keyword>
|
||||||
|
<keyword>AC_HEADER_STAT</keyword>
|
||||||
|
<keyword>AC_HEADER_STDBOOL</keyword>
|
||||||
|
<keyword>AC_HEADER_STDC</keyword>
|
||||||
|
<keyword>AC_HEADER_SYS_WAIT</keyword>
|
||||||
|
<keyword>AC_HEADER_TIME</keyword>
|
||||||
|
<keyword>AC_HEADER_TIOCGWINSZ</keyword>
|
||||||
|
<keyword>AC_HELP_STRING</keyword>
|
||||||
|
<keyword>AC_INCLUDES_DEFAULT</keyword>
|
||||||
|
<keyword>AC_INIT</keyword>
|
||||||
|
<keyword>AC_ISC_POSIX</keyword>
|
||||||
|
<keyword>AC_LANG_ASSERT</keyword>
|
||||||
|
<keyword>AC_LANG_CALL</keyword>
|
||||||
|
<keyword>AC_LANG_CONFTEST</keyword>
|
||||||
|
<keyword>AC_LANG_FUNC_LINK_TRY</keyword>
|
||||||
|
<keyword>AC_LANG_POP</keyword>
|
||||||
|
<keyword>AC_LANG_PROGRAM</keyword>
|
||||||
|
<keyword>AC_LANG_PUSH</keyword>
|
||||||
|
<keyword>AC_LANG_SOURCE</keyword>
|
||||||
|
<keyword>AC_LANG_WERROR</keyword>
|
||||||
|
<keyword>AC_LIBOBJ</keyword>
|
||||||
|
<keyword>AC_LIBSOURCES?</keyword>
|
||||||
|
<keyword>AC_LINK_IFELSE</keyword>
|
||||||
|
<keyword>AC_MINIX</keyword>
|
||||||
|
<keyword>AC_MSG_CHECKING</keyword>
|
||||||
|
<keyword>AC_MSG_ERROR</keyword>
|
||||||
|
<keyword>AC_MSG_FAILURE</keyword>
|
||||||
|
<keyword>AC_MSG_NOTICE</keyword>
|
||||||
|
<keyword>AC_MSG_RESULT</keyword>
|
||||||
|
<keyword>AC_MSG_WARN</keyword>
|
||||||
|
<keyword>AC_OUTPUT</keyword>
|
||||||
|
<keyword>AC_PACKAGE_BUGREPORT</keyword>
|
||||||
|
<keyword>AC_PACKAGE_NAME</keyword>
|
||||||
|
<keyword>AC_PACKAGE_STRING</keyword>
|
||||||
|
<keyword>AC_PACKAGE_TARNAME</keyword>
|
||||||
|
<keyword>AC_PACKAGE_VERSION</keyword>
|
||||||
|
<keyword>AC_PATH_PROGS?</keyword>
|
||||||
|
<keyword>AC_PATH_TARGET_TOOL</keyword>
|
||||||
|
<keyword>AC_PATH_TOOL</keyword>
|
||||||
|
<keyword>AC_PATH_X</keyword>
|
||||||
|
<keyword>AC_PATH_XTRA</keyword>
|
||||||
|
<keyword>AC_PREFIX_DEFAULT</keyword>
|
||||||
|
<keyword>AC_PREFIX_PROGRAM</keyword>
|
||||||
|
<keyword>AC_PREPROC_IFELSE</keyword>
|
||||||
|
<keyword>AC_PREREQ</keyword>
|
||||||
|
<keyword>AC_PRESERVE_HELP_ORDER</keyword>
|
||||||
|
<keyword>AC_PROG_AWK</keyword>
|
||||||
|
<keyword>AC_PROG_CC(_C(89|99|_O))?</keyword>
|
||||||
|
<keyword>AC_PROG_CC_STDC</keyword>
|
||||||
|
<keyword>AC_PROG_CPP(_WERROR)?</keyword>
|
||||||
|
<keyword>AC_PROG_CXX(CPP|_C_O)?</keyword>
|
||||||
|
<keyword>AC_PROG_EGREP</keyword>
|
||||||
|
<keyword>AC_PROG_F77(_C_O)?</keyword>
|
||||||
|
<keyword>AC_PROG_FC(_C_O)?</keyword>
|
||||||
|
<keyword>AC_PROG_FGREP</keyword>
|
||||||
|
<keyword>AC_PROG_GCC_TRADITIONAL</keyword>
|
||||||
|
<keyword>AC_PROG_GREP</keyword>
|
||||||
|
<keyword>AC_PROG_INSTALL</keyword>
|
||||||
|
<keyword>AC_PROG_LEX</keyword>
|
||||||
|
<keyword>AC_PROG_LIBTOOL</keyword>
|
||||||
|
<keyword>AC_PROG_LN_S</keyword>
|
||||||
|
<keyword>AC_PROG_MAKE_SET</keyword>
|
||||||
|
<keyword>AC_PROG_OBJCCPP</keyword>
|
||||||
|
<keyword>AC_PROG_OBJC</keyword>
|
||||||
|
<keyword>AC_PROG_RANLIB</keyword>
|
||||||
|
<keyword>AC_PROG_SED</keyword>
|
||||||
|
<keyword>AC_PROG_YACC</keyword>
|
||||||
|
<keyword>AC_REPLACE_FNMATCH</keyword>
|
||||||
|
<keyword>AC_REPLACE_FUNCS</keyword>
|
||||||
|
<keyword>AC_REQUIRE_AUX_FILE</keyword>
|
||||||
|
<keyword>AC_REQUIRE_CPP</keyword>
|
||||||
|
<keyword>AC_REQUIRE</keyword>
|
||||||
|
<keyword>AC_REVISION</keyword>
|
||||||
|
<keyword>AC_RUN_IFELSE</keyword>
|
||||||
|
<keyword>AC_SEARCH_LIBS</keyword>
|
||||||
|
<keyword>AC_STRUCT_DIRENT_D_(INO|TYPE)</keyword>
|
||||||
|
<keyword>AC_STRUCT_ST_BLKSIZE</keyword>
|
||||||
|
<keyword>AC_STRUCT_ST_BLOCKS</keyword>
|
||||||
|
<keyword>AC_STRUCT_ST_RDEV</keyword>
|
||||||
|
<keyword>AC_STRUCT_TIMEZONE</keyword>
|
||||||
|
<keyword>AC_STRUCT_TM</keyword>
|
||||||
|
<keyword>AC_SUBST_FILE</keyword>
|
||||||
|
<keyword>AC_SUBST</keyword>
|
||||||
|
<keyword>AC_SYS_INTERPRETER</keyword>
|
||||||
|
<keyword>AC_SYS_LARGEFILE</keyword>
|
||||||
|
<keyword>AC_SYS_LONG_FILE_NAMES</keyword>
|
||||||
|
<keyword>AC_SYS_POSIX_TERMIOS</keyword>
|
||||||
|
<keyword>AC_TYPE_GETGROUPS</keyword>
|
||||||
|
<keyword>AC_TYPE_INT(16_T|32_T|64_T|8_T)</keyword>
|
||||||
|
<keyword>AC_TYPE_INTMAX_T</keyword>
|
||||||
|
<keyword>AC_TYPE_INTPTR_T</keyword>
|
||||||
|
<keyword>AC_TYPE_LONG_DOUBLE(_WIDER)?</keyword>
|
||||||
|
<keyword>AC_TYPE_LONG_LONG_INT</keyword>
|
||||||
|
<keyword>AC_TYPE_MBSTATE_T</keyword>
|
||||||
|
<keyword>AC_TYPE_MODE_T</keyword>
|
||||||
|
<keyword>AC_TYPE_OFF_T</keyword>
|
||||||
|
<keyword>AC_TYPE_PID_T</keyword>
|
||||||
|
<keyword>AC_TYPE_SIGNAL</keyword>
|
||||||
|
<keyword>AC_TYPE_SIZE_T</keyword>
|
||||||
|
<keyword>AC_TYPE_SSIZE_T</keyword>
|
||||||
|
<keyword>AC_TYPE_UID_T</keyword>
|
||||||
|
<keyword>AC_TYPE_UINT(16_T|32_T|64_T|8_T)</keyword>
|
||||||
|
<keyword>AC_TYPE_UINTMAX_T</keyword>
|
||||||
|
<keyword>AC_TYPE_UINTPTR_T</keyword>
|
||||||
|
<keyword>AC_TYPE_UNSIGNED_LONG_LONG_INT</keyword>
|
||||||
|
<keyword>AC_USE_SYSTEM_EXTENSIONS</keyword>
|
||||||
|
<keyword>AC_WARNING</keyword>
|
||||||
|
<keyword>AC_WITH</keyword>
|
||||||
|
<keyword>AH_BOTTOM</keyword>
|
||||||
|
<keyword>AH_HEADER</keyword>
|
||||||
|
<keyword>AH_TEMPLATE</keyword>
|
||||||
|
<keyword>AH_TOP</keyword>
|
||||||
|
<keyword>AH_VERBATIM</keyword>
|
||||||
|
<keyword>AS_BOURNE_COMPATIBLE</keyword>
|
||||||
|
<keyword>AS_CASE</keyword>
|
||||||
|
<keyword>AS_DIRNAME</keyword>
|
||||||
|
<keyword>AS_IF</keyword>
|
||||||
|
<keyword>AS_MESSAGE_FD</keyword>
|
||||||
|
<keyword>AS_MESSAGE_LOG_FD</keyword>
|
||||||
|
<keyword>AS_MKDIR_P</keyword>
|
||||||
|
<keyword>AS_ORIGINAL_STDIN_FD</keyword>
|
||||||
|
<keyword>AS_SET_CATFILE</keyword>
|
||||||
|
<keyword>AS_SHELL_SANITIZE</keyword>
|
||||||
|
<keyword>AS_TR_CPP</keyword>
|
||||||
|
<keyword>AS_TR_SH</keyword>
|
||||||
|
<keyword>AU_ALIAS</keyword>
|
||||||
|
<keyword>AU_DEFUN</keyword>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="ac-macros-obsolete" style-ref="ac-macros-obsolete">
|
||||||
|
<keyword>AC_ALLOCA</keyword>
|
||||||
|
<keyword>AC_ARG_ARRAY</keyword>
|
||||||
|
<keyword>AC_CANONICAL_SYSTEM</keyword>
|
||||||
|
<keyword>AC_C_CROSS</keyword>
|
||||||
|
<keyword>AC_CHAR_UNSIGNED</keyword>
|
||||||
|
<keyword>AC_CHECKING</keyword>
|
||||||
|
<keyword>AC_CHECK_TYPE</keyword>
|
||||||
|
<keyword>AC_C_LONG_DOUBLE</keyword>
|
||||||
|
<keyword>AC_COMPILE_CHECK</keyword>
|
||||||
|
<keyword>AC_CONST</keyword>
|
||||||
|
<keyword>AC_CROSS_CHECK</keyword>
|
||||||
|
<keyword>AC_CYGWIN</keyword>
|
||||||
|
<keyword>AC_DECL_SYS_SIGLIST</keyword>
|
||||||
|
<keyword>AC_DECL_YYTEXT</keyword>
|
||||||
|
<keyword>AC_DIR_HEADER</keyword>
|
||||||
|
<keyword>AC_DISABLE_FAST_INSTALL</keyword>
|
||||||
|
<keyword>AC_DISABLE_SHARED</keyword>
|
||||||
|
<keyword>AC_DISABLE_STATIC</keyword>
|
||||||
|
<keyword>AC_DYNIX_SEQ</keyword>
|
||||||
|
<keyword>AC_EMXOS2</keyword>
|
||||||
|
<keyword>AC_ERROR</keyword>
|
||||||
|
<keyword>AC_EXEEXT</keyword>
|
||||||
|
<keyword>AC_FIND_X</keyword>
|
||||||
|
<keyword>AC_FIND_XTRA</keyword>
|
||||||
|
<keyword>AC_FOREACH</keyword>
|
||||||
|
<keyword>AC_FUNC_CHECK</keyword>
|
||||||
|
<keyword>AC_FUNC_WAIT3</keyword>
|
||||||
|
<keyword>AC_GCC_TRADITIONAL</keyword>
|
||||||
|
<keyword>AC_GETGROUPS_T</keyword>
|
||||||
|
<keyword>AC_GETLOADAVG</keyword>
|
||||||
|
<keyword>AC_HAVE_FUNCS</keyword>
|
||||||
|
<keyword>AC_HAVE_HEADERS</keyword>
|
||||||
|
<keyword>AC_HAVE_LIBRARY</keyword>
|
||||||
|
<keyword>AC_HAVE_POUNDBANG</keyword>
|
||||||
|
<keyword>AC_HEADER_CHECK</keyword>
|
||||||
|
<keyword>AC_HEADER_EGREP</keyword>
|
||||||
|
<keyword>AC_HELP_STRING</keyword>
|
||||||
|
<keyword>AC_INIT</keyword>
|
||||||
|
<keyword>AC_INLINE</keyword>
|
||||||
|
<keyword>AC_INT_16_BITS</keyword>
|
||||||
|
<keyword>AC_IRIX_SUN</keyword>
|
||||||
|
<keyword>AC_LANG_C</keyword>
|
||||||
|
<keyword>AC_LANG_CPLUSPLUS</keyword>
|
||||||
|
<keyword>AC_LANG_FORTRAN77</keyword>
|
||||||
|
<keyword>AC_LANG_RESTORE</keyword>
|
||||||
|
<keyword>AC_LANG_SAVE</keyword>
|
||||||
|
<keyword>AC_LIBTOOL_DLOPEN</keyword>
|
||||||
|
<keyword>AC_LIBTOOL_WIN32_DLL</keyword>
|
||||||
|
<keyword>AC_LINK_FILES</keyword>
|
||||||
|
<keyword>AC_LN_S</keyword>
|
||||||
|
<keyword>AC_LONG_64_BITS</keyword>
|
||||||
|
<keyword>AC_LONG_DOUBLE</keyword>
|
||||||
|
<keyword>AC_LONG_FILE_NAMES</keyword>
|
||||||
|
<keyword>AC_MAJOR_HEADER</keyword>
|
||||||
|
<keyword>AC_MEMORY_H</keyword>
|
||||||
|
<keyword>AC_MINGW32</keyword>
|
||||||
|
<keyword>AC_MINUS_C_MINUS_O</keyword>
|
||||||
|
<keyword>AC_MMAP</keyword>
|
||||||
|
<keyword>AC_MODE_T</keyword>
|
||||||
|
<keyword>AC_OBJEXT</keyword>
|
||||||
|
<keyword>AC_OBSOLETE</keyword>
|
||||||
|
<keyword>AC_OFF_T</keyword>
|
||||||
|
<keyword>AC_OUTPUT_COMMANDS</keyword>
|
||||||
|
<keyword>AC_OUTPUT</keyword>
|
||||||
|
<keyword>AC_PID_T</keyword>
|
||||||
|
<keyword>AC_PREFIX</keyword>
|
||||||
|
<keyword>AC_PROGRAM_CHECK</keyword>
|
||||||
|
<keyword>AC_PROGRAM_EGREP</keyword>
|
||||||
|
<keyword>AC_PROGRAM_PATH</keyword>
|
||||||
|
<keyword>AC_PROGRAMS_CHECK</keyword>
|
||||||
|
<keyword>AC_PROGRAMS_PATH</keyword>
|
||||||
|
<keyword>AC_REMOTE_TAPE</keyword>
|
||||||
|
<keyword>AC_RESTARTABLE_SYSCALLS</keyword>
|
||||||
|
<keyword>AC_RETSIGTYPE</keyword>
|
||||||
|
<keyword>AC_RSH</keyword>
|
||||||
|
<keyword>AC_SCO_INTL</keyword>
|
||||||
|
<keyword>AC_SET_MAKE</keyword>
|
||||||
|
<keyword>AC_SETVBUF_REVERSED</keyword>
|
||||||
|
<keyword>AC_SIZEOF_TYPE</keyword>
|
||||||
|
<keyword>AC_SIZE_T</keyword>
|
||||||
|
<keyword>AC_STAT_MACROS_BROKEN</keyword>
|
||||||
|
<keyword>AC_ST_BLKSIZE</keyword>
|
||||||
|
<keyword>AC_ST_BLOCKS</keyword>
|
||||||
|
<keyword>AC_STDC_HEADERS</keyword>
|
||||||
|
<keyword>AC_STRCOLL</keyword>
|
||||||
|
<keyword>AC_ST_RDEV</keyword>
|
||||||
|
<keyword>AC_SYS_RESTARTABLE_SYSCALLS</keyword>
|
||||||
|
<keyword>AC_SYS_SIGLIST_DECLARED</keyword>
|
||||||
|
<keyword>AC_TEST_CPP</keyword>
|
||||||
|
<keyword>AC_TEST_PROGRAM</keyword>
|
||||||
|
<keyword>AC_TIME_WITH_SYS_TIME</keyword>
|
||||||
|
<keyword>AC_TIMEZONE</keyword>
|
||||||
|
<keyword>AC_TRY_COMPILE</keyword>
|
||||||
|
<keyword>AC_TRY_CPP</keyword>
|
||||||
|
<keyword>AC_TRY_LINK_FUNC</keyword>
|
||||||
|
<keyword>AC_TRY_LINK</keyword>
|
||||||
|
<keyword>AC_TRY_RUN</keyword>
|
||||||
|
<keyword>AC_UID_T</keyword>
|
||||||
|
<keyword>AC_UNISTD_H</keyword>
|
||||||
|
<keyword>AC_USG</keyword>
|
||||||
|
<keyword>AC_UTIME_NULL</keyword>
|
||||||
|
<keyword>AC_VALIDATE_CACHED_SYSTEM_TUPLE</keyword>
|
||||||
|
<keyword>AC_VERBOSE</keyword>
|
||||||
|
<keyword>AC_VFORK</keyword>
|
||||||
|
<keyword>AC_VPRINTF</keyword>
|
||||||
|
<keyword>AC_WAIT3</keyword>
|
||||||
|
<keyword>AC_WARN</keyword>
|
||||||
|
<keyword>AC_WORDS_BIGENDIAN</keyword>
|
||||||
|
<keyword>AC_XENIX_DIR</keyword>
|
||||||
|
<keyword>AC_YYTEXT_POINTER</keyword>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="am-macros" style-ref="am-macros">
|
||||||
|
<keyword>_AM_DEPENDENCIES</keyword>
|
||||||
|
<keyword>AM_CONDITIONAL</keyword>
|
||||||
|
<keyword>AM_CONFIG_HEADER</keyword>
|
||||||
|
<keyword>AM_C_PROTOTYPES</keyword>
|
||||||
|
<keyword>AM_DEP_TRACK</keyword>
|
||||||
|
<keyword>AM_DISABLE_SHARED</keyword>
|
||||||
|
<keyword>AM_DISABLE_STATIC</keyword>
|
||||||
|
<keyword>AM_ENABLE_MULTILIB</keyword>
|
||||||
|
<keyword>AM_GNU_GETTEXT</keyword>
|
||||||
|
<keyword>AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL</keyword>
|
||||||
|
<keyword>AM_INIT_AUTOMAKE</keyword>
|
||||||
|
<keyword>AM_INSTALLCHECK_STD_OPTIONS_EXEMPT</keyword>
|
||||||
|
<keyword>AM_JAVACFLAGS</keyword>
|
||||||
|
<keyword>AM_MAINTAINER_MODE</keyword>
|
||||||
|
<keyword>AM_MAKE_INCLUDE</keyword>
|
||||||
|
<keyword>AM_MAKEINFOFLAGS</keyword>
|
||||||
|
<keyword>AM_OUTPUT_DEPENDENCY_COMMANDS</keyword>
|
||||||
|
<keyword>AM_PATH_LISPDIR</keyword>
|
||||||
|
<keyword>AM_PROG_AS</keyword>
|
||||||
|
<keyword>AM_PROG_CC_C_O</keyword>
|
||||||
|
<keyword>AM_PROG_CC_STDC</keyword>
|
||||||
|
<keyword>AM_PROG_GCJ</keyword>
|
||||||
|
<keyword>AM_PROG_INSTALL_STRIP</keyword>
|
||||||
|
<keyword>AM_PROG_LEX</keyword>
|
||||||
|
<keyword>AM_PROG_LIBTOOL</keyword>
|
||||||
|
<keyword>AM_RFLAGS</keyword>
|
||||||
|
<keyword>AM_RUNTESTFLAGS</keyword>
|
||||||
|
<keyword>AM_SANITY_CHECK</keyword>
|
||||||
|
<keyword>AM_SET_DEPDIR</keyword>
|
||||||
|
<keyword>AM_SYS_POSIX_TERMIOS</keyword>
|
||||||
|
<keyword>AM_WITH_DMALLOC</keyword>
|
||||||
|
<keyword>AM_WITH_REGEX</keyword>
|
||||||
|
</context>
|
||||||
|
|
||||||
|
<context id="misc-macros" style-ref="misc-macros">
|
||||||
|
<keyword>AM_GLIB_GNU_GETTEXT</keyword>
|
||||||
|
<keyword>AM_GLIB_DEFINE_LOCALEDIR</keyword>
|
||||||
|
<keyword>AM_GNU_GETTEXT(_VERSION|_NEED)?</keyword>
|
||||||
|
<keyword>AC_PROG_INTLTOOL</keyword>
|
||||||
|
<keyword>IT_PROG_INTLTOOL</keyword>
|
||||||
|
<keyword>AM_PATH_PROG_WITH_TEST</keyword>
|
||||||
|
<keyword>PKG_PROG_PKG_CONFIG</keyword>
|
||||||
|
<keyword>PKG_CHECK_EXISTS</keyword>
|
||||||
|
<keyword>PKG_CHECK_MODULES</keyword>
|
||||||
|
</context>
|
||||||
</definitions>
|
</definitions>
|
||||||
</language>
|
</language>
|
||||||
|
@ -10,10 +10,12 @@
|
|||||||
<style id="comment" name="Comment" map-to="def:comment"/>
|
<style id="comment" name="Comment" map-to="def:comment"/>
|
||||||
<style id="string" name="String" map-to="def:string"/>
|
<style id="string" name="String" map-to="def:string"/>
|
||||||
<style id="keyword" name="Keyword" map-to="def:keyword"/>
|
<style id="keyword" name="Keyword" map-to="def:keyword"/>
|
||||||
<style id="others-3" name="Others 3"/>
|
<style id="variable1" name="Variable 1" map-to="def:data-type"/>
|
||||||
<style id="others-2" name="Others 2"/>
|
<style id="variable2" name="Variable 2" map-to="def:data-type"/>
|
||||||
<style id="data-type" name="Data Type" map-to="def:data-type"/>
|
<style id="data-type" name="Data Type" map-to="def:data-type"/>
|
||||||
<style id="others" name="Others"/>
|
<style id="others" name="Others"/>
|
||||||
|
<style id="common-command" name="Common Commands" map-to="def:keyword"/>
|
||||||
|
<style id="here-doc-bound" name="here-doc" map-to="def:keyword"/>
|
||||||
</styles>
|
</styles>
|
||||||
<definitions>
|
<definitions>
|
||||||
<context id="string" style-ref="string">
|
<context id="string" style-ref="string">
|
||||||
@ -67,6 +69,14 @@
|
|||||||
<keyword><<+[0-9]</keyword>
|
<keyword><<+[0-9]</keyword>
|
||||||
<keyword>\b[0-9]+<<</keyword>
|
<keyword>\b[0-9]+<<</keyword>
|
||||||
</context>
|
</context>
|
||||||
|
<context id="here-doc">
|
||||||
|
<start><<\s*(\S+)$</start>
|
||||||
|
<end>^\%{1@start}$</end>
|
||||||
|
<include>
|
||||||
|
<context sub-pattern="0" where="start" style-ref="here-doc-bound" />
|
||||||
|
<context sub-pattern="0" where="end" style-ref="here-doc-bound" />
|
||||||
|
</include>
|
||||||
|
</context>
|
||||||
<context id="operator" style-ref="function">
|
<context id="operator" style-ref="function">
|
||||||
<keyword>\-a\b</keyword>
|
<keyword>\-a\b</keyword>
|
||||||
<keyword>\-b\b</keyword>
|
<keyword>\-b\b</keyword>
|
||||||
@ -105,13 +115,15 @@
|
|||||||
<keyword>\-gt\b</keyword>
|
<keyword>\-gt\b</keyword>
|
||||||
<keyword>\-ge\b</keyword>
|
<keyword>\-ge\b</keyword>
|
||||||
</context>
|
</context>
|
||||||
<context id="variable1" style-ref="others-3">
|
<context id="variable1" style-ref="variable1">
|
||||||
<keyword>[$]+[@?*{a-zA-Z0-9_][}a-zA-Z0-9_]*</keyword>
|
<match>\$+[@?*{a-zA-Z0-9_][}a-zA-Z0-9_]*</match>
|
||||||
</context>
|
</context>
|
||||||
<context id="variable2" style-ref="others-2">
|
<context id="variable2" style-ref="variable2">
|
||||||
<keyword>[a-zA-Z_][a-zA-Z0-9_]*\=</keyword>
|
<match>[a-zA-Z_][a-zA-Z0-9_]*\=</match>
|
||||||
</context>
|
</context>
|
||||||
<context id="built-in-command" style-ref="keyword">
|
<context id="built-in-command" style-ref="keyword">
|
||||||
|
<prefix></prefix>
|
||||||
|
<suffix></suffix>
|
||||||
<keyword>\!</keyword>
|
<keyword>\!</keyword>
|
||||||
<keyword>\{</keyword>
|
<keyword>\{</keyword>
|
||||||
<keyword>\}</keyword>
|
<keyword>\}</keyword>
|
||||||
@ -133,7 +145,7 @@
|
|||||||
<keyword>\bwhile\b</keyword>
|
<keyword>\bwhile\b</keyword>
|
||||||
<keyword>\bbash\b</keyword>
|
<keyword>\bbash\b</keyword>
|
||||||
<keyword>\:</keyword>
|
<keyword>\:</keyword>
|
||||||
<keyword>\.</keyword>
|
<keyword>(?<=\s)\.(?=\s)</keyword>
|
||||||
<keyword>\[</keyword>
|
<keyword>\[</keyword>
|
||||||
<keyword>\]</keyword>
|
<keyword>\]</keyword>
|
||||||
<keyword>[$]+\[</keyword>
|
<keyword>[$]+\[</keyword>
|
||||||
@ -190,9 +202,9 @@
|
|||||||
<keyword>\bunset\b</keyword>
|
<keyword>\bunset\b</keyword>
|
||||||
<keyword>\bwait\b</keyword>
|
<keyword>\bwait\b</keyword>
|
||||||
</context>
|
</context>
|
||||||
<context id="common-command" style-ref="others">
|
<context id="common-command" style-ref="common-command">
|
||||||
<prefix>\b</prefix>
|
<prefix>(?<![\w\-\.])</prefix>
|
||||||
<suffix>\b</suffix>
|
<suffix>(?![\w\-\.])</suffix>
|
||||||
<keyword>cp</keyword>
|
<keyword>cp</keyword>
|
||||||
<keyword>rm</keyword>
|
<keyword>rm</keyword>
|
||||||
<keyword>mv</keyword>
|
<keyword>mv</keyword>
|
||||||
@ -280,6 +292,7 @@
|
|||||||
<context ref="line-comment"/>
|
<context ref="line-comment"/>
|
||||||
<context ref="punctuator"/>
|
<context ref="punctuator"/>
|
||||||
<context ref="function"/>
|
<context ref="function"/>
|
||||||
|
<context ref="here-doc"/>
|
||||||
<context ref="redirection"/>
|
<context ref="redirection"/>
|
||||||
<context ref="operator"/>
|
<context ref="operator"/>
|
||||||
<context ref="variable1"/>
|
<context ref="variable1"/>
|
||||||
|
463
moo/mooedit/language-specs/testfiles.sh
Executable file
463
moo/mooedit/language-specs/testfiles.sh
Executable file
@ -0,0 +1,463 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
dir="testdir"
|
||||||
|
mkdir -p $dir/
|
||||||
|
|
||||||
|
cat > $dir/file.cc <<EOFEOF
|
||||||
|
#include <iostream>
|
||||||
|
int main ()
|
||||||
|
{
|
||||||
|
std::cout << "Hi there!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.c <<EOFEOF
|
||||||
|
#include <stdio.h>
|
||||||
|
int main (void)
|
||||||
|
{
|
||||||
|
printf ("Hi there!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/ChangeLog <<EOFEOF
|
||||||
|
2006-12-10 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event):
|
||||||
|
cancel editing (ie. don't accept changes) when the entry loses
|
||||||
|
focus. (Fixes #164494, reported by Chris Rouch).
|
||||||
|
|
||||||
|
2006-12-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* configure.in: Correct a misapplied patch.
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.g <<EOFEOF
|
||||||
|
for i in [1..10] do
|
||||||
|
Print("blah blah blah\n");
|
||||||
|
od;
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.html <<EOFEOF
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Hi there!</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
||||||
|
<style type="text/css"><!--
|
||||||
|
a.summary-letter {text-decoration: none}
|
||||||
|
pre.display {font-family: serif}
|
||||||
|
pre.format {font-family: serif}
|
||||||
|
pre.menu-comment {font-family: serif}
|
||||||
|
pre.menu-preformatted {font-family: serif}
|
||||||
|
pre.smalldisplay {font-family: serif; font-size: smaller}
|
||||||
|
ul.toc {list-style: none}
|
||||||
|
--></style>
|
||||||
|
</head>
|
||||||
|
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
|
||||||
|
Hi there!
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.tex <<EOFEOF
|
||||||
|
\documentclass{article}
|
||||||
|
\begin{document}
|
||||||
|
Hi there!
|
||||||
|
\end{document}
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.m4 <<EOFEOF
|
||||||
|
dnl an m4 file
|
||||||
|
AC_DEFINE([foo],[echo "Hi there!"])
|
||||||
|
foo()
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.sh <<EOFEOF
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Hi there!"
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/Makefile <<EOFEOF
|
||||||
|
all: foo bar
|
||||||
|
foo: hello ; \$(MAKE) bar
|
||||||
|
bar:
|
||||||
|
echo "Hello world!"
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.ms <<EOFEOF
|
||||||
|
a = 1;
|
||||||
|
for i in [1, 2, 3] do
|
||||||
|
a *= i;
|
||||||
|
a += 18;
|
||||||
|
od;
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.py <<EOFEOF
|
||||||
|
import sys
|
||||||
|
class Hello(object):
|
||||||
|
def __init__(self):
|
||||||
|
object.__init__(self)
|
||||||
|
def hello(self):
|
||||||
|
print >> sys.stderr, "Hi there!"
|
||||||
|
Hello().hello()
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.xml <<EOFEOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<foolala version='8.987'>
|
||||||
|
<bar>momomomo</bar><baz a="b"/>
|
||||||
|
</foolala>
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.y <<EOFEOF
|
||||||
|
%{
|
||||||
|
#include <stdio.h>
|
||||||
|
#define FOO_BAR(x,y) printf ("x, y")
|
||||||
|
%}
|
||||||
|
|
||||||
|
%name-prefix="foolala"
|
||||||
|
%error-verbose
|
||||||
|
%lex-param {FooLaLa *lala}
|
||||||
|
%parse-param {FooLaLa *lala}
|
||||||
|
/* %expect 1 */
|
||||||
|
|
||||||
|
%union {
|
||||||
|
int ival;
|
||||||
|
const char *str;
|
||||||
|
}
|
||||||
|
|
||||||
|
%token <str> ATOKEN
|
||||||
|
%token <str> ATOKEN2
|
||||||
|
|
||||||
|
%type <ival> program stmt
|
||||||
|
%type <str> if_stmt
|
||||||
|
|
||||||
|
%token IF THEN ELSE ELIF FI
|
||||||
|
%token WHILE DO OD FOR IN
|
||||||
|
%token CONTINUE BREAK RETURN
|
||||||
|
%token EQ NEQ LE GE
|
||||||
|
%token AND OR NOT
|
||||||
|
%token UMINUS
|
||||||
|
%token TWODOTS
|
||||||
|
|
||||||
|
%left '-' '+'
|
||||||
|
%left '*' '/'
|
||||||
|
%left '%'
|
||||||
|
%left EQ NEQ '<' '>' GE LE
|
||||||
|
%left OR
|
||||||
|
%left AND
|
||||||
|
%left NOT
|
||||||
|
%left '#'
|
||||||
|
%left UMINUS
|
||||||
|
|
||||||
|
%%
|
||||||
|
|
||||||
|
script: program { _ms_parser_set_top_node (parser, $1); }
|
||||||
|
;
|
||||||
|
|
||||||
|
program: stmt_or_error { $$ = node_list_add (parser, NULL, $1); }
|
||||||
|
| program stmt_or_error { $$ = node_list_add (parser, MS_NODE_LIST ($1), $2); }
|
||||||
|
;
|
||||||
|
|
||||||
|
stmt_or_error:
|
||||||
|
error ';' { $$ = NULL; }
|
||||||
|
| stmt ';' { $$ = $1; }
|
||||||
|
;
|
||||||
|
|
||||||
|
variable: IDENTIFIER { $$ = node_var (parser, $1); }
|
||||||
|
;
|
||||||
|
|
||||||
|
%%
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
|
||||||
|
cat > $dir/file.cs <<EOFEOF
|
||||||
|
Does someone know C#?
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.css <<EOFEOF
|
||||||
|
Does someone know css?
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.desktop <<EOFEOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
_Name=medit
|
||||||
|
_Comment=Text editor
|
||||||
|
Exec=medit %F
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
MimeType=text/plain;
|
||||||
|
Icon=medit.png
|
||||||
|
Categories=Application;Utility;TextEditor;
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.diff <<EOFEOF
|
||||||
|
diff -r 231ed68760a0 moo/moofileview/moofileview.c
|
||||||
|
--- a/moo/moofileview/moofileview.c Wed Dec 20 21:08:14 2006 -0600
|
||||||
|
+++ b/moo/moofileview/moofileview.c Wed Dec 20 20:33:06 2006 -0600
|
||||||
|
@@ -1407,7 +1413,7 @@ create_toolbar (MooFileView *fileview)
|
||||||
|
|
||||||
|
gtk_toolbar_set_tooltips (toolbar, TRUE);
|
||||||
|
gtk_toolbar_set_style (toolbar, GTK_TOOLBAR_ICONS);
|
||||||
|
- gtk_toolbar_set_icon_size (toolbar, GTK_ICON_SIZE_MENU);
|
||||||
|
+ gtk_toolbar_set_icon_size (toolbar, TOOLBAR_ICON_SIZE);
|
||||||
|
|
||||||
|
_moo_file_view_setup_button_drag_dest (fileview, "MooFileView/Toolbar/GoUp", "go-up");
|
||||||
|
_moo_file_view_setup_button_drag_dest (fileview, "MooFileView/Toolbar/GoBack", "go-back");
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.f <<EOFEOF
|
||||||
|
Fortran anyone?
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/gtkrc <<EOFEOF
|
||||||
|
# -- THEME AUTO-WRITTEN DO NOT EDIT
|
||||||
|
include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc"
|
||||||
|
style "user-font"
|
||||||
|
{
|
||||||
|
font_name="Tahoma 11"
|
||||||
|
}
|
||||||
|
widget_class "*" style "user-font"
|
||||||
|
include "/home/muntyan/.gtkrc-2.0.mine"
|
||||||
|
# -- THEME AUTO-WRITTEN DO NOT EDIT
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.ini <<EOFEOF
|
||||||
|
[module]
|
||||||
|
type=Python
|
||||||
|
file=simple.py
|
||||||
|
version=1.0
|
||||||
|
[plugin]
|
||||||
|
id=APlugin
|
||||||
|
_name=A Plugin
|
||||||
|
_description=A plugin
|
||||||
|
author=Some Guy
|
||||||
|
# this is a plugin version, can be anything
|
||||||
|
version=3.1415926
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.java <<EOFEOF
|
||||||
|
JAVA SUCKS!
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.m <<EOFEOF
|
||||||
|
function and now what?
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.pas <<EOFEOF
|
||||||
|
Um, pascal
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.pl <<EOFEOF
|
||||||
|
#!/usr/bin/perl -- # -*- Perl -*-
|
||||||
|
#
|
||||||
|
# $Id: collateindex.pl,v 1.10 2004/10/24 17:05:41 petere78 Exp $
|
||||||
|
|
||||||
|
print OUT "<title>$title</title>\n\n" if $title;
|
||||||
|
|
||||||
|
$last = {}; # the last indexterm we processed
|
||||||
|
$first = 1; # this is the first one
|
||||||
|
$group = ""; # we're not in a group yet
|
||||||
|
$lastout = ""; # we've not put anything out yet
|
||||||
|
@seealsos = (); # See also stack.
|
||||||
|
|
||||||
|
# Termcount is > 0 iff some entries were skipped.
|
||||||
|
$quiet || print STDERR "$termcount entries ignored...\n";
|
||||||
|
|
||||||
|
&end_entry();
|
||||||
|
|
||||||
|
print OUT "</indexdiv>\n" if $lettergroups;
|
||||||
|
print OUT "</$indextag>\n";
|
||||||
|
|
||||||
|
close (OUT);
|
||||||
|
|
||||||
|
$quiet || print STDERR "Done.\n";
|
||||||
|
|
||||||
|
sub same {
|
||||||
|
my($a) = shift;
|
||||||
|
my($b) = shift;
|
||||||
|
|
||||||
|
my($aP) = $a->{'psortas'} || $a->{'primary'};
|
||||||
|
my($aS) = $a->{'ssortas'} || $a->{'secondary'};
|
||||||
|
my($aT) = $a->{'tsortas'} || $a->{'tertiary'};
|
||||||
|
|
||||||
|
my($bP) = $b->{'psortas'} || $b->{'primary'};
|
||||||
|
my($bS) = $b->{'ssortas'} || $b->{'secondary'};
|
||||||
|
my($bT) = $b->{'tsortas'} || $b->{'tertiary'};
|
||||||
|
|
||||||
|
my($same);
|
||||||
|
|
||||||
|
$aP =~ s/^\s*//; $aP =~ s/\s*$//; $aP = uc($aP);
|
||||||
|
$aS =~ s/^\s*//; $aS =~ s/\s*$//; $aS = uc($aS);
|
||||||
|
$aT =~ s/^\s*//; $aT =~ s/\s*$//; $aT = uc($aT);
|
||||||
|
$bP =~ s/^\s*//; $bP =~ s/\s*$//; $bP = uc($bP);
|
||||||
|
$bS =~ s/^\s*//; $bS =~ s/\s*$//; $bS = uc($bS);
|
||||||
|
$bT =~ s/^\s*//; $bT =~ s/\s*$//; $bT = uc($bT);
|
||||||
|
|
||||||
|
# print "[$aP]=[$bP]\n";
|
||||||
|
# print "[$aS]=[$bS]\n";
|
||||||
|
# print "[$aT]=[$bT]\n";
|
||||||
|
|
||||||
|
# Two index terms are the same if:
|
||||||
|
# 1. the primary, secondary, and tertiary entries are the same
|
||||||
|
# (or have the same SORTAS)
|
||||||
|
# AND
|
||||||
|
# 2. They occur in the same titled section
|
||||||
|
# AND
|
||||||
|
# 3. They point to the same place
|
||||||
|
#
|
||||||
|
# Notes: Scope is used to suppress some entries, but can't be used
|
||||||
|
# for comparing duplicates.
|
||||||
|
# Interpretation of "the same place" depends on whether or
|
||||||
|
# not $linkpoints is true.
|
||||||
|
|
||||||
|
$same = (($aP eq $bP)
|
||||||
|
&& ($aS eq $bS)
|
||||||
|
&& ($aT eq $bT)
|
||||||
|
&& ($a->{'title'} eq $b->{'title'})
|
||||||
|
&& ($a->{'href'} eq $b->{'href'}));
|
||||||
|
|
||||||
|
# If we're linking to points, they're only the same if they link
|
||||||
|
# to exactly the same spot.
|
||||||
|
$same = $same && ($a->{'hrefpoint'} eq $b->{'hrefpoint'})
|
||||||
|
if $linkpoints;
|
||||||
|
|
||||||
|
if ($same) {
|
||||||
|
warn "$me: duplicated index entry found: $aP $aS $aT\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
$same;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub tsame {
|
||||||
|
# Unlike same(), tsame only compares a single term
|
||||||
|
my($a) = shift;
|
||||||
|
my($b) = shift;
|
||||||
|
my($term) = shift;
|
||||||
|
my($sterm) = substr($term, 0, 1) . "sortas";
|
||||||
|
my($A, $B);
|
||||||
|
|
||||||
|
$A = $a->{$sterm} || $a->{$term};
|
||||||
|
$B = $b->{$sterm} || $b->{$term};
|
||||||
|
|
||||||
|
$A =~ s/^\s*//; $A =~ s/\s*$//; $A = uc($A);
|
||||||
|
$B =~ s/^\s*//; $B =~ s/\s*$//; $B = uc($B);
|
||||||
|
|
||||||
|
return $A eq $B;
|
||||||
|
}
|
||||||
|
|
||||||
|
=head1 EXAMPLE
|
||||||
|
B<collateindex.pl> B<-o> F<index.sgml> F<HTML.index>
|
||||||
|
=head1 EXIT STATUS
|
||||||
|
=over 5
|
||||||
|
=item B<0>
|
||||||
|
Success
|
||||||
|
=item B<1>
|
||||||
|
Failure
|
||||||
|
=back
|
||||||
|
=head1 AUTHOR
|
||||||
|
Norm Walsh E<lt>ndw@nwalsh.comE<gt>
|
||||||
|
Minor updates by Adam Di Carlo E<lt>adam@onshore.comE<gt> and Peter Eisentraut E<lt>peter_e@gmx.netE<gt>
|
||||||
|
=cut
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.php <<EOFEOF
|
||||||
|
???
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.po <<EOFEOF
|
||||||
|
# SOME DESCRIPTIVE TITLE.
|
||||||
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||||
|
# This file is distributed under the same license as the PACKAGE package.
|
||||||
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2006-12-17 09:49-0600\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=CHARSET\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
|
#: ../medit/medit.desktop.in.h:1
|
||||||
|
msgid "Text editor"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ../medit/medit.desktop.in.h:2
|
||||||
|
msgid "medit"
|
||||||
|
msgstr ""
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.rb <<EOFEOF
|
||||||
|
Ruby ruby
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.scm <<EOFEOF
|
||||||
|
Scheme?
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.sql <<EOFEOF
|
||||||
|
SQL
|
||||||
|
EOFEOF
|
||||||
|
|
||||||
|
cat > $dir/file.texi <<EOFEOF
|
||||||
|
\input texinfo
|
||||||
|
@setfilename manual
|
||||||
|
@settitle manual
|
||||||
|
|
||||||
|
@titlepage
|
||||||
|
@title manual
|
||||||
|
|
||||||
|
@c The following two commands start the copyright page.
|
||||||
|
@page
|
||||||
|
@vskip 0pt plus 1filll
|
||||||
|
@insertcopying
|
||||||
|
@end titlepage
|
||||||
|
|
||||||
|
@c Output the table of contents at the beginning.
|
||||||
|
@contents
|
||||||
|
|
||||||
|
@ifnottex
|
||||||
|
@node Top
|
||||||
|
@top manual
|
||||||
|
@insertcopying
|
||||||
|
@end ifnottex
|
||||||
|
|
||||||
|
@menu
|
||||||
|
* MooScript:: MooScript - builtin scripting language.
|
||||||
|
* Index:: Index.
|
||||||
|
@end menu
|
||||||
|
|
||||||
|
@node MooScript
|
||||||
|
@chapter MooScript
|
||||||
|
|
||||||
|
@cindex chapter, first
|
||||||
|
|
||||||
|
This is the first chapter.
|
||||||
|
@cindex index entry, another
|
||||||
|
|
||||||
|
Here is a numbered list.
|
||||||
|
|
||||||
|
@enumerate
|
||||||
|
@item
|
||||||
|
This is the first item.
|
||||||
|
|
||||||
|
@item
|
||||||
|
This is the second item.
|
||||||
|
@end enumerate
|
||||||
|
|
||||||
|
@node Index
|
||||||
|
@unnumbered Index
|
||||||
|
|
||||||
|
@printindex cp
|
||||||
|
|
||||||
|
@bye
|
||||||
|
EOFEOF
|
Loading…
x
Reference in New Issue
Block a user