From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17846 invoked by alias); 29 Nov 2015 15:24:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21007 Received: (qmail 14106 invoked from network); 29 Nov 2015 15:24:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_HDRS_LCASE, T_MANY_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=Uh/wpEIUX9UX0FOdpsyW1Q==:117 a=Uh/wpEIUX9UX0FOdpsyW1Q==:17 a=IkcTkHD0fZMA:10 a=TI76kuCHxU89ZSNWQSkA:9 a=QEXdDO2ut3YA:10 Message-id: <565B18C6.6090707@eastlink.ca> Date: Sun, 29 Nov 2015 07:24:54 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: Zsh Users Subject: lexing Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit Gentlemen: The syntax highlighting in my editors makes the predictable mistake when it bumps into these: (#b) (#c1,2) (#a3) because the lexing mostly follows bash rules. The people who write the highlighter are interested in fixing that for zsh, but they want a rigorous description of the rule. As far as I know the only rule there is that if the hash is preceded by an open parenthesis then it is not a comment. Is that sufficient or are there further subtleties?