if (marker == null) { Log.log(Log.ERROR,TokenMarker.class, "Cannot delegate to plain text mode"); rules = null; } else { rules = marker.getRuleSet(setName); }
rules = marker.getRuleSet(setName);
	public ParserRuleSet getRuleSet(String setName)	{		ParserRuleSet rules;		rules = (ParserRuleSet) ruleSets.get(setName);		if (rules == null && !setName.startsWith(rulePfx))		{			int delim = setName.indexOf("::");			String modeName = setName.substring(0, delim);			Mode mode = jEdit.getMode(modeName);			if(mode == null)			{				Log.log(Log.ERROR,TokenMarker.class,					"Unknown edit mode: " + modeName);				rules = null;			}			else			{				TokenMarker marker = mode.getTokenMarker();				if (marker == null)				{					Log.log(Log.ERROR,TokenMarker.class,					"Cannot delegate to plain text mode");					rules = null;				}				else				{					rules = marker.getRuleSet(setName);				}			}			// store external ParserRuleSet in the local hashtable for			// faster lookups later			ruleSets.put(setName, rules);		}		if (rules == null)		{			Log.log(Log.ERROR,this,"Unresolved delegate target: " + setName);		}		return rules;	}