Fix language detection

Language detection only worked if there was more than one scope specifier starting with "source.". However, it is sufficient for only one scope specifier to detect the language. This fix changes that.
Now lookup in e.g. Ruby source files works as expected.