bug fix for block code detection for r langauage