[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] python syntax: trying to not highlight print( and exec(
From: |
Ben Mintz |
Subject: |
[Nano-devel] python syntax: trying to not highlight print( and exec( |
Date: |
Tue, 18 Sep 2018 05:52:06 +0000 |
I'm working on a patch which would avoid highlighting the two
keywords-turned-functions in python 3. It assumes that print(x) is a function invocation
and print (x) is a statement.
Here's what I have:
color brightcyan "\<(exec|print)\>[^\(]"
This is inspired by highlight js doing the same:
This works fine until you have a line which just contains "print". In python 2, this prints
a newline.
How can I get that to be highlighted?
Thanks,
Benjamin Mintz
address@hidden
- [Nano-devel] python syntax: trying to not highlight print( and exec(,
Ben Mintz <=