on 20091023 beta there is support for symbol definition, well, i have tried to implement one for erlang functions.
i get trouble with the following issue, on erlang a function name and its arguments can be defined several times (it acts like switch-case on C/C++). the symbol definition i use is:
[code]<?xml version="1.0" encoding="UTF-8"?>
name Symbol List Function scope source.erlang entity.name.function.definition.erlang, source.erlang meta.expression.parenthesized settings showInSymbolList 1 symbolTransformation s/^\s*\(/"" \(/g; # repeat function head s/^/• /g; # bullets uuid 3CEA49B2-A5C5-405C-82E2-B8B668877C39 [/code]look at the 1st transformation (repeat function head). it partially solves what i try to describe here, but here it goes. see an example for function definition:
where({key, 1}) -> here;
where({key, 2}) -> there;
where({key, _}) -> here.
the scope definition starts with ‘source.erlang entity.name.function.definition.erlang’ but it hits only once on the first, the other ‘where’ are not defined as ‘entity.name.function.definition.erlang’. atm, i get the following result on ctrl+R:
• where({key, 1})
• "" ({key, 2})
• "" ({key, _})
hmmf, too long to describe, but, is there i way i can use value of one of the previous used symbols for the current?