gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU ELPA] Sm-C-Mode version 1.2


From: ELPA update
Subject: [GNU ELPA] Sm-C-Mode version 1.2
Date: Thu, 04 Apr 2024 17:07:06 -0400

Version 1.2 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:

Since 1.1:

- Declare it as a kind of `c-mode' for the benefit of Eglot/YASnippet/...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]