Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1d6dc637ebccc397b9afdd3885829d9140871998

commit 1d6dc637ebccc397b9afdd3885829d9140871998
Author: James Buren <r...@frugalware.org>
Date:   Tue Sep 7 01:12:51 2010 -0500

generatesyntax
* add jsf format generation
* convert tabs to spaces

diff --git a/tools/generatesyntax b/tools/generatesyntax
index 2b7d097..541fd7e 100755
--- a/tools/generatesyntax
+++ b/tools/generatesyntax
@@ -35,20 +35,33 @@ gtksourceview_output() {

}

+# Output for jsf editors (joe, ne, ...)
+jsf_output() {
+
+  for i in $FUNCTIONS; do
+    echo -e "\t\"$i\" kw"
+  done
+
+  for i in $VARIABLES; do
+    echo -e "\t\"$i\" var"
+  done
+
+}
+
# Raw output
raw_output() {

-       echo "Functions:"
+  echo "Functions:"

-       for i in $FUNCTIONS; do
-               echo $i
-       done
+  for i in $FUNCTIONS; do
+    echo $i
+  done

-       echo "Variables:"
+  echo "Variables:"

-       for i in $VARIABLES; do
-               echo $i
-       done
+  for i in $VARIABLES; do
+    echo $i
+  done

}

@@ -92,5 +105,7 @@ if [ $1 == "nano" ]; then
elif [ $1 == "gtksourceview" ]; then
gtksourceview_output
elif [ $1 == "raw" ]; then
-       raw_output
+  raw_output
+elif [ $1 == "jsf" ]; then
+  jsf_output
fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to