ziglang / zig-mode

Zig mode for Emacs
GNU General Public License v3.0
163 stars 54 forks source link

Add syntax highlighting for block labels #11

Open mdsteele opened 5 years ago

mdsteele commented 5 years ago

Emacs c-mode applies font-lock-constant-face to labels (e.g. foo:) and label references (e.g. goto foo;). We should have zig-mode do something similar for e.g. blk: { ... } and break :blk.