From dd0703eddfc102777b7b36f8fcd1528510dc27d2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 22 Jan 2018 21:21:51 +0100 Subject: [PATCH] scripts/dev/src2asciidoc.py: vim: readonly Set 'readonly' via Vim modeline in generated scripts. --- doc/help/commands.asciidoc | 1 + doc/help/settings.asciidoc | 1 + scripts/dev/src2asciidoc.py | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index be7f4d557..1008de1bf 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -1,6 +1,7 @@ // DO NOT EDIT THIS FILE DIRECTLY! // It is autogenerated by running: // $ python3 scripts/dev/src2asciidoc.py +// vim: readonly: = Commands diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 53af8399d..73aae6fb2 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1,6 +1,7 @@ // DO NOT EDIT THIS FILE DIRECTLY! // It is autogenerated by running: // $ python3 scripts/dev/src2asciidoc.py +// vim: readonly: = Setting reference diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index 803280deb..5dc3d05ac 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -44,6 +44,7 @@ FILE_HEADER = """ // DO NOT EDIT THIS FILE DIRECTLY! // It is autogenerated by running: // $ python3 scripts/dev/src2asciidoc.py +// vim: readonly: """.lstrip()