From: David Kastrup Date: Wed, 21 Dec 2011 20:53:36 +0000 (+0100) Subject: Emacs mode lines for parser.yy and lexer.ll X-Git-Tag: release/2.15.24-1~61 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b82a74e8a67881d8dbe11bdc9c09dbe853236370;p=lilypond.git Emacs mode lines for parser.yy and lexer.ll --- diff --git a/lily/lexer.ll b/lily/lexer.ll index c4ba231c51..1777398f8a 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -1,4 +1,4 @@ -%{ // -*-Fundamental-*- +%{ // -*- mode: c++; c-file-style: "linux" -*- /* This file is part of LilyPond, the GNU music typesetter. @@ -19,6 +19,14 @@ along with LilyPond. If not, see . */ +/* Mode and indentation are at best a rough approximation based on TAB + * formatting (reasonable for compatibility with unspecific editor + * modes as Flex modes are hard to find) and need manual correction + * frequently. Without a reasonably dependable way of formatting a + * Flex file sensibly, there is little point in trying to fix the + * inconsistent state of indentation. + */ + /* backup rules diff --git a/lily/parser.yy b/lily/parser.yy index ee469d17d0..c4806d741c 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -1,3 +1,4 @@ +/* -*- mode: c++; c-file-style: "linux" -*- */ /* This file is part of LilyPond, the GNU music typesetter. @@ -18,6 +19,14 @@ along with LilyPond. If not, see . */ +/* Mode and indentation are at best a rough approximation based on TAB + * formatting (reasonable for compatibility with unspecific editor + * modes as Bison modes are hard to find) and need manual correction + * frequently. Without a reasonably dependable way of formatting a + * Bison file sensibly, there is little point in trying to fix the + * inconsistent state of indentation. + */ + %{ #define YYDEBUG 1