In macOS Mojave, Apple changed the way that Spotlight indexes the contents of plain text files. That introduced a bug that prevents indexing of any of the contents of files starting with certain characters. For many Macs, that bug won't ever be fixed.