1. A method for decoding video data, the method comprising: receiving, in a bitstream, significance syntax elements of transform coefficients for a current sub-block of a block; selecting a context pattern that is stored as a one-dimensional context pattern, wherein the context pattern identifies contexts for two or more scan types of the current sub-block; assigning contexts to the significance syntax elements of the transform coefficients for the current sub-block based on the selected context pattern; and context adaptive binary arithmetic coding (CABAC) decoding the significance syntax elements of the transform coefficients of the current sub-block based on the assigned contexts.