# Syntax Highlighting: Set()

**URL:** <https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [October 7, 2022, 12:22pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943 "2022-10-07T12:22:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 7, 2022, 12:22pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943/1 "2022-10-07T12:22:10Z")

</div>

Not a big deal, but I'm just wondering why `list()`, `len()`, etc. are highlighted yellow, but `set()` isn't.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 7, 2022, 12:48pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943/2 "2022-10-07T12:48:47Z")

</div>

Everyone and their mom knows `list` and `len` but only real heads use `set` is my personal conspiratorial reason for this.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 7, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943/3 "2022-10-07T14:35:15Z")

</div>

> <https://github.com/bobbylight/RSyntaxTextArea/blob/master/RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/modes/PythonTokenMaker.flex#L276-L341>

Could open a PR 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 7, 2022, 2:52pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943/4 "2022-10-07T14:52:08Z")

</div>

Any reason you don't iterate through the built-ins to auto-populate this list?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 7, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/syntax-highlighting-set/64943/5 "2022-10-07T15:55:06Z")

</div>

Not my code. It's meant to run without any Jython or Python environment, hence the hardcoded list. I think it not being a _complete_ hardcoded list is just an oversight by the primary dev.  
I could extend/reimplement this class in Ignition, but then I'm taking on that maintenance debt. Easier to push changes upstream, which I'll probably do at some point.
