From 7a1bc58133bc1fbce54c3a33cf8721c76fffa097 Mon Sep 17 00:00:00 2001 From: ron Date: Mon, 1 Nov 2010 19:36:06 +0000 Subject: [PATCH] It turns out that emacs likes to have the modeline at the very top, not bottom, so I changed the sample script to accommodate --- docs/sample-script.nse | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/sample-script.nse b/docs/sample-script.nse index 6753a97f5..03d6ec974 100644 --- a/docs/sample-script.nse +++ b/docs/sample-script.nse @@ -1,3 +1,8 @@ +-- -*- mode: lua -*- +-- vim: set filetype=lua : +-- The preceding lines should be left intact to help vim/emacs do syntax +-- highlighting + description = [[ This is an example script for the Nmap Scripting Engine. It is intended to be a quick way to get started on developing a script without having to find and @@ -214,9 +219,5 @@ end -- -- function action (...) return actions[SCRIPT_TYPE](...) end -- - - --- Leave these lines intact to help vim/emacs determine the filetype for syntax highlighting --- vim: set filetype=lua : --- -*- mode: lua -*- +--