Version 1.1 of package Sm-C-Mode has just been released in GNU ELPA.
You can now find it in M-x list-packages RET.

Sm-C-Mode describes itself as:

  ==========================
  C major mode based on SMIE
  ==========================

More at https://elpa.gnu.org/packages/sm-c-mode.html

## Summary:

  This started as an experiment to see concretely where&how SMIE falls down
  when trying to handle a language like C, to get an idea of maybe what it
  would take to change SMIE to better support C-style syntax.

  So, this does provide "SMIE-based indentation for C" and might even do it OK
  in practice, but it really doesn't benefit much from SMIE:
  - it does a lot of its own parsing by hand.
  - its smie-rules-function also does a lot of indentation by hand.
  Hopefully at some point, someone will find a way to extend SMIE such that
  we can handle C without having to constantly work around SMIE, e.g.
  it'd be nice to hook sm-c--while-to-do, sm-c--else-to-if, sm-c--boi,
  sm-c--boe, ... into SMIE at some level.

## Recent NEWS:

[Not provided 🙁]

Reply via email to