aboutsummaryrefslogtreecommitdiffstats
path: root/etc/srecode
diff options
context:
space:
mode:
authorDavid Engster2013-03-22 20:31:15 +0100
committerDavid Engster2013-03-22 20:31:15 +0100
commitb886708cc640958efcf6bd68ed1674af124a2565 (patch)
tree44c10edd72de972c7150c6df3a350f9486795d69 /etc/srecode
parent9bb0d8227e104a549232b78197e0e8ca2d20371c (diff)
parente8cc7880c3eead07c1d4fd93c0396edc3861b080 (diff)
downloademacs-b886708cc640958efcf6bd68ed1674af124a2565.tar.gz
emacs-b886708cc640958efcf6bd68ed1674af124a2565.zip
Merge with CEDET upstream (rev. 8499).
Diffstat (limited to 'etc/srecode')
-rw-r--r--etc/srecode/c.srt6
-rw-r--r--etc/srecode/ede-autoconf.srt6
-rw-r--r--etc/srecode/ede-make.srt3
-rw-r--r--etc/srecode/java.srt21
4 files changed, 27 insertions, 9 deletions
diff --git a/etc/srecode/c.srt b/etc/srecode/c.srt
index 6c7139f3184..479f5c9b33d 100644
--- a/etc/srecode/c.srt
+++ b/etc/srecode/c.srt
@@ -46,12 +46,12 @@ template empty :time :user :file :c
46 46
47template header_guard :file :blank 47template header_guard :file :blank
48---- 48----
49#ifndef {{FILENAME_SYMBOL}} 49#ifndef {{FILENAME_SYMBOL:upcase}}
50#define {{FILENAME_SYMBOL}} 1 50#define {{FILENAME_SYMBOL:upcase}} 1
51 51
52{{^}} 52{{^}}
53 53
54#endif // {{FILENAME_SYMBOL}} 54#endif // {{FILENAME_SYMBOL:upcase}}
55---- 55----
56 56
57context misc 57context misc
diff --git a/etc/srecode/ede-autoconf.srt b/etc/srecode/ede-autoconf.srt
index d2ec61a0a93..b3aaa75d2c2 100644
--- a/etc/srecode/ede-autoconf.srt
+++ b/etc/srecode/ede-autoconf.srt
@@ -1,6 +1,6 @@
1;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE. 1;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE.
2;; 2;;
3;; Copyright (C) 2010 Eric M. Ludlam 3;; Copyright (C) 2010, 2013 Free Software Foundation, Inc.
4;; 4;;
5;; Author: Eric M. Ludlam <eric@siege-engine.com> 5;; Author: Eric M. Ludlam <eric@siege-engine.com>
6;; 6;;
@@ -26,7 +26,7 @@ set application "ede"
26 26
27context file 27context file
28 28
29template ede-empty 29template ede-empty :project
30"Start a new EDE generated configure.in/ac file." 30"Start a new EDE generated configure.in/ac file."
31---- 31----
32{{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. 32{{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE.
@@ -40,7 +40,7 @@ template ede-empty
40{{comment_prefix}} 40{{comment_prefix}}
41{{comment_prefix}} Process this file with autoconf to produce a configure script 41{{comment_prefix}} Process this file with autoconf to produce a configure script
42 42
43AC_INIT({{TEST_FILE}}) 43AC_INIT({{PROJECT_NAME}}, {{PROJECT_VERSION}})
44AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) 44AM_INIT_AUTOMAKE([{{PROGRAM}}], 0)
45AM_CONFIG_HEADER(config.h) 45AM_CONFIG_HEADER(config.h)
46 46
diff --git a/etc/srecode/ede-make.srt b/etc/srecode/ede-make.srt
index f12744e89b7..36bae085cc9 100644
--- a/etc/srecode/ede-make.srt
+++ b/etc/srecode/ede-make.srt
@@ -26,10 +26,11 @@ set application "ede"
26 26
27context file 27context file
28 28
29template ede-empty :file 29template ede-empty :file :project
30---- 30----
31# Automatically Generated {{FILE}} by EDE. 31# Automatically Generated {{FILE}} by EDE.
32# For use with: {{MAKETYPE}} 32# For use with: {{MAKETYPE}}
33# Relative File Name: {{PROJECT_FILENAME}}
33# 34#
34# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. 35# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
35# EDE is the Emacs Development Environment. 36# EDE is the Emacs Development Environment.
diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt
index a4a6fc2e863..e1fbb50eff6 100644
--- a/etc/srecode/java.srt
+++ b/etc/srecode/java.srt
@@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}};
43---- 43----
44bind "e" 44bind "e"
45 45
46template empty-main :file :user :time :java :indent
47"Fill out an empty file with a class having a static main method"
48sectiondictionary "CLASSSECTION"
49set NAME macro "FILENAME_AS_CLASS"
50----
51{{>:filecomment}}
52
53package {{FILENAME_AS_PACKAGE}};
54
55{{<CLASSSECTION:declaration:class}}
56public static void main(String args[]) {
57 {{^}}
58}
59{{/CLASSSECTION}}
60----
61bind "l"
62
46context declaration 63context declaration
47 64
48template import :blank :indent 65template import :blank :indent
@@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for
74the user-facing template." 91the user-facing template."
75---- 92----
76{{>:declaration:javadoc-class}} 93{{>:declaration:javadoc-class}}
77public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} 94public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}}
78{ 95{
79 {{^}} 96 {{^}}
80}; 97};
81---- 98----