Insert new line after specific character

OK, I think this seems to work.

{ "keys": " "],
		"context":  
				{"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
				{"key": "preceding_text", "operator": "regex_match", "operand": "^.*\\.$"}
				],
		"command": "insert", "args": {"characters": " %\n"}
	}

I may be about to break something, for all I know. But so far, it does the trick.