moved code pattern to inline group.
Code blocks are now correctly detected when part of a list