# Using autogenerated mark classes in feature code causes syntax error

**URL:** <https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741>\
**Category:** Glyphs\
**Tags:** bug\
**Created:** [January 13, 2026, 2:12pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741 "2026-01-13T14:12:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaled](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/khaled/32/28528_2.png) [@khaled](https://forum.glyphsapp.com/u/khaled)\
**Post date:** [January 13, 2026, 2:12pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/1 "2026-01-13T14:12:43Z")

</div>

If I use an auto-generated mark class (e.g. `@mark_top`) in feature code, I get a syntax error:

![image](https://forum.glyphsapp.com/uploads/default/optimized/3X/1/f/1fd54d6be2f2988b0c851d58a5aa6369eb5ab954_2_690x31.png)

(and the features list in edit view get the red exclamation mark).

But exporting the font works fine.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [January 13, 2026, 10:05pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/2 "2026-01-13T22:05:56Z")

</div>

The highlighting code has no access to the code that is generated on export. I can demote this to a warning to make it less frightening.

---

<div class="post-metadata">

**Author:** ![khaled](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/khaled/32/28528_2.png) [@khaled](https://forum.glyphsapp.com/u/khaled)\
**Post date:** [January 13, 2026, 10:28pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/3 "2026-01-13T22:28:15Z")

</div>

The main issue is that a error here stops the features list in the edit view from working.

---

<div class="post-metadata">

**Author:** ![Aida](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/aida/32/29971_2.png) [@Aida](https://forum.glyphsapp.com/u/Aida)\
**Post date:** [January 22, 2026, 1:04am UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/4 "2026-01-22T01:04:58Z")

</div>

Would second the request for this to not show as an error, if demoting to a warning makes it so that we can still use the features list in the edit view.

---

<div class="post-metadata">

**Author:** ![Aida](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/aida/32/29971_2.png) [@Aida](https://forum.glyphsapp.com/u/Aida)\
**Post date:** [April 4, 2026, 7:37pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/5 "2026-04-04T19:37:44Z")

</div>

Any thoughts on updating this? If it’s possible to have these show as a warning instead of an error that would be super helpful so we can still use the edit view to test features without having to disable the lookup (and, in my case, inevitably forget to re-enable when exporting).

---

<div class="post-metadata">

**Author:** ![germansnowman](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/germansnowman/32/4568_2.png) [@germansnowman](https://forum.glyphsapp.com/u/germansnowman)\
**Post date:** [August 7, 2026, 1:27pm UTC](https://forum.glyphsapp.com/t/using-autogenerated-mark-classes-in-feature-code-causes-syntax-error/35741/6 "2026-08-07T13:27:42Z")

</div>

Hi @khaled and @Aida, sorry for the delayed response – we just changed this from an error to a warning as requested, so this will show up in the next update. Please follow up here if there are any issues.
